Opened 12 years ago

Closed 12 years ago

Last modified 48 years ago

#407 closed bug (Fixed)

Segfault when using -xc to smoke out a <<loop>>

Reported by: blamario Owned by: simonmar
Priority: normal Milestone:
Component: Runtime System Version: 6.4
Keywords: Cc:
Operating System: Architecture:
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


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 "<<loop>>". 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

The test was done on Gentoo Linux, the CPU is Athlon XP. 

Change History (1)

comment:1 Changed 12 years ago by simonmar

Status: assignedclosed
Logged In: YES 

+RTS -xc was broken in 6.4, a fix has been committed. 
Please try out a STABLE snapshot, or wait for 6.4.1.
Note: See TracTickets for help on using tickets.