PHP 4.0 Bug #5734: Segfault when installed as DSO
| From: | anil at recoil dot org | Date: | Sat, 22 Jul 2000 11:12:52 +0000 |
| Subject: | PHP 4.0 Bug #5734: Segfault when installed as DSO | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-25404@lists.php.net to get a copy of this message | ||
From: anil@recoil.org
Operating system: OpenBSD-2.7-STABLE
PHP version: 4.0 Latest CVS (22/07/2000)
PHP Bug Type: Installation problem
Bug description: Segfault when installed as DSO
Compile goes fine (--with-apxs=/usr/sbin/apxs --enable-versioning --without-mysql) until the very
end:
/bin/sh /usr/local/src/cvs/php4/libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I.
-I/usr/local/src/cvs/php4/ -I/usr/local/src/cvs/php4 -I/usr/local/src/cvs/php4/main
-I/usr/lib/apache/include -I/usr/local/src/cvs/php4/Zend -I/usr/local/src/cvs/php4
-I/usr/local/src/cvs/php4/ext/xml/expat/xmltok -I/usr/local/src/cvs/php4/ext/xml/expat/xmlparse
-DEAPI=1 -DXML_BYTE_ORDER=12 -g -O2 -c stub.c
/bin/sh /usr/local/src/cvs/php4/libtool --silent --mode=link gcc -DHAVE_CONFIG_H -I.
-I/usr/local/src/cvs/php4/ -I/usr/local/src/cvs/php4 -I/usr/local/src/cvs/php4/main
-I/usr/lib/apache/include -I/usr/local/src/cvs/php4/Zend -I/usr/local/src/cvs/php4
-I/usr/local/src/cvs/php4/ext/xml/expat/xmltok -I/usr/local/src/cvs/php4/ext/xml/expat/xmlparse
-DEAPI=1 -DXML_BYTE_ORDER=12 -g -O2 -o libphp4.la -rpath /usr/local/src/cvs/php4/libs
-export-symbols /usr/local/src/cvs/php4/sapi/apache/php.sym -avoid-version stub.lo
Zend/libZend.la sapi/apache/libsapi.la main/libmain.la regex/libregex.la ext/db/libdb.la
ext/pcre/libpcre.la ext/posix/libposix.la ext/session/libsession.la ext/standard/libstandard.la
ext/xml/libxml.la -lresolv -lm -lresolv
*** Warning: inter-library dependencies are not known to be supported.
*** All declared inter-library dependencies are being dropped.
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.
ld: .libs/libphp4.lax/libsapi.al/mod_php4.lo: relocation must refer to global symbol at 0xf2b
ld: .libs/libphp4.lax/libsapi.al/mod_php4.lo: relocation must refer to global symbol at 0xec8
ld: .libs/libphp4.lax/libsapi.al/mod_php4.lo: relocation must refer to global symbol at 0xe9b
ld: .libs/libphp4.lax/libsapi.al/mod_php4.lo: relocation must refer to global symbol at 0xc22
Making all in pear
Then, attempting to start Apache with a LoadModule causes a segfault. a gdb backtrace reveals
nothing of use:
Core was generated by `httpd'.
Program terminated with signal 11, Segmentation fault.
#0 0x0 in ?? ()
Ktracing the program and kdumping reveals:
29446 httpd NAMI "/var/www/logs/ssl_scache.db"
29446 httpd RET unlink -1 errno 2 No such file or directory
29446 httpd CALL unlink(0xad054)
29446 httpd NAMI "/var/www/logs/ssl_scache.db"
29446 httpd RET unlink -1 errno 2 No such file or directory
29446 httpd CALL unlink(0xad074)
29446 httpd NAMI "/var/www/logs/ssl_scache.dir"
29446 httpd RET unlink -1 errno 2 No such file or directory
29446 httpd CALL unlink(0xad094)
29446 httpd NAMI "/var/www/logs/ssl_scache.pag"
29446 httpd RET unlink -1 errno 2 No such file or directory
29446 httpd CALL unlink(0xad0b4)
29446 httpd NAMI "/var/www/logs/ssl_scache.db"
29446 httpd RET unlink -1 errno 2 No such file or directory
29446 httpd CALL unlink(0xbd134)
29446 httpd NAMI "/var/www/logs/ssl_scache"
29446 httpd RET unlink -1 errno 2 No such file or directory
29446 httpd CALL unlink(0xbd154)
29446 httpd NAMI "/var/www/logs/ssl_mutex.29446"
29446 httpd RET unlink -1 errno 2 No such file or directory
29446 httpd PSIG SIGSEGV SIG_DFL
29446 httpd NAMI "httpd.core"