Bug #3477: Apache crashes right after startup when solid is compiled in php3

From: Date: Mon, 14 Feb 2000 09:29:38 +0000
Subject: Bug #3477: Apache crashes right after startup when solid is compiled in php3
Groups: php.dev 
Request: Send a blank email to php-dev+get-15514@lists.php.net to get a copy of this message
From: eric@terra.nu Operating system: Linux 2.2.13 i686 PHP version: 3.0.14 PHP Bug Type: Solid related Bug description: Apache crashes right after startup when solid is compiled in php3 I had to patch php-3 a little to get it compiled with Solid 3.0. This are the patches: =================================================================== RCS file: /repository/php3/aclocal.m4,v retrieving revision 1.49 diff -u -r1.49 aclocal.m4 --- aclocal.m4 2000/01/01 02:30:52 1.49 +++ aclocal.m4 2000/02/14 08:52:56 @@ -156,6 +156,9 @@ SOLID_LIBS=echo $1/scl2x${ac_solid_os}*.a | cut -d' ' -f1 fi if test ! -f $SOLID_LIBS; then + SOLID_LIBS=echo $1/scll2x*.so | cut -d' ' -f1 + fi + if test ! -f $SOLID_LIBS; then SOLID_LIBS=echo $1/bcl${ac_solid_os}*.so | cut -d' ' -f1 fi if test ! -f $SOLID_LIBS; then Index: functions/php3_unified_odbc.h =================================================================== RCS file: /repository/php3/functions/php3_unified_odbc.h,v retrieving revision 1.56 diff -u -r1.56 php3_unified_odbc.h --- functions/php3_unified_odbc.h 2000/01/01 04:44:10 1.56 +++ functions/php3_unified_odbc.h 2000/02/14 08:52:56 @@ -58,8 +58,7 @@ /* checking in the same order as in configure.in */ # if HAVE_SOLID -# include <cli0core.h> -# include <cli0ext1.h> +# include <cli0cli.h> # define HAVE_SQL_EXTENDED_FETCH 0 extern void php3_solid_fetch_prev(INTERNAL_FUNCTION_PARAMETERS); # if defined(UODBC_UNIQUE_NAMES) Configured with: ./configure \ --with-prefix=/usr \ --sysconfdir=/etc/php \ --localstatedir=/var \ --enable-versioning \ --with-apxs=/home/httpsd/sbin/apxs \ --with-system-regex \ --with-ftp \ --with-gd \ --with-ttf \ --with-db2 \ --with-xml \ --with-zlib \ --with-dbase \ --with-config-file-path=/etc/php \ --with-exec-dir=/home/httpsd/php \ --disable-debug \ --enable-bcmath \ --enable-force-cgi-redirect \ --with-solid=/opt/solid \ --enable-debug \ --enable-sysvsem \ --enable-sysvshm Apache version: apache-ssl-1.3.9_1.37-1 Program terminates with a SIGSEGV but this DOES NOT make it into the Apache logs. gdb backtrace of a httpsd -X: (gdb) bt #0 0x4044ea00 in ?? () #1 0x805d348 in make_sock () #2 0x805d736 in setup_listeners () #3 0x805e56a in standalone_main () #4 0x805ed7b in main () (gdb) When the --with-solid.. line is removed from the configure line apache with php3 runs whithout problems. I hope I've given enough information. Please contact me if there is anything missing. I didn't include a php.ini because it doesn't seem to get that far. Eric Veldhuyzen (eric@terra.nu)

« previous php.dev (#15514) next »