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 makes Apache segfault
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
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/
> 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.
Merjis Ltd. - improving website return on investment - management courses