From: Victor Shepelev Date: 2006-05-07T14:47:22+09:00 Subject: Re: Strange Proc#call problems with profile > From: Mauricio Julio Fernandez Pradier [mailto:ferferse@telefonica.net] > Sent: Saturday, May 06, 2006 1:33 PM > On Sat, May 06, 2006 at 01:01:03PM +0900, Victor Shepelev wrote: > > After transition from ruby1.8.2 => ruby1.9 I have the following problem: > > > > -- > > require 'profile' > > > > l = lambda{|x| x} > > l.call([1,2,3]) #<== error goes here > > -- > > > > test_profile.rb:4:in `Proc#call': wrong argument type nil (expected > Data) > > (TypeError) > > > > If I comment out "require profile", all works without errors. > > Looks like a bug in 1.9; I'm forwarding that to ruby-core: > > $ cat bug2.rb > set_trace_func proc{} > l = lambda{} > l.call > $ ruby19 bug2.rb > bug2.rb:3: [BUG] Segmentation fault > ruby 1.9.0 (2006-05-01) [i686-linux] > > Aborted Aha. Thanks. Can someone advice me on temporary workaround? > Mauricio Fernandez - http://eigenclass.org - singular Ruby Victor.