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

GHC ghc-devs at haskell.org
Fri Jun 30 01:24:34 UTC 2017


#13434: hs_try_putmvar003 is timing out / segfaulting
-------------------------------------+-------------------------------------
        Reporter:  ezyang            |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       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:                    |
-------------------------------------+-------------------------------------

Comment (by bgamari):

 jared-w seems to be seeing this reproducibly on his machine. We haven't
 yet determined what it is about his setup that makes this so, but he uses
 Arch Linux machine on a dual-core machine.

 `+RTS -Ds` says the following before hanging,
 {{{
 ...
 7ff838ff9700: cap 0: schedule()
 7ff838ff9700: giving up capability 0
 7ff838ff9700: passing capability 0 to worker 0x7ff8397fa700
 7ff8397fa700: resuming capability 0
 7ff8397fa700: cap 0: running thread 515 (ThreadRunGHC)
 7ff8397fa700: cap 0: thread 515 stopped (blocked on an MVar)
         thread  515 @ 0x4200369d98 is blocked on an MVar @ 0x420003c798
 (TSO_DIRTY)
 7ff8397fa700: giving up capability 0
 7ff8397fa700: freeing capability 0
 7ff894ff9700: cap 0: waking up thread 515 on cap 0
 7ff894ff9700: passing capability 0 to worker 0x7ff8397fa700
 7ff8397fa700: woken up on capability 0
 7ff8397fa700: resuming capability 0
 7ff8397fa700: cap 0: running thread 515 (ThreadRunGHC)
 7ff8397fa700: cap 0: waking up thread 117 on cap 0
 7ff8397fa700: cap 0: thread 515 stopped (finished)
 7ff8397fa700: cap 0: running thread 117 (ThreadRunGHC)
 7ff8397fa700: cap 0: thread 117 stopped (suspended while making a foreign
 call)
 7ff8397fa700: freeing capability 0
 7ff8b718b700: returning; I want capability 0
 7ff8b718b700: resuming capability 0
 7ff8b718b700: cap 0: running thread 3 (ThreadRunGHC)
 7ff8b718b700: cap 0: thread 3 stopped (yielding)
 7ff8b718b700: cap 0: running thread 3 (ThreadRunGHC)
 7ff8b718b700: cap 0: thread 3 stopped (suspended while making a foreign
 call)
 7ff8b718b700: passing capability 0 to worker 0x7ff838ff9700
 7ff838ff9700: woken up on capability 0
 7ff838ff9700: resuming capability 0
 7ff838ff9700: deadlocked, forcing major GC...
 7ff838ff9700: cap 0: requesting parallel GC
 7ff838ff9700: 0 idle caps
 all threads:
 threads on capability 0:
 other threads:
         thread  117 @ 0x4200368920 is blocked on an external call
 (TSO_DIRTY)
         thread  116 @ 0x42002c6b58 is blocked on an external call
 (TSO_DIRTY)
         thread  115 @ 0x42003f0d88 is blocked on an external call
         thread  114 @ 0x42003fc858 is blocked on an external call
 (TSO_DIRTY)
         thread   24 @ 0x4200361e28 is blocked on an external call
 (TSO_DIRTY)
         thread   23 @ 0x42003ebdb0 is blocked on an external call
 (TSO_DIRTY)
         thread   22 @ 0x42003d5858 is blocked on an external call
 (TSO_DIRTY)
         thread   21 @ 0x42003d1400 is blocked on an external call
 (TSO_DIRTY)
         thread   20 @ 0x42003e1400 is blocked on an external call
 (TSO_DIRTY)
         thread   19 @ 0x42003d2858 is blocked on an external call
         thread   18 @ 0x42003a40a0 is blocked on an external call
         thread   17 @ 0x4200397a88 is blocked on an external call
 (TSO_DIRTY)
         thread   16 @ 0x42003bcec8 is blocked on an external call
 (TSO_DIRTY)
         thread   15 @ 0x4200393f28 is blocked on an external call
 (TSO_DIRTY)
         thread   14 @ 0x420039d9e8 is blocked on an external call
 (TSO_DIRTY)
         thread    5 @ 0x42003744c8 is blocked on an external call
 (TSO_DIRTY)
         thread    4 @ 0x420036e358 is blocked on an MVar @ 0x420036da10
         thread    3 @ 0x42002ba0f0 ["TimerManager"] is blocked on an
 external call (TSO_DIRTY)
         thread    2 @ 0x42002ba168 ["IOManager on cap 0"] is blocked on an
 external call
 7ff838ff9700: cap 0: starting GC
 7ff838ff9700: cap 0: GC working
 7ff838ff9700: cap 0: GC idle
 7ff838ff9700: cap 0: GC done
 7ff838ff9700: cap 0: GC idle
 7ff838ff9700: cap 0: GC done
 7ff838ff9700: cap 0: GC idle
 7ff838ff9700: cap 0: GC done
 7ff838ff9700: cap 0: all caps stopped for GC
 7ff838ff9700: cap 0: finished GC
 7ff838ff9700: giving up capability 0
 7ff838ff9700: freeing capability 0
 }}}

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


More information about the ghc-tickets mailing list