caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* FW: [Caml-list] mod_caml makes Apache segfault
@ 2004-11-10  2:15 HENRIKSON, JEFFREY
  2004-11-10  9:37 ` Richard Jones
  0 siblings, 1 reply; 2+ messages in thread
From: HENRIKSON, JEFFREY @ 2004-11-10  2:15 UTC (permalink / raw)
  To: rich; +Cc: caml-list

Hello,

I am also trying to install mod_caml.  (and wiki next . . .)  Starting
with the 2.0.52 debian apache2.  I know about this patch:

http://issues.apache.org/bugzilla/showattachment.cgi?attach_id=10734

But my debian package is applying a similar (same?) patch during
installation.  

When loaded, I get a segfault on any page load, static or dynamic.  The
backtrace is below.  Ideas?  Things which I have noticed:

- The debian pcre rename patch left a few symbols pcre_ without
ap_pcre_.

- Googling mod_caml_get_dir_config gives a chat room discussion of
somebody having the same issue with apache 1.3.

Thanks,


Jeff Henrikson



jefhen@hoxpcxjefhe1:/usr/src/apache2-2.0.52$ sudo gdb /usr/sbin/apache2
GNU gdb 6.1-debian Copyright 2004 Free Software Foundation, Inc. GDB is
free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions. Type "show copying" to see the conditions. There is
absolutely no warranty for GDB.  Type "show warranty" for details. This
GDB was configured as "i386-linux"...(no debugging symbols
found)...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) set args -X -k start
(gdb) run
Starting program: /usr/sbin/apache2 -X -k start
(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...[Thread debugging using libthread_db enabled] [New Thread 16384
(LWP 1873)] (no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...[New Thread 32769 (LWP 1876)] [New Thread 16386 (LWP 1877)]
[New Thread 32771 (LWP 1878)] [New Thread 49156 (LWP 1879)] [New Thread
65541 (LWP 1880)] [New Thread 81926 (LWP 1881)] [New Thread 98311 (LWP
1882)] [New Thread 114696 (LWP 1883)] [New Thread 131081 (LWP 1884)]
[New Thread 147466 (LWP 1885)] [New Thread 163851 (LWP 1886)] [New
Thread 180236 (LWP 1887)] [New Thread 196621 (LWP 1888)] [New Thread
213006 (LWP 1889)] [New Thread 229391 (LWP 1890)] [New Thread 245776
(LWP 1891)] [New Thread 262161 (LWP 1892)] [New Thread 278546 (LWP
1893)] [New Thread 294931 (LWP 1894)] [New Thread 311316 (LWP 1895)]
[New Thread 327701 (LWP 1896)] [New Thread 344086 (LWP 1897)] [New
Thread 360471 (LWP 1898)] [New Thread 376856 (LWP 1899)] [New Thread
393241 (LWP 1900)] [New Thread 409626 (LWP 1901)] [New Thread 426011
(LWP 1902)] [New Thread 442396 (LWP 1903)] [Thread 16386 (LWP 1877)
exited]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 32771 (LWP 1878)]
0x405df589 in mod_caml_get_dir_config ()
   from /usr/lib/apache2/modules/mod_caml.so
(gdb) backtrace

#0  0x405df589 in mod_caml_get_dir_config ()
   from /usr/lib/apache2/modules/mod_caml.so
#1  0x405eed62 in caml_interprete () from
/usr/lib/apache2/modules/mod_caml.so
#2  0x405eb1e7 in caml_callbackN_exn ()
   from /usr/lib/apache2/modules/mod_caml.so
#3  0x405eb22e in caml_callback_exn ()
   from /usr/lib/apache2/modules/mod_caml.so
#4  0x405dca3c in post_read_request ()
   from /usr/lib/apache2/modules/mod_caml.so
#5  0x0808a795 in ap_run_post_read_request ()
#6  0x08089751 in ap_read_request ()
#7  0x08065118 in _start ()
#8  0x081a2188 in ?? ()
#9  0x00000003 in ?? ()
#10 0x00000000 in ?? ()
#11 0x0808534c in ap_run_pre_connection ()
#12 0x08085205 in ap_run_process_connection ()
#13 0x081a2098 in ?? ()
#14 0x00000000 in ?? ()
#15 0x081a2188 in ?? ()
#16 0x081a2060 in ?? ()
#17 0x081a2098 in ?? ()
#18 0xbf5ffa7c in ?? ()
#19 0x08076611 in ap_graceful_stop_signalled ()
#20 0x081a2098 in ?? ()
#21 0x081a2098 in ?? ()
#22 0x00000000 in ?? ()
#23 0x081a2180 in ?? ()
#24 0x081a60e0 in ?? ()
#25 0x4019c2d0 in apr_brigade_vprintf () from /usr/lib/libaprutil-0.so.0
Previous frame inner to this frame (corrupt stack?)




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: FW: [Caml-list] mod_caml makes Apache segfault
  2004-11-10  2:15 FW: [Caml-list] mod_caml makes Apache segfault HENRIKSON, JEFFREY
@ 2004-11-10  9:37 ` Richard Jones
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Jones @ 2004-11-10  9:37 UTC (permalink / raw)
  To: HENRIKSON, JEFFREY; +Cc: caml-list

[-- Attachment #1: Type: text/plain, Size: 1264 bytes --]

On Tue, Nov 09, 2004 at 06:15:52PM -0800, HENRIKSON, JEFFREY wrote:
> Hello,
> 
> I am also trying to install mod_caml.  (and wiki next . . .)  Starting
> with the 2.0.52 debian apache2.  I know about this patch:
> 
> http://issues.apache.org/bugzilla/showattachment.cgi?attach_id=10734
> 
> But my debian package is applying a similar (same?) patch during
> installation.  
> 
> When loaded, I get a segfault on any page load, static or dynamic.  The
> backtrace is below.  Ideas?  Things which I have noticed:
> 
> - The debian pcre rename patch left a few symbols pcre_ without
> ap_pcre_.
> 
> - Googling mod_caml_get_dir_config gives a chat room discussion of
> somebody having the same issue with apache 1.3.

Looks like you're using a multi-threaded instance of Apache?  mod_caml
is completely untested in such an environment, and probably doesn't
work.  Can you try a pre-forking model instead and see if that fixes
the problem?

Rich.

-- 
Richard Jones.  http://www.annexia.org/  http://www.j-london.com/
>>>   http://www.team-notepad.com/ - collaboration tools for teams   <<<
Merjis Ltd. http://www.merjis.com/ - improving website return on investment
Use Perl libs in OCaml - http://www.merjis.com/developers/perl4caml

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-11-10  9:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-10  2:15 FW: [Caml-list] mod_caml makes Apache segfault HENRIKSON, JEFFREY
2004-11-10  9:37 ` Richard Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).