Ticket #1899 (closed merge: fixed)

Opened 6 years ago

Last modified 5 years ago

compiler does not halt

Reported by: guest Owned by: igloo
Priority: normal Milestone: 6.8.3
Component: Compiler Version: 6.8.1
Keywords: Cc: chris@…
Operating System: Unknown/Multiple Architecture: x86_64 (amd64)
Type of failure: Difficulty: Unknown
Test Case: T1899 Blocked By:
Blocking: Related Tickets:

Description

In the included tarball, run make in the code directory. The module ILPSAT takes over 11 minutes compiling. I have not seen it finish. I get the same result turning off the optimizing flags in the provided Makefile, as well as the -threaded flag.

Attachments

code.tar.bz2 Download (176.7 KB) - added by guest 6 years ago.
Code that elicits this bug.

Change History

Changed 6 years ago by guest

Code that elicits this bug.

Changed 6 years ago by igloo

  • difficulty set to Unknown
  • milestone set to 6.8.3

I haven't tried to reproduce this yet as it depends on QuickCheck?. If anyone makes a small testcase then that would be useful both for diagnosing the problem and for putting in the testsuite once it is fixed.

Changed 5 years ago by igloo

This module (not well-typed):

module ILPSAT where

data Constraint a = Formula [[Proposition a]]
data Proposition a = Prop a
                   | Auxiliary [Proposition a]

transRHS :: [a] -> Int -> Constraint a
transRHS varSet b =
    if b < 0
      then Formula [[Prop (Auxiliary undefined)]]
      else Formula $
                [[Prop (Auxiliary varSet),
                  Prop (Auxiliary varSet)]
                ]

With 6.8.2 and the HEAD:

$ ghc -dcore-lint -c ILPSAT.hs -fforce-recomp -v
[...]
*** Renamer/typechecker:

at which point it appears to hang.

Changed 5 years ago by simonpj

  • owner set to igloo
  • testcase set to T1899
  • type changed from bug to merge

Thanks for boiling this down Ian. Fixed by

Tue Feb 26 17:47:43 GMT 2008  simonpj@microsoft.com
  * Fix Trac #1899; missing equality check in typechecker's constraint simplifier

Changed 5 years ago by igloo

Merged

Changed 5 years ago by igloo

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

Changed 5 years ago by simonmar

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