[GHC] #13434: hs_try_putmvar003 is timing out / segfaulting

GHC ghc-devs at haskell.org
Sun Jul 2 03:01:31 UTC 2017


#13434: hs_try_putmvar003 is timing out / segfaulting
-------------------------------------+-------------------------------------
        Reporter:  ezyang            |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.4.1
       Component:  Runtime System    |              Version:  8.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  Runtime crash     |            Test Case:
      Blocked By:                    |             Blocking:  13722
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by bgamari):

 * milestone:   => 8.4.1


Comment:

 It seems that the testcase is getting stuck on `pthread_mutex_destroy` and
 `pthread_cond_destroy`. Commenting both of these calls in
 `destroyCallbackQueue` allows the test to run to completion. It seems that
 the issue is that the `do { ... } while(1)` loop in `callback` never
 terminates and therefore the mutex is never unlocked. I suspect this fails
 only now because `glibc` is now more strict about checking that the mutex
 is not locked before freeing it.

 Simon, how did you intend for the loop in `callback` to terminate?

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


More information about the ghc-tickets mailing list