#46086 [NEW]: Finfo - segfault when trying to access property

From: Date: Mon, 15 Sep 2008 19:15:56 +0000
Subject: #46086 [NEW]: Finfo - segfault when trying to access property
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-128997@lists.php.net to get a copy of this message
From: felipe@php.net Operating system: PHP version: 5.3CVS-2008-09-15 (CVS) PHP Bug Type: Filesystem function related Bug description: Finfo - segfault when trying to access property Description: ------------ See below. Reproduce code: --------------- <?php $x = new finfo; $x->test; Actual result: -------------- Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1227983152 (LWP 12168)] 0x083c03a8 in zend_hash_quick_find (ht=0x0, arKey=0x8a22244 "test", nKeyLength=5, h=275477765, pData=0xbfc0c8e4) at /home/felipe/dev/php5/Zend/zend_hash.c:907 907 p = ht->arBuckets[nIndex]; (gdb) bt #0 0x083c03a8 in zend_hash_quick_find (ht=0x0, arKey=0x8a22244 "test", nKeyLength=5, h=275477765, pData=0xbfc0c8e4) at /home/felipe/dev/php5/Zend/zend_hash.c:907 #1 0x083d3c42 in zend_std_read_property (object=0x8a20808, member=0x8a20fb4, type=0, tsrm_ls=0x8871070) at /home/felipe/dev/php5/Zend/zend_object_handlers.c:341 #2 0x083e0d34 in zend_fetch_property_address_read_helper_SPEC_CV_CONST (type=0, execute_data=0x8a52c40, tsrm_ls=0x8871070) at /home/felipe/dev/php5/Zend/zend_vm_execute.h:23880 #3 0x083e0e32 in ZEND_FETCH_OBJ_R_SPEC_CV_CONST_HANDLER (execute_data=0x106b7505, tsrm_ls=<value optimized out>) at /home/felipe/dev/php5/Zend/zend_vm_execute.h:23905 #4 0x083d9763 in execute (op_array=0x8a20bfc, tsrm_ls=0x8871070) at /home/felipe/dev/php5/Zend/zend_vm_execute.h:104 #5 0x083a773d in zend_eval_string (str=0xbfc0da65 "$x = new finfo; $x->test;", retval_ptr=0x0, string_name=0x88510af "Command line code", tsrm_ls=0x8871070) at /home/felipe/dev/php5/Zend/zend_execute_API.c:1110 #6 0x083a78e7 in zend_eval_string_ex (str=0xbfc0da65 "$x = new finfo; $x->test;", retval_ptr=0x0, string_name=0x88510af "Command line code", handle_exceptions=1, tsrm_ls=0x8871070) at /home/felipe/dev/php5/Zend/zend_execute_API.c:1145 #7 0x0844b2f0 in main (argc=3, argv=0xbfc0cd14) at /home/felipe/dev/php5/sapi/cli/php_cli.c:1169 -- Edit bug report at http://bugs.php.net/?id=46086&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46086&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46086&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46086&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=46086&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=46086&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=46086&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=46086&r=needscript Try newer version: http://bugs.php.net/fix.php?id=46086&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=46086&r=support Expected behavior: http://bugs.php.net/fix.php?id=46086&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=46086&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=46086&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=46086&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46086&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=46086&r=dst IIS Stability: http://bugs.php.net/fix.php?id=46086&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=46086&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=46086&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=46086&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=46086&r=mysqlcfg

« previous php.bugs (#128997) next »