Bug #16475 Updated: segfault at startup with Apache 2.0.35
| From: | jwoolley@php.net | Date: | Mon, 22 Apr 2002 04:04:44 +0000 |
| Subject: | Bug #16475 Updated: segfault at startup with Apache 2.0.35 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-5539@lists.php.net to get a copy of this message | ||
ID: 16475
Updated by: jwoolley@php.net
Reported By: sebastian.wolfgarten@gmx.net
Status: Open
Bug Type: Apache2 related
Operating System: Linux 2.4.x
PHP Version: 4.2.0RC2-4
New Comment:
AHA! I think I'm onto something. The DSO is segfaulting in the second
initialization round when php_apache_server_startup(). That function
calls php_apache_startup() which uses pthread_getspecific. It ends up
looking up a structure which contains pointers that point to from the
FIRST round, dereferences them, and poof, it dies. I'm working on a
patch.
Previous Comments:
------------------------------------------------------------------------
[2002-04-21 18:48:21] jwoolley@php.net
This appears to be heap corruption of some sort. I can
reproduce the problem and am working on tracking it down.
------------------------------------------------------------------------
[2002-04-15 00:12:00] bfoddy@yuck.net
I too have been seeing this same error.
Using RC3 and now RC4, httpd -X cores immediately.
My php config:
./configure --with-apxs2=/home/brian/apache2/bin/apxs --enable-debug
--prefix=/home/brian/apache2
Coredump bt:
(gdb) bt
#0 0x4034958e in ts_resource_ex (id=1, th_id=0x0) at TSRM.c:310
#1 0x402a1fda in php_module_startup (sf=0x4036fb00) at main.c:856
#2 0x4029f9bc in php_apache_server_startup (pconf=0x80b7e20,
plog=0x80eff00, ptemp=0x8137a38, s=0x813a0a0)
at sapi_apache2.c:435
#3 0x0807c972 in ap_run_post_config (pconf=0x80b7e20, plog=0x80eff00,
ptemp=0x8137a38, s=0x813a0a0)
at config.c:127
#4 0x08081595 in main (argc=2, argv=0xbffff7e4) at main.c:611
#5 0x40119280 in __libc_start_main () from /lib/libc.so.6
Apache 2.0.35, Mandrake 8.2
Changes made to httpd.conf as per instructions on
web page:
LoadModule php4_module modules/libphp4.so
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
------------------------------------------------------------------------
[2002-04-13 17:08:13] sniper@php.net
reclassified. (please don't change the category anymore!)
------------------------------------------------------------------------
[2002-04-13 15:03:55] sebastian.wolfgarten@gmx.net
Hi,
well when I do a "ldd /usr/local/bin/httpd" the following list is
shown:
libaprutil.so.0 => /usr/local/apache2/lib/libaprutil.so.0 (0x40016000)
libapr.so.0 => /usr/local/apache2/lib/libapr.so.0 (0x40026000)
libm.so.6 => /lib/libm.so.6 (0x40047000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x40069000)
libnsl.so.1 => /lib/libnsl.so.1 (0x40096000)
libdl.so.2 => /lib/libdl.so.2 (0x400ab000)
libdb-4.0.so => /usr/lib/libdb-4.0.so (0x400af000)
libexpat.so.0 => /usr/local/lib/libexpat.so.0 (0x40135000)
libpthread.so.0 => /lib/libpthread.so.0 (0x40156000)
libc.so.6 => /lib/libc.so.6 (0x4016c000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
So there is libpthread included but why not in ldd of libphp4.so (as
seen in my previous postings)? I'm using Debian Woody 3.0 with kernel
2.4.16 and I have installed all recent updates.
Bye,
Sebastian
------------------------------------------------------------------------
[2002-04-13 14:15:56] sniper@php.net
Is the libpthread in your system a static library or why
isn't it shown in that ldd list?
Which Debian distro is this anyway? Stable or unstable?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/16475
--
Edit this bug report at http://bugs.php.net/?id=16475&edit=1