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

Joshua Ballanco jballanc at gmail.com
Wed Nov 14 10:10:56 PST 2012


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
> 
> 


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


More information about the MacRuby-devel mailing list