Actions
Bug #2282
closed[BUG] Bus Error --- ruby 1.9.1p243
Status:
Closed
Assignee:
-
ruby -v:
ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-darwin9]
Description
=begin
This script crashes¶
class NiceArray < Array
def delete(*args)
super(*args)
end
end
class BuggyArray < Array
define_method :delete do |*args|
super(*args)
end
end
a= NiceArray.new
a.delete(1)
b= BuggyArray.new
b.delete(1)
=>¶
untitled:9: [BUG] Bus Error¶
ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-darwin9]¶
-- control frame ----------¶
c:0006 p:---- s:0017 b:0017 l:000016 d:000016 CFUNC :delete¶
c:0005 p:0011 s:0013 b:0013 l:000754 d:000012 LAMBDA untitled:9¶
c:0004 p:---- s:0010 b:0010 l:000009 d:000009 FINISH¶
c:0003 p:0095 s:0008 b:0008 l:001ae4 d:00040c EVAL untitled:18¶
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH¶
c:0001 p:0000 s:0002 b:0002 l:001ae4 d:001ae4 TOP¶
---------------------------¶
-- Ruby level backtrace information-----------------------------------------¶
untitled:9:in `delete'¶
untitled:9:in `block in class:BuggyArray'¶
untitled:18:in `'¶
-- C level backtrace information -------------------------------------------¶
0x2fb8e2 0 libruby1.9.dylib 0x002fb8e2 rb_vm_bugreport + 82¶
0x2105bc 1 libruby1.9.dylib 0x002105bc rb_warning + 444¶
0x21061b 2 libruby1.9.dylib 0x0021061b rb_bug + 43¶
0x2a1e0b 3 libruby1.9.dylib 0x002a1e0b rb_enable_interrupt + 75¶
0x902302bb 4 libSystem.B.dylib 0x902302bb _sigtramp + 43¶
0xffffffff 5 ??? 0xffffffff 0x0 + 4294967295¶
0x2eb119 6 libruby1.9.dylib 0x002eb119 rb_make_backtrace + 425¶
0x2ebc7a 7 libruby1.9.dylib 0x002ebc7a rb_raise_method_missing + 922¶
0x2f0eb5 8 libruby1.9.dylib 0x002f0eb5 rb_raise_method_missing + 21973¶
0x2f359b 9 libruby1.9.dylib 0x002f359b rb_raise_method_missing + 31931¶
0x2f3b4b 10 libruby1.9.dylib 0x002f3b4b rb_vm_invoke_proc + 619¶
0x2ebd02 11 libruby1.9.dylib 0x002ebd02 rb_raise_method_missing + 1058¶
0x2ee29b 12 libruby1.9.dylib 0x002ee29b rb_raise_method_missing + 10683¶
0x2f359b 13 libruby1.9.dylib 0x002f359b rb_raise_method_missing + 31931¶
0x2f374f 14 libruby1.9.dylib 0x002f374f rb_iseq_eval_main + 159¶
0x213719 15 libruby1.9.dylib 0x00213719 ruby_exec_node + 169¶
0x215c9e 16 libruby1.9.dylib 0x00215c9e ruby_run_node + 94¶
0x1fef 17 ruby1.9 0x00001fef main + 95¶
0x1f56 18 ruby1.9 0x00001f56 start + 54¶
[NOTE]¶
You may encounter a bug of Ruby interpreter. Bug reports are welcome.¶
For details: http://www.ruby-lang.org/bugreport.html
=end
Actions
Like0
Like0