Sporadical segfault with mod_layout 3.2.1 and Apache 1.3 on Solaris

Rudá Moura <[email protected]> Thu, 22 Mar 2007 16:33:15 -0300
Newsgroups gmane.comp.apache.mod-layout
Message-ID <[email protected]>
Hello,

We're having sporadical segfault with mod_layout 3.2.1 and Apache 1.3  
on Solaris.
Unfortunelly this bug can't be trigger in a development environment.  
The result of this bug  is a blank page delivered. We use mod_layout  
in order to insert DOCTYPE conformance, like this:

LayoutHeader '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0  
Transitional//EN
" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'

So after mod_layout/Apache threads dies the user gets a blank page  
and the source contais only the DOCTYPE thing.

The GDB backtrace is (not much, I know):

Program received signal SIGSEGV, Segmentation fault.

0xff1b32ec in strlen () from /lib/libc.so.1

(gdb) bt

#0  0xff1b32ec in strlen () from /lib/libc.so.1
#1  0x0001e1c0 in ap_bputs ()
#2  0x0003c5d0 in ap_rputs ()
#3  0xfe774bd8 in layout_handler () from /usr/local/apache/modules/ 
mod_layout.so

I think I can't attach cores or html here in this list, so if someone  
is interestend, I could send to him/her.

BTW I'm moving on to Apache 2, guess I lucky enough with mod_layout  
in this version.

TIA.

--
Rudá Moura <[email protected]>
Terra Networks Brasil +55 51 3284 4299