#1178: ghci 6.6 dies on nobench 'chess' program with unknown opcode error
------------------------+---------------------------------------------------
Reporter: dons | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: GHCi | Version: 6.6
Severity: normal | Keywords: unimplemented opcode
Difficulty: Unknown | Testcase:
Architecture: x86 | Os: Linux
------------------------+---------------------------------------------------
GHCi 6.6:
This program from the nobench/nofib suite:
{{{
http://www.cse.unsw.edu.au/~dons/code/nobench/real/chess
}}}
using the input file mygame.pgn, runs to completion on x86/openbsd and
amd64/linux.
However on x86/linux (two different machines), it dies with a corrupted
bytecode error,
but only with the -w and -v0 flags!
On my test machine I can reproduce this error 1/2 the time:
{{{
$ pwd
/home/dons/nobench/real/chess
$ make clean ; runghc -w -v0 chess.hs < mygames.pgn > /dev/null
rm -f chess Main.hbc *.actual *.status *~ *.compile *.db
--- GOOD ---
$ make clean ; runghc -w -v0 chess.hs < mygames.pgn > /dev/null
rm -f chess Main.hbc *.actual *.status *~ *.compile *.db
chess.hs: internal error: interpretBCO: unknown or unimplemented opcode
55076
(GHC version 6.6 for i386_unknown_linux)
Please report this as a GHC bug:
http://www.haskell.org/ghc/reportabug
-- FAIL ---
$ make clean ; runghc -w -v0 chess.hs < mygames.pgn > /dev/null
rm -f chess Main.hbc *.actual *.status *~ *.compile *.db
--- GOOD ---
$ make clean ; runghc -w -v0 chess.hs < mygames.pgn > /dev/null
rm -f chess Main.hbc *.actual *.status *~ *.compile *.db
chess.hs: internal error: interpretBCO: unknown or unimplemented opcode
55076
(GHC version 6.6 for i386_unknown_linux)
Please report this as a GHC bug:
http://www.haskell.org/ghc/reportabug
-- FAIL ---
}}}
On a bigger machine I was able to reproduce it, though only 1/4 times:
{{{
$ make clean ; runghc -w -v0 chess.hs < mygames.pgn > /dev/null
rm -f chess Main.hbc *.actual *.status *~ *.compile *.db
chess.hs: internal error: interpretBCO: unknown or unimplemented opcode
34596
(GHC version 6.6 for i386_unknown_linux)
Please report this as a GHC bug:
http://www.haskell.org/ghc/reportabug
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1178>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs