[MacRuby-devel] Stream of Consciousness Testing Log

Pierce T. Wetter III PIERCE at TWINFORCES.COM
Mon Mar 31 12:50:01 PDT 2008


>
Goofing around during lunch, I did the following:


  So my rb_main-mr.rb file had this:

framework 'Cocoa'
framework 'AddressBook'
framework 'CoreData'

I tried changing it to this:

framework 'Cocoa'
framework 'CoreData'
framework 'AddressBook'

and I get the same error, just when loading CoreData instead of  
AddressBook.

Commenting out 'Cocoa' on the theory that is because its loading it  
twice or something that's the problem:

#framework 'Cocoa'
framework 'CoreData'
framework 'AddressBook'


I get a bus error:

/Users/pierce/svnProjects/build/Debug/Frictionless.app/Contents/ 
Resources/Action.rb:8:in `<class:Action>'Program received signal:   
“EXC_BAD_ACCESS”.

(the line of ruby code)
    
@@dueColor 
= 
NSColor 
.redColor.blendedColorWithFraction_ofColor(0.5,NSColor.blackColor)


(the backtrace)

#0  0x0027dc43 in fc_i (key=11709, value=17353872, res=<value  
temporarily unavailable, due to optimizations>) at variable.c:89
#1  0x001efdb8 in foreach_safe_i (key=11709, value=17353872,  
arg=0xbfffea94) at hash.c:117
#2  0x0025e478 in st_foreach (table=0x1015350, func=0x1efd90  
<foreach_safe_i>, arg=3221219988) at st.c:654
#3  0x001efe08 in st_foreach_safe (table=0x5, func=0, a=0) at hash.c:132
#4  0x0027bd26 in find_class_path (klass=24077440) at variable.c:130
#5  0x0027df37 in classname (klass=24077440) at variable.c:169
#6  0x0027e478 in rb_class_path (klass=24077440) at variable.c:191
#7  0x0027e5e2 in rb_class2name (klass=24077440) at variable.c:288
#8  0x0020c76d in rb_any_to_s (obj=24077408) at object.c:304
#9  0x002a0d78 in vm_call0 (th=0x1013c70, klass=16867808,  
recv=24077408, id=784, oid=0, argc=0, argv=0x0, body=0x1017360,  
nosuper=0) at vm.c:457
#10 0x001dcac9 in rb_call0 (klass=16867808, recv=24077408, mid=784,  
argc=0, argv=0x0, scope=3, self=24077408) at eval.c:1468
#11 0x001dcc99 in rb_call (klass=<value temporarily unavailable, due  
to optimizations>, recv=<value temporarily unavailable, due to  
optimizations>, mid=<value temporarily unavailable, due to  
optimizations>, argc=0, argv=0x0, scope=0) at eval.c:1484
#12 0x001dcd2f in rb_funcall (recv=24077408, mid=784, n=0) at eval.c: 
1576
#13 0x0020e790 in rb_obj_inspect (obj=24077408) at object.c:400
#14 0x002a0d78 in vm_call0 (th=0x1013c70, klass=16867808,  
recv=24077408, id=792, oid=0, argc=0, argv=0x0, body=0x1017440,  
nosuper=0) at vm.c:457
#15 0x001dcac9 in rb_call0 (klass=16867808, recv=24077408, mid=792,  
argc=0, argv=0x0, scope=3, self=24079552) at eval.c:1468
#16 0x001dcc99 in rb_call (klass=<value temporarily unavailable, due  
to optimizations>, recv=<value temporarily unavailable, due to  
optimizations>, mid=<value temporarily unavailable, due to  
optimizations>, argc=0, argv=0x0, scope=0) at eval.c:1484
#17 0x001dcd2f in rb_funcall (recv=24077408, mid=792, n=0) at eval.c: 
1576
#18 0x0020c812 in rb_inspect (obj=0) at object.c:316
#19 0x001da1d2 in rb_protect (proc=0x20c7e0 <rb_inspect>,  
data=24077408, state=0x0) at eval.c:1187
#20 0x001d83ba in name_err_mesg_to_str (obj=24077408) at error.c:770
#21 0x002a0d78 in vm_call0 (th=0x1013c70, klass=16983728,  
recv=24079552, id=3264, oid=0, argc=0, argv=0x0, body=0x10329b0,  
nosuper=0) at vm.c:457
#22 0x001dcac9 in rb_call0 (klass=16983728, recv=24079552, mid=3264,  
argc=0, argv=0x0, scope=3, self=24079632) at eval.c:1468
#23 0x001dcc99 in rb_call (klass=<value temporarily unavailable, due  
to optimizations>, recv=<value temporarily unavailable, due to  
optimizations>, mid=<value temporarily unavailable, due to  
optimizations>, argc=0, argv=0x0, scope=0) at eval.c:1484
#24 0x001dce1b in rb_funcall (recv=24079552, mid=3264, n=0) at eval.c: 
1576
#25 0x0020d7fc in convert_type (val=24079552, tname=0x2b870d "String",  
method=<value temporarily unavailable, due to optimizations>, raise=2)  
at object.c:1932
#26 0x0020e139 in rb_type [inlined] () at ruby.h:1941
#27 rb_convert_type (val=24079552, type=7, tname=0x2b870d "String",  
method=0x2bb244 "to_str") at object.c:1942
#28 0x0025f7c4 in rb_str_to_str (str=0) at string.c:587
#29 0x002652d8 in rb_string_value (ptr=0xcc0) at string.c:1045
#30 0x001d8c61 in name_err_to_s (exc=24079632) at error.c:679
#31 0x002a0d78 in vm_call0 (th=0x1013c70, klass=16982896,  
recv=24079632, id=784, oid=0, argc=0, argv=0x0, body=0x1032650,  
nosuper=0) at vm.c:457
#32 0x001dcac9 in rb_call0 (klass=16982896, recv=24079632, mid=784,  
argc=0, argv=0x0, scope=3, self=24079632) at eval.c:1468
#33 0x001dcc99 in rb_call (klass=<value temporarily unavailable, due  
to optimizations>, recv=<value temporarily unavailable, due to  
optimizations>, mid=<value temporarily unavailable, due to  
optimizations>, argc=0, argv=0x0, scope=0) at eval.c:1484
#34 0x001dce1b in rb_funcall (recv=24079632, mid=784, n=0) at eval.c: 
1576
#35 0x001d6380 in exc_message (exc=0) at error.c:433
#36 0x002a0d78 in vm_call0 (th=0x1013c70, klass=16971216,  
recv=24079632, id=3816, oid=0, argc=0, argv=0x0, body=0x102fa30,  
nosuper=0) at vm.c:457
#37 0x001dcac9 in rb_call0 (klass=16971216, recv=24079632, mid=3816,  
argc=0, argv=0x0, scope=3, self=4) at eval.c:1468
#38 0x001dcc99 in rb_call (klass=<value temporarily unavailable, due  
to optimizations>, recv=<value temporarily unavailable, due to  
optimizations>, mid=<value temporarily unavailable, due to  
optimizations>, argc=0, argv=0x0, scope=0) at eval.c:1484
#39 0x001dce1b in rb_funcall (recv=24079632, mid=3816, n=0) at eval.c: 
1576
#40 0x001de4d7 in error_print () at eval_error.c:132
#41 0x001debb8 in error_handle (ex=<value temporarily unavailable, due  
to optimizations>) at eval_error.c:282
#42 0x001def60 in ruby_cleanup (ex=6) at eval.c:184
#43 0x002aa8cb in macruby_main (path=0x31474 "rb_main-mr.rb", argc=3,  
argv=0x40f0b0) at objc.m:2753
#44 0x00002561 in main (argc=1, argv=0xbffff790) at /Users/pierce/ 
svnProjects/Frictionless/RubyFrictionless/main-mr.m:13





More information about the MacRuby-devel mailing list