Skip to content

crash on readChan/writeChan

Source code:

http://www.seas.upenn.edu/~lipeng/tmp/ghc_smp_bug.tar.gz

Compile using the latest Linux binary snapshot (ghc-6.5.20060223):

$ ghc -fglasgow-exts -smp Server.hs --make -o Server.bin

Run on a 2-way SMP machine:

$ ./Server.bin +RTS -N1

  1. ...
  2. ...

Server.bin: internal error: EVACUATED object entered!

Please report this as a compiler bug. See:

http://www.haskell.org/ghc/reportabug

Aborted

Sometimes I get segmentation fault instead of the above error messages. 100% reproducable on 4 different Linux machines. This bug can be also reproduced using +RTS -N2 by slighly changing the source code. Also reproducable on an older version (20060205). Is it a bug or am I using GHC incorrectly?

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