[MacRuby-devel] Core Dump When Importing 3rd Party gems

J Silver jsilverman2 at gmail.com
Wed Nov 14 11:05:57 PST 2012


Not sure if this will fix, but I see you are running 0.12. That's way 
old. You should upgrade to nightly latest 0.13. Still, don't hear many 
reports of C extensions working beyond the initial Nokogiri, so this is 
something I too would like to see fixed.

Thanks,
jsilver


On 14/11/2012 10:10, Joshua Ballanco wrote:
> Hi Jason,
>
> The gems you reference include C extensions, which are *mostly* 
> supported by MacRuby, but there are bound to be a few bugs. Do you 
> have crash logs for these failures? If so, would you mind filing a 
> Github issue with the crash logs attached (or linked as a Gist)?
>
> Thanks,
>
> Josh
>
> On Sunday, October 28, 2012 at 10:22 AM, Templeton Jason wrote:
>
>> I've been having some problems importing 3rd party gems.
>>
>> Basically, this is what happens
>>
>> #!/usr/local/bin/macruby
>> framework 'Foundation'
>> framework 'ScriptingBridge'
>> framework 'cocoa'
>>
>> puts "Hola"
>> require "rubygems"
>> puts "Imported rubygems"
>> require "mechanize"
>> puts "Imported mechanize..."
>>
>> I will get a Segmentation Fault when I import mechanize, this also 
>> happens if I replace the import of mechanize with 'nokogiri'. I can 
>> import sqlite3, but I just can't refer to SQLite3::Database.new, 
>> otherwise, I get another Segmentation Fault
>>
>> In other words, I will see from the above code:
>> Hola
>> Imported rubygems
>> Segmentation fault
>>
>> This is my setup
>> [ jtempleton macruby_client(master) 01:11 ] macruby -v
>> MacRuby 0.12 (ruby 1.9.2) [universal-darwin10.0, x86_64]
>>
>> Mac Version 10.6.8, 2Ghz Core i7, 8GB RAM
>> $ macgem list
>>
>> ** LOCAL GEMS **
>> -----
>> mechanize (2.5.1)
>> nokogiri (1.5.2, 1.5.0, 1.4.3.1)
>> sqlite3 (1.3.5)
>> sqlite3-ruby (1.3.3)
>> ------
>>
>> I was also having the same thing occur on macRuby 0.11
>>
>> Any suggestions would be greatly appreciated. Thank you!!!
>>
>> Jason
>>
>> _______________________________________________
>> MacRuby-devel mailing list
>> MacRuby-devel at lists.macosforge.org 
>> <mailto:MacRuby-devel at lists.macosforge.org>
>> http://lists.macosforge.org/mailman/listinfo/macruby-devel
>
>
>
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo/macruby-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20121114/d057b1cb/attachment-0001.html>


More information about the MacRuby-devel mailing list