[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Module loading bus errors on mac (Ruby-ODBC

james.adam

5/13/2005 1:38:00 PM

Hi all,

Got a bit of a problem with a couple of C extensions, and to be more
specific bus errors upon requiring them in certain circumstances. I've
described the problem in relation to OpenGL/GLUT in a previous message
(http://www.ruby-talk.org/cgi-bin/scat.rb/ruby/ruby-t...), but
to recap, if I compile ruby-odbc as per instructions (see codepaste:
http://rafb.net/paste/results/Jp5...), I get the following weird
results:

--- begin listing ---

apple:/usr/local/src/ruby-odbc-0.996 jamesa$ irb
irb(main):001:0> require 'odbc'
=> true
irb(main):002:0> exit
apple:/usr/local/src/ruby-odbc-0.996 jamesa$ irb -r odbc
../odbc.bundle: [BUG] Bus Error
ruby 1.8.2 (2004-12-25) [powerpc-darwin8.0.0]

Abort trap

--- end listing ---

Does anyone have ANY ideas what's going on here? For those of you that
might be Mac-compilation-literate, using GDB I can see that the load
error is happening with NSLinkModule() (see codepaste:
http://rafb.net/paste/results/1Yw...), I thought that perhaps
the Objective-C stuff wasn't getting properly initialised, but linking
in the Foundation framework didn't do much to help at all.

Please help!

- James Adam

1 Answer

james.adam

5/13/2005 1:48:00 PM

0

As another curiousity, running "ruby -r odbc" works fine. This is just
plain weird... Please, anyone with any ideas, let me know...