Opened 13 years ago

Closed 13 years ago

Last modified 48 years ago

#247 closed bug (Fixed)

Assertion failed in GC.c

Reported by: blamario Owned by: nobody
Priority: normal Milestone:
Component: Runtime System Version: 6.2.1
Keywords: Cc:
Operating System: Architecture:
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:



1. Download the attached archive.
2. tar xzf gens.tar.gz
3. cd gens
4. make
5. make Env/
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.

Attachments (1)

gens.tar.2.gz (83.6 KB) - added by blamario 13 years ago.

Download all attachments as: .zip

Change History (3)

Changed 13 years ago by blamario

Attachment: gens.tar.2.gz added

comment:1 Changed 13 years ago by blamario

Logged In: YES 

There's an error in the code I attached. File GensSystem.hs,
line 150:
   sizeOf fi = 8
should be 
   sizeOf fi = 16

But even with this fix I get the same GC error. I suppose I
could be doing something wrong with the Storable Interface,
but I can't see anything.

comment:2 Changed 13 years ago by simonmar

Status: assignedclosed
Logged In: YES 

The program works with the current CVS sources of 6.2.2. 
I'm guessing it is an instance of the GC bug we fixed
recently.  Please upgrade to 6.2.2 when it comes out, or
build from CVS (ghc-6-2-branch).
Note: See TracTickets for help on using tickets.