php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75876 php 7.0.9 redis 3.1.5 hegetall doesn't work
Submitted: 2018-01-26 09:30 UTC Modified: 2021-08-24 13:52 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: gaoyan at gmail dot com Assigned: cmb (profile)
Status: Closed Package: PECL (PECL)
PHP Version: 7.0Git-2018-01-26 (Git) OS: ubuntu
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: gaoyan at gmail dot com
New email:
PHP Version: OS:

 

 [2018-01-26 09:30 UTC] gaoyan at gmail dot com
Description:
------------
我使用PHP7.0.9 版本 Redis 使用的 3.1.5 
当我调用reids->hgetAll的时候,这个问题必选



i use php + redis with version at 7.0.9 and 3.1.5
when i use reidis function hgetAll i get a segment failt error 
i cath the core and gdb id ,get the message i sent it 
please help me ,think you 

Test script:
---------------
php 7.0.9 redis 3.1.5 hegetall doesn't work

Expected result:
----------------
0  0x00007ff9922eb428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#1  0x00007ff9922ed02a in __GI_abort () at abort.c:89
#2  0x00007ff9922e3bd7 in __assert_fail_base (fmt=<optimized out>, assertion=assertion@entry=0x1272060 "(arr)->gc.refcount <= 1",
    file=file@entry=0x1272030 "/var/www/docker/php-7.0.9/Zend/zend_variables.c", line=line@entry=43,
    function=function@entry=0x1272140 <__PRETTY_FUNCTION__.8867> "_zval_dtor_func") at assert.c:92
#3  0x00007ff9922e3c82 in __GI___assert_fail (assertion=0x1272060 "(arr)->gc.refcount <= 1",
    file=0x1272030 "/var/www/docker/php-7.0.9/Zend/zend_variables.c", line=43,
    function=0x1272140 <__PRETTY_FUNCTION__.8867> "_zval_dtor_func") at assert.c:101
#4  0x0000000000a71e86 in _zval_dtor_func (p=0x7ff98e6f47e0, __zend_filename=0x7ff98ebe1178 "/var/www/docker/redis/redis-3.1.5/library.c",
    __zend_lineno=1139) at /var/www/docker/php-7.0.9/Zend/zend_variables.c:43
#5  0x00007ff98eba585b in _zval_dtor (zvalue=0x7ffd6497a9a0, __zend_filename=0x7ff98ebe1178 "/var/www/docker/redis/redis-3.1.5/library.c",
    __zend_lineno=1139) at /usr/local/php7.0.9/include/php/Zend/zend_variables.h:44
#6  0x00007ff98eba9980 in array_zip_values_and_scores (redis_sock=0x7ff98e6361c0, z_tab=0x7ffd6497aa70, decode=0)
    at /var/www/docker/redis/redis-3.1.5/library.c:1139
#7  0x00007ff98eba9af4 in redis_mbulk_reply_zipped (execute_data=0x7ff98ee19870, return_value=0x7ffd6497bd30, redis_sock=0x7ff98e6361c0,
    z_tab=0x0, unserialize=2, decode=0) at /var/www/docker/redis/redis-3.1.5/library.c:1174
#8  0x00007ff98eba9d82 in redis_mbulk_reply_zipped_vals (execute_data=0x7ff98ee19870, return_value=0x7ffd6497bd30, redis_sock=0x7ff98e6361c0,
    z_tab=0x0, ctx=0x0) at /var/www/docker/redis/redis-3.1.5/library.c:1212
#9  0x00007ff98eb8d72f in zim_Redis_hGetAll (execute_data=0x7ff98ee19870, return_value=0x7ffd6497bd30)
    at /var/www/docker/redis/redis-3.1.5/redis.c:2121
#10 0x0000000000a5dc8c in zend_call_function (fci=0x7ffd6497bd70, fci_cache=0x7ffd6497bd40)
    at /var/www/docker/php-7.0.9/Zend/zend_execute_API.c:885
