Re: Bug Report: seg fault with 1.29/Apache 1.3.33/RedHat 7.1

[prev] [thread] [next] [Date index for 2004/11/19]

From: Tim Evans
Subject: Re: Bug Report: seg fault with 1.29/Apache 1.3.33/RedHat 7.1
Date: 01:52 on 19 Nov 2004

>so at the moment the solution is to recompile perl with 
>-DPERL_USE_SAFE_PUTENV

Does not work.

[root@kestrel apache_1.3.33]# perl -V:cppflags 
cppflags='-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe -I/usr/local/include 
-I/usr/include/gdbm';

Fresh build of PHP 4.3.9; config.status has:

./configure  --with-apxs=/usr/local/apache/bin/apxs

Loads Apache HTML example page ok; simple test.php script runs w/o error showing 
PHP config

Rebuilt mod_perl with:

perl Makefile.PL USE_DSO=1

Let it build apache for me; apache's config.status says:

CC="cc" \
CFLAGS=" -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm" \
LDFLAGS_SHLIB_EXPORT="-Wl,-E" \
./configure \
"--with-layout=Apache" \
"--disable-rule=EXPAT" \
"--with-perl=/usr/local/bin/perl" \
"$@"

make test (all ok)
make install

Apache's httpd.conf has:

LoadModule php4_module        libexec/libphp4.so
LoadModule perl_module        libexec/libperl.so

Restart apache.

Seg faults on simple test.php page. Error log says (same as before):

[Thu Nov 18 20:48:17 2004] [notice] child pid 22818 exit signal Segmentation 
fault (11)


[root@kestrel root]# gdb httpd <pid>
GNU gdb Red Hat Linux (6.1post-1.20040607.17rh)
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-redhat-linux-gnu"...(no debugging symbols 
found)...Using host libthread_db library "/lib/tls/libthread_db.so.1".

Attaching to program: /usr/sbin/httpd, process 22798
0x0083d5e8 in ?? ()

[ attempt to load test.php here returns nothing in browser ]

(gdb) bt
#0  0x0083d5e8 in ?? ()
#1  0x0089ce98 in ?? ()
#2  0xbfffadf4 in ?? ()
#3  0x00000001 in ?? ()
#4  0x08074be0 in ap_calc_scoreboard_size ()
#5  0x00000000 in ?? ()
#6  0x00000000 in ?? ()
#7  0x00000000 in ?? ()
#8  0x00000000 in ?? ()
#9  0xbfffacb0 in ?? ()
#10 0xbfffacdc in ?? ()
#11 0x00000001 in ?? ()
#12 0x08074b82 in ap_run_pre_mpm ()
#13 0x0809d854 in ?? ()
#14 0xbfffacc4 in ?? ()
#15 0x00000001 in ?? ()
#16 0x00000000 in ?? ()
#17 0x00000000 in ?? ()
#18 0x0009eb10 in ?? ()
#19 0xbffface8 in ?? ()
#20 0x08076f0c in ap_content_length_filter ()
#21 0xbfffacdc in ?? ()
#22 0x0809d6fa in ?? ()
#23 0xbffface8 in ?? ()
#24 0x08077012 in ap_content_length_filter ()
#25 0x09f47024 in ?? ()
#26 0x00000000 in ?? ()
#27 0xffffffff in ?? ()
#28 0x0806c57b in ap_read_pid ()
#29 0x0809d697 in ?? ()
#30 0x00000000 in ?? ()
#31 0xbfffad68 in ?? ()
#32 0x08077618 in ap_rflush ()
#33 0x00000001 in ?? ()
#34 0xbfffadf4 in ?? ()
#35 0xbfffad68 in ?? ()
#36 0x080775ed in ap_rflush ()
#37 0x00000000 in ?? ()
#38 0x00000000 in ?? ()
#39 0x00000000 in ?? ()
#40 0x00000000 in ?? ()
#41 0x0177ff8e in ?? ()
#42 0xbfffada0 in ?? ()
#43 0x0048b710 in ?? ()
#44 0x00000000 in ?? ()
#45 0x00000000 in ?? ()
#46 0x007730cc in ?? ()
#47 0xb75e64f8 in ?? ()
#48 0x00000000 in ?? ()
---Type <return> to continue, or q <return> to quit---
#49 0x0089d378 in ?? ()
#50 0x080ab6e0 in ?? ()
#51 0xbfffad48 in ?? ()
#52 0x0804e945 in ?? ()
#53 0xbfffeb2c in ?? ()
#54 0x00000000 in ?? ()
#55 0xbfffad68 in ?? ()
#56 0xffffffff in ?? ()
#57 0x007927c3 in ?? ()
#58 0x0089ce98 in ?? ()
#59 0x00482c90 in ?? ()
#60 0x0089ce98 in ?? ()
#61 0xbfffadf4 in ?? ()
#62 0x00000001 in ?? ()
#63 0xbfffadc8 in ?? ()
#64 0x0077d79d in ?? ()
#65 0x00000001 in ?? ()
#66 0xbfffadf4 in ?? ()
#67 0xbfffadfc in ?? ()
#68 0x00000000 in ?? ()
#69 0x0089ce98 in ?? ()
#70 0x0048b020 in ?? ()
#71 0x08094354 in ?? ()
#72 0xbfffadc8 in ?? ()
#73 0xbfffad70 in ?? ()
#74 0x0077d75f in ?? ()
#75 0x00000000 in ?? ()
#76 0x00000000 in ?? ()
#77 0x00000000 in ?? ()
#78 0x0048b518 in ?? ()
#79 0x00000001 in ?? ()
#80 0x0804f288 in ?? ()
#81 0x00000000 in ?? ()
#82 0x00482300 in ?? ()
#83 0x0077d6bb in ?? ()
#84 0x0048b518 in ?? ()
#85 0x00000001 in ?? ()
#86 0x0804f288 in ?? ()
#87 0x00000000 in ?? ()
#88 0x0804f2a9 in ?? ()
#89 0x08077290 in ap_old_write_filter ()
#90 0x00000001 in ?? ()
#91 0xbfffadf4 in ?? ()
#92 0x08094354 in ?? ()
#93 0x0809439c in ?? ()
#94 0x00482c90 in ?? ()
#95 0xbfffadec in ?? ()
#96 0x004890d3 in ?? ()
#97 0x00000001 in ?? ()
---Type <return> to continue, or q <return> to quit---

[ pages and pages more of this, ending with ]

#5341 0x00000000 in ?? ()
#5342 0x00000000 in ?? ()
#5343 0x00000000 in ?? ()
#5344 0x00000000 in ?? ()
#5345 0x00000000 in ?? ()
#5346 0x00000000 in ?? ()
#5347 0x00000000 in ?? ()
#5348 0x00000000 in ?? ()
Cannot access memory at address 0xc0000000
(gdb) 

At this point, my client has instructed me to stop burning billable hours on 
this project--initial goal was to get an application called Request Tracker 
(http://www.bestpractical.com/rt/) running. I cannot disable PHP for this 
project, and can't use mod_perl either.

Not sure what else I can tell you.
--
Tim Evans, TKEvans.com, Inc.	|    5 Chestnut Court
tkevans@xxxxxxx.xxx		|    Owings Mills, MD 21117
http://www.tkevans.com/		|    443-394-3864
http://www.come-here.com/News/	|    


        -- 
        Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

(message missing)

Re: Bug Report: seg fault with 1.29/Apache 1.3.33/RedHat 7.1
Tim Evans 01:52 on 19 Nov 2004

Generated at 11:27 on 21 Dec 2004 by mariachi v0.52