[GHC] #15834: genSym is not thread safe with respect to setNumCapabilities
GHC
ghc-devs at haskell.org
Wed Oct 31 00:32:45 UTC 2018
#15834: genSym is not thread safe with respect to setNumCapabilities
---------------------------------+----------------------------------------
Reporter: NeilMitchell | Owner: (none)
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 8.6.1
Resolution: invalid | Keywords:
Operating System: Linux | Architecture: Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
---------------------------------+----------------------------------------
Changes (by NeilMitchell):
* status: new => closed
* resolution: => invalid
Comment:
Looking further, I came up with a minimal test case for generating uniques
on multiple threads which produced duplicates. I was able to reproduce it
on our internal build of GHC, but NOT a stock build. I am now fairly
certain that the build of GHC didn't get THREADED_RTS passed to the
genSym.c file, explaining the duplicate uniques. Sorry for the noise!
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15834#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list