[MacRuby-devel] [MacRuby] #658: Including a module into Hash breaks creating an NSDictionary from a hash

MacRuby ruby-noreply at macosforge.org
Mon Apr 19 10:52:37 PDT 2010


#658: Including a module into Hash breaks creating an NSDictionary from a hash
-------------------------------------+--------------------------------------
 Reporter:  eloy.de.enige@…          |       Owner:  lsansonetti@…        
     Type:  defect                   |      Status:  new                  
 Priority:  blocker                  |   Milestone:                       
Component:  MacRuby                  |    Keywords:                       
-------------------------------------+--------------------------------------
Description changed by martinlagardette@…:

Old description:

> {{{
> $ macruby -e "module H; end; class Hash; include H; end; p
> NSDictionary.dictionaryWithDictionary('foo' => true)"
>
> unknown: [BUG] Segmentation fault
> MacRuby version 0.6 (ruby 1.9.0) [universal-darwin10.0, x86_64]
> }}}

New description:

 {{{
 $ macruby -e "module H; end; class Hash; include H; end; p
 NSDictionary.dictionaryWithDictionary('foo' => true)"

 unknown: [BUG] Segmentation fault
 MacRuby version 0.6 (ruby 1.9.0) [universal-darwin10.0, x86_64]
 }}}

 Stack trace
 {{{
 Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
 0   libSystem.B.dylib                   0x00007fff8773f886 __kill + 10
 1   libSystem.B.dylib                   0x00007fff877dfeae abort + 83
 2   libmacruby.dylib                    0x000000010004372d rb_bug + 205
 (error.c:229)
 3   libmacruby.dylib                    0x00000001000bee40 sigbus + 0
 (signal.c:378)
 4   libSystem.B.dylib                   0x00007fff8775180a _sigtramp + 26
 5   com.apple.CoreFoundation            0x00007fff80ff0490
 CFBasicHashGetCount + 64
 6   com.apple.Foundation                0x00007fff8293ae1b
 -[NSCFDictionary getObjects:andKeys:] + 34
 7   libmacruby.dylib                    0x0000000100179608
 nshash_getObjectsAndKeys + 72 (NSDictionary.m:560)
 8   com.apple.CoreFoundation            0x00007fff810455eb -[NSDictionary
 initWithDictionary:copyItems:] + 219
 9   com.apple.CoreFoundation            0x00007fff810454cb +[NSDictionary
 dictionaryWithDictionary:] + 43
 10  ???                                 0x0000000101100425 0 + 4312794149
 11  libmacruby.dylib                    0x000000010014bd30 rb_vm_dispatch
 + 3184 (dispatcher.cpp:449)
 12  ???                                 0x00000001011001a9 0 + 4312793513
 13  libmacruby.dylib                    0x00000001001607df rb_vm_run + 351
 (vm.cpp:3967)
 14  libmacruby.dylib                    0x0000000100045799 ruby_run_node +
 73 (eval.c:201)
 15  macruby                             0x0000000100000d28 main + 152
 (main.cpp:40)
 16  macruby                             0x0000000100000c88 start + 52
 }}}

--

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/658#comment:1>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list