Details

    • Type: Bug
    • Status: Closed
    • Priority: 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 ()

      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        laruence Xinchen Hui added a comment -

        I really can't reproduce this.....

        Show
        laruence Xinchen Hui added a comment - I really can't reproduce this.....
        Hide
        jan Jan Lehnardt (Inactive) added a comment -

        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 Jan Lehnardt (Inactive) added a comment - 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
        jan Jan Lehnardt (Inactive) added a comment -

        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 Jan Lehnardt (Inactive) added a comment - 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:
            laruence Xinchen Hui
            Reporter:
            jan Jan Lehnardt (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes