newArray# incorrectly inlines big arrays (overflow1.hs SIGSEGVS on ./validate --slow)
Found by ./validate:
testsuite/tests/rts/overflow1.hs SIGSEGVs due to integer overflow somewhere around shouldInlinePrimOp
...
shouldInlinePrimOp dflags NewByteArrayOp_Char [(CmmLit (CmmInt n _))]
| fromInteger n <= maxInlineAllocSize dflags =
...
maxInlineAllocSize has :: Int type:
fromInteger (2^64 - 10) < (128 :: Int)
True
Trac metadata
Trac field | Value |
---|---|
Version | 7.8.3 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |