From: Marc-Andre Lafortune Date: 2010-01-30T06:58:25+09:00 Subject: [ruby-core:27959] Re: [Bug #2330] Non systematic segmentation fault with autoload rubyspec 1) The minimal test case I wonder why I didn't copy-paste my actual original code. In any case, the bug happens if the instance method #load is redefined in any way (and not the module method, as in my posted example). Thus the file 'load.rb' should read: module Kernel def load end end generate_any_exception I'm very sorry about the confusion. 2) Switch of binary versions. The Snow Leopard compiled binary will not run on Leopard at all. I get: dyld: unknown required load command 0x80000022 The Leopard compiled binary runs (of course) on Snow Leopard, and will also segfault (most of the time, in the same way as the binary compiled on snow leopard) $ rubydev load_test.rb test.rb:5: [BUG] Bus Error ruby 1.9.2dev (2010-01-29 trunk 26470) [i386-darwin9.8.0] Let me know what additional tests I can do to help pinpoint the issue. On Thu, Jan 28, 2010 at 6:00 AM, Marc-Andre Lafortune wrote: > Argh... I can't reproduce my minimal case scenario anymore. Maybe > because I had played with the compile options so I could use gdb > correctly? > > The rubyspec still crashes, though, so I'll try again to find a > smaller test scenario, although I'll be away in the next weeks. > > When I come back I'll also look some more for my Leopard DVD which I > can't locate right now and see what I can do. > > On Sat, Jan 23, 2010 at 1:27 PM, Nobuyoshi Nakada wrote: >> Hi, >> >> At Sun, 27 Dec 2009 17:00:43 +0900, >> Marc-Andre Lafortune wrote in [ruby-core:27335]: >>> $ rubydev load_test.rb >>> test.rb:3: [BUG] Segmentation fault >>> ruby 1.9.2dev (2009-12-27 trunk 26184) [x86_64-darwin10.2.0] >> >> It doesn't reproduce on darwin9.8.0. �Maybe gcc version >> dependent? >> >> Does the binary compiled on darwin10 segfault on darwin9, or >> vice versa? >> >> -- >> Nobu Nakada >> >> > >