This project is closed and read-only.
Bug #3777
closedSEGV with profile.rb
Description
=begin
Hi,
I had SEGV with no backtace
% cat /tmp/a.rb
require 'profile'
class A
include Enumerable
def each
[1,2,3].each {|x| yield x }
#yield 1
end
end
a = A.new
a.any? {
true
}
% ruby /tmp/a.rb
[BUG] Segmentation fault
ruby 1.9.3dev (2010-08-31 trunk 29154) [x86_64-darwin10.4.0]
-- control frame ----------¶
-- C level backtrace information -------------------------------------------
[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
=end
Updated by runpaint (Run Paint Run Run) about 16 years ago
=begin
Presumably this is the same as #3722? Reproduced with ruby 1.9.3dev (2010-08-31 trunk 29150) [i686-linux]:
#0 0x0814c30e in rb_iterate (it_proc=0x815d470 <iterate_method>, data1=3221220000, bl_proc=0x8198d50 <any_iter_i>, data2=3221220076) at vm_eval.c:873
#1 0x0814c37f in rb_block_call (obj=136544720, mid=424, argc=0, argv=0x0, bl_proc=0x8198d50 <any_iter_i>, data2=3221220076) at vm_eval.c:933
#2 0x08197bdf in enum_any (obj=136544720) at enum.c:983
#3 0x0814ffa8 in vm_call_cfunc (th=, cfp=0xb7fa3f84, num=0, blockptr=0xb7fa3f98, flag=0, id=1639, me=0x825ed68, recv=136544720) at vm_insnhelper.c:402
#4 vm_call_method (th=, cfp=0xb7fa3f84, num=0, blockptr=0xb7fa3f98, flag=0, id=1639, me=0x825ed68, recv=136544720) at vm_insnhelper.c:524
#5 0x08152358 in vm_exec_core (th=, initial=) at insns.def:1006
#6 0x08155d3e in vm_exec (th=) at vm.c:1145
#7 0x0815611e in rb_iseq_eval_main (iseqval=136563480) at vm.c:1386
#8 0x0805b0e2 in ruby_exec_internal (n=) at eval.c:214
#9 0x0805c992 in ruby_exec_node (n=0x823cb18) at eval.c:261
#10 ruby_run_node (n=0x823cb18) at eval.c:254
#11 0x0805a31a in main (argc=2, argv=0xbfffefe4) at main.c:35
=end
Updated by usa (Usaku NAKAMURA) about 16 years ago
- Status changed from Open to Closed
=begin
same with #3722, and fixed at r29155.
=end