[MacRuby] #991: Regression bug when trying to create an array using arrayWithObjects

MacRuby ruby-noreply at macosforge.org
Sun Nov 7 11:45:59 PST 2010


#991: Regression bug when trying to create an array using arrayWithObjects
-------------------------------------+--------------------------------------
 Reporter:  mattaimonetti@…          |       Owner:  lsansonetti@…        
     Type:  defect                   |      Status:  new                  
 Priority:  blocker                  |   Milestone:  MacRuby 0.8          
Component:  MacRuby                  |    Keywords:                       
-------------------------------------+--------------------------------------
 {{{
 NSArray.arrayWithObjects('so', 'say', 'we', 'all', nil)
 }}}

 {{{
 NSMutableArray.arrayWithObjects('so', 'say', 'we', 'all', nil)
 }}}

 Here is the stack trace:

 {{{
 Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
 Exception Codes: KERN_INVALID_ADDRESS at 0x000000000000000e
 Crashed Thread:  0  Dispatch queue: com.apple.main-thread

 Application Specific Information:
 objc[90559]: garbage collection is ON

 Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
 0   com.apple.CoreFoundation            0x00007fff86579f84
 __CFTypeCollectionRetain + 84
 1   com.apple.CoreFoundation            0x00007fff86579b32 CFArrayCreate +
 242
 2   com.apple.CoreFoundation            0x00007fff865cefa6
 -[__NSPlaceholderArray initWithObjects:count:] + 486
 3   com.apple.CoreFoundation            0x00007fff865d0b21 +[NSArray
 arrayWithObjects:] + 465
 4   ???                                 0x0000000102d5a876 0 + 4342524022
 5   libmacruby.dylib                    0x0000000100145013 rb_vm_dispatch
 + 1331
 6   ???                                 0x0000000102d5a41c 0 + 4342522908
 7   ???                                 0x0000000102d5a0f5 0 + 4342522101
 8   libmacruby.dylib                    0x000000010015e013 rb_vm_run + 531
 9   libmacruby.dylib                    0x0000000100041040 ruby_run_node +
 80
 10  macruby                             0x0000000100000d28 main + 152
 11  macruby                             0x0000000100000c88 start + 52

 Thread 1:  Dispatch queue: com.apple.libdispatch-manager
 0   libSystem.B.dylib                   0x00007fff87e4c08a kevent + 10
 1   libSystem.B.dylib                   0x00007fff87e4df5d
 _dispatch_mgr_invoke + 154
 2   libSystem.B.dylib                   0x00007fff87e4dc34
 _dispatch_queue_invoke + 185
 3   libSystem.B.dylib                   0x00007fff87e4d75e
 _dispatch_worker_thread2 + 252
 4   libSystem.B.dylib                   0x00007fff87e4d088
 _pthread_wqthread + 353
 5   libSystem.B.dylib                   0x00007fff87e4cf25 start_wqthread
 + 13

 Thread 2:
 0   libSystem.B.dylib                   0x00007fff87e4ceaa
 __workq_kernreturn + 10
 1   libSystem.B.dylib                   0x00007fff87e4d2bc
 _pthread_wqthread + 917
 2   libSystem.B.dylib                   0x00007fff87e4cf25 start_wqthread
 + 13

 Thread 3:
 0   libSystem.B.dylib                   0x00007fff87e4ceaa
 __workq_kernreturn + 10
 1   libSystem.B.dylib                   0x00007fff87e4d2bc
 _pthread_wqthread + 917
 2   libSystem.B.dylib                   0x00007fff87e4cf25 start_wqthread
 + 13

 Thread 0 crashed with X86 Thread State (64-bit):
   rax: 0x00007fff70d65280  rbx: 0x0000000000000005  rcx:
 0x0000000000000000  rdx: 0x00007fff70d650a0
   rdi: 0x00007fff70d96f20  rsi: 0x0000000000000005  rbp:
 0x00007fff5fbfdd80  rsp: 0x00007fff5fbfdd70
    r8: 0x0000000100d002d0   r9: 0x0000000000000000  r10:
 0x0000000000000001  r11: 0x0000000100bc5000
   r12: 0x000000000000000d  r13: 0x00007fff5fbfde38  r14:
 0x0000000000000003  r15: 0x00007fff70d96f20
   rip: 0x00007fff86579f84  rfl: 0x0000000000010246  cr2:
 0x000000000000000e

 Binary Images:
        0x100000000 -        0x100000ff7 +macruby ??? (???)
 <4F6FD196-A580-58BD-7894-5F37ACDB5851> /usr/local/bin/macruby
        0x100003000 -        0x100b00f3f +libmacruby.dylib 0.8.0
 (compatibility 0.8.0) <DE833083-E5A0-C890-7F28-4D84D547579E>
 /Library/Frameworks/MacRuby.framework/Versions/0.8/usr/lib/libmacruby.dylib
     0x7fff5fc00000 -     0x7fff5fc3bdef  dyld 132.1 (???) <B536F2F1-9DF1
 -3B6C-1C2C-9075EA219A06> /usr/lib/dyld
     0x7fff80042000 -     0x7fff800d2fff  com.apple.SearchKit 1.3.0 (1.3.0)
 <4175DC31-1506-228A-08FD-C704AC9DF642> /System/Library/
 }}}

 The above examples used to work and were reported broken by one of my
 book's readers using v0.7. I was able to reproduce with 0.8

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/991>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list