Skip to content

Stack overflow in criterion

Test program:

import Criterion.Main
main = defaultMain [bench "id" $ whnf id ()]

When I compile and run this with 7.1.20110517, I get:

warming up
estimating clock resolution...
mean is 2.896519 us (320001 iterations)
Stack space overflow: current size 8388608 bytes.
Use `+RTS -Ksize -RTS' to increase it.

This doesn't happen with 7.0.3.

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