[GHC] #13615: Wrong results from what supposed to be pure function with presense of parallel evaluation

GHC ghc-devs at haskell.org
Wed Apr 26 02:05:05 UTC 2017


#13615: Wrong results from what supposed to be pure function with presense of
parallel evaluation
-------------------------------------+-------------------------------------
        Reporter:  pacak             |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  highest           |            Milestone:  8.2.1
       Component:  Compiler          |              Version:  8.2.1-rc2
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Incorrect result  |  Unknown/Multiple
  at runtime                         |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by bgamari):

 Interesting, forcing `st'` before passing it to `unsafeUpdateM` in the the
 `BitmapIndexed` branch of `Data.HashMap.Strict.unsafeInsertWith` also
 seems to fix the issue. I haven't thought much about why.

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


More information about the ghc-tickets mailing list