Opened 9 years ago

Closed 9 years ago

Last modified 44 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: Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

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
trace.

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

Change History (1)

comment:1 Changed 9 years ago by simonmar

  • Status changed from assigned to closed
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.
Note: See TracTickets for help on using tickets.