From: xenon54 at generationphp dot net Operating system: Centos 4.2 PHP version: 5.1.2 PHP Bug Type: Session related Bug description: Segmentation fault
Description: ------------ I'm receiving a Segmentation Fault when accessing index.php from cacti. I recompiled PHP without sessions support and the segmentation fault was not happening anymore. httpd-2.0.52-22.ent.centos4 glibc-2.3.4-2.13 cacti-0.8.6h Thanks for any help Reproduce code: --------------- I tried to locate the source of the segmentation fault. I located the line by using exit; to see where the fault is caused. To me, it makes no sense but giving it to you anyway. /cacti/lib/functions.php:137 if (isset($_SESSION["sess_config_array"])) { $config_array = $_SESSION["sess_config_array"]; } Expected result: ---------------- Segmentation fault Actual result: -------------- Backtrace #0 0x00345d30 in vfprintf () from /lib/tls/libc.so.6 #1 0x0036114b in vsprintf () from /lib/tls/libc.so.6 #2 0x0034e4cb in sprintf () from /lib/tls/libc.so.6 #3 0x0137cdfa in _convert_to_string (op=0xbf4006a0, __zend_filename=0x15cfcf0 "/usr/src/php-5.1.1/Zend/zend_vm_execute.h", __zend_lineno=4607) at /usr/src/php-5.1.1/Zend/zend_operators.c:544 #4 0x013b7ffd in ZEND_END_SILENCE_SPEC_TMP_HANDLER (execute_data=0xbf400cc0) at /usr/src/php-5.1.1/Zend/zend_vm_execute.h:4607 Frames #3 0x0137cdfa in _convert_to_string (op=0xbf4006a0, __zend_filename=0x15cfcf0 "/usr/src/php-5.1.1/Zend/zend_vm_execute.h", __zend_lineno=4607) at /usr/src/php-5.1.1/Zend/zend_operators.c:544 544 op->value.str.len = zend_sprintf(op->value.str.val, "%ld", lval); /* SAFE */ #4 0x013b7ffd in ZEND_END_SILENCE_SPEC_TMP_HANDLER (execute_data=0xbf400cc0) at /usr/src/php-5.1.1/Zend/zend_vm_execute.h:4607 4607 convert_to_string(&restored_error_reporting); error_log from Apache [Sat Jan 14 09:28:35 2006] [notice] child pid 2125 exit signal Segmentation fault (11) -- Edit bug report at http://bugs.php.net/?id=36013&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36013&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36013&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36013&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36013&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36013&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36013&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=36013&r=needscript Try newer version: http://bugs.php.net/fix.php?id=36013&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36013&r=support Expected behavior: http://bugs.php.net/fix.php?id=36013&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36013&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36013&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36013&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36013&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36013&r=dst IIS Stability: http://bugs.php.net/fix.php?id=36013&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36013&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36013&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36013&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=36013&r=mysqlcfg