Bug #14444 Updated: PHP (Apache DSO) crashes on startup

From: Date: Tue, 18 Jun 2002 23:04:07 +0000
Subject: Bug #14444 Updated: PHP (Apache DSO) crashes on startup
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-11268@lists.php.net to get a copy of this message
ID: 14444 Updated by: sniper@php.net Reported By: fmajid@kefta.com -Status: Duplicate +Status: Closed Bug Type: GD related Operating System: Solaris 8 Intel MU6 PHP Version: 4.1.0 New Comment: This bug has been fixed in CVS. You can grab a snapshot of the CVS version at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2002-01-07 08:50:49] lobbin@php.net Duplicate of #14426 ------------------------------------------------------------------------ [2001-12-11 21:15:12] fmajid@kefta.com When PHP 4.1.0 is compiled on Solaris 8 x86 with gcc 2.95.3 (Solaris ld, GNU as) with GD 1.5 (for GIF support), it seg faults on Apache startup. A backtrace with GDB shows the seg fault occurs in dlerror() during initialization of libthread.so. Setting LD_PRELOAD to preload libthread.so makes the seg fault go away, but now I get the message: Cannot load /usr/local/apache/libexec/libphp4.so into server: ld.so.1: /usr/local/apache/bin/httpd: fatal: relocation error: file /usr/local/apache/libexec/libphp4.so: symbol gdImageColorResolve: referenced symbol not found I managed to resolve the problem by applying the following patch to ext/gd/php_gd.h: *** php_gd.h~ Fri Aug 24 13:07:07 2001 --- php_gd.h Tue Dec 11 17:42:38 2001 *************** *** 66,72 **** PHP_MSHUTDOWN_FUNCTION(gd); #ifndef HAVE_GDIMAGECOLORRESOLVE ! static int gdImageColorResolve(gdImagePtr, int, int, int); #endif PHP_FUNCTION(imagearc); PHP_FUNCTION(imagechar); --- 66,72 ---- PHP_MSHUTDOWN_FUNCTION(gd); #ifndef HAVE_GDIMAGECOLORRESOLVE ! extern int gdImageColorResolve(gdImagePtr, int, int, int); #endif PHP_FUNCTION(imagearc); PHP_FUNCTION(imagechar); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=14444&edit=1

« previous php.bugs (#11268) next »