Created
July 22, 2011 09:26
-
-
Save vishnugopal/1099153 to your computer and use it in GitHub Desktop.
ruby-1.9.2-p290 Fiber bug on OS X Lion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Miranda ~/Code/Sandbox/ussd-renderer-redux % sw_vers | |
ProductName: Mac OS X | |
ProductVersion: 10.7 | |
BuildVersion: 11A511 | |
Miranda ~/Code/Sandbox/ussd-renderer-redux % ruby -v | |
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.0.0] | |
Seems to be similar to (if not solved by): https://github.com/ruby/ruby/commit/be953b4d1ce3f0dfc7f24c84ec7a51e027102557 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Process: ruby [45193] | |
Path: /Users/USER/*/ruby | |
Identifier: ruby | |
Version: ??? (???) | |
Code Type: X86-64 (Native) | |
Parent Process: zsh [43277] | |
Date/Time: 2011-07-22 14:44:52.759 +0530 | |
OS Version: Mac OS X 10.7 (11A511) | |
Report Version: 9 | |
Sleep/Wake UUID: 43309123-9628-4A01-8238-9E470948677C | |
Crashed Thread: 0 Dispatch queue: com.apple.main-thread | |
Exception Type: EXC_BAD_ACCESS (SIGABRT) | |
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000001 | |
VM Regions Near 0x1: | |
--> | |
__TEXT 000000010f787000-000000010f788000 [ 4K] r-x/rwx SM=COW /Users/USER/* | |
Application Specific Information: | |
objc[45193]: garbage collection is OFF | |
abort() called | |
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread | |
0 libsystem_kernel.dylib 0x00007fff926f9ce2 __pthread_kill + 10 | |
1 libsystem_c.dylib 0x00007fff8e12c7d2 pthread_kill + 95 | |
2 libsystem_c.dylib 0x00007fff8e11da7a abort + 143 | |
3 libruby.1.9.1.dylib 0x000000010f7bb666 rb_bug + 166 | |
4 libruby.1.9.1.dylib 0x000000010f85df1f sigsegv + 79 (signal.c:613) | |
5 libsystem_c.dylib 0x00007fff8e17ecfa _sigtramp + 26 | |
6 ??? 0x0000000000000001 0 + 1 | |
Thread 1: | |
0 libsystem_kernel.dylib 0x00007fff926f9bca __psynch_cvwait + 10 | |
1 libsystem_c.dylib 0x00007fff8e12e274 _pthread_cond_wait + 840 | |
2 libruby.1.9.1.dylib 0x000000010f8c7f6e thread_timer + 334 (thread_pthread.c:145) | |
3 libsystem_c.dylib 0x00007fff8e12a8bf _pthread_start + 335 | |
4 libsystem_c.dylib 0x00007fff8e12db75 thread_start + 13 | |
Thread 0 crashed with X86 Thread State (64-bit): | |
rax: 0x0000000000000000 rbx: 0x0000000000000006 rcx: 0x000000010fa75938 rdx: 0x0000000000000000 | |
rdi: 0x000000000000060b rsi: 0x0000000000000006 rbp: 0x000000010fa75960 rsp: 0x000000010fa75938 | |
r8: 0x00007fff7da16fb8 r9: 0x000000010fa754e8 r10: 0x00007fff926f9d0a r11: 0xffffff80002d8240 | |
r12: 0x000000010fb019d0 r13: 0x00007fa113819000 r14: 0x00007fff7da19960 r15: 0x00007fa11304f590 | |
rip: 0x00007fff926f9ce2 rfl: 0x0000000000000246 cr2: 0x000000010fa74b00 | |
Logical CPU: 0 | |
Binary Images: | |
0x10f787000 - 0x10f787ff7 +ruby (??? - ???) <A869F0C6-BD12-3AED-8F09-77E70F40444C> /Users/USER/*/ruby | |
0x10f78a000 - 0x10f957fe7 +libruby.1.9.1.dylib (1.9.1 - compatibility 1.9.1) <30D1AA74-B963-31A6-A9E8-1268899AD160> /Users/USER/*/libruby.1.9.1.dylib | |
0x10fa7b000 - 0x10fa7cfff +encdb.bundle (??? - ???) <C6ECF144-3D7A-3B14-87EE-39D658A7364B> /Users/USER/*/encdb.bundle | |
0x10fa7f000 - 0x10fa80fff +transdb.bundle (??? - ???) <6F39BE9E-4CCE-398C-BA89-3D031630F845> /Users/USER/*/transdb.bundle | |
0x7fff6f387000 - 0x7fff6f3bbac7 dyld (195.5 - ???) <4A6E2B28-C7A2-3528-ADB7-4076B9836041> /usr/lib/dyld | |
0x7fff8e0dc000 - 0x7fff8e1b9fef libsystem_c.dylib (763.11.0 - compatibility 1.0.0) <1D61CA57-3C6D-30F7-89CB-CC6F0787B1DC> /usr/lib/system/libsystem_c.dylib | |
0x7fff8e70d000 - 0x7fff8e713ff7 libunwind.dylib (30.0.0 - compatibility 1.0.0) <1E9C6C8C-CBE8-3F4B-A5B5-E03E3AB53231> /usr/lib/system/libunwind.dylib | |
0x7fff901b0000 - 0x7fff901b1fff libsystem_sandbox.dylib (??? - ???) <8D14139B-B671-35F4-9E5A-023B4C523C38> /usr/lib/system/libsystem_sandbox.dylib | |
0x7fff90a14000 - 0x7fff90a41fe7 libSystem.B.dylib (159.0.0 - compatibility 1.0.0) <7B4D685D-939C-3ABE-8780-77A1889E0DE9> /usr/lib/libSystem.B.dylib | |
0x7fff91151000 - 0x7fff91158fff libcopyfile.dylib (85.1.0 - compatibility 1.0.0) <172B1985-F24A-34E9-8D8B-A2403C9A0399> /usr/lib/system/libcopyfile.dylib | |
0x7fff914e7000 - 0x7fff914ecfff libcompiler_rt.dylib (6.0.0 - compatibility 1.0.0) <98ECD5F6-E85C-32A5-98CD-8911230CB66A> /usr/lib/system/libcompiler_rt.dylib | |
0x7fff91524000 - 0x7fff91529fff libcache.dylib (47.0.0 - compatibility 1.0.0) <B7757E2E-5A7D-362E-AB71-785FE79E1527> /usr/lib/system/libcache.dylib | |
0x7fff92695000 - 0x7fff92699fff libdyld.dylib (195.5.0 - compatibility 1.0.0) <F1903B7A-D3FF-3390-909A-B24E09BAD1A5> /usr/lib/system/libdyld.dylib | |
0x7fff926e3000 - 0x7fff92703fff libsystem_kernel.dylib (1699.22.73 - compatibility 1.0.0) <69F2F501-72D8-3B3B-8357-F4418B3E1348> /usr/lib/system/libsystem_kernel.dylib | |
0x7fff93888000 - 0x7fff938fbfff libstdc++.6.dylib (52.0.0 - compatibility 7.0.0) <6BDD43E4-A4B1-379E-9ED5-8C713653DFF2> /usr/lib/libstdc++.6.dylib | |
0x7fff942cc000 - 0x7fff9430eff7 libcommonCrypto.dylib (55010.0.0 - compatibility 1.0.0) <A5B9778E-11C3-3F61-B740-1F2114E967FB> /usr/lib/system/libcommonCrypto.dylib | |
0x7fff94313000 - 0x7fff94388ff7 libc++.1.dylib (19.0.0 - compatibility 1.0.0) <C0EFFF1B-0FEB-3F99-BE54-506B35B555A9> /usr/lib/libc++.1.dylib | |
0x7fff9585a000 - 0x7fff9585bff7 libremovefile.dylib (21.0.0 - compatibility 1.0.0) <C6C49FB7-1892-32E4-86B5-25AD165131AA> /usr/lib/system/libremovefile.dylib | |
0x7fff95e77000 - 0x7fff95e82ff7 libc++abi.dylib (14.0.0 - compatibility 1.0.0) <8FF3D766-D678-36F6-84AC-423C878E6D14> /usr/lib/libc++abi.dylib | |
0x7fff96aad000 - 0x7fff96afbff7 libauto.dylib (??? - ???) <F0004B88-CA01-37D0-A77F-6651C4EC7D8E> /usr/lib/libauto.dylib | |
0x7fff96b08000 - 0x7fff96b09fff libunc.dylib (24.0.0 - compatibility 1.0.0) <C67B3B14-866C-314F-87FF-8025BEC2CAAC> /usr/lib/system/libunc.dylib | |
0x7fff96bbc000 - 0x7fff96bc0fff libmathCommon.A.dylib (2026.0.0 - compatibility 1.0.0) <FF83AFF7-42B2-306E-90AF-D539C51A4542> /usr/lib/system/libmathCommon.A.dylib | |
0x7fff96c37000 - 0x7fff96c40fff libnotify.dylib (80.0.0 - compatibility 1.0.0) <BD08553D-8088-38A8-8007-CF5C0B8F0404> /usr/lib/system/libnotify.dylib | |
0x7fff96dc1000 - 0x7fff96dc6ff7 libsystem_network.dylib (??? - ???) <4ABCEEF3-A3F9-3E06-9682-CE00F17138B7> /usr/lib/system/libsystem_network.dylib | |
0x7fff96df1000 - 0x7fff96ed5def libobjc.A.dylib (228.0.0 - compatibility 1.0.0) <C5F2392D-B481-3A9D-91BE-3D039FFF4DEC> /usr/lib/libobjc.A.dylib | |
0x7fff9774f000 - 0x7fff9778bfff libsystem_info.dylib (??? - ???) <BC49C624-1DAB-3A37-890F-6EFD46538424> /usr/lib/system/libsystem_info.dylib | |
0x7fff9785d000 - 0x7fff9787aff7 libxpc.dylib (77.16.0 - compatibility 1.0.0) <0A4B4775-29A9-30D6-956B-3BE1DBF98090> /usr/lib/system/libxpc.dylib | |
0x7fff9787b000 - 0x7fff97889fff libdispatch.dylib (187.5.0 - compatibility 1.0.0) <698F8EFB-7075-3111-94E3-891156C88172> /usr/lib/system/libdispatch.dylib | |
0x7fff978e3000 - 0x7fff978e4ff7 libsystem_blocks.dylib (53.0.0 - compatibility 1.0.0) <8BCA214A-8992-34B2-A8B9-B74DEACA1869> /usr/lib/system/libsystem_blocks.dylib | |
0x7fff978e5000 - 0x7fff978e7fff libquarantine.dylib (36.0.0 - compatibility 1.0.0) <4C3BFBC7-E592-3939-B376-1C2E2D7C5389> /usr/lib/system/libquarantine.dylib | |
0x7fff978e8000 - 0x7fff978f0fff libsystem_dnssd.dylib (??? - ???) <7749128E-D0C5-3832-861C-BC9913F774FA> /usr/lib/system/libsystem_dnssd.dylib | |
0x7fff99202000 - 0x7fff99202fff libkeymgr.dylib (23.0.0 - compatibility 1.0.0) <61EFED6A-A407-301E-B454-CD18314F0075> /usr/lib/system/libkeymgr.dylib | |
0x7fff997ab000 - 0x7fff997acfff libdnsinfo.dylib (395.6.0 - compatibility 1.0.0) <718A135F-6349-354A-85D5-430B128EFD57> /usr/lib/system/libdnsinfo.dylib | |
0x7fff99b63000 - 0x7fff99b6dff7 liblaunch.dylib (392.18.0 - compatibility 1.0.0) <39EF04F2-7F0C-3435-B785-BF283727FFBD> /usr/lib/system/liblaunch.dylib | |
0x7fff99b70000 - 0x7fff99b76fff libmacho.dylib (800.0.0 - compatibility 1.0.0) <D86F63EC-D2BD-32E0-8955-08B5EAFAD2CC> /usr/lib/system/libmacho.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: 12626 | |
thread_create: 0 | |
thread_set_state: 0 | |
VM Region Summary: | |
ReadOnly portion of Libraries: Total=54.0M resident=22.4M(41%) swapped_out_or_unallocated=31.7M(59%) | |
Writable regions: Total=27.8M written=800K(3%) resident=1676K(6%) swapped_out=0K(0%) unallocated=26.2M(94%) | |
REGION TYPE VIRTUAL | |
=========== ======= | |
MALLOC 19.4M | |
MALLOC guard page 16K | |
STACK GUARD 4K | |
Stack 64.0M | |
__DATA 684K | |
__LINKEDIT 47.6M | |
__TEXT 6568K | |
shared memory 12K | |
=========== ======= | |
TOTAL 138.2M |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bin/test_fiber.rb:3: [BUG] Segmentation fault | |
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.0.0] | |
-- control frame ---------- | |
c:0004 p:---- s:0009 b:0009 l:000008 d:000008 CFUNC :resume | |
c:0003 p:0021 s:0006 b:0006 l:0010a8 d:000938 EVAL bin/test_fiber.rb:3 | |
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH | |
c:0001 p:0000 s:0002 b:0002 l:0010a8 d:0010a8 TOP | |
--------------------------- | |
-- Ruby level backtrace information ---------------------------------------- | |
bin/test_fiber.rb:3:in `<main>' | |
bin/test_fiber.rb:3:in `resume' | |
-- C level backtrace information ------------------------------------------- | |
[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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fiber.new { }.resume |
Thanks, I'm trying that now.
@vishnugopal did you get the fiber working by following @paploo suggestion?
@dimaspritanto Yup, worked!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Before compiling ruby, try running "export CC=/usr/bin/gcc-4.2" first, this fixed this test case for me. Apparently Lion's LLVM and Ruby don't mix.