From: adconrad at 0c3 dot net Operating system: Debian 3.0/SPARC PHP version: 4.3.6RC1 PHP Bug Type: Reproducible crash Bug description: PHP segfaults immediately on startup
Description: ------------ PHP segfaults immediately on execution, with or without input on SPARC. If the patch[1] applied in CVS (ostensibly to "improve portability") is removed, the segfault goes away. 1. A short script that reproduces the problem. [EMAIL PROTECTED]:~/build/php4/php-4.3.6RC1$ sapi/cli/php Segmentation fault 2. The list of modules you compiled PHP with (your configure line). './configure' '--disable-all' '--prefix=/usr/local/php-4.3.6RC1' '--with-apxs2=/usr/bin/apxs2' '--enable-sockets' '--with-pcre-regex' '--enable-ctype' '--enable-overload' '--enable-posix' '--enable-session' '--enable-tokenizer' '--enable-xml' '--with-expat-dir=/usr' '--with-xmlrpc' '--with-pear' '--with-openssl' '--with-mysql=shared,/usr' '--with-pgsql=shared,/usr' '--with-sybase-ct=shared,/usr/local/freetds' 3. Any other information unique or specific to your setup. Debian GNU/Linux 3.0 (woody), SPARC port on an UltraSPARC (sparc64) CPU. glibc version 2.2.5-11.5. 4. Any changes made in your php.ini compared to php.ini-dist (not your whole php.ini!) This occurs with or without a php.ini. 5. A gdb backtrace. Program received signal SIGSEGV, Segmentation fault. 0x0005e170 in php_get_inf () at /home/adconrad/build/php4/php-4.3.6RC1/ext/standard/basic_functions.c:1021 1021 return HUGE_VAL; (gdb) bt #0 0x0005e170 in php_get_inf () at /home/adconrad/build/php4/php-4.3.6RC1/ext/standard/basic_functions.c:1021 #1 0x0005e4d4 in zm_startup_basic (type=1, module_number=4) at /home/adconrad/build/php4/php-4.3.6RC1/ext/standard/basic_functions.c:1065 #2 0x000ef068 in zend_startup_module (module=0x14647c) at /home/adconrad/build/php4/php-4.3.6RC1/Zend/zend_API.c:1005 #3 0x000bead0 in php_startup_extensions (ptr=0x14eabc, count=1370840) at /home/adconrad/build/php4/php-4.3.6RC1/main/main.c:1044 #4 0x00108334 in php_startup_internal_extensions () at main/internal_functions_cli.c:65 #5 0x000bf0b8 in php_module_startup (sf=0x149570, additional_modules=0x0, num_additional_modules=0) at /home/adconrad/build/php4/php-4.3.6RC1/main/main.c:1216 #6 0x001074c8 in main (argc=1, argv=0xeffffb34) at /home/adconrad/build/php4/php-4.3.6RC1/sapi/cli/php_cli.c:576 [1] http://cvs.php.net/diff.php/php-src/ext/standard/basic_functions.c?login=2&r1=1.543.2.34&r2=1.543.2.35&ty=u -- Edit bug report at http://bugs.php.net/?id=27830&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27830&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27830&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27830&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27830&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27830&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27830&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27830&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27830&r=support Expected behavior: http://bugs.php.net/fix.php?id=27830&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27830&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27830&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27830&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27830&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27830&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27830&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27830&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27830&r=float