#11 0x00000000008abdc3 in zif_call_user_func_array (execute_data=0x7ff98ee197f0, return_value=0x7ff98ee197d0)
    at /var/www/docker/php-7.0.9/ext/standard/basic_functions.c:4815
#12 0x0000000000ad56b2 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER () at /var/www/docker/php-7.0.9/Zend/zend_vm_execute.h:714
#13 0x0000000000ad4b31 in execute_ex (ex=0x7ff98ee14220) at /var/www/docker/php-7.0.9/Zend/zend_vm_execute.h:414
#14 0x0000000000a5db66 in zend_call_function (fci=0x7ffd6497c0a0, fci_cache=0x7ffd6497c070)
    at /var/www/docker/php-7.0.9/Zend/zend_execute_API.c:866
#15 0x0000000000a9dae3 in zend_call_method (object=0x7ffd6497c240, obj_ce=0x7ff98ef08d50, fn_proxy=0x0,
    function_name=0x7ff98eef0418 "watchaction", function_name_len=11, retval_ptr=0x7ffd6497c220, param_count=0, arg1=0x0, arg2=0x0)
    at /var/www/docker/php-7.0.9/Zend/zend_interfaces.c:104
#16 0x00007ff98e91348e in yaf_dispatcher_handle (dispatcher=0x7ff98ee141d0, request=0x7ff98ee7e248, response=0x7ffd6497c440,
    view=0x7ff98ee7e238) at /tmp/pear/temp/yaf/yaf_dispatcher.c:603
#17 0x00007ff98e914c86 in yaf_dispatcher_dispatch (dispatcher=0x7ff98ee141d0, response_ptr=0x7ffd6497c440)
    at /tmp/pear/temp/yaf/yaf_dispatcher.c:882
#18 0x00007ff98e916646 in zim_yaf_dispatcher_dispatch (execute_data=0x7ff98ee141b0, return_value=0x7ff98ee141a0)
    at /tmp/pear/temp/yaf/yaf_dispatcher.c:1132

#19 0x0000000000ad5cb1 in ZEND_DO_FCALL_SPEC_HANDLER () at /var/www/docker/php-7.0.9/Zend/zend_vm_execute.h:842

Actual result:
--------------
0  0x00007ff9922eb428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#1  0x00007ff9922ed02a in __GI_abort () at abort.c:89
#2  0x00007ff9922e3bd7 in __assert_fail_base (fmt=<optimized out>, assertion=assertion@entry=0x1272060 "(arr)->gc.refcount <= 1",
    file=file@entry=0x1272030 "/var/www/docker/php-7.0.9/Zend/zend_variables.c", line=line@entry=43,
    function=function@entry=0x1272140 <__PRETTY_FUNCTION__.8867> "_zval_dtor_func") at assert.c:92
#3  0x00007ff9922e3c82 in __GI___assert_fail (assertion=0x1272060 "(arr)->gc.refcount <= 1",
    file=0x1272030 "/var/www/docker/php-7.0.9/Zend/zend_variables.c", line=43,
    function=0x1272140 <__PRETTY_FUNCTION__.8867> "_zval_dtor_func") at assert.c:101
#4  0x0000000000a71e86 in _zval_dtor_func (p=0x7ff98e6f47e0, __zend_filename=0x7ff98ebe1178 "/var/www/docker/redis/redis-3.1.5/library.c",
    __zend_lineno=1139) at /var/www/docker/php-7.0.9/Zend/zend_variables.c:43
#5  0x00007ff98eba585b in _zval_dtor (zvalue=0x7ffd6497a9a0, __zend_filename=0x7ff98ebe1178 "/var/www/docker/redis/redis-3.1.5/library.c",
    __zend_lineno=1139) at /usr/local/php7.0.9/include/php/Zend/zend_variables.h:44
#6  0x00007ff98eba9980 in array_zip_values_and_scores (redis_sock=0x7ff98e6361c0, z_tab=0x7ffd6497aa70, decode=0)
    at /var/www/docker/redis/redis-3.1.5/library.c:1139
