Uploaded image for project: 'Couchbase PHP client library'
  1. Couchbase PHP client library
  2. PCBC-244

php-ext-couchbase-1.1.5 sporatically coredumping on getMulti

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.1.5
    • Fix Version/s: 1.2.1
    • Component/s: library
    • Security Level: Public
    • Labels:
      None

      Description

      From bug reporter:
      I'm noticing the following symptoms pop up on our apache webs where a child process will SegFault (11) and drop these cores. Most of them look almost identical in gdb, the r->the_request doesn't really point to any single piece of code. On one box, I've had 3 core dumps over ~20k requests in the last half hour. I don't see the same behavior on another box that handled ~7k requests over the last half hour (possibly hitting limitations?), our legacy boxes are handling ~42k requests over the same time frame. All of our boxes are RHEL6.

      #0 0x00007f779e682cfc in php_couchbase_get_callback (instance=<value optimized out>, cookie=0x7f77b387c968, error=LCB_KEY_ENOENT, resp=0x7fff608742b0)
      at php-ext-couchbase-1.1.5/get.c:20
      #1 0x00007f779e4619bf in ?? () from /usr/lib64/libcouchbase.so.2
      #2 0x00007f779e458fce in ?? () from /usr/lib64/libcouchbase.so.2
      #3 0x00007f778694eb44 in event_base_loop () from /usr/lib64/libevent-1.4.so.2
      #4 0x00007f779e464998 in lcb_wait () from /usr/lib64/libcouchbase.so.2
      #5 0x00007f779e684c14 in php_couchbase_get_impl (ht=<value optimized out>, return_value=<value optimized out>, return_value_ptr=0x0, this_ptr=<value optimized out>,
      return_value_used=1, multi=1, oo=1, lock=0, touch=0, replica=0) at php-ext-couchbase-1.1.5/get.c:351
      #6 0x00007f779e67d3ee in zim_couchbase_getMulti (ht=<value optimized out>, return_value=<value optimized out>, return_value_ptr=<value optimized out>, this_ptr=<value optimized out>,
      return_value_used=<value optimized out>) at php-ext-couchbase-1.1.5/apidecl.c:653
      #7 0x00007f77a35fa0c8 in zend_do_fcall_common_helper_SPEC (execute_data=<value optimized out>) at /usr/src/debug/php-5.3.3/Zend/zend_vm_execute.h:316
      #8 0x00007f77a35d1400 in execute (op_array=0x7f77b32dd508) at /usr/src/debug/php-5.3.3/Zend/zend_vm_execute.h:107
      #9 0x00007f77a35abb3d in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /usr/src/debug/php-5.3.3/Zend/zend.c:1194
      #10 0x00007f77a3559da8 in php_execute_script (primary_file=0x7fff60876d10) at /usr/src/debug/php-5.3.3/main/main.c:2261
      #11 0x00007f77a3634a85 in php_handler (r=0x7f77b344ac28) at /usr/src/debug/php-5.3.3/sapi/apache2handler/sapi_apache2.c:669
      #12 0x00007f77adea9b00 in ap_run_handler ()
      #13 0x00007f77adead3be in ap_invoke_handler ()
      #14 0x00007f77adeb8a30 in ap_process_request ()
      #15 0x00007f77adeb58f8 in ?? ()
      #16 0x00007f77adeb1608 in ap_run_process_connection ()
      #17 0x00007f77adebd807 in ?? ()
      #18 0x00007f77adebdb1a in ?? ()
      #19 0x00007f77adebe79c in ap_mpm_run ()
      #20 0x00007f77ade95900 in main ()

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

        Activity

        Hide
        trond Trond Norbye added a comment -

        Could you provide the steps needed to configure such an environment? (apache config, php config etc)

        Show
        trond Trond Norbye added a comment - Could you provide the steps needed to configure such an environment? (apache config, php config etc)
        Hide
        brett19 Brett Lawson added a comment -

        Cannot reproduce issue locally and request for further information was not responded. Will reopen if more information regarding environment can be made available.

        Show
        brett19 Brett Lawson added a comment - Cannot reproduce issue locally and request for further information was not responded. Will reopen if more information regarding environment can be made available.
        Hide
        trond Trond Norbye added a comment -

        It COULD possibly be some of the problems we've seen in some of the libcouchbase versions...

        Show
        trond Trond Norbye added a comment - It COULD possibly be some of the problems we've seen in some of the libcouchbase versions...
        Hide
        mnunberg Mark Nunberg added a comment -

        This has been happening on some versions of libcouchbase. I think this has been mostly fixed, or at least I haven't been able to reproduce this.

        IMO the library needs something like Python where the sync function asserts that the remaining count is 0 before exiting. What's probably happening is that not all the results are returned and a stale cookie is hanging around in libcouchbase, which hasn't delivered back all the callbacks.

        Show
        mnunberg Mark Nunberg added a comment - This has been happening on some versions of libcouchbase. I think this has been mostly fixed, or at least I haven't been able to reproduce this. IMO the library needs something like Python where the sync function asserts that the remaining count is 0 before exiting. What's probably happening is that not all the results are returned and a stale cookie is hanging around in libcouchbase, which hasn't delivered back all the callbacks.

          People

          • Assignee:
            brett19 Brett Lawson
            Reporter:
            ingenthr Matt Ingenthron
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes