8000 Segmentation fault on php_stream_eof · Issue #185 · phpredis/phpredis · GitHub
[go: up one dir, main page]

Skip to content
Segmentation fault on php_stream_eof #185
Closed
@omerhasan

Description

@omerhasan

Hi,

I seem to be getting the following segmentation fault on version 2.1.3 that I packaged on 2012-02-28 20:32. I've tried using 2.2.1 but received many connection related problems that resulted in dropped connections. I'm not sure if this has been fixed already in issue #183 so would like to know if the following has been already fixed/related to issue #183.

Thank you.

$ sudo gdb /usr/sbin/php-fpm core-php5-fpm.29725
GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
http://bugs.launchpad.net/gdb-linaro/...
Reading symbols from /usr/sbin/php-fpm...Reading symbols from /usr/lib/debug/usr/sbin/php5-fpm...done.
done.

warning: core file may not match specified executable file.
[New LWP 29725]

warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Core was generated by `php-fpm: pool www '.
Program terminated with signal 11, Segmentation fault.
#0 _php_stream_eof (stream=0x2507d98) at /build/buildd/php5-5.3.6/main/streams/streams.c:642

642 /build/buildd/php5-5.3.6/main/streams/streams.c: No such file or directory.
in /build/buildd/php5-5.3.6/main/streams/streams.c
(gdb) bt
#0 _php_stream_eof (stream=0x2507d98) at /build/buildd/php5-5.3.6/main/streams/streams.c:642
#1 0x00007fd7dd50d77f in redis_check_eof (redis_sock=0x2507d98) at /home/omer/src/phpredis/library.c:34
#2 0x00007fd7dd50edb0 in redis_sock_read_multibulk_reply (ht=0, return_value=0x287c470, return_value_ptr=0x0, this_ptr=0x29f9f88, return_value_used=1,

redis_sock=0x2507d98, z_tab=0x2508d88, ctx=0x0) at /home/omer/src/phpredis/library.c:904

#3 0x00007fd7dd50b56b in redis_sock_read_multibulk_multi_reply_loop (ht=0, return_value=0x287c470, return_value_ptr=0x0, this_ptr=0x29f9f88,

return_value_used=1, redis_sock=0x2507d98, z_tab=0x2508d88, numElems=0) at /home/omer/src/phpredis/redis.c:4862

#4 0x00007fd7dd50b795 in redis_sock_read_multibulk_pipeline_reply (ht=0, return_value=0x287c470, return_value_ptr=0x0, this_ptr=0x29f9f88,

return_value_used=<optimized out>, redis_sock=0x2507d98) at /home/omer/src/phpredis/redis.c:4692

#5 0x00007fd7dd50b934 in zim_Redis_exec (ht=0, return_value=0x287c470, return_value_ptr=0x0, this_ptr=0x29f9f88, return_value_used=1)

at /home/omer/src/phpredis/redis.c:4841

#6 0x000000000070befd in zend_do_fcall_common_helper_SPEC (execute_data=0x2089700) at /build/buildd/php5-5.3.6/Zend/zend_vm_execute.h:316
#7 0x00000000006bcceb in execute (op_array=0x207d0e0) at /build/buildd/php5-5.3.6/Zend/zend_vm_execute.h:107
#8 0x0000000000698340 in zend_execute_scripts (type=0, retval=0x800679a00, file_count=3) at /build/buildd/php5-5.3.6/Zend/zend.c:1266
#9 0x00000000006450e3 in php_execute_script (primary_file=0x0) at /build/buildd/php5-5.3.6/main/main.c:2297
#10 0x000000000042b19a in main (argc=33849712, argv=0xde0160) at /build/buildd/php5-5.3.6/sapi/fpm/fpm/fpm_main.c:1921

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0