Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSegmentation fault after redis server Closing idle client #237
Comments
|
I can't reproduce this issue with the latest master. @songerzhou, is this still an issue for you? |
|
I seem to have a similar issue though I couldn't figure out if it is related to timeouts so far. Here's a backtrace from a coredump that occurs: Program terminated with signal 11, Segmentation fault. |
|
Note: This seems to happen with persistent connections only. |
|
This issue is unlikely relevant to the current codebase. Please reopen if the issue persists. |
redis server config timeout=60
here is the php code
pconnect('localhost', 6379); $conn->set("foo", "bar"); echo $conn->get("foo"); echo "\n"; sleep(120); echo $conn->get("foo"); echo "\n"; ?>#0 _php_stream_set_option (stream=0x253e8e0, option=12, value=0, ptrparam=0x0) at /data/src/php-5.2.17/main/streams/streams.c:1165
#1 0x0000000000674166 in _php_stream_xport_create (name=0x2513858 "localhost:6379", namelen=14, options=4, flags=2,
#2 0x00007fc7e1d87f6c in redis_sock_connect (redis_sock=0x2513e88) at /data/src/nicolasff-phpredis-22f4555/library.c:888
#3 0x00007fc7e1d87999 in redis_check_eof (redis_sock=0x2513e88) at /data/src/nicolasff-phpredis-22f4555/library.c:59
#4 0x00007fc7e1d87d5f in redis_sock_write (redis_sock=0x2513e88, cmd=0x2513900 "*2\r\n$7\r\nHGETALL\r\n$3\r\nxxx\r\n", sz=26)
#5 0x00007fc7e1d6e097 in generic_hash_command_1 (ht=, return_value=0x2513588, return_value_ptr=, this_ptr=,
#6 0x00007fc7e1d81224 in zim_Redis_hGetAll (ht=1, return_value=0x2513588, return_value_ptr=0x0, this_ptr=0x2511fe0, return_value_used=1)
#7 0x00007fc7e2834377 in xdebug_execute_internal (current_execute_data=0x7fffcbf9a770, return_value_used=1) at /tmp/pear/temp/xdebug/xdebug.c:1483
#8 0x00000000006cd7d3 in zend_do_fcall_common_helper_SPEC (execute_data=0x7fffcbf9a770) at /data/src/php-5.2.17/Zend/zend_vm_execute.h:202
#9 0x00000000006ba23c in execute (op_array=0x2512808) at /data/src/php-5.2.17/Zend/zend_vm_execute.h:92
#10 0x00007fc7e2834859 in xdebug_execute (op_array=0x2512808) at /tmp/pear/temp/xdebug/xdebug.c:1391
#11 0x0000000000697a7a in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /data/src/php-5.2.17/Zend/zend.c:1134
#12 0x0000000000656cfb in php_execute_script (primary_file=0x7fffcbf9ce30) at /data/src/php-5.2.17/main/main.c:2036
#13 0x0000000000709223 in main (argc=2, argv=0x7fffcbf9d028) at /data/src/php-5.2.17/sapi/cli/php_cli.c:1165