Segfault using Ruby2

I couldn't find anyone else having this issue, but I'm having trouble getting started with Couchbase using Ruby2. I'm getting a segmentation fault trying to access a document in the beer-sample bucket.

I'm using:
Ruby 2.0.0-p247 (using irb)
libcouchbase 2.1.1 (from homebrew)
couchbase gem 1.3.2

The error is:
2.0.0-p247 :006 > beer = client.get("aass_brewery-juleol")
(irb):6: [BUG] Segmentation fault
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.4.0]

-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/CrashReporter
* /Library/Logs/CrashReporter
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
the more detail of.

-- Control frame information -----------------------------------------------
c:0019 p:---- s:0077 e:000076 CFUNC :get
c:0018 p:0008 s:0073 E:000b00 EVAL (irb):6 [FINISH]
c:0017 p:---- s:0070 e:000069 CFUNC :eval
c:0016 p:0024 s:0063 e:000062 METHOD /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb/workspace.rb:86
c:0015 p:0025 s:0056 e:000054 METHOD /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb/context.rb:380
c:0014 p:0022 s:0050 e:000049 BLOCK /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb.rb:492
c:0013 p:0040 s:0042 e:000041 METHOD /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb.rb:624
c:0012 p:0009 s:0037 e:000036 BLOCK /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb.rb:489
c:0011 p:0118 s:0033 e:000032 BLOCK /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb/ruby-lex.rb:247 [FINISH]
c:0010 p:---- s:0030 e:000029 CFUNC :loop
c:0009 p:0007 s:0027 e:000026 BLOCK /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb/ruby-lex.rb:233 [FINISH]
c:0008 p:---- s:0025 e:000024 CFUNC :catch
c:0007 p:0015 s:0021 e:000020 METHOD /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb/ruby-lex.rb:232
c:0006 p:0030 s:0018 E:002608 METHOD /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb.rb:488
c:0005 p:0008 s:0015 e:000014 BLOCK /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb.rb:397 [FINISH]
c:0004 p:---- s:0013 e:000012 CFUNC :catch
c:0003 p:0143 s:0009 E:0001d8 METHOD /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb.rb:396
c:0002 p:0122 s:0004 E:002328 EVAL /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/bin/irb:16 [FINISH]
c:0001 p:0000 s:0002 E:000a58 TOP [FINISH]

/Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/bin/irb:16:in `'
/Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb.rb:396:in `start'
/Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb.rb:396:in `catch'
/Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb.rb:397:in `block in start'
/Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb.rb:488:in `eval_input'
/Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb/ruby-lex.rb:232:in `each_top_level_statement'
/Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb/ruby-lex.rb:232:in `catch'
/Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb/ruby-lex.rb:233:in `block in each_top_level_statement'
/Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb/ruby-lex.rb:233:in `loop'
/Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb/ruby-lex.rb:247:in `block (2 levels) in each_top_level_statement'
/Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb.rb:489:in `block in eval_input'
/Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb.rb:624:in `signal_status'
/Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb.rb:492:in `block (2 levels) in eval_input'
/Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb/context.rb:380:in `evaluate'
/Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb/workspace.rb:86:in `evaluate'
/Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb/workspace.rb:86:in `eval'
(irb):6:in `irb_binding'
(irb):6:in `get'

-- C level backtrace information -------------------------------------------

-- Other runtime information -----------------------------------------------

* Loaded script: irb

* Loaded features:

