[GHC] #12614: Integer division can overwrite other arguments to foreign call
GHC
ghc-devs at haskell.org
Tue Sep 27 07:16:13 UTC 2016
#12614: Integer division can overwrite other arguments to foreign call
-------------------------------------+-------------------------------------
Reporter: jscholl | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler (NCG) | Version: 8.0.1
Resolution: | Keywords: integer
| division
Operating System: Unknown/Multiple | Architecture: x86_64
Type of failure: Incorrect result | (amd64)
at runtime | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by jscholl):
You are right, it is most likely the same root cause. But no, the foreign
call is not unsafe as far as I understand (the default is safe, right?).
Also if I change it to an explicit safe or unsafe call the behavior is
unchanged, so this does not seem to be a factor in this case.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12614#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list