#7  0x00007ff98eba9af4 in redis_mbulk_reply_zipped (execute_data=0x7ff98ee19870, return_value=0x7ffd6497bd30, redis_sock=0x7ff98e6361c0,
    z_tab=0x0, unserialize=2, decode=0) at /var/www/docker/redis/redis-3.1.5/library.c:1174
#8  0x00007ff98eba9d82 in redis_mbulk_reply_zipped_vals (execute_data=0x7ff98ee19870, return_value=0x7ffd6497bd30, redis_sock=0x7ff98e6361c0,
    z_tab=0x0, ctx=0x0) at /var/www/docker/redis/redis-3.1.5/library.c:1212
#9  0x00007ff98eb8d72f in zim_Redis_hGetAll (execute_data=0x7ff98ee19870, return_value=0x7ffd6497bd30)
    at /var/www/docker/redis/redis-3.1.5/redis.c:2121
#10 0x0000000000a5dc8c in zend_call_function (fci=0x7ffd6497bd70, fci_cache=0x7ffd6497bd40)
    at /var/www/docker/php-7.0.9/Zend/zend_execute_API.c:885
#11 0x00000000008abdc3 in zif_call_user_func_array (execute_data=0x7ff98ee197f0, return_value=0x7ff98ee197d0)
    at /var/www/docker/php-7.0.9/ext/standard/basic_functions.c:4815
#12 0x0000000000ad56b2 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER () at /var/www/docker/php-7.0.9/Zend/zend_vm_execute.h:714
#13 0x0000000000ad4b31 in execute_ex (ex=0x7ff98ee14220) at /var/www/docker/php-7.0.9/Zend/zend_vm_execute.h:414
#14 0x0000000000a5db66 in zend_call_function (fci=0x7ffd6497c0a0, fci_cache=0x7ffd6497c070)
    at /var/www/docker/php-7.0.9/Zend/zend_execute_API.c:866
#15 0x0000000000a9dae3 in zend_call_method (object=0x7ffd6497c240, obj_ce=0x7ff98ef08d50, fn_proxy=0x0,
    function_name=0x7ff98eef0418 "watchaction", function_name_len=11, retval_ptr=0x7ffd6497c220, param_count=0, arg1=0x0, arg2=0x0)
    at /var/www/docker/php-7.0.9/Zend/zend_interfaces.c:104
#16 0x00007ff98e91348e in yaf_dispatcher_handle (dispatcher=0x7ff98ee141d0, request=0x7ff98ee7e248, response=0x7ffd6497c440,
    view=0x7ff98ee7e238) at /tmp/pear/temp/yaf/yaf_dispatcher.c:603
#17 0x00007ff98e914c86 in yaf_dispatcher_dispatch (dispatcher=0x7ff98ee141d0, response_ptr=0x7ffd6497c440)
    at /tmp/pear/temp/yaf/yaf_dispatcher.c:882
#18 0x00007ff98e916646 in zim_yaf_dispatcher_dispatch (execute_data=0x7ff98ee141b0, return_value=0x7ff98ee141a0)
    at /tmp/pear/temp/yaf/yaf_dispatcher.c:1132

#19 0x0000000000ad5cb1 in ZEND_DO_FCALL_SPEC_HANDLER () at /var/www/docker/php-7.0.9/Zend/zend_vm_execute.h:842

Patches

tmp (last revision 2018-01-26 09:33 UTC by gaoyan at gmail dot com)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-01-26 10:50 UTC] gaoyansing at gmail dot com
when i use gdb attach php-fpm 
i get this may be it can support a little help

(gdb) continue
Continuing.

Program received signal SIGABRT, Aborted.
0x00007f6311374428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
54	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
 [2021-08-24 13:52 UTC] cmb@php.net
-Status: Open +Status: Closed -Package: radius +Package: PECL -Assigned To: +Assigned To: cmb
 [2021-08-24 13:52 UTC] cmb@php.net
If this is still an issue with latest redis (5.3.4), please report
this to the reddis bugtracker on Github[1].

[1] <https://github.com/phpredis/phpredis/issues>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 11:01:27 2024 UTC