httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benjamin Geer <...@socialtools.net>
Subject [users@httpd] apache 2 segfault on startup because of different pcre versions
Date Sun, 12 Oct 2003 00:36:33 GMT
The Apache 2.0.47 distribution contains the Perl Compatible Regular 
Expressions library (PCRE) version 3.0.

The mod_caml module (http://www.merjis.com/developers/mod_caml/), which 
works with Apache 1.3, causes Apache 2 to segfault on startup, in PCRE 
code (a gdb backtrace is included at the end of this message).  The 
mod_caml maintainer and I suspect that this is because mod_caml uses a 
more recent version of PCRE, via the PCRE-OCaml bindings (the current 
version of which requires PCRE 4.4).

My question is: can Apache 2 be built using an already-installed version 
of PCRE (e.g. version 4.4), instead of the version that's included in 
the Apache 2 distribution?  If not, could this be added as a ./configure 
option?  Alternatively, can it be built without PCRE, and which 
functionality would be lost by doing so?  Or is there another way to 
work around this problem?

Here's the gdb backtrace of the segfault, using Apache 2.0.47 on Debian 
GNU/Linux; I configured Apache with "./configure 
--prefix=/usr/local/apache2 --enable-mime-magic --enable-http 
--with-mpm=worker --enable-so".

#0  0x4038e461 in pcre_free_substring () from /usr/lib/libpcre.so.3
#1  0x4038ea38 in pcre_study () from /usr/lib/libpcre.so.3
#2  0x4002c56e in pcre_study_wrapper () from 
/usr/lib/ocaml/3.06/stublibs/dllpcre_stubs.so
#3  0x40340c07 in interprete () from /usr/local/apache2/modules/mod_caml.so
#4  0x403335aa in caml_main () from /usr/local/apache2/modules/mod_caml.so
#5  0x4032c34c in init () at mod_caml_c.c:80
#6  0x40342a25 in __do_global_ctors_aux () from 
/usr/local/apache2/modules/mod_caml.so
#7  0x4032a5f9 in _init () from /usr/local/apache2/modules/mod_caml.so
#8  0x4000b2ce in call_init () from /lib/ld-linux.so.2
#9  0x4000b3ba in _dl_init_internal () from /lib/ld-linux.so.2
#10 0x402f2b5e in getutmpx () from /lib/libc.so.6
#11 0x4000b116 in _dl_catch_error_internal () from /lib/ld-linux.so.2
#12 0x402f2fdc in _dl_open () from /lib/libc.so.6
#13 0x4019acd8 in dlinfo () from /lib/libdl.so.2
#14 0x4000b116 in _dl_catch_error_internal () from /lib/ld-linux.so.2
#15 0x4019a456 in dlerror () from /lib/libdl.so.2
#16 0x4019ad2c in dlopen () from /lib/libdl.so.2
#17 0x4011f05e in apr_dso_load (res_handle=0xbfffce68, path=0xbfffce68 
"", pool=0x80c4b18) at dso.c:176
#18 0x080820f8 in load_module (cmd=0xbffff830, dummy=0xbfffce68, 
modname=0x8104780 "caml_module",
     filename=0x40014b00 "PJ\001") at mod_so.c:282
#19 0x08087482 in invoke_cmd (cmd=0x80af9e0, parms=0xbffff830, 
mconfig=0xbfffd650, args=0xbfffd6dd "") at config.c:739
#20 0x080884a9 in execute_now (cmd_line=0x8104718 "LoadModule", 
args=0xbfffce68 "", parms=0xbffff830, p=0x80c4b18,
     ptemp=0x80fec00, sub_tree=0xbfffce68, parent=0x0) at config.c:1353
#21 0x08087cba in ap_build_config_sub (p=0x80c4b18, temp_pool=0x80fec00, 
l=0x1089379f <Address 0x1089379f out of bounds>,
     parms=0xbffff830, current=0xbfffd698, curr_parent=0xbfffd69c, 
conftree=0x80bbcf4) at config.c:942
#22 0x0808808e in ap_build_config (parms=0xbffff830, p=0x80c4b18, 
temp_pool=0x80fec00, conftree=0x8104718) at config.c:1149
#23 0x080889d4 in ap_process_resource_config (s=0x80c78d0, 
fname=0x8104718 "LoadModule", conftree=0x80bbcf4, p=0x80c4b18,
     ptemp=0x80fec00) at config.c:1565
#24 0x08089256 in ap_read_config (process=0xbfffce68, ptemp=0x80fec00, 
filename=0x80b1111 "conf/httpd.conf",
     conftree=0x80bbcf4) at config.c:1843
#25 0x0808b78a in main (argc=2, argv=0xbffff964) at main.c:574

Ben


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message