caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Richard Jones <rich@annexia.org>
To: Alex Samokhvalov <bss98alx@studserv.uni-leipzig.de>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] mod_caml 1.1.6
Date: Sun, 20 Jun 2004 13:08:18 +0100	[thread overview]
Message-ID: <20040620120818.GA2426@redhat.com> (raw)
In-Reply-To: <20040620114517.GA19582@a191012.studnetz.uni-leipzig.de>

On Sun, Jun 20, 2004 at 01:45:17PM +0200, Alex Samokhvalov wrote:
> Hi all,
> 
> i tried to install mod_caml 1.1.6 on apache 1.3. In both cases i receive
> the same error:
[...]
> #0  0x40226c80 in mod_caml_get_dir_config ()
> from /usr/local/apache/libexec/mod_caml.so
> (gdb) bt
> #0  0x40226c80 in mod_caml_get_dir_config ()
> 	from /usr/local/apache/libexec/mod_caml.so

Ouch, not nice.

Although I suspect it won't make a difference, can you make sure
you're running the latest version of mod_caml from CVS, which you can
find here:

https://savannah.nongnu.org/cvs/?group=modcaml
(section: Anonymous CVS Access / Software repository)

The function where it's segfaulting is very simple:

CAMLprim value
mod_caml_get_dir_config (value rv)
{
  CAMLparam1 (rv);
  CAMLlocal1 (config);
  request_rec *r = Request_rec_val (rv);
  config = *(value *) ap_get_module_config (r->per_dir_config, &caml_module);
  CAMLreturn (config);
}

However, unless I know exactly which line is causing the segfault,
it's rather hard for me to debug.  Needless to say, I run mod_caml all
the time, and have never seen such a problem.

You could try compiling the module with debugging symbols, or simply
add a few print statements to that function to see which variable is
NULL.  Anything printed out with fprintf (stderr, ...) will be sent to
the error log, so you could for example try:

  ...
  fprintf (stderr, "r = %p, r->per_dir_config = %p\n", r, r->per_dir_config);
  config = *(value *) ap_get_module_config (r->per_dir_config, &caml_module);
  fprintf (stderr, "ap_get_module_config done\n");
  ...

Rich.

-- 
Richard Jones. http://www.annexia.org/ http://www.j-london.com/
Merjis Ltd. http://www.merjis.com/ - improving website return on investment
If I have not seen as far as others, it is because I have been
standing in the footprints of giants.  -- from Usenet

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


  reply	other threads:[~2004-06-20 12:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-20 11:45 Alex Samokhvalov
2004-06-20 12:08 ` Richard Jones [this message]
2004-06-20 20:40   ` Alex Samokhvalov
2004-06-21  9:14     ` Richard Jones

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040620120818.GA2426@redhat.com \
    --to=rich@annexia.org \
    --cc=bss98alx@studserv.uni-leipzig.de \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).