PHP 4.0 Bug #6731 Updated: Apache crashes with PHP/Oracle module enabled
| From: | Bug Database | Date: | Thu, 14 Sep 2000 06:55:08 +0000 |
| Subject: | PHP 4.0 Bug #6731 Updated: Apache crashes with PHP/Oracle module enabled | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-33201@lists.php.net to get a copy of this message | ||
ID: 6731
User Update by: mike.johnson@isunnetworks.com
Old-Status: Open
Status: Closed
Bug Type: OCI8 related
Description: Apache crashes with PHP/Oracle module enabled
Okay, it works now.
The fix:
From: Thies Arntzen <thies@digicol.de>
please relink your apache adding -lpthread to the LDFLAGS.
the problem here is that a executable thats *not* linked
agains -lpthread cannot load a shared library that is liked
against -lpthread. (libphp4.so - linked against -lclntsh
linked against -lpthread).
this is a glibc-2.1 bug that supposed to be fixed in 2.2.
plz verify and close the bug-report!
tc
Previous Comments:
---------------------------------------------------------------------------
[2000-09-13 23:48:05] mike.johnson@isunnetworks.com
PHP compiled with following arguments:
./configure
--target=%{_target_platform}
--prefix=%{_prefix}
--with-config-file-path=%{_sysconfdir}
--disable-debug
--enable-pic
--enable-inline-optimization
$*
--with-exec-dir=%{_bindir}
--with-regex=system
--with-jpeg-dir=%{_prefix}
--with-png
--with-db2
--with-gd
--with-oci8
--with-zlib
--with-gdbm
--enable-debugger
--enable-magic-quotes
--enable-safe-mode
--enable-sysvsem
--enable-sysvshm
--enable-track-vars
--enable-yp
--enable-ftp
--with-xml
ORACLE_HOME is defined.
Oracle version is 8.1.6
Apache version is 1.3.12
When I start apache with php enabled, it crashes:
[mike@io mike]$ httpd -t
Syntax OK
Segmentation fault
gdb:
(gdb) r -t
Starting program: /usr/sbin/httpd -t
Syntax OK
Cannot access memory at address 0x40b17bb4
(gdb) where
#0 0x4000bd99 in _dl_debug_state () at dl-debug.c:56
#1 0x401b60c6 in _dl_close (map=0x80b4fc8) at dl-close.c:195
#2 0xaff0d in ?? ()
#3 0xaff0d in ?? ()
#4 0xaff0d in ?? ()
#5 0xaff0d in ?? ()
#6 0xaff0d in ?? ()
#7 0xaff0d in ?? ()
#8 0xaff0d in ?? ()
#9 0xaff0d in ?? ()
#10 0xaff0d in ?? ()
#11 0xaff0d in ?? ()
#12 0xaff0d in ?? ()
#13 0xaff0d in ?? ()
#14 0xaff0d in ?? ()
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=6731