views:

36

answers:

1

So I'm trying to get some ruby code a friend of mine wrote running on my laptop, but it segfaults every time I fire it up. After a little debugging, it looks like FXRuby is the culprit, and the behavior is trivially reproducible by typing require 'fox16' in to irb. I'm running OS X and my friend runs Linux, but anecdotally this code works fine on other OS X boxes, too. Google hasn't turned up anything useful, nor has a superficial look at the code -- anybody got any pointers before I get down to serious spelunking?

For reference, here are some potentially relevant versions and the actual error displayed:

jhyland@dhcp178: ~ $ uname -a
Darwin dhcp178.dev.atl.damballa 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386 i386 i386

jhyland@dhcp178: ~ $ ruby -v
ruby 1.8.7 (2010-01-10 patchlevel 249) [i686-darwin10.2.0]

jhyland@dhcp178: ~ $ gem list -d fxruby

*** LOCAL GEMS ***

fxruby (1.6.20)
    Platform: universal-darwin-10
    Author: Lyle Johnson
    Rubyforge: http://rubyforge.org/projects/fxruby
    Homepage: http://www.fxruby.org/
    Installed at: /usr/local/lib/ruby/gems/1.8

    FXRuby is the Ruby binding to the FOX GUI toolkit.

jhyland@dhcp178: ~ $ irb
>> require 'fox16'
/usr/local/lib/ruby/gems/1.8/gems/fxruby-1.6.20-universal-darwin-10/lib/fox16.bundle: [BUG] Segmentation fault
ruby 1.8.7 (2010-01-10 patchlevel 249) [i686-darwin10.2.0]

Abort trap
A: 

This is not much of answer:

I had the same problem after installing rb-fxruby with macports. I tired to intall the gem -v=1.6.19 and no-go.

I then compiled everything from source and installed gem -v=1.6.19; it works so far.

josh bowles