[GHC] #12581: Testsuite segfaults on OS X

GHC ghc-devs at haskell.org
Thu Sep 8 23:49:21 UTC 2016


#12581: Testsuite segfaults on OS X
---------------------------------+--------------------------------------
        Reporter:  bgamari       |                Owner:
            Type:  bug           |               Status:  new
        Priority:  normal        |            Milestone:  8.2.1
       Component:  Compiler      |              Version:  8.1
      Resolution:                |             Keywords:
Operating System:  MacOS X       |         Architecture:  x86_64 (amd64)
 Type of failure:  None/Unknown  |            Test Case:
      Blocked By:                |             Blocking:
 Related Tickets:                |  Differential Rev(s):
       Wiki Page:                |
---------------------------------+--------------------------------------

Comment (by bgamari):

 While I was expecting the backtrace to place the problem in the RTS, it
 appears that this isn't the case,
 {{{
 ghc-mini:rts bgamari$ sudo lldb ./derefnull
 (lldb) target create "./derefnull"
 Current executable set to './derefnull' (x86_64).
 (lldb) run
 Process 92160 launched: './derefnull' (x86_64)
 Process 92160 stopped
 * thread #1: tid = 0xa865a5, 0x000000010003f435 derefnull`c6ba_info + 21,
 queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1,
 address=0x0)
     frame #0: 0x000000010003f435 derefnull`c6ba_info + 21
 derefnull`c6ba_info:
 ->  0x10003f435 <+21>: movq   (%rax), %rax
     0x10003f438 <+24>: leaq   0x30ad31(%rip), %rbx      ;
 ghczmprim_GHCziTypes_Izh_con_info
     0x10003f43f <+31>: movq   %rbx, -0x8(%r12)
     0x10003f444 <+36>: movq   %rax, (%r12)
 (lldb) bt
 * thread #1: tid = 0xa865a5, 0x000000010003f435 derefnull`c6ba_info + 21,
 queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1,
 address=0x0)
   * frame #0: 0x000000010003f435 derefnull`c6ba_info + 21
     frame #1: 0x00000001000683f8 derefnull`base_GHCziBase_bindIO1_info +
 64
     frame #2: 0x00000001003c25d1 derefnull`s1Y5_closure + 1
     frame #3: 0x0000000100371cc0 derefnull`stg_catch_frame_info_dsp + 16
 }}}

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


More information about the ghc-tickets mailing list