Opened 10 years ago

Closed 10 years ago

Last modified 44 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: Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

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.

Attachments (1)

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

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by blamario

comment:1 Changed 10 years ago by blamario

Logged In: YES 
user_id=1096128

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 10 years ago by simonmar

  • Status changed from assigned to closed
Logged In: YES 
user_id=48280

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.