Couchbase

  • Log In Access more options
    • Online Help
    • GreenHopper Help
    • Agile Answers
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Agile Access more options (Alt+g)
  • Couchbase.com Access more options
    • Why NoSQL?
    • Couchbase Server
    • Download
    • Learn
    • Careers
Couchbase PHP client library
  • Couchbase PHP client library
  • PCBC-41

_get_impl segfaults

  • Agile Board
  • More Actions
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0
  • Fix Version/s: 1.0
  • Component/s: None
  • Security Level: Public
  • Labels:
    None

Description

Sometimes, functions/methods calling get or getMulti segfault. if I run make test a few times I can get it to fail at least once.

Here's the backtrace:

(gdb) bt
#0 0x0000000107b6c1cb in _zval_dtor_func ()
#1 0x0000000107ba3adf in ZEND_ASSIGN_SPEC_CV_CONST_HANDLER ()
#2 0x0000000107bd0b5d in execute ()
#3 0x0000000107b631da in zend_call_function ()
#4 0x000000010854ca68 in php_couchbase_get_impl () at couchbase.c:829
#5 0x0000000107bd0480 in zend_do_fcall_common_helper_SPEC ()
#6 0x0000000107bd0b5d in execute ()
#7 0x0000000107b6c6d9 in zend_execute_scripts ()
#8 0x0000000107b1d03e in php_execute_script ()
#9 0x0000000107be6cd8 in main ()

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
  • Gerrit Reviews
Hide
Permalink
Xinchen Hui added a comment - 19/Feb/12 7:16 AM
I really can't reproduce this.....
Show
Xinchen Hui added a comment - 19/Feb/12 7:16 AM I really can't reproduce this.....
Hide
Permalink
Jan Lehnardt added a comment - 22/Feb/12 2:11 PM
Got an updated bt here:
(gdb) bt
#0 0x000000010ecb8680 in _zend_mm_free_canary_int ()
#1 0x000000010ec83321 in _efree ()
#2 0x000000010ec9c244 in _zval_dtor_func ()
#3 0x000000010ed015dd in zend_assign_to_variable ()
#4 0x000000010ecd41bb in ZEND_ASSIGN_SPEC_CV_CONST_HANDLER ()
#5 0x000000010ed013cd in execute ()
#6 0x000000010ec93273 in zend_call_function ()
#7 0x000000010f67e908 in php_couchbase_get_impl () at couchbase.c:831
#8 0x000000010ed00cf0 in zend_do_fcall_common_helper_SPEC ()
#9 0x000000010ed013cd in execute ()
#10 0x000000010ec9c799 in zend_execute_scripts ()
#11 0x000000010ec4d222 in php_execute_script ()
#12 0x000000010ed17602 in main ()
Show
Jan Lehnardt added a comment - 22/Feb/12 2:11 PM Got an updated bt here: (gdb) bt #0 0x000000010ecb8680 in _zend_mm_free_canary_int () #1 0x000000010ec83321 in _efree () #2 0x000000010ec9c244 in _zval_dtor_func () #3 0x000000010ed015dd in zend_assign_to_variable () #4 0x000000010ecd41bb in ZEND_ASSIGN_SPEC_CV_CONST_HANDLER () #5 0x000000010ed013cd in execute () #6 0x000000010ec93273 in zend_call_function () #7 0x000000010f67e908 in php_couchbase_get_impl () at couchbase.c:831 #8 0x000000010ed00cf0 in zend_do_fcall_common_helper_SPEC () #9 0x000000010ed013cd in execute () #10 0x000000010ec9c799 in zend_execute_scripts () #11 0x000000010ec4d222 in php_execute_script () #12 0x000000010ed17602 in main ()
Hide
Permalink
Jan Lehnardt added a comment - 24/Feb/12 9:15 AM
The above bt's are on Mac OS X. I'm getting this one here on linux using PHP 5.3.6, although not on the ec2 machine provided, but I think it's the same cause.

The test that makes this fail is get() ing a nonexistent key with a callback.

(gdb) bt
#0 0x00000000006b6f23 in ?? ()
#1 0x00000000006968b5 in _zval_dtor_func ()
#2 0x000000000070701a in ?? ()
#3 0x00000000006bd1eb in execute ()
#4 0x000000000068acc1 in zend_call_function ()
#5 0x00002ae81539e28d in php_couchbase_get_impl (ht=<optimized out>, return_value=0x1a14ae8, this_ptr=0x0,
    multi=0, oo=0, return_value_ptr=<optimized out>, return_value_used=<optimized out>)
    at /home/jan/src/php-ext-couchbase/couchbase.c:1456
#6 0x000000000070c3fd in ?? ()
#7 0x00000000006bd1eb in execute ()
#8 0x0000000000698850 in zend_execute_scripts ()
#9 0x00000000006458f3 in php_execute_script ()
#10 0x000000000042c53e in ?? ()
#11 0x00002ae8147a030d in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#12 0x000000000042c58d in _start ()
Show
Jan Lehnardt added a comment - 24/Feb/12 9:15 AM The above bt's are on Mac OS X. I'm getting this one here on linux using PHP 5.3.6, although not on the ec2 machine provided, but I think it's the same cause. The test that makes this fail is get() ing a nonexistent key with a callback. (gdb) bt #0 0x00000000006b6f23 in ?? () #1 0x00000000006968b5 in _zval_dtor_func () #2 0x000000000070701a in ?? () #3 0x00000000006bd1eb in execute () #4 0x000000000068acc1 in zend_call_function () #5 0x00002ae81539e28d in php_couchbase_get_impl (ht=<optimized out>, return_value=0x1a14ae8, this_ptr=0x0,     multi=0, oo=0, return_value_ptr=<optimized out>, return_value_used=<optimized out>)     at /home/jan/src/php-ext-couchbase/couchbase.c:1456 #6 0x000000000070c3fd in ?? () #7 0x00000000006bd1eb in execute () #8 0x0000000000698850 in zend_execute_scripts () #9 0x00000000006458f3 in php_execute_script () #10 0x000000000042c53e in ?? () #11 0x00002ae8147a030d in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6 #12 0x000000000042c58d in _start ()

People

  • Assignee:
    Xinchen Hui
    Reporter:
    Jan Lehnardt
Vote (0)
Watch (0)

Dates

  • Created:
    09/Feb/12 10:10 AM
    Updated:
    01/Mar/12 6:26 AM
    Resolved:
    01/Mar/12 6:26 AM

Agile

  • View on Board
  • Atlassian JIRA (v5.2.4#845-sha1:c9f4cc4)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Couchbase. Try JIRA - bug tracking software for your team.