
#10375: arm: ghci hits an illegal instruction
-------------------------------------+---------------------------------
Reporter: erikd | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 7.10.2
Component: GHCi | Version: 7.10.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: arm
Type of failure: GHCi crash | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Revisions:
-------------------------------------+---------------------------------
Comment (by erikd):
This is interesting. with GHC compiled with AddressSanitizer, it no longer
needs `--interactive` to bring on a crash. In fact just running
`inplace/bin/ghc-stage2` on the command line with no arguments crashes
with a SIGSEGV. In GDB:
{{{
(gdb) r
Starting program: /home/erikd/Git/ghc-upstream/inplace/lib/bin/ghc-stage2
-B/home/erikd/Git/ghc-upstream/inplace/lib
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-
gnueabihf/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) bt
#0 0x00000000 in ?? ()
#1 0xb6b2db4c in pthread_cond_init () from /usr/lib/arm-linux-gnueabihf/
libasan.so.1
#2 0xb1e1407c in newTask (worker=rtsFalse) at rts/Task.c:218
#3 0xb1e14702 in allocTask () at rts/Task.c:128
#4 newBoundTask () at rts/Task.c:304
#5 0xb1df6970 in rts_lock () at rts/RtsAPI.c:556
#6 0xb1e40398 in ioManagerStart () at rts/posix/Signals.c:218
#7 0xb1dec428 in hs_init_ghc (argc=argc@entry=0xbeffe87c,
argv=argv@entry=
0xbeffe878, rts_config=...) at rts/RtsStartup.c:263
#8 0xb1e14fb2 in hs_main (argc=-1310605083, argv=0xd88e1
<StackOverflowHook>,
main_closure=0xdeb34