Re: ghc-stage2 —interactive segfaults on Mac OS X 10.11.6 (build flavour = prof)
Ben Gamari
ben at smart-cactus.org
Fri Apr 14 23:27:25 UTC 2017
On April 14, 2017 3:33:21 PM EDT, Alfredo Di Napoli <alfredo.dinapoli at gmail.com> wrote:
>Ok, I had success by removing “-debug” in favour of “-DDEBUG”. After
>compiling GHC I fired GDB and this is the output:
>
>Starting program:
>/Users/adinapoli/programming/haskell/ghc/inplace/lib/bin/ghc-stage2
>-B/Users/adinapoli/programming/haskell/ghc/inplace/lib --interactive
>GHCi, version 8.3.20170413: http://www.haskell.org/ghc/ :? for help
>[New Thread 0x120f of process 19786]
>[New Thread 0x1403 of process 19786]
>[New Thread 0x1503 of process 19786]
>[New Thread 0x1603 of process 19786]
>
>Thread 1 received signal SIGSEGV, Segmentation fault.
>0x0000000104cdd81a in ocInit_MachO () at rts/linker/MachO.c:141
>141 if(NULL != oc->info->nlist) {
>
>Maybe it does ring a bell to any of you. In case not, I’m happy to
>continue
>digging.
>
It doesn't ring a bell and I'm not near a computer at the moment, but it sounds like you are hot on the trail; that is a far more tractable error.
I'll have a look at the code to see if I can see any obvious things to check when I get back home.
More information about the ghc-devs
mailing list