Project

General

Profile

Bug #11109 ยป bug_report.txt

yangzhijava (Jeffrey Yang), 04/30/2015 01:44 PM

 
1
bash-4.3$ irb
2
irb(main):001:0> require 'stringio'
3
=> true
4
irb(main):002:0> require 'bson'
5
=> true
6
irb(main):003:0> a = StringIO.new 1.to_bson
7
=> #<StringIO:0x007f822ba20cb0>
8
irb(main):004:0> BSON::Int32.from_bson a
9
=> 1
10
irb(main):005:0> BSON::Int64.from_bson a
11
/usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/int64.rb:45: [BUG] Segmentation fault at 0x00000000000009
12
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14]
13

    
14
-- Crash Report log information --------------------------------------------
15
   See Crash Report log file under the one of following:
16
     * ~/Library/Logs/CrashReporter
17
     * /Library/Logs/CrashReporter
18
     * ~/Library/Logs/DiagnosticReports
19
     * /Library/Logs/DiagnosticReports
20
   for more details.
21

    
22
-- Control frame information -----------------------------------------------
23
c:0020 p:---- s:0080 e:000079 CFUNC  :from_bson_int64
24
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
25
c:0018 p:0015 s:0072 e:000071 EVAL   (irb):5 [FINISH]
26
c:0017 p:---- s:0070 e:000069 CFUNC  :eval
27
c:0016 p:0024 s:0063 e:000062 METHOD /usr/local/lib/ruby/2.2.0/irb/workspace.rb:86
28
c:0015 p:0025 s:0056 e:000054 METHOD /usr/local/lib/ruby/2.2.0/irb/context.rb:379
29
c:0014 p:0022 s:0050 e:000049 BLOCK  /usr/local/lib/ruby/2.2.0/irb.rb:489
30
c:0013 p:0040 s:0042 e:000041 METHOD /usr/local/lib/ruby/2.2.0/irb.rb:623
31
c:0012 p:0009 s:0037 e:000036 BLOCK  /usr/local/lib/ruby/2.2.0/irb.rb:486
32
c:0011 p:0118 s:0033 e:000032 BLOCK  /usr/local/lib/ruby/2.2.0/irb/ruby-lex.rb:245 [FINISH]
33
c:0010 p:---- s:0030 e:000029 CFUNC  :loop
34
c:0009 p:0007 s:0027 e:000026 BLOCK  /usr/local/lib/ruby/2.2.0/irb/ruby-lex.rb:231 [FINISH]
35
c:0008 p:---- s:0025 e:000024 CFUNC  :catch
36
c:0007 p:0015 s:0021 e:000020 METHOD /usr/local/lib/ruby/2.2.0/irb/ruby-lex.rb:230
37
c:0006 p:0030 s:0018 E:000770 METHOD /usr/local/lib/ruby/2.2.0/irb.rb:485
38
c:0005 p:0008 s:0015 e:000014 BLOCK  /usr/local/lib/ruby/2.2.0/irb.rb:395 [FINISH]
39
c:0004 p:---- s:0013 e:000012 CFUNC  :catch
40
c:0003 p:0143 s:0009 E:000430 METHOD /usr/local/lib/ruby/2.2.0/irb.rb:394
41
c:0002 p:0021 s:0004 E:001470 EVAL   /usr/local/bin/irb:11 [FINISH]
42
c:0001 p:0000 s:0002 E:001670 TOP    [FINISH]
43

    
44
-- Ruby level backtrace information ----------------------------------------
45
/usr/local/bin/irb:11:in `<main>'
46
/usr/local/lib/ruby/2.2.0/irb.rb:394:in `start'
47
/usr/local/lib/ruby/2.2.0/irb.rb:394:in `catch'
48
/usr/local/lib/ruby/2.2.0/irb.rb:395:in `block in start'
49
/usr/local/lib/ruby/2.2.0/irb.rb:485:in `eval_input'
50
/usr/local/lib/ruby/2.2.0/irb/ruby-lex.rb:230:in `each_top_level_statement'
51
/usr/local/lib/ruby/2.2.0/irb/ruby-lex.rb:230:in `catch'
52
/usr/local/lib/ruby/2.2.0/irb/ruby-lex.rb:231:in `block in each_top_level_statement'
53
/usr/local/lib/ruby/2.2.0/irb/ruby-lex.rb:231:in `loop'
54
/usr/local/lib/ruby/2.2.0/irb/ruby-lex.rb:245:in `block (2 levels) in each_top_level_statement'
55
/usr/local/lib/ruby/2.2.0/irb.rb:486:in `block in eval_input'
56
/usr/local/lib/ruby/2.2.0/irb.rb:623:in `signal_status'
57
/usr/local/lib/ruby/2.2.0/irb.rb:489:in `block (2 levels) in eval_input'
58
/usr/local/lib/ruby/2.2.0/irb/context.rb:379:in `evaluate'
59
/usr/local/lib/ruby/2.2.0/irb/workspace.rb:86:in `evaluate'
60
/usr/local/lib/ruby/2.2.0/irb/workspace.rb:86:in `eval'
61
(irb):5:in `irb_binding'
62
/usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/int64.rb:45:in `from_bson'
63
/usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/int64.rb:45:in `from_bson_int64'
64

    
65
-- Machine register context ------------------------------------------------
66
 rax: 0x0000000000000000 rbx: 0x00007f822d980b00 rcx: 0x0000000000000008
67
 rdx: 0x00000001006bf540 rdi: 0x00007f822b832750 rsi: 0x0000000000000008
68
 rbp: 0x00007fff5fa81a90 rsp: 0x00007fff5fa81a90  r8: 0x00000000000024bc
69
  r9: 0x00007f822b8ed000 r10: 0x0000000000000001 r11: 0x00007f822b5e1460
70
 r12: 0x0000000100598a10 r13: 0x0000000100598a10 r14: 0x00007f822b408e80
71
 r15: 0x00007f822b408e80 rip: 0x00000001006bf544 rfl: 0x0000000000010246
72

    
73
-- C level backtrace information -------------------------------------------
74
0   ruby                                0x000000010031b805 rb_vm_bugreport + 149
75
1   ruby                                0x00000001001beab9 rb_bug_context + 473
76
2   ruby                                0x0000000100295fe3 sigsegv + 83
77
3   libsystem_platform.dylib            0x00007fff9419af1a _sigtramp + 26
78
4   native.bundle                       0x00000001006bf544 rb_integer_from_bson_int64 + 4
79
5   ???                                 0x00007fff5fa81b60 0x0 + 140734798240608
80

    
81
-- Other runtime information -----------------------------------------------
82

    
83
* Loaded script: irb
84

    
85
* Loaded features:
86

    
87
    0 enumerator.so
88
    1 rational.so
89
    2 complex.so
90
    3 /usr/local/lib/ruby/2.2.0/x86_64-darwin14/enc/encdb.bundle
91
    4 /usr/local/lib/ruby/2.2.0/x86_64-darwin14/enc/trans/transdb.bundle
92
    5 /usr/local/lib/ruby/2.2.0/unicode_normalize.rb
93
    6 /usr/local/lib/ruby/2.2.0/x86_64-darwin14/rbconfig.rb
94
    7 thread.rb
95
    8 /usr/local/lib/ruby/2.2.0/x86_64-darwin14/thread.bundle
96
    9 /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/compatibility.rb
97
   10 /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/defaults.rb
98
   11 /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/deprecate.rb
99
   12 /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/errors.rb
100
   13 /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/version.rb
101
   14 /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/requirement.rb
102
   15 /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/platform.rb
103
   16 /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/basic_specification.rb
104
   17 /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/stub_specification.rb
105
   18 /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/util/stringio.rb
106
   19 /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/specification.rb
107
   20 /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/exceptions.rb
108
   21 /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_gem.rb
109
   22 /usr/local/lib/ruby/2.2.0/monitor.rb
110
   23 /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb
111
   24 /usr/local/lib/ruby/site_ruby/2.2.0/rubygems.rb
112
   25 /usr/local/lib/ruby/2.2.0/e2mmap.rb
113
   26 /usr/local/lib/ruby/2.2.0/irb/init.rb
114
   27 /usr/local/lib/ruby/2.2.0/irb/workspace.rb
115
   28 /usr/local/lib/ruby/2.2.0/irb/inspector.rb
116
   29 /usr/local/lib/ruby/2.2.0/irb/context.rb
117
   30 /usr/local/lib/ruby/2.2.0/irb/extend-command.rb
118
   31 /usr/local/lib/ruby/2.2.0/irb/output-method.rb
119
   32 /usr/local/lib/ruby/2.2.0/irb/notifier.rb
120
   33 /usr/local/lib/ruby/2.2.0/irb/slex.rb
121
   34 /usr/local/lib/ruby/2.2.0/irb/ruby-token.rb
122
   35 /usr/local/lib/ruby/2.2.0/irb/ruby-lex.rb
123
   36 /usr/local/lib/ruby/2.2.0/irb/src_encoding.rb
124
   37 /usr/local/lib/ruby/2.2.0/irb/magic-file.rb
125
   38 /usr/local/lib/ruby/2.2.0/x86_64-darwin14/readline.bundle
126
   39 /usr/local/lib/ruby/2.2.0/irb/input-method.rb
127
   40 /usr/local/lib/ruby/2.2.0/irb/locale.rb
128
   41 /usr/local/lib/ruby/2.2.0/irb.rb
129
   42 /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/path_support.rb
130
   43 /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/dependency.rb
131
   44 /usr/local/lib/ruby/2.2.0/x86_64-darwin14/stringio.bundle
132
   45 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/environment.rb
133
   46 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/registry.rb
134
   47 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/specialized.rb
135
   48 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/json.rb
136
   49 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/int32.rb
137
   50 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/int64.rb
138
   51 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/integer.rb
139
   52 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/encodable.rb
140
   53 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/array.rb
141
   54 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/binary.rb
142
   55 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/boolean.rb
143
   56 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/code.rb
144
   57 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/code_with_scope.rb
145
   58 /usr/local/lib/ruby/2.2.0/x86_64-darwin14/date_core.bundle
146
   59 /usr/local/lib/ruby/2.2.0/date.rb
147
   60 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/date.rb
148
   61 /usr/local/lib/ruby/2.2.0/time.rb
149
   62 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/date_time.rb
150
   63 /usr/local/lib/ruby/2.2.0/psych/exception.rb
151
   64 /usr/local/lib/ruby/2.2.0/psych/syntax_error.rb
152
   65 /usr/local/lib/ruby/2.2.0/x86_64-darwin14/psych.bundle
153
   66 /usr/local/lib/ruby/2.2.0/psych/omap.rb
154
   67 /usr/local/lib/ruby/2.2.0/psych/set.rb
155
   68 /usr/local/lib/ruby/2.2.0/psych/class_loader.rb
156
   69 /usr/local/lib/ruby/2.2.0/x86_64-darwin14/strscan.bundle
157
   70 /usr/local/lib/ruby/2.2.0/psych/scalar_scanner.rb
158
   71 /usr/local/lib/ruby/2.2.0/psych/nodes/node.rb
159
   72 /usr/local/lib/ruby/2.2.0/psych/nodes/stream.rb
160
   73 /usr/local/lib/ruby/2.2.0/psych/nodes/document.rb
161
   74 /usr/local/lib/ruby/2.2.0/psych/nodes/sequence.rb
162
   75 /usr/local/lib/ruby/2.2.0/psych/nodes/scalar.rb
163
   76 /usr/local/lib/ruby/2.2.0/psych/nodes/mapping.rb
164
   77 /usr/local/lib/ruby/2.2.0/psych/nodes/alias.rb
165
   78 /usr/local/lib/ruby/2.2.0/psych/nodes.rb
166
   79 /usr/local/lib/ruby/2.2.0/psych/streaming.rb
167
   80 /usr/local/lib/ruby/2.2.0/psych/visitors/visitor.rb
168
   81 /usr/local/lib/ruby/2.2.0/psych/visitors/to_ruby.rb
169
   82 /usr/local/lib/ruby/2.2.0/psych/visitors/emitter.rb
170
   83 /usr/local/lib/ruby/2.2.0/psych/handler.rb
171
   84 /usr/local/lib/ruby/2.2.0/psych/tree_builder.rb
172
   85 /usr/local/lib/ruby/2.2.0/psych/visitors/yaml_tree.rb
173
   86 /usr/local/lib/ruby/2.2.0/psych/json/ruby_events.rb
174
   87 /usr/local/lib/ruby/2.2.0/psych/visitors/json_tree.rb
175
   88 /usr/local/lib/ruby/2.2.0/psych/visitors/depth_first.rb
176
   89 /usr/local/lib/ruby/2.2.0/psych/visitors.rb
177
   90 /usr/local/lib/ruby/2.2.0/psych/parser.rb
178
   91 /usr/local/lib/ruby/2.2.0/psych/coder.rb
179
   92 /usr/local/lib/ruby/2.2.0/psych/y.rb
180
   93 /usr/local/lib/ruby/2.2.0/psych/core_ext.rb
181
   94 /usr/local/lib/ruby/2.2.0/psych/deprecated.rb
182
   95 /usr/local/lib/ruby/2.2.0/psych/stream.rb
183
   96 /usr/local/lib/ruby/2.2.0/psych/json/yaml_events.rb
184
   97 /usr/local/lib/ruby/2.2.0/psych/json/tree_builder.rb
185
   98 /usr/local/lib/ruby/2.2.0/psych/json/stream.rb
186
   99 /usr/local/lib/ruby/2.2.0/psych/handlers/document_stream.rb
187
  100 /usr/local/lib/ruby/2.2.0/psych.rb
188
  101 /usr/local/lib/ruby/2.2.0/yaml.rb
189
  102 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/document.rb
190
  103 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/false_class.rb
191
  104 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/float.rb
192
  105 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/hash.rb
193
  106 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/max_key.rb
194
  107 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/min_key.rb
195
  108 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/nil_class.rb
196
  109 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/object.rb
197
  110 /usr/local/lib/ruby/2.2.0/x86_64-darwin14/digest.bundle
198
  111 /usr/local/lib/ruby/2.2.0/digest.rb
199
  112 /usr/local/lib/ruby/2.2.0/x86_64-darwin14/digest/md5.bundle
200
  113 /usr/local/lib/ruby/2.2.0/x86_64-darwin14/socket.bundle
201
  114 /usr/local/lib/ruby/2.2.0/socket.rb
202
  115 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/object_id.rb
203
  116 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/regexp.rb
204
  117 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/string.rb
205
  118 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/symbol.rb
206
  119 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/time.rb
207
  120 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/timestamp.rb
208
  121 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/true_class.rb
209
  122 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/undefined.rb
210
  123 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson/version.rb
211
  124 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/native.bundle
212
  125 /usr/local/lib/ruby/gems/2.2.0/gems/bson-3.0.2/lib/bson.rb
213

    
214
[NOTE]
215
You may have encountered a bug in the Ruby interpreter or extension libraries.
216
Bug reports are welcome.
217
Don't forget to include the above Crash Report log file.
218
For details: http://www.ruby-lang.org/bugreport.html
219

    
220
Abort trap: 6