|
bash-4.3$ irb
|
|
irb(main):001:0> require 'stringio'
|
|
=> true
|
|
irb(main):002:0> require 'bson'
|
|
=> true
|
|
irb(main):003:0> a = StringIO.new 1.to_bson
|
|
=> #<StringIO:0x007f822ba20cb0>
|
|
irb(main):004:0> BSON::Int32.from_bson a
|
|
=> 1
|
|
irb(main):005:0> BSON::Int64.from_bson a
|
|
/usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/int64.rb:45: [BUG] Segmentation fault at 0x00000000000009
|
|
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14]
|
|
|
|
-- 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
|
|
for more details.
|
|
|
|
-- Control frame information -----------------------------------------------
|
|
c:0020 p:---- s:0080 e:000079 CFUNC :from_bson_int64
|
|
c:0019 p:0013 s:0076 e:000075 METHOD /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/int64.rb:45
|
|
c:0018 p:0015 s:0072 e:000071 EVAL (irb):5 [FINISH]
|
|
c:0017 p:---- s:0070 e:000069 CFUNC :eval
|
|
c:0016 p:0024 s:0063 e:000062 METHOD /usr/local/lib/ruby/2.2.0/irb/workspace.rb:86
|
|
c:0015 p:0025 s:0056 e:000054 METHOD /usr/local/lib/ruby/2.2.0/irb/context.rb:379
|
|
c:0014 p:0022 s:0050 e:000049 BLOCK /usr/local/lib/ruby/2.2.0/irb.rb:489
|
|
c:0013 p:0040 s:0042 e:000041 METHOD /usr/local/lib/ruby/2.2.0/irb.rb:623
|
|
c:0012 p:0009 s:0037 e:000036 BLOCK /usr/local/lib/ruby/2.2.0/irb.rb:486
|
|
c:0011 p:0118 s:0033 e:000032 BLOCK /usr/local/lib/ruby/2.2.0/irb/ruby-lex.rb:245 [FINISH]
|
|
c:0010 p:---- s:0030 e:000029 CFUNC :loop
|
|
c:0009 p:0007 s:0027 e:000026 BLOCK /usr/local/lib/ruby/2.2.0/irb/ruby-lex.rb:231 [FINISH]
|
|
c:0008 p:---- s:0025 e:000024 CFUNC :catch
|
|
c:0007 p:0015 s:0021 e:000020 METHOD /usr/local/lib/ruby/2.2.0/irb/ruby-lex.rb:230
|
|
c:0006 p:0030 s:0018 E:000770 METHOD /usr/local/lib/ruby/2.2.0/irb.rb:485
|
|
c:0005 p:0008 s:0015 e:000014 BLOCK /usr/local/lib/ruby/2.2.0/irb.rb:395 [FINISH]
|
|
c:0004 p:---- s:0013 e:000012 CFUNC :catch
|
|
c:0003 p:0143 s:0009 E:000430 METHOD /usr/local/lib/ruby/2.2.0/irb.rb:394
|
|
c:0002 p:0021 s:0004 E:001470 EVAL /usr/local/bin/irb:11 [FINISH]
|
|
c:0001 p:0000 s:0002 E:001670 TOP [FINISH]
|
|
|
|
-- Ruby level backtrace information ----------------------------------------
|
|
/usr/local/bin/irb:11:in `<main>'
|
|
/usr/local/lib/ruby/2.2.0/irb.rb:394:in `start'
|
|
/usr/local/lib/ruby/2.2.0/irb.rb:394:in `catch'
|
|
/usr/local/lib/ruby/2.2.0/irb.rb:395:in `block in start'
|
|
/usr/local/lib/ruby/2.2.0/irb.rb:485:in `eval_input'
|
|
/usr/local/lib/ruby/2.2.0/irb/ruby-lex.rb:230:in `each_top_level_statement'
|
|
/usr/local/lib/ruby/2.2.0/irb/ruby-lex.rb:230:in `catch'
|
|
/usr/local/lib/ruby/2.2.0/irb/ruby-lex.rb:231:in `block in each_top_level_statement'
|
|
/usr/local/lib/ruby/2.2.0/irb/ruby-lex.rb:231:in `loop'
|
|
/usr/local/lib/ruby/2.2.0/irb/ruby-lex.rb:245:in `block (2 levels) in each_top_level_statement'
|
|
/usr/local/lib/ruby/2.2.0/irb.rb:486:in `block in eval_input'
|
|
/usr/local/lib/ruby/2.2.0/irb.rb:623:in `signal_status'
|
|
/usr/local/lib/ruby/2.2.0/irb.rb:489:in `block (2 levels) in eval_input'
|
|
/usr/local/lib/ruby/2.2.0/irb/context.rb:379:in `evaluate'
|
|
/usr/local/lib/ruby/2.2.0/irb/workspace.rb:86:in `evaluate'
|
|
/usr/local/lib/ruby/2.2.0/irb/workspace.rb:86:in `eval'
|
|
(irb):5:in `irb_binding'
|
|
/usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/int64.rb:45:in `from_bson'
|
|
/usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/int64.rb:45:in `from_bson_int64'
|
|
|
|
-- Machine register context ------------------------------------------------
|
|
rax: 0x0000000000000000 rbx: 0x00007f822d980b00 rcx: 0x0000000000000008
|
|
rdx: 0x00000001006bf540 rdi: 0x00007f822b832750 rsi: 0x0000000000000008
|
|
rbp: 0x00007fff5fa81a90 rsp: 0x00007fff5fa81a90 r8: 0x00000000000024bc
|
|
r9: 0x00007f822b8ed000 r10: 0x0000000000000001 r11: 0x00007f822b5e1460
|
|
r12: 0x0000000100598a10 r13: 0x0000000100598a10 r14: 0x00007f822b408e80
|
|
r15: 0x00007f822b408e80 rip: 0x00000001006bf544 rfl: 0x0000000000010246
|
|
|
|
-- C level backtrace information -------------------------------------------
|
|
0 ruby 0x000000010031b805 rb_vm_bugreport + 149
|
|
1 ruby 0x00000001001beab9 rb_bug_context + 473
|
|
2 ruby 0x0000000100295fe3 sigsegv + 83
|
|
3 libsystem_platform.dylib 0x00007fff9419af1a _sigtramp + 26
|
|
4 native.bundle 0x00000001006bf544 rb_integer_from_bson_int64 + 4
|
|
5 ??? 0x00007fff5fa81b60 0x0 + 140734798240608
|
|
|
|
-- Other runtime information -----------------------------------------------
|
|
|
|
* Loaded script: irb
|
|
|
|
* Loaded features:
|
|
|
|
0 enumerator.so
|
|
1 rational.so
|
|
2 complex.so
|
|
3 /usr/local/lib/ruby/2.2.0/x86_64-darwin14/enc/encdb.bundle
|
|
4 /usr/local/lib/ruby/2.2.0/x86_64-darwin14/enc/trans/transdb.bundle
|
|
5 /usr/local/lib/ruby/2.2.0/unicode_normalize.rb
|
|
6 /usr/local/lib/ruby/2.2.0/x86_64-darwin14/rbconfig.rb
|
|
7 thread.rb
|
|
8 /usr/local/lib/ruby/2.2.0/x86_64-darwin14/thread.bundle
|
|
9 /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/compatibility.rb
|
|
10 /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/defaults.rb
|
|
11 /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/deprecate.rb
|
|
12 /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/errors.rb
|
|
13 /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/version.rb
|
|
14 /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/requirement.rb
|
|
15 /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/platform.rb
|
|
16 /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/basic_specification.rb
|
|
17 /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/stub_specification.rb
|
|
18 /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/util/stringio.rb
|
|
19 /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/specification.rb
|
|
20 /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/exceptions.rb
|
|
21 /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_gem.rb
|
|
22 /usr/local/lib/ruby/2.2.0/monitor.rb
|
|
23 /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb
|
|
24 /usr/local/lib/ruby/site_ruby/2.2.0/rubygems.rb
|
|
25 /usr/local/lib/ruby/2.2.0/e2mmap.rb
|
|
26 /usr/local/lib/ruby/2.2.0/irb/init.rb
|
|
27 /usr/local/lib/ruby/2.2.0/irb/workspace.rb
|
|
28 /usr/local/lib/ruby/2.2.0/irb/inspector.rb
|
|
29 /usr/local/lib/ruby/2.2.0/irb/context.rb
|
|
30 /usr/local/lib/ruby/2.2.0/irb/extend-command.rb
|
|
31 /usr/local/lib/ruby/2.2.0/irb/output-method.rb
|
|
32 /usr/local/lib/ruby/2.2.0/irb/notifier.rb
|
|
33 /usr/local/lib/ruby/2.2.0/irb/slex.rb
|
|
34 /usr/local/lib/ruby/2.2.0/irb/ruby-token.rb
|
|
35 /usr/local/lib/ruby/2.2.0/irb/ruby-lex.rb
|
|
36 /usr/local/lib/ruby/2.2.0/irb/src_encoding.rb
|
|
37 /usr/local/lib/ruby/2.2.0/irb/magic-file.rb
|
|
38 /usr/local/lib/ruby/2.2.0/x86_64-darwin14/readline.bundle
|
|
39 /usr/local/lib/ruby/2.2.0/irb/input-method.rb
|
|
40 /usr/local/lib/ruby/2.2.0/irb/locale.rb
|
|
41 /usr/local/lib/ruby/2.2.0/irb.rb
|
|
42 /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/path_support.rb
|
|
43 /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/dependency.rb
|
|
44 /usr/local/lib/ruby/2.2.0/x86_64-darwin14/stringio.bundle
|
|
45 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/environment.rb
|
|
46 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/registry.rb
|
|
47 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/specialized.rb
|
|
48 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/json.rb
|
|
49 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/int32.rb
|
|
50 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/int64.rb
|
|
51 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/integer.rb
|
|
52 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/encodable.rb
|
|
53 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/array.rb
|
|
54 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/binary.rb
|
|
55 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/boolean.rb
|
|
56 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/code.rb
|
|
57 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/code_with_scope.rb
|
|
58 /usr/local/lib/ruby/2.2.0/x86_64-darwin14/date_core.bundle
|
|
59 /usr/local/lib/ruby/2.2.0/date.rb
|
|
60 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/date.rb
|
|
61 /usr/local/lib/ruby/2.2.0/time.rb
|
|
62 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/date_time.rb
|
|
63 /usr/local/lib/ruby/2.2.0/psych/exception.rb
|
|
64 /usr/local/lib/ruby/2.2.0/psych/syntax_error.rb
|
|
65 /usr/local/lib/ruby/2.2.0/x86_64-darwin14/psych.bundle
|
|
66 /usr/local/lib/ruby/2.2.0/psych/omap.rb
|
|
67 /usr/local/lib/ruby/2.2.0/psych/set.rb
|
|
68 /usr/local/lib/ruby/2.2.0/psych/class_loader.rb
|
|
69 /usr/local/lib/ruby/2.2.0/x86_64-darwin14/strscan.bundle
|
|
70 /usr/local/lib/ruby/2.2.0/psych/scalar_scanner.rb
|
|
71 /usr/local/lib/ruby/2.2.0/psych/nodes/node.rb
|
|
72 /usr/local/lib/ruby/2.2.0/psych/nodes/stream.rb
|
|
73 /usr/local/lib/ruby/2.2.0/psych/nodes/document.rb
|
|
74 /usr/local/lib/ruby/2.2.0/psych/nodes/sequence.rb
|
|
75 /usr/local/lib/ruby/2.2.0/psych/nodes/scalar.rb
|
|
76 /usr/local/lib/ruby/2.2.0/psych/nodes/mapping.rb
|
|
77 /usr/local/lib/ruby/2.2.0/psych/nodes/alias.rb
|
|
78 /usr/local/lib/ruby/2.2.0/psych/nodes.rb
|
|
79 /usr/local/lib/ruby/2.2.0/psych/streaming.rb
|
|
80 /usr/local/lib/ruby/2.2.0/psych/visitors/visitor.rb
|
|
81 /usr/local/lib/ruby/2.2.0/psych/visitors/to_ruby.rb
|
|
82 /usr/local/lib/ruby/2.2.0/psych/visitors/emitter.rb
|
|
83 /usr/local/lib/ruby/2.2.0/psych/handler.rb
|
|
84 /usr/local/lib/ruby/2.2.0/psych/tree_builder.rb
|
|
85 /usr/local/lib/ruby/2.2.0/psych/visitors/yaml_tree.rb
|
|
86 /usr/local/lib/ruby/2.2.0/psych/json/ruby_events.rb
|
|
87 /usr/local/lib/ruby/2.2.0/psych/visitors/json_tree.rb
|
|
88 /usr/local/lib/ruby/2.2.0/psych/visitors/depth_first.rb
|
|
89 /usr/local/lib/ruby/2.2.0/psych/visitors.rb
|
|
90 /usr/local/lib/ruby/2.2.0/psych/parser.rb
|
|
91 /usr/local/lib/ruby/2.2.0/psych/coder.rb
|
|
92 /usr/local/lib/ruby/2.2.0/psych/y.rb
|
|
93 /usr/local/lib/ruby/2.2.0/psych/core_ext.rb
|
|
94 /usr/local/lib/ruby/2.2.0/psych/deprecated.rb
|
|
95 /usr/local/lib/ruby/2.2.0/psych/stream.rb
|
|
96 /usr/local/lib/ruby/2.2.0/psych/json/yaml_events.rb
|
|
97 /usr/local/lib/ruby/2.2.0/psych/json/tree_builder.rb
|
|
98 /usr/local/lib/ruby/2.2.0/psych/json/stream.rb
|
|
99 /usr/local/lib/ruby/2.2.0/psych/handlers/document_stream.rb
|
|
100 /usr/local/lib/ruby/2.2.0/psych.rb
|
|
101 /usr/local/lib/ruby/2.2.0/yaml.rb
|
|
102 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/document.rb
|
|
103 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/false_class.rb
|
|
104 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/float.rb
|
|
105 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/hash.rb
|
|
106 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/max_key.rb
|
|
107 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/min_key.rb
|
|
108 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/nil_class.rb
|
|
109 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/object.rb
|
|
110 /usr/local/lib/ruby/2.2.0/x86_64-darwin14/digest.bundle
|
|
111 /usr/local/lib/ruby/2.2.0/digest.rb
|
|
112 /usr/local/lib/ruby/2.2.0/x86_64-darwin14/digest/md5.bundle
|
|
113 /usr/local/lib/ruby/2.2.0/x86_64-darwin14/socket.bundle
|
|
114 /usr/local/lib/ruby/2.2.0/socket.rb
|
|
115 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/object_id.rb
|
|
116 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/regexp.rb
|
|
117 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/string.rb
|
|
118 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/symbol.rb
|
|
119 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/time.rb
|
|
120 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/timestamp.rb
|
|
121 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/true_class.rb
|
|
122 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/undefined.rb
|
|
123 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/version.rb
|
|
124 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/native.bundle
|
|
125 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson.rb
|
|
|
|
[NOTE]
|
|
You may have encountered a bug in the Ruby interpreter or extension libraries.
|
|
Bug reports are welcome.
|
|
Don't forget to include the above Crash Report log file.
|
|
For details: http://www.ruby-lang.org/bugreport.html
|
|
|
|
Abort trap: 6
|