0 enumerator.so
1 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/x86_64-darwin12.4.0/enc/encdb.bundle
2 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/x86_64-darwin12.4.0/enc/trans/transdb.bundle
3 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/x86_64-darwin12.4.0/rbconfig.rb
4 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/compatibility.rb
5 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/defaults.rb
6 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/deprecate.rb
7 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/errors.rb
8 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/version.rb
9 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/requirement.rb
10 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/platform.rb
11 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/specification.rb
12 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/exceptions.rb
13 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_gem.rb
14 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/thread.rb
15 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/monitor.rb
16 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb
17 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems.rb
18 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/e2mmap.rb
19 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb/init.rb
20 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb/workspace.rb
21 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb/inspector.rb
22 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb/context.rb
23 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb/extend-command.rb
24 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb/output-method.rb
25 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb/notifier.rb
26 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb/slex.rb
27 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb/ruby-token.rb
28 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb/ruby-lex.rb
29 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb/src_encoding.rb
30 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb/magic-file.rb
31 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/x86_64-darwin12.4.0/readline.bundle
32 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb/input-method.rb
33 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb/locale.rb
34 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb.rb
35 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/path_support.rb
36 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/dependency.rb
37 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb/completion.rb
38 /Volumes/Data/Users/michaelmarini/.rvm/scripts/irbrc.rb
39 /Volumes/Data/Users/michaelmarini/.rvm/gems/ruby-2.0.0-p247/gems/couchbase-1.3.2/lib/couchbase/version.rb
40 /Volumes/Data/Users/michaelmarini/.rvm/gems/ruby-2.0.0-p247/gems/yaji-0.3.4/lib/yaji/version.rb
41 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/x86_64-darwin12.4.0/stringio.bundle
42 /Volumes/Data/Users/michaelmarini/.rvm/gems/ruby-2.0.0-p247/gems/yaji-0.3.4/lib/parser_ext.bundle
43 /Volumes/Data/Users/michaelmarini/.rvm/gems/ruby-2.0.0-p247/gems/yaji-0.3.4/lib/yaji.rb
44 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/uri/common.rb
45 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/uri/generic.rb
46 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/uri/ftp.rb
47 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/uri/http.rb
48 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/uri/https.rb
49 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/uri/ldap.rb
50 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/uri/ldaps.rb
51 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/uri/mailto.rb
52 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/uri.rb
53 /Volumes/Data/Users/michaelmarini/.rvm/gems/ruby-2.0.0-p247/gems/multi_json-1.7.8/lib/multi_json/options.rb
54 /Volumes/Data/Users/michaelmarini/.rvm/gems/ruby-2.0.0-p247/gems/multi_json-1.7.8/lib/multi_json/version.rb
55 /Volumes/Data/Users/michaelmarini/.rvm/gems/ruby-2.0.0-p247/gems/multi_json-1.7.8/lib/multi_json/load_error.rb
56 /Volumes/Data/Users/michaelmarini/.rvm/gems/ruby-2.0.0-p247/gems/multi_json-1.7.8/lib/multi_json.rb
57 /Volumes/Data/Users/michaelmarini/.rvm/gems/ruby-2.0.0-p247/gems/json-1.8.0/lib/json/version.rb
58 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/ostruct.rb
59 /Volumes/Data/Users/michaelmarini/.rvm/gems/ruby-2.0.0-p247/gems/json-1.8.0/lib/json/generic_object.rb
60 /Volumes/Data/Users/michaelmarini/.rvm/gems/ruby-2.0.0-p247/gems/json-1.8.0/lib/json/common.rb
61 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/x86_64-darwin12.4.0/enc/utf_16be.bundle
62 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/x86_64-darwin12.4.0/enc/utf_16le.bundle
63 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/x86_64-darwin12.4.0/enc/utf_32be.bundle
64 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/x86_64-darwin12.4.0/enc/utf_32le.bundle
65 /Volumes/Data/Users/michaelmarini/.rvm/gems/ruby-2.0.0-p247/gems/json-1.8.0/lib/json/ext/parser.bundle
66 /Volumes/Data/Users/michaelmarini/.rvm/gems/ruby-2.0.0-p247/gems/json-1.8.0/lib/json/ext/generator.bundle
67 /Volumes/Data/Users/michaelmarini/.rvm/gems/ruby-2.0.0-p247/gems/json-1.8.0/lib/json/ext.rb
68 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/singleton.rb
69 /Volumes/Data/Users/michaelmarini/.rvm/gems/ruby-2.0.0-p247/gems/multi_json-1.7.8/lib/multi_json/adapter.rb
70 /Volumes/Data/Users/michaelmarini/.rvm/gems/ruby-2.0.0-p247/gems/multi_json-1.7.8/lib/multi_json/adapters/json_common.rb
71 /Volumes/Data/Users/michaelmarini/.rvm/gems/ruby-2.0.0-p247/gems/multi_json-1.7.8/lib/multi_json/adapters/json_gem.rb
72 /Volumes/Data/Users/michaelmarini/.rvm/gems/ruby-2.0.0-p247/gems/couchbase-1.3.2/lib/ext/multi_json_fix.rb
73 /Volumes/Data/Users/michaelmarini/.rvm/gems/ruby-2.0.0-p247/gems/couchbase-1.3.2/lib/couchbase/transcoder.rb
74 /Volumes/Data/Users/michaelmarini/.rvm/gems/ruby-2.0.0-p247/gems/couchbase-1.3.2/lib/couchbase_ext.bundle
75 /Volumes/Data/Users/michaelmarini/.rvm/gems/ruby-2.0.0-p247/gems/couchbase-1.3.2/lib/couchbase/constants.rb
76 /Volumes/Data/Users/michaelmarini/.rvm/gems/ruby-2.0.0-p247/gems/couchbase-1.3.2/lib/couchbase/utils.rb
77 /Volumes/Data/Users/michaelmarini/.rvm/gems/ruby-2.0.0-p247/gems/couchbase-1.3.2/lib/couchbase/bucket.rb
78 /Volumes/Data/Users/michaelmarini/.rvm/gems/ruby-2.0.0-p247/gems/couchbase-.3.2/lib/couchbase/view_row.rb
79 /Volumes/Data/Users/michaelmarini/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/base64.rb
80 /Volumes/Data/Users/michaelmarini/.rvm/gems/ruby-2.0.0-p247/gems/couchbase-.3.2/lib/couchbase/view.rb
81 /Volumes/Data/Users/michaelmarini/.rvm/gems/ruby-2.0.0-p247/gems/couchbase-.3.2/lib/couchbase/result.rb
82 /Volumes/Data/Users/michaelmarini/.rvm/gems/ruby-2.0.0-p247/gems/couchbase-.3.2/lib/couchbase/cluster.rb
83 /Volumes/Data/Users/michaelmarini/.rvm/gems/ruby-2.0.0-p247/gems/couchbase-.3.2/lib/couchbase.rb

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

Abort trap: 6

Any help would be greatly appreciated,

Cheers,

Mike

1 Answer

« Back to question.

Please use Q&A to ask questions. We have issue tracker for bug reports.

I've copied description there: https://www.couchbase.com/issues/browse/RCBC-140