[MacRuby-devel] BridgeSupport crash

Laurent Sansonetti lsansonetti at apple.com
Fri Apr 15 20:32:19 PDT 2011


I can't seem to be able to reproduce the crash. I built a sample MacRuby project (DotView), ran macruby_deploy --bs --embed on it, verified that both MacRuby.framework and the BridgeSupport files were included, then I renamed all BridgeSupport directories on my system (to make sure MacRuby won't load them), ran the app through gdb, and verified that the BridgeSupport files were loaded from inside the app bundle (and also, that the app ran fine without crashing).

Looking at your backtrace, it seems that MacRuby is crashing when loading the BridgeSupport of a framework that you embedded in your app. Do you have any framework (other than MacRuby) inside your app? If yes, did you generate a BridgeSupport file for it?

Also, it would be interesting if you could reduce the problem to a sample .app that you can give me.

Laurent

On Apr 15, 2011, at 8:16 PM, Laurent Sansonetti wrote:

> Hi Nathaniel,
> 
> This is likely the same problem as http://www.macruby.org/trac/ticket/1217. I'll have a look, hopefully I should be able to get a fix this week-end.
> 
> Laurent
> 
> On Apr 15, 2011, at 8:58 AM, Nathaniel Talbott wrote:
> 
>> I have a MacRuby app that's working great on my local box, but when I
>> put it on another box it crashes hard. Here's the relevant thread
>> crash info:
>> 
>> Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
>> Exception Codes: KERN_INVALID_ADDRESS at 0x00000000ffffffff
>> Crashed Thread:  0  Dispatch queue: com.apple.main-thread
>> 
>> Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
>> 0   libmacruby.1.9.2.dylib        	0x000000010010c4b1
>> rb_vm_resolve_const_value + 1537
>> 1   libmacruby.1.9.2.dylib        	0x00000001000f52f6
>> rb_objc_load_loaded_frameworks_bridgesupport + 374
>> 2   libmacruby.1.9.2.dylib        	0x0000000100157f0a macruby_main + 362
>> 3   com.terralien.Elephant        	0x000000010000142f 0x100000000 + 5167
>> 4   com.terralien.Elephant        	0x00000001000013f4 0x100000000 + 5108
>> 
>> The app runs fine on my own box, and the only difference I can figure
>> between them is that I've installed BridgeSupport preview3, but the
>> box it's crashing on hasn't. I'm doing a macruby_deploy --bs and have
>> verified that the BridgeSupport files are being copied into the right
>> spot in the .app file.
>> 
>> Any ideas what might be wrong and/or how I can debug further?
>> 
>> 
>> -- 
>> Nathaniel Talbott
>> <:((><
>> _______________________________________________
>> MacRuby-devel mailing list
>> MacRuby-devel at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
> 
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel



More information about the MacRuby-devel mailing list