Skip to content

Assertion failed in GC.c

Instructions:

1. Download the attached archive.
2. tar xzf gens.tar.gz
3. cd gens
4. make
5. make Env/If.so
6. ./gens - <tests

The message I'm getting is:

ASSERTION FAILED: file GC.c, line 1722

When I compile without -debug option, there's a
segfault with no error report. If I do +RTS -G1 -RTS,
the tests keep running longer, but they still crash in
the end.

There's another weird thing, probably unrelated.

./gens-prof +RTS -xc -RTS - <tests

outputs stack frames ending with readFile function
call, like it was throwing an exception and catching it
immediately. After the readFile call, execution
proceeds normally.
Trac metadata
Trac field Value
Version 6.2.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution ResolvedFixed
Component Runtime System
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