Ticket #705 (closed bug: fixed)
crash on readChan/writeChan
| Reported by: | guest | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.6 |
| Component: | Compiler | Version: | 6.5 |
| Keywords: | readChan writeChan crash | Cc: | |
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | Difficulty: | Unknown | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
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
.... .... 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?

