Ticket #4527 (closed bug: fixed)

Opened 2 years ago

Last modified 2 years ago

<<loop>> ing program with ghc-7.0.1

Reported by: maeder Owned by:
Priority: normal Milestone:
Component: Compiler Version: 7.0.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Incorrect result at runtime Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

I've got a (unfortunately large) program that terminates with <<loop>> if compiled with ghc-7.0.1 but works as expected with ghc-6.12.3 (and ghc-6.10.4).

In order to reproduce this, install the two cabal packages programatica-1.0.0.1 and hana-0.97 (not on hackage)

 http://www.informatik.uni-bremen.de/agbkb/forschung/formal_methods/CoFI/hets/src-distribution/versions/programatica-1.0.0.1.tar.gz

 http://www.informatik.uni-bremen.de/agbkb/forschung/formal_methods/CoFI/hets/src-distribution/versions/Hana-0.97.tar.gz

(I'll try to attach this archives.)

Apply the installed program "hana" to the file "Dummy.hs" inside the hana-0.97 package.

The expected output is:

{-

scope:

-}
module Dummy where

The output produced by hana created by ghc-7.0.1 is

hana: <<loop>>

Some tracing indicated that something goes wrong in the programatica module ScopeModule?.

The original problem is reported here:  http://trac.informatik.uni-bremen.de:8080/hets/ticket/884

Attachments

programatica-1.0.0.1.tar.gz Download (189.2 KB) - added by maeder 2 years ago.
programatica cabal package
Hana-0.97.tar.2.gz Download (87.2 KB) - added by maeder 2 years ago.
cabal package for test binary hana

Change History

Changed 2 years ago by maeder

programatica cabal package

Changed 2 years ago by maeder

cabal package for test binary hana

Changed 2 years ago by simonpj

Thank you! I am embarassed to say that turns out that test T3731 is failing in the same way, and it's a nice small program. But we didn't spot it because it's not part of our daily validate, although it is a regression test. We must try harder to run *all* the regression tests before making a release.

Anyway, first thing is to fix the T3731 bug, and then we can see if that fixes Hets.

Simon

Changed 2 years ago by simonpj

I've finally fixed #3731, so I hope that also fixes Hets. [I'm still dissatisfied with the solution, but it works.] Can you try (the HEAD)? I'm pretty hopeful that it'll fix your problem. It'll turn into 7.0.2.

Simon

Changed 2 years ago by maeder

Yes, thanks a lot! It works with GHC 7.0.2 Release Candidate 1 ghc-7.0.1.20101215.

Changed 2 years ago by simonpj

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

Great. We're still not 100% happy with the code, so are working on yet another iteration. We'll commit a patch in a week or two, and it'd be great if you could re-test then. (but we probably won't disturb the 7.0 branch)

Simon

Note: See TracTickets for help on using tickets.