Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • None
    • library
    • Security Level: Public
    • None

    Description

      $ gdb php
      (gdb) run -n -d zend_extension=xdebug.so -dextension=modules/couchbase.so --re couchbase
      ...
      Program received signal SIGSEGV, Segmentation fault.
      ...
      (gdb) bt
      #0 0x00007fffed533a9e in xdebug_execute_internal (current_execute_data=0x7ffff7f78668, fci=0x0, return_value_used=0)
      at /usr/src/debug/php-pecl-xdebug-2.2.5/NTS/xdebug.c:1589
      #1 0x000055555582c3c0 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>) at /usr/src/debug/php-5.6.1RC1/Zend/zend_vm_execute.h:560
      #2 0x00005555557c32d8 in execute_ex (execute_data=0x7ffff7f78668) at /usr/src/debug/php-5.6.1RC1/Zend/zend_vm_execute.h:363
      #3 0x0000555555777db9 in dtrace_execute_ex (execute_data=<optimized out>) at /usr/src/debug/php-5.6.1RC1/Zend/zend_dtrace.c:73
      #4 0x00007fffed532fcc in xdebug_execute_ex (execute_data=0x7ffff7f78668) at /usr/src/debug/php-pecl-xdebug-2.2.5/NTS/xdebug.c:1437
      #5 0x000055555577b61a in zend_eval_stringl (
      str=0x7fffed318f10 "/*\n * Various constants used for flags, data-type encoding and decoding, etc...\n * throughout this SDK.\n *\n * @author Brett Lawson <brett19@gmail.com>\n */\n\n/* @internal */ define('COUCHBASE_VAL_MASK"..., str_len=<optimized out>, retval_ptr=retval_ptr@entry=0x0,
      string_name=string_name@entry=0x7fffed318e8b "CouchbaseNative") at /usr/src/debug/php-5.6.1RC1/Zend/zend_execute_API.c:1080
      #6 0x000055555577b6f6 in zend_eval_string (str=<optimized out>, retval_ptr=retval_ptr@entry=0x0, string_name=string_name@entry=0x7fffed318e8b "CouchbaseNative")
      at /usr/src/debug/php-5.6.1RC1/Zend/zend_execute_API.c:1119
      #7 0x00007fffed31497c in zm_activate_couchbase (type=<optimized out>, module_number=<optimized out>) at /tmp/couchbase-2.0.0/couchbase.c:63
      #8 0x0000555555790060 in zend_activate_modules () at /usr/src/debug/php-5.6.1RC1/Zend/zend_API.c:2414
      #9 0x00005555557265da in php_request_startup () at /usr/src/debug/php-5.6.1RC1/main/main.c:1672
      #10 0x000055555582da05 in do_cli (argc=7, argv=0x555555b85880) at /usr/src/debug/php-5.6.1RC1/sapi/cli/php_cli.c:965
      #11 0x0000555555611550 in main (argc=7, argv=0x555555b85880) at /usr/src/debug/php-5.6.1RC1/sapi/cli/php_cli.c:1378

      Attachments

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

        Activity

          I have opened a ticket with xdebug and am additionally working on alternative workarounds in the meantime. See: http://bugs.xdebug.org/view.php?id=1087 .

          Cheers, Brett

          brett19 Brett Lawson added a comment - I have opened a ticket with xdebug and am additionally working on alternative workarounds in the meantime. See: http://bugs.xdebug.org/view.php?id=1087 . Cheers, Brett

          The issue will be corrected in the latest release of xdebug (2.2.7 and 2.3.0dev).

          brett19 Brett Lawson added a comment - The issue will be corrected in the latest release of xdebug (2.2.7 and 2.3.0dev).
          remi Remi Collet added a comment - - edited

          Try couchbase 2.0.2 with Xebug 2.2.6 patched.

          Still segfault, but only with php 5.4.35 / x86_64 / ZTS / RHEL-6/7

          1. gdb zts-php
            (gdb) run -d extension=modules/couchbase.so -m
            Program received signal SIGSEGV, Segmentation fault.
            (gdb) bt
            #0 0x00007fffed30d068 in xdebug_execute () from /usr/lib64/php-zts/modules/xdebug.so
            #1 0x00000000005dbb42 in zend_eval_stringl ()
            #2 0x00007fffe84b5629 in zm_activate_couchbase (type=<optimized out>, module_number=<optimized out>, tsrm_ls=0xa07090)
            at /builddir/build/BUILD/php-pecl-couchbase2-2.0.2/ZTS/couchbase.c:107
            #3 0x00000000005f0d93 in zend_activate_modules ()
            #4 0x0000000000577db4 in php_request_startup ()
            #5 0x00000000006a922e in do_cli ()
            #6 0x0000000000424178 in main ()
          remi Remi Collet added a comment - - edited Try couchbase 2.0.2 with Xebug 2.2.6 patched. Still segfault, but only with php 5.4.35 / x86_64 / ZTS / RHEL-6/7 gdb zts-php (gdb) run -d extension=modules/couchbase.so -m Program received signal SIGSEGV, Segmentation fault. (gdb) bt #0 0x00007fffed30d068 in xdebug_execute () from /usr/lib64/php-zts/modules/xdebug.so #1 0x00000000005dbb42 in zend_eval_stringl () #2 0x00007fffe84b5629 in zm_activate_couchbase (type=<optimized out>, module_number=<optimized out>, tsrm_ls=0xa07090) at /builddir/build/BUILD/php-pecl-couchbase2-2.0.2/ZTS/couchbase.c:107 #3 0x00000000005f0d93 in zend_activate_modules () #4 0x0000000000577db4 in php_request_startup () #5 0x00000000006a922e in do_cli () #6 0x0000000000424178 in main ()

          Which 'xdebug 2.2.6 patched' do you mean?

          brett19 Brett Lawson added a comment - Which 'xdebug 2.2.6 patched' do you mean?
          remi Remi Collet added a comment - XDebug 2.2.6 + https://github.com/derickr/xdebug/commit/a55460a63144ba32d3817c1e70a091a579c44478 https://github.com/derickr/xdebug/commit/dcb38d5053e9df32506aeabc8eb09d8370e5641f

          People

            brett19 Brett Lawson
            remi Remi Collet
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty