Skip to content

runghc dies silently when given large numbers of arguments. Compiled code does not.

I'm using ghc 7.6.2 on Ubuntu 13.04. To reproduce, put the following line in /tmp/test.hs

main = error "An Error message"

Then run the following commands at the shell:

gds@lithium:/tmp$ runghc ./test.hs seq 1 100000 gds@lithium:/tmp$ ghc -o test test.hs gds@lithium:/tmp$ ./test seq 1 100000 test: An Error message gds@lithium:/tmp$

Trac metadata
Trac field Value
Version 7.6.2
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