Bug #3777: SEGV with profile.rb
http://redmine.ruby-lang.org/issues/show/3777
Author: Shota Fukumori
Status: Open, Priority: Normal
ruby -v: ruby 1.9.3dev (2010-08-31 trunk 29154) [x86_64-darwin10.4.0]
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
on 2010-09-01 05:59
on 2010-09-01 06:33
Issue #3777 has been updated by Run Paint Run Run. 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=<value optimised out>, cfp=0xb7fa3f84, num=0, blockptr=0xb7fa3f98, flag=0, id=1639, me=0x825ed68, recv=136544720) at vm_insnhelper.c:402 #4 vm_call_method (th=<value optimised out>, 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=<value optimised out>, initial=<value optimised out>) at insns.def:1006 #6 0x08155d3e in vm_exec (th=<value optimised out>) at vm.c:1145 #7 0x0815611e in rb_iseq_eval_main (iseqval=136563480) at vm.c:1386 #8 0x0805b0e2 in ruby_exec_internal (n=<value optimised out>) 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 ---------------------------------------- http://redmine.ruby-lang.org/issues/show/3777
on 2010-09-01 06:38
Issue #3777 has been updated by Usaku NAKAMURA. Status changed from Open to Closed same with #3722, and fixed at r29155. ---------------------------------------- http://redmine.ruby-lang.org/issues/show/3777
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.