php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3477 Apache crashes right after startup when solid is compiled in php3
Submitted: 2000-02-14 10:29 UTC Modified: 2002-10-01 15:29 UTC
From: eric at terra dot nu Assigned:
Status: Wont fix Package: Solid related
PHP Version: 3.0.14 OS: Linux 2.2.13 i686
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: eric at terra dot nu
New email:
PHP Version: OS:

 

 [2000-02-14 10:29 UTC] eric at terra dot nu
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)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-01 15:29 UTC] hholzgra@php.net
We are sorry, but can not support PHP 3 related problems anymore.
Momentum is gathering for PHP 5, and we think supporting PHP 3 will
lead to a waste of resources which we want to put into getting PHP 5
ready. Ofcourse PHP 4 will will continue to be supported for the
forseeable future.

solid extension was dropped in favour of unified odbc extension
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC