#38107 [NEW]: Apache segfaults on startup

From: Date: Fri, 14 Jul 2006 21:35:02 +0000
Subject: #38107 [NEW]: Apache segfaults on startup
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-99455@lists.php.net to get a copy of this message
From: lynette at umn dot edu Operating system: Solaris 9 PHP version: 5.1.4 PHP Bug Type: Apache related Bug description: Apache segfaults on startup Description: ------------ Apache segfaults on startup. All libraries except ssl were compiled with gcc 3.4.2. ssl was compiled with forte 6 (solaris + gcc != shared lib) php compiled as follows: #! /bin/sh # # Created by configure CC='gcc' \ './configure' \ '--with-apache=/home/src/apache/apache_1.3.36/sparc-2.9-php' \ '--prefix=/usr/local/apache' \ '--with-mysql=/usr/local/mysql' \ '--with-gd=/usr/local' \ '--with-jpeg-dir=/usr/local' \ '--with-png-dir=/usr/local' \ '--with-xpm-dir=/usr/local' \ '--with-freetype-dir=/usr/local' \ '--with-libxml-dir=/usr/local' \ '--with-zlib-dir=/usr/local' \ '--enable-calendar' \ '--enable-trans-sid' \ '--enable-session' \ '--enable-sockets' \ '--enable-wddx' \ '--enable-inline-optimization' \ '--enable-bcmath' \ '--enable-ftp' \ '--with-curl' \ "$@" apache 1.3.36 was compiled as follows: CC="gcc" \ SSL_BASE="/usr" \ ./configure \ "--with-layout=Apache" \ "--prefix=/usr/local/apache" \ "--disable-rule=EXPAT" \ "--enable-module=ssl" \ "--activate-module=src/modules/php5/libphp5.a" \ "--enable-module=php5" \ "--enable-module=proxy" \ "--enable-module=headers" \ "--enable-module=rewrite" \ "$@" Reproduce code: --------------- No php code involved. Expected result: ---------------- apache should run Actual result: -------------- Apache segfaults: /usr/local/apache/bin/apachectl startssl Segmentation Fault - core dumped /usr/local/apache/bin/apachectl startssl: httpd could not be started Core was generated by `/usr/local/apache/bin/httpd -DSSL'. Program terminated with signal 11, Segmentation fault. #0 0xfeafe9c4 in BN_num_bits () from /usr/lib/libcrypto.so.0.9.8 (gdb) bt #0 0xfeafe9c4 in BN_num_bits () from /usr/lib/libcrypto.so.0.9.8 #1 0xfeb58518 in bn_i2c () from /usr/lib/libcrypto.so.0.9.8 #2 0xfeb626f0 in asn1_ex_i2c () from /usr/lib/libcrypto.so.0.9.8 #3 0xfeb61b44 in ASN1_item_ex_i2d () from /usr/lib/libcrypto.so.0.9.8 #4 0xfeb62404 in asn1_template_ex_i2d () from /usr/lib/libcrypto.so.0.9.8 #5 0xfeb61fb8 in ASN1_item_ex_i2d () from /usr/lib/libcrypto.so.0.9.8 #6 0xfeb61a6c in ASN1_item_i2d () from /usr/lib/libcrypto.so.0.9.8 #7 0x002e1850 in ssl_init_TmpKeysHandle () #8 0x002e1348 in ssl_init_Module () #9 0x0030a8f0 in ap_init_modules () #10 0x0031cb24 in main () (gdb) While these appear to point at ssl, compilation without php yields a normally running apache. -- Edit bug report at http://bugs.php.net/?id=38107&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38107&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38107&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38107&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38107&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38107&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38107&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38107&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38107&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38107&r=support Expected behavior: http://bugs.php.net/fix.php?id=38107&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38107&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38107&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38107&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38107&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38107&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38107&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38107&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38107&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38107&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38107&r=mysqlcfg

« previous php.bugs (#99455) next »