public
Last active

Crashes Ruby 2.00-p0 and 2.00p195

  • Download Gist
bug.rb
Ruby
1 2 3 4 5 6 7
class Foo
attr_accessor :text # attribute name doesn't matter.
end
 
f = Foo.new
f.send "text=" # crashes
f.send "text=", 'bar' # works
crash_log.crash
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
Process: ruby [62848]
Path: /Users/USER/*/ruby
Identifier: ruby
Version: 0
Code Type: X86-64 (Native)
Parent Process: bash [23975]
User ID: 501
 
Date/Time: 2013-06-18 09:11:23.842 -0400
OS Version: Mac OS X 10.8.2 (12C60)
Report Version: 10
 
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
 
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
 
Application Specific Information:
abort() called
 
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff870aa212 __pthread_kill + 10
1 libsystem_c.dylib 0x00007fff88e7caf4 pthread_kill + 90
2 libsystem_c.dylib 0x00007fff88ec0dce abort + 143
3 ruby 0x000000010679f3e4 rb_bug + 212
4 ruby 0x00000001068f07d5 vm_exec_core + 30917
5 ruby 0x00000001068f2581 vm_exec + 2705
6 ruby 0x00000001068f2a55 rb_iseq_eval_main + 357
7 ruby 0x00000001067a5f42 ruby_exec_internal + 178
8 ruby 0x00000001067a84ac ruby_run_node + 60
9 ruby 0x000000010675de9f main + 79
10 libdyld.dylib 0x00007fff8b3257e1 start + 1
 
Thread 1:
0 libsystem_kernel.dylib 0x00007fff870aaf96 poll + 10
1 ruby 0x0000000106910637 thread_timer + 503
2 libsystem_c.dylib 0x00007fff88e7b742 _pthread_start + 327
3 libsystem_c.dylib 0x00007fff88e68181 thread_start + 13
 
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000000000006 rcx: 0x00007fff594a21d8 rdx: 0x0000000000000000
rdi: 0x0000000000000f1b rsi: 0x0000000000000006 rbp: 0x00007fff594a2200 rsp: 0x00007fff594a21d8
r8: 0x00007fff773be278 r9: 0x00007fff594a2060 r10: 0x0000000020000000 r11: 0x0000000000000206
r12: 0x00007fc5ea8bb3a0 r13: 0x00007fc5eb035348 r14: 0x00007fff773bf180 r15: 0x0000000106b4af60
rip: 0x00007fff870aa212 rfl: 0x0000000000000206 cr2: 0x00007fff773b7fe8
Logical CPU: 0
 
Binary Images:
0x10675d000 - 0x1069bbff7 +ruby (0) <996D4BB7-2500-3D55-94D2-F32480A536EE> /Users/USER/*/ruby
0x106b52000 - 0x106b53ff7 +encdb.bundle (0) <4878359C-288F-32FE-A98C-036DC037EA67> /Users/USER/*/encdb.bundle
0x106b86000 - 0x106b87ff7 +transdb.bundle (0) <0A744EF1-99A8-32C7-B74F-754BD93A89B1> /Users/USER/*/transdb.bundle
0x7fff6635d000 - 0x7fff6639193f dyld (210.2.3) <A40597AA-5529-3337-8C09-D8A014EB1578> /usr/lib/dyld
0x7fff86c33000 - 0x7fff86c41ff7 libsystem_network.dylib (77.10) <0D99F24E-56FE-380F-B81B-4A4C630EE587> /usr/lib/system/libsystem_network.dylib
0x7fff87098000 - 0x7fff870b3ff7 libsystem_kernel.dylib (2050.18.24) <C0535565-35D1-31A7-A744-63D9F10F12A4> /usr/lib/system/libsystem_kernel.dylib
0x7fff8710c000 - 0x7fff8715bff7 libcorecrypto.dylib (106.2) <CE0C29A3-C420-339B-ADAA-52F4683233CC> /usr/lib/system/libcorecrypto.dylib
0x7fff8798a000 - 0x7fff879d6ff7 libauto.dylib (185.1) <73CDC482-16E3-3FC7-9BB4-FBA2DA44DBC2> /usr/lib/libauto.dylib
0x7fff879d7000 - 0x7fff879e2fff libsystem_notify.dylib (98.5) <C49275CC-835A-3207-AFBA-8C01374927B6> /usr/lib/system/libsystem_notify.dylib
0x7fff87e78000 - 0x7fff87e7dfff libcache.dylib (57) <65187C6E-3FBF-3EB8-A1AA-389445E2984D> /usr/lib/system/libcache.dylib
0x7fff88e67000 - 0x7fff88f33fe7 libsystem_c.dylib (825.25) <8CBCF9B9-EBB7-365E-A3FF-2F3850763C6B> /usr/lib/system/libsystem_c.dylib
0x7fff88f4f000 - 0x7fff88f56fff libcopyfile.dylib (89) <876573D0-E907-3566-A108-577EAD1B6182> /usr/lib/system/libcopyfile.dylib
0x7fff89f6b000 - 0x7fff89fd3ff7 libc++.1.dylib (65.1) <20E31B90-19B9-3C2A-A9EB-474E08F9FE05> /usr/lib/libc++.1.dylib
0x7fff89fd4000 - 0x7fff89fd4fff libkeymgr.dylib (25) <CC9E3394-BE16-397F-926B-E579B60EE429> /usr/lib/system/libkeymgr.dylib
0x7fff8a253000 - 0x7fff8a268ff7 libdispatch.dylib (228.23) <D26996BF-FC57-39EB-8829-F63585561E09> /usr/lib/system/libdispatch.dylib
0x7fff8b323000 - 0x7fff8b326ff7 libdyld.dylib (210.2.3) <F59367C9-C110-382B-A695-9035A6DD387E> /usr/lib/system/libdyld.dylib
0x7fff8b53a000 - 0x7fff8b542ff7 libsystem_dnssd.dylib (379.32.1) <62AA0B84-188A-348B-8F9E-3E2DB08DB93C> /usr/lib/system/libsystem_dnssd.dylib
0x7fff8b6e6000 - 0x7fff8b708ff7 libxpc.dylib (140.41) <FAC04D8B-680E-325F-8F0C-DD69859D0E01> /usr/lib/system/libxpc.dylib
0x7fff8beed000 - 0x7fff8beeffff libquarantine.dylib (52) <4BE2E642-A14F-340A-B482-5BD2AEFD9C24> /usr/lib/system/libquarantine.dylib
0x7fff8cdc6000 - 0x7fff8cdc7ff7 libremovefile.dylib (23.1) <DBBFAF35-AC78-3856-92F6-6E4FD9DF14A2> /usr/lib/system/libremovefile.dylib
0x7fff8cf08000 - 0x7fff8cf0efff libmacho.dylib (829) <BF332AD9-E89F-387E-92A4-6E1AB74BD4D9> /usr/lib/system/libmacho.dylib
0x7fff8cf0f000 - 0x7fff8cf1dfff libcommonCrypto.dylib (60026) <2D6537F5-1B5E-305C-A1CF-D1FA80CA3939> /usr/lib/system/libcommonCrypto.dylib
0x7fff8e957000 - 0x7fff8e95cfff libcompiler_rt.dylib (30) <08F8731D-5961-39F1-AD00-4590321D24A9> /usr/lib/system/libcompiler_rt.dylib
0x7fff8fe5d000 - 0x7fff8fe5fff7 libunc.dylib (25) <92805328-CD36-34FF-9436-571AB0485072> /usr/lib/system/libunc.dylib
0x7fff90beb000 - 0x7fff90c19ff7 libsystem_m.dylib (3022.6) <B434BE5C-25AB-3EBD-BAA7-5304B34E3441> /usr/lib/system/libsystem_m.dylib
0x7fff91421000 - 0x7fff91427ff7 libunwind.dylib (35.1) <21703D36-2DAB-3D8B-8442-EAAB23C060D3> /usr/lib/system/libunwind.dylib
0x7fff918f2000 - 0x7fff918f3ff7 libdnsinfo.dylib (453.18) <E7595861-ECF9-336E-9901-BED2620FAA80> /usr/lib/system/libdnsinfo.dylib
0x7fff922b5000 - 0x7fff922b6fff libsystem_blocks.dylib (59) <D92DCBC3-541C-37BD-AADE-ACC75A0C59C8> /usr/lib/system/libsystem_blocks.dylib
0x7fff928bc000 - 0x7fff929d492f libobjc.A.dylib (532.2) <90D31928-F48D-3E37-874F-220A51FD9E37> /usr/lib/libobjc.A.dylib
0x7fff92d0b000 - 0x7fff92d0cff7 libSystem.B.dylib (169.3) <365477AB-D641-389D-B8F4-A1FAE9657EEE> /usr/lib/libSystem.B.dylib
0x7fff937d6000 - 0x7fff9380cfff libsystem_info.dylib (406.17) <4FFCA242-7F04-365F-87A6-D4EFB89503C1> /usr/lib/system/libsystem_info.dylib
0x7fff93b36000 - 0x7fff93b5bff7 libc++abi.dylib (24.4) <E7BD9363-1D25-3551-A68A-2E2FF6ABECD7> /usr/lib/libc++abi.dylib
0x7fff93b5c000 - 0x7fff93b5dff7 libsystem_sandbox.dylib (220) <3C3B03CF-C525-3CB3-8557-62E91B93AC95> /usr/lib/system/libsystem_sandbox.dylib
0x7fff93b7e000 - 0x7fff93b86fff liblaunch.dylib (442.26.2) <2F71CAF8-6524-329E-AC56-C506658B4C0C> /usr/lib/system/liblaunch.dylib
 
