English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-09-06 (16:03)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] mod_caml makes Apache segfault
On Mon, Sep 06, 2004 at 05:50:41PM +0200, Alan Schmitt wrote:
> Hi,
> In order to play with cocanwiki, I am currently trying to get mod_caml 
> to work on a server here (Fedora Core 1, Apache 2.0.50).

Hi Alan,

First thing to say is that there is a show-stopper bug in Apache 2
which prevents modules which use PCRE from working.  mod_caml is one
of those modules:


If you want to see this bug fixed, please add your comments to that

There are suggestions on that page for compiling a version of Apache
which doesn't cause conflicting symbols, however it's probably a case
of it's easier to use a version of Apache 1.3 precompiled for FC1,
which definitely should work.

> First of all, a small trick: in order to get mod_caml to compile, I had 
> to specify two paths for includes:
> PACHEINCDIR := /usr/include/httpd -I /usr/include/apr-0
> I think this is a bug from RedHat (there is a apr.h included from 
> httpd.h without the correct include path).
> I have installed mod_caml following the instruction, added a 
> "LoadModule" line in the config file:
> LoadModule caml_module modules/mod_caml.so
> and restarted httpd.
> The problem is that now Apache does not serve any pages, and I see in 
> the logs a bunch of:
> [Mon Sep 06 14:46:43 2004] [notice] child pid 26207 exit signal Segmentation fault (11)
> [Mon Sep 06 14:46:43 2004] [notice] child pid 26209 exit signal Segmentation fault (11)
> [Mon Sep 06 14:46:52 2004] [notice] child pid 26210 exit signal Segmentation fault (11)
> Does someone know how to get mod_caml to work on such FC1 with Apache 2?

Just to check it is the PCRE bug, can you get a stack trace.  IIRC
the command is:

 run /usr/sbin/apache -X


Richard Jones. http://www.annexia.org/ http://www.j-london.com/
Merjis Ltd. http://www.merjis.com/ - improving website return on investment
http://www.YouUnlimited.co.uk/ - management courses