[GHC] #15544: Non-deterministic segmentation fault in cryptohash-sha256 testsuite

GHC ghc-devs at haskell.org
Wed Sep 12 07:15:22 UTC 2018


#15544: Non-deterministic segmentation fault in cryptohash-sha256 testsuite
-------------------------------------+-------------------------------------
        Reporter:  bgamari           |                Owner:  (none)
            Type:  bug               |               Status:  patch
        Priority:  highest           |            Milestone:  8.6.1
       Component:  Compiler          |              Version:  8.4.3
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D5145
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by simonmar):

 I think the error you're seeing is the non-threaded equivalent of `test-
 sha256: lost signal due to full pipe: 11`. Try turning `-threaded` back on
 to see what the signal number is.

 Something in this test installs signal handlers for a lot of different
 signals (maybe all of them?). This is why we were getting `test-sha256:
 lost signal due to full pipe: 11` - the program was throwing `SIGSEGV`
 (signal 11), the handler runs and writes it to a pipe, and the pipe fills
 up because `SIGSEGV` is thrown repeatedly. When working on the test I
 disabled the catching of these signals in the RTS, but I don't know where
 in the test it does this, maybe Tasty?

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


More information about the ghc-tickets mailing list