External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 116163
thread_create: 3
thread_set_state: 102
 
VM Region Summary:
ReadOnly portion of Libraries: Total=60.2M resident=32.4M(54%) swapped_out_or_unallocated=27.8M(46%)
Writable regions: Total=29.9M written=3140K(10%) resident=4256K(14%) swapped_out=0K(0%) unallocated=25.7M(86%)
REGION TYPE VIRTUAL
=========== =======
MALLOC 21.5M
MALLOC guard page 32K
STACK GUARD 56.0M
Stack 8212K
VM_ALLOCATE 4K
__DATA 780K
__LINKEDIT 53.4M
__TEXT 7008K
shared memory 12K
=========== =======
TOTAL 146.5M
stack trace
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
> ruby ruby_bug.rb
ruby_bug.rb:6: [BUG] Stack consistency error (sp: 4, bp: 5)
ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-darwin12.2.0]
 
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/CrashReporter
* /Library/Logs/CrashReporter
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
the more detail of.
 
-- Control frame information -----------------------------------------------
c:0002 p:0032 s:0004 E:0000b0 EVAL ruby_bug.rb:6 [FINISH]
c:0001 p:0000 s:0002 E:000998 TOP [FINISH]
 
ruby_bug.rb:6:in `<main>'
 
-- C level backtrace information -------------------------------------------
0 ruby 0x0000000106905c6b rb_vm_bugreport + 251
1 ruby 0x000000010679f0d8 report_bug + 392
2 ruby 0x000000010679f3df rb_bug + 207
3 ruby 0x00000001068f07d5 vm_exec_core + 30917
4 ruby 0x00000001068f2581 vm_exec + 2705
5 ruby 0x00000001068f2a55 rb_iseq_eval_main + 357
6 ruby 0x00000001067a5f42 ruby_exec_internal + 178
7 ruby 0x00000001067a84ac ruby_run_node + 60
8 ruby 0x000000010675de9f main + 79
9 libdyld.dylib 0x00007fff8b3257e1 start + 0
 
-- Other runtime information -----------------------------------------------
 
* Loaded script: ruby_bug.rb
 
* Loaded features:
 
0 enumerator.so
1 /Users/justin/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/x86_64-darwin12.2.0/enc/encdb.bundle
2 /Users/justin/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/x86_64-darwin12.2.0/enc/trans/transdb.bundle
3 /Users/justin/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/x86_64-darwin12.2.0/rbconfig.rb
4 /Users/justin/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/rubygems/compatibility.rb
5 /Users/justin/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/rubygems/defaults.rb
6 /Users/justin/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/rubygems/deprecate.rb
7 /Users/justin/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/rubygems/errors.rb
8 /Users/justin/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/rubygems/version.rb
9 /Users/justin/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/rubygems/requirement.rb
10 /Users/justin/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/rubygems/platform.rb
11 /Users/justin/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/rubygems/specification.rb
12 /Users/justin/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/rubygems/exceptions.rb
13 /Users/justin/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb
14 /Users/justin/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb
15 /Users/justin/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/rubygems.rb
 
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
 
Abort trap: 6

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.