GHC: Ticket #407: Segfault when using -xc to smoke out a <<loop>>http://ghc.haskell.org/trac/ghc/ticket/407
<pre class="wiki">The following program illustrates the problem:
module Main where
data T k = T | S k deriving Show
test :: T k
test = test
main :: IO ()
main = putStrLn $ show (test :: T Int)
When compiled with
ghc --make Main.hs
and run, the program outputs "&lt;&lt;loop&gt;&gt;". Which is fine.
However, when compiled with
ghc --make Main.hs -prof -auto-all
and run with
./a.out +RTS -xc -RTS
the result is a segmentation fault. There is no stack
trace.
The test was done on Gentoo Linux, the CPU is Athlon XP.
</pre>en-usGHChttp://ghc.haskell.org/trac/ghc/chrome/site/ghc_logo.pnghttp://ghc.haskell.org/trac/ghc/ticket/407
Trac 1.0.1simonmarMon, 27 Jun 2005 12:11:12 GMTstatus changedhttp://ghc.haskell.org/trac/ghc/ticket/407#comment:1
http://ghc.haskell.org/trac/ghc/ticket/407#comment:1
<ul>
<li><strong>status</strong>
changed from <em>assigned</em> to <em>closed</em>
</li>
</ul>
<pre class="wiki">Logged In: YES
user_id=48280
+RTS -xc was broken in 6.4, a fix has been committed.
Please try out a STABLE snapshot, or wait for 6.4.1.
</pre>
Ticket