[GHC] #10375: arm: ghci hits an illegal instruction

GHC ghc-devs at haskell.org
Tue May 26 03:39:35 UTC 2015


#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 at entry=0xbeffe87c,
 argv=argv at entry=
     0xbeffe878, rts_config=...) at rts/RtsStartup.c:263
 #8  0xb1e14fb2 in hs_main (argc=-1310605083, argv=0xd88e1
 <StackOverflowHook>,
     main_closure=0xdeb34 <ZCMain_main_closure>, rts_config=...) at
     rts/RtsMain.c:51
 #9  0x000d8b3a in main ()
 }}}

 Hopefully this isn't a red herring.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10375#comment:26>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list