Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] mod_caml 1.1.6
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-06-20 (12:08)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] mod_caml 1.1.6
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/
> (gdb) bt
> #0  0x40226c80 in mod_caml_get_dir_config ()
> 	from /usr/local/apache/libexec/

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:
(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");


Richard Jones.
Merjis Ltd. - 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 Archives:
Bug reports: FAQ:
Beginner's list: