Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 2.1.2
    • Component/s: None
    • Security Level: Public
    • Labels:
      None
    • Environment:

      Description

      require 'rubygems'
      require 'couchbase'

      r = Couchbase.connect :node_list => ['localhost:8091'], :bucket => 'default', :quiet=>false
      r.run do |conn|
      conn.get("foo")

      {|ret| puts ret.value}

      end

      – Control frame information - c:0004 p:---- s:0010 b:0010 l:000009 d:000009
      CFUNC :run c:0003 p:0069 s:0007 b:0007 l:0010b8 d:000560
      EVAL test.rb:7 c:0002 p:---- s:0004 b:0004 l:000003 d:000003
      FINISH c:0001 p:0000 s:0002 b:0002 l:0010b8 d:0010b8 TOP

        Issue Links

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

          Activity

          Hide
          avsej Sergey Avseyev added a comment -

          I cannot reproduce it obviously, because this snippet is similar to our unit tests

          https://github.com/couchbase/couchbase-ruby-client/blob/master/test/test_async.rb#L63

          Could we ask him to give more details, like complete backtrace?

          Show
          avsej Sergey Avseyev added a comment - I cannot reproduce it obviously, because this snippet is similar to our unit tests https://github.com/couchbase/couchbase-ruby-client/blob/master/test/test_async.rb#L63 Could we ask him to give more details, like complete backtrace?
          Hide
          avsej Sergey Avseyev added a comment -

          This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries ... done

          (gdb) run test.rb
          Starting program: /usr/local/var/rbenv/versions/1.9.3-p448/bin/ruby test.rb
          Reading symbols for shared libraries ++............................. done
          Reading symbols for shared libraries . done
          Reading symbols for shared libraries . done
          Reading symbols for shared libraries . done
          Reading symbols for shared libraries . done
          Reading symbols for shared libraries . done
          Reading symbols for shared libraries . done
          Reading symbols for shared libraries . done
          Reading symbols for shared libraries . done
          Reading symbols for shared libraries . done
          Reading symbols for shared libraries . done
          Reading symbols for shared libraries .. done

          Program received signal EXC_BAD_ACCESS, Could not access memory.
          Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
          0x00007fff8d00c6b0 in strlen ()
          (gdb) backtrace
          #0 0x00007fff8d00c6b0 in strlen ()
          #1 0x00000001006771c4 in sasl_get_username ()
          #2 0x0000000100684606 in sasl_client_start ()
          #3 0x0000000100680cb8 in socket_connected ()
          #4 0x0000000100677f71 in v0_connect ()
          #5 0x000000010065ec1d in loop_run_select ()
          #6 0x00000001000363d4 in rb_ensure ()
          #7 0x000000010065e3ef in lcb_io_run_event_loop ()
          #8 0x00000001006844ca in lcb_wait ()
          #9 0x0000000100656c35 in do_run ()
          #10 0x00000001000363d4 in rb_ensure ()
          #11 0x0000000100656b46 in cb_bucket_run ()
          #12 0x0000000100133d16 in call_cfunc ()
          #13 0x000000010013eb8a in vm_call_method ()
          #14 0x000000010013a7f5 in vm_exec_core ()
          #15 0x000000010013f4fe in vm_exec ()
          #16 0x000000010013fcbe in rb_iseq_eval_main ()
          #17 0x000000010003711f in ruby_exec_internal ()
          #18 0x0000000100038132 in ruby_run_node ()
          #19 0x00000001000014bf in main ()
          (gdb)

          Show
          avsej Sergey Avseyev added a comment - This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries ... done (gdb) run test.rb Starting program: /usr/local/var/rbenv/versions/1.9.3-p448/bin/ruby test.rb Reading symbols for shared libraries ++............................. done Reading symbols for shared libraries . done Reading symbols for shared libraries . done Reading symbols for shared libraries . done Reading symbols for shared libraries . done Reading symbols for shared libraries . done Reading symbols for shared libraries . done Reading symbols for shared libraries . done Reading symbols for shared libraries . done Reading symbols for shared libraries . done Reading symbols for shared libraries . done Reading symbols for shared libraries .. done Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000 0x00007fff8d00c6b0 in strlen () (gdb) backtrace #0 0x00007fff8d00c6b0 in strlen () #1 0x00000001006771c4 in sasl_get_username () #2 0x0000000100684606 in sasl_client_start () #3 0x0000000100680cb8 in socket_connected () #4 0x0000000100677f71 in v0_connect () #5 0x000000010065ec1d in loop_run_select () #6 0x00000001000363d4 in rb_ensure () #7 0x000000010065e3ef in lcb_io_run_event_loop () #8 0x00000001006844ca in lcb_wait () #9 0x0000000100656c35 in do_run () #10 0x00000001000363d4 in rb_ensure () #11 0x0000000100656b46 in cb_bucket_run () #12 0x0000000100133d16 in call_cfunc () #13 0x000000010013eb8a in vm_call_method () #14 0x000000010013a7f5 in vm_exec_core () #15 0x000000010013f4fe in vm_exec () #16 0x000000010013fcbe in rb_iseq_eval_main () #17 0x000000010003711f in ruby_exec_internal () #18 0x0000000100038132 in ruby_run_node () #19 0x00000001000014bf in main () (gdb)
          Hide
          avsej Sergey Avseyev added a comment -

          The bug is not reproducible for "default" bucket only

          Show
          avsej Sergey Avseyev added a comment - The bug is not reproducible for "default" bucket only
          Hide
          avsej Sergey Avseyev added a comment -

          The issue itself was fixed here http://review.couchbase.org/28532

          I thought we have workaround at that time, therefore I didn't raise
          its severity.

          But now I confirmed that the only workaround is:

          1. to set non-empty password and
          2. specify both username and password during connection, i.e.

          Couchbase.connect(:bucket => 'test', :username => 'test', :password
          => 'secret')

          Otherwise it will lead to segfault.

          Show
          avsej Sergey Avseyev added a comment - The issue itself was fixed here http://review.couchbase.org/28532 I thought we have workaround at that time, therefore I didn't raise its severity. But now I confirmed that the only workaround is: 1. to set non-empty password and 2. specify both username and password during connection, i.e. Couchbase.connect(:bucket => 'test', :username => 'test', :password => 'secret') Otherwise it will lead to segfault.

            People

            • Assignee:
              avsej Sergey Avseyev
              Reporter:
              avsej Sergey Avseyev
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes