#53 Version request error

closed-fixed
5
2009-10-15
2009-08-11
No

I have just installed the v1.0.0 on two machines. Both installs were successful.
On my MacBook I get the following expected result:
$ irb
>> require 'osx/cocoa'
=> true
>> OSX::RUBYCOCOA_VERSION
=> "1.0.0'

On my iMac, the following happens:
$ irb
>> require 'osx/cocoa'
/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_wrapper.rb:50: [BUG] Segmentation fault
ruby 1.8.6 (2008-08-11) [universal-darwin9.0]
Abort trap
$
I have run a couple of apps successfully but thought you ought to be aware.
Both computers are running OSX v10.5.8 and both are running ruby 1.8.6 (2008-08-11) [universal-darwin9.0], as provided by the OS.
If you would like me to do any investigation, please advise.
regards, Martin Hawkins

Discussion

  • kimura wataru

    kimura wataru - 2009-08-13
    • assigned_to: nobody --> kimuraw
    • status: open --> open-accepted
     
  • kimura wataru

    kimura wataru - 2009-08-13

    RubyCocoa from the installer is built for MacOSX built-in ruby (/usr/bin/ruby).

    irb/ruby of your iMac may not be MacOSX built-in ruby.
    Please tell me the output of the following commands on your iMac.

    $ which ruby
    $ DYLD_PRINT_LIBRARIES=1 ruby -rosx/cocoa -e '' 2>&1 | grep -i ruby
    $ PATH=/usr/bin DYLD_PRINT_LIBRARIES=1 ruby -rosx/cocoa -e '' 2>&1 | grep -i ruby

     
  • Martin Hawkins

    Martin Hawkins - 2009-08-13

    Output from iMac as follows:
    $ which ruby
    /usr/bin/ruby

    $ DYLD_PRINT_LIBRARIES=1 ruby -rosx/cocoa -e '' 2>&1 | grep -i ruby
    dyld: loaded: /usr/bin/ruby
    dyld: loaded: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/libruby.1.dylib
    dyld: loaded: /Library/Ruby/Site/1.8/universal-darwin9.0/rubycocoa.bundle
    dyld: loaded: /Library/Frameworks/RubyCocoa.framework/Versions/A/RubyCocoa
    dyld: loaded: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/nkf.bundle

    $ PATH=/usr/bin DYLD_PRINT_LIBRARIES=1 ruby -rosx/cocoa -e '' 2>&1 | grep -i ruby
    dyld: loaded: /usr/bin/ruby
    dyld: loaded: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/libruby.1.dylib
    dyld: loaded: /Library/Ruby/Site/1.8/universal-darwin9.0/rubycocoa.bundle
    dyld: loaded: /Library/Frameworks/RubyCocoa.framework/Versions/A/RubyCocoa
    dyld: loaded: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/nkf.bundledyld: loaded: /usr/bin/ruby
    dyld: loaded: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/libruby.1.dylib
    dyld: loaded: /Library/Ruby/Site/1.8/universal-darwin9.0/rubycocoa.bundle
    dyld: loaded: /Library/Frameworks/RubyCocoa.framework/Versions/A/RubyCocoa
    dyld: loaded: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/nkf.bundle

    Output from MacBook exactly the same.

     
  • kimura wataru

    kimura wataru - 2009-08-17

    It looks RubyCocoa installation is success and your iMac's ruby is apple's /usr/bin/ruby.

    Please send me or attach to this ticket the ruby's crash log file.
    Path of the crash log is like ~/Library/Logs/CrashReporter/ruby_*.crash.

     
  • kimura wataru

    kimura wataru - 2009-08-19

    I read your crash log.

    it was strange that some ruby modules (thread.bundle, etc.bundle and syck.bundle) were loaded.
    please try irb without readline and ~/.irbrc, like this:

    % irb --noreadline -f

     
  • Martin Hawkins

    Martin Hawkins - 2009-08-19

    'irb --noreadline -f' tried as suggested. Result exactly the same.

     
  • kimura wataru

    kimura wataru - 2009-08-20

    I found SEGV occurs require 'osx/cocoa' on irb with MacOSX built-in rubygems
    on my MacBook and PowerBook.

    % RUBYOPT=rubygems irb -rosx/cocoa
    # => SEGV

    Please try this on your iMac:

    $ RUBYOPT="" irb
    >> require 'osx/cocoa'

    on your MacBook:

    $ RUBYOPT=rubygems irb
    >> require 'osx/cocoa'
    # will SEGV

     
  • Martin Hawkins

    Martin Hawkins - 2009-08-20

    On the iMac :
    RUBYOPT="" irb
    >> require 'osx/cocoa'
    /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_wrapper.rb:50: [BUG] Segmentation fault
    ruby 1.8.6 (2008-08-11) [universal-darwin9.0]

    Abort trap

    On the MacBook Pro:
    RUBYOPT=rubygems irb
    >> require 'osx/cocoa'
    /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_wrapper.rb:50: [BUG] Segmentation fault
    ruby 1.8.6 (2008-08-11) [universal-darwin9.0]

    Abort trap
    So the MacBook behaved as you expected but not the iMac

     
  • Johan Lundström

    I have this problem too. Macbook Intel, Leopard 10.5.8, OS X's ruby/irb, RubyCocoa 1.0.0 installed (RubyCocoa-1.0.0-OSX10.5universal.dmg). Anything I can help with?

     
  • kimura wataru

    kimura wataru - 2009-10-15

    I received a report this problem does not occurs with RubyCocoa trunk.
    We will release the fixed version of RubyCocoa,

     
  • kimura wataru

    kimura wataru - 2009-10-15
    • status: open-accepted --> closed-fixed
     

Log in to post a comment.