Ticket #705 (closed bug: fixed)

Opened 7 years ago

Last modified 5 years ago

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?

Attachments

ghc_smp_bug.tar.gz Download (1.4 KB) - added by lipeng@… 7 years ago.

Change History

Changed 7 years ago by lipeng@…

Changed 7 years ago by wolfgang

  • keywords smp removed
  • os changed from Linux to Multiple
  • architecture changed from x86 to Multiple
  • summary changed from GHC SMP bug, crash on readChan/writeChan to crash on readChan/writeChan

Confirmed. Also crashes on Mac OS X/PPC with both non-threaded and threaded RTS. No crash with GHC 6.4.1.

Changed 7 years ago by simonmar

  • status changed from new to closed
  • resolution set to fixed

Fixed, thanks.

Changed 5 years ago by simonmar

  • architecture changed from Multiple to Unknown/Multiple

Changed 5 years ago by simonmar

  • os changed from Multiple to Unknown/Multiple
Note: See TracTickets for help on using tickets.