Skip to content

2185 test segfaults rather than giving out of memory error

We currently expect the 2185 test to fail with an out of memory error (#2185 (closed)), but it is actually segfaulting (amd64/Linux):

$ ./2185 +RTS -M16m -RTS
('A',4.0)
('B',4.0)
('C',[(0.0,0.0),(0.0,128.0),(0.0,256.0),(0.0,384.0),(128.0,0.0),(128.0,128.0),(128.0,256.0),(128.0,384.0),(256.0,0.0),(256.0,128.0),(256.0,256.0),(256.0,384.0),(384.0,0.0),(384.0,128.0),(384.0,256.0),(384.0,384.0)])
zsh: segmentation fault  ./2185 +RTS -M16m -RTS

Without the -M16m flag it works fine.

Trac metadata
Trac field Value
Version 6.8.3
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Runtime System
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system Unknown
Architecture Unknown
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information