[GHC] #13832: No parameter-validation in Control.Concurrent.setNumCapabilities
GHC
ghc-devs at haskell.org
Mon Jun 19 12:15:59 UTC 2017
#13832: No parameter-validation in Control.Concurrent.setNumCapabilities
-------------------------------------+-------------------------------------
Reporter: AlistairWard | Owner: (none)
Type: bug | Status: closed
Priority: low | Milestone: 8.2.1
Component: Core Libraries | Version: 8.0.1
Resolution: fixed | Keywords:
| setNumCapabilities
Operating System: Linux | Architecture: x86
Type of failure: Runtime crash | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari <ben@…>):
In [changeset:"b9f9670c8cf4eac8798a8cb3e683d0411f9e94ec/ghc" b9f9670/ghc]:
{{{
#!CommitTicketReference repository="ghc"
revision="b9f9670c8cf4eac8798a8cb3e683d0411f9e94ec"
rts: Ensure that new capability count is > 0
The Haskell wrapper already checks this but we should also check it in the
RTS
to catch non-Haskell callers. See #13832.
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13832#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list