From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id OAA19085; Sun, 20 Jun 2004 14:08:21 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id OAA19073 for ; Sun, 20 Jun 2004 14:08:20 +0200 (MET DST) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i5KC8JSH012770 for ; Sun, 20 Jun 2004 14:08:19 +0200 Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 1Bc17S-0000ex-00; Sun, 20 Jun 2004 13:08:18 +0100 Date: Sun, 20 Jun 2004 13:08:18 +0100 To: Alex Samokhvalov Cc: caml-list@inria.fr Subject: Re: [Caml-list] mod_caml 1.1.6 Message-ID: <20040620120818.GA2426@redhat.com> References: <20040620114517.GA19582@a191012.studnetz.uni-leipzig.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040620114517.GA19582@a191012.studnetz.uni-leipzig.de> User-Agent: Mutt/1.5.5.1+cvs20040105i From: Richard Jones X-Miltered: at concorde with ID 40D57E33.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 2004:99 usr:01 libexec:01 gdb:01 usr:01 libexec:01 camlprim:01 camlparam:01 camllocal:01 val:01 camlreturn:01 segfault:01 debugging:01 fprintf:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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