Skip to content

Instantly share code, notes, and snippets.

@mightybyte
Created June 13, 2012 03:02
Show Gist options
  • Save mightybyte/2921565 to your computer and use it in GitHub Desktop.
Save mightybyte/2921565 to your computer and use it in GitHub Desktop.
ghci crash
Process: ghc [64219]
Path: /usr/local/Cellar/ghc/7.4.2/lib/ghc-7.4.2/ghc
Identifier: ghc
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: bash [63980]
Date/Time: 2012-06-12 22:28:34.143 -0400
OS Version: Mac OS X 10.6.8 (10K549)
Report Version: 6
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000cc5bcae8
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 ghc 0x00000001cc5a5c5a evacuate1 + 154
1 ghc 0x00000001cc5ab3c8 scavenge_block1 + 856
2 ghc 0x00000001cc5ac83c scavenge_loop1 + 1548
3 ghc 0x00000001cc5a887c scavenge_until_all_done + 796
4 ghc 0x00000001cc5a8fdc GarbageCollect + 1324
5 ghc 0x00000001cc59a406 scheduleDoGC + 230
6 ghc 0x00000001cc59b8e6 schedule + 1430
7 ghc 0x00000001cc59c413 scheduleWaitThread + 179
8 ghc 0x00000001cc597358 real_main + 68
9 ghc 0x00000001cc597482 hs_main + 93
10 ghc 0x00000001ca573c59 main + 73
11 ghc 0x00000001ca4aad54 start + 52
Thread 1:
0 libSystem.B.dylib 0x00007fff83ccf176 kevent64 + 10
1 ghc 0x00000001cc53d4d7 s3VK_info + 199
2 ghc 0x00000001cc53d5f8 s48R_info + 0
3 ??? 0xcb63483a77000000 0 + 14655637028335517696
Thread 2:
0 libSystem.B.dylib 0x00007fff83c56a6a __semwait_signal + 10
1 libSystem.B.dylib 0x00007fff83c5a881 _pthread_cond_wait + 1286
2 ghc 0x00000001cc5afa69 waitCondition + 9
3 ghc 0x00000001cc58dc5b yieldCapability + 395
4 ghc 0x00000001cc59b4cb schedule + 379
5 ghc 0x00000001cc59bd5b scheduleWorker + 27
6 libSystem.B.dylib 0x00007fff83c54fd6 _pthread_start + 331
7 libSystem.B.dylib 0x00007fff83c54e89 thread_start + 13
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x00000001014001c0 rcx: 0x0000000000000000 rdx: 0x00000000cc5bcae0
rdi: 0x0000000000001014 rsi: 0x00000001001005d0 rbp: 0x00000000cc5bcaf0 rsp: 0x00007fff5fbfe9c0
r8: 0x0000000000000000 r9: 0x0000000000000018 r10: 0x00000001cc5a5c94 r11: 0x0000000000000000
r12: 0x0000000101407c30 r13: 0x00000001001004d0 r14: 0x0000000000000000 r15: 0x00000001cca8dae0
rip: 0x00000001cc5a5c5a rfl: 0x0000000000010246 cr2: 0x00000000cc5bcae8
Binary Images:
0x1ca4aa000 - 0x1cc824fff +ghc ??? (???) <6B1DF4CD-9544-345C-8D48-B6B90EBD9161> /usr/local/Cellar/ghc/7.4.2/lib/ghc-7.4.2/ghc
0x7fff5fc00000 - 0x7fff5fc3bdef dyld 132.1 (???) <B536F2F1-9DF1-3B6C-1C2C-9075EA219A06> /usr/lib/dyld
0x7fff83c1b000 - 0x7fff83ddcfef libSystem.B.dylib 125.2.11 (compatibility 1.0.0) <9AB4F1D1-89DC-0E8A-DC8E-A4FE4D69DB69> /usr/lib/libSystem.B.dylib
0x7fff84a49000 - 0x7fff84a4dff7 libmathCommon.A.dylib 315.0.0 (compatibility 1.0.0) <95718673-FEEE-B6ED-B127-BCDBDB60D4E5> /usr/lib/system/libmathCommon.A.dylib
0x7fff86de8000 - 0x7fff86ee0ff7 libiconv.2.dylib 7.0.0 (compatibility 7.0.0) <7E4ADB5A-CC77-DCFD-3E54-2F35A2C8D95A> /usr/lib/libiconv.2.dylib
0x7fff87ac6000 - 0x7fff87b05fef libncurses.5.4.dylib 5.4.0 (compatibility 5.4.0) <E1F34D53-3D62-78C0-CAD8-8AD22C110A9E> /usr/lib/libncurses.5.4.dylib
0x7fffffe00000 - 0x7fffffe01fff libSystem.B.dylib ??? (???) <9AB4F1D1-89DC-0E8A-DC8E-A4FE4D69DB69> /usr/lib/libSystem.B.dylib
$ ghci
GHCi, version 7.4.2: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Segmentation fault
@mzero
Copy link

mzero commented Jun 13, 2012

This looks like the crash reported in HP trac 199 and GHC trac 6138 (see the attached crash log).

Are you using 64-bit GHC on 10.6 with Xcode 3.2.x, by any chance? Only Xcode 4.1 or later is supported for 64-bit. Remedy: Go back to the 32-bit GHC, or figure out a way to get Xcode 4 for 10.6 (non-trivial unless you opt for the paid Apple Developer subscription.)

@mightybyte
Copy link
Author

Thanks. I am using Xcode 3.2.x. Going to the 32-bit version of GHC 7.4.2 seems to have fixed the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment