Bug #67321 [Asn->Dup]: Segfault in dab with persistent handler
| From: | cmb@php.net | Date: | Thu, 18 Aug 2016 09:10:03 +0000 |
| Subject: | Bug #67321 [Asn->Dup]: Segfault in dab with persistent handler | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-203373@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=67321&edit=1
ID: 67321
Updated by: cmb@php.net
Reported by: laruence@php.net
Summary: Segfault in dab with persistent handler
-Status: Assigned
+Status: Duplicate
Type: Bug
Package: DBM/DBA related
PHP Version: 5.4.28
-Assigned To: laruence
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Duplicate of #61390.
Previous Comments:
------------------------------------------------------------------------
[2014-05-22 02:12:50] laruence@php.net
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 this bug report at https://bugs.php.net/bug.php?id=67321&edit=1