Bug #67321 [NEW]: Segfault in dab with persistent handler

From: Date: Thu, 22 May 2014 02:12:51 +0000
Subject: Bug #67321 [NEW]: Segfault in dab with persistent handler
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-185889@lists.php.net to get a copy of this message
From: laruence Operating system: PHP version: 5.4.28 Package: DBM/DBA related Bug Type: Bug Bug description:Segfault in dab with persistent handler Description: ------------ ext/dba/tests/dba015.phpt passes, but result a segfault with backtrace is: (gdb) bt #0 0x00000000008fdfb1 in _php_stream_seek (stream=0x724a850, offset=0, whence=0) at /home/huixinchen/opensource/trunk/main/streams/streams.c:1304 #1 0x00000000005b7391 in flatfile_findkey (dba=0x724a5e0, key_datum=...) at /home/huixinchen/opensource/trunk/ext/dba/libflatfile/flatfile.c:172 #2 0x00000000005b6fbd in flatfile_fetch (dba=0x724a5e0, key_datum=...) at /home/huixinchen/opensource/trunk/ext/dba/libflatfile/flatfile.c:90 #3 0x00000000005b54d0 in dba_fetch_flatfile (info=0x7249fd0, key=0x2ac3de2a5910 "key1", keylen=4, skip=0, newlen=0x7fff48c7df3c) at /home/huixinchen/opensource/trunk/ext/dba/dba_flatfile.c:70 #4 0x00000000005b31b9 in zif_dba_fetch (ht=2, return_value=0x2ac3de2a8940, return_value_ptr=0x2ac3de26b218, this_ptr=0x0, return_value_used=1) at /home/huixinchen/opensource/trunk/ext/dba/dba.c:1035 #5 0x00000000009ba23c in zend_do_fcall_common_helper_SPEC (execute_data=0x2ac3de26b4b0) at /home/huixinchen/opensource/trunk/Zend/zend_vm_execute.h:558 #6 0x00000000009c04c1 in ZEND_DO_FCALL_SPEC_CONST_HANDLER (execute_data=0x2ac3de26b4b0) at /home/huixinchen/opensource/trunk/Zend/zend_vm_execute.h:2585 #7 0x00000000009b96d4 in execute_ex (execute_data=0x2ac3de26b4b0) at /home/huixinchen/opensource/trunk/Zend/zend_vm_execute.h:363 #8 0x00000000009b975d in zend_execute (op_array=0x2ac3de2a3e38) at /home/huixinchen/opensource/trunk/Zend/zend_vm_execute.h:388 #9 0x0000000000978352 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/huixinchen/opensource/trunk/Zend/zend.c:1330 #10 0x00000000008e0685 in php_execute_script (primary_file=0x7fff48c81670) at /home/huixinchen/opensource/trunk/main/main.c:2549 #11 0x0000000000a2717e in do_cli (argc=66, argv=0x6ece940) at /home/huixinchen/opensource/trunk/sapi/cli/php_cli.c:994 #12 0x0000000000a2835b in main (argc=66, argv=0x6ece940) at /home/huixinchen/opensource/trunk/sapi/cli/php_cli.c:1378 (gdb) f 9 #9 0x0000000000978352 in zend_execute_scripts (type=8, retval=0x0, file_count=3) it's due to persistent handler implemented and our persistent refcount handling... I will try to fix it later Test script: --------------- none Expected result: ---------------- none Actual result: -------------- none -- Edit bug report at https://bugs.php.net/bug.php?id=67321&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=67321&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=67321&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=67321&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=67321&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=67321&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=67321&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=67321&r=needscript Try newer version: https://bugs.php.net/fix.php?id=67321&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=67321&r=support Expected behavior: https://bugs.php.net/fix.php?id=67321&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=67321&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=67321&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=67321&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=67321&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=67321&r=dst IIS Stability: https://bugs.php.net/fix.php?id=67321&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=67321&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=67321&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=67321&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=67321&r=mysqlcfg

« previous php.bugs (#185889) next »