[GHC] #15350: gcdExtInteger violates assertion
GHC
ghc-devs at haskell.org
Thu Jul 26 11:25:12 UTC 2018
#15350: gcdExtInteger violates assertion
-------------------------------------+-------------------------------------
Reporter: Bodigrim | Owner: Bodigrim
Type: bug | Status: new
Priority: normal | Milestone: 8.6.1
Component: Core Libraries | Version: 8.4.3
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: Runtime crash | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by monoidal):
What's the status here? I see that the change was merged, but I don't see
a test. I've tried adding a test, but it's still failing with the same
error on my machine. Maybe I'm doing something wrong? Is the plan to
release a new version of `integer-gmp`?
{{{
diff --git a/testsuite/tests/lib/integer/integerGmpInternals.hs
b/testsuite/tests/lib/integer/integerGmpInternals.hs
index c90df5c90d..e1faf900c7 100644
--- a/testsuite/tests/lib/integer/integerGmpInternals.hs
+++ b/testsuite/tests/lib/integer/integerGmpInternals.hs
@@ -86,6 +86,7 @@ main = do
print $ gcdExtInteger x (-y)
print $ gcdExtInteger (-x) y
print $ gcdExtInteger (-x) (-y)
+ print $ gcdExtInteger 2 (2^65 + 1) -- see Trac #15350
print $ powInteger 12345 0
print $ powInteger 12345 1
print $ powInteger 12345 30
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15350#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list