Ticket #1494 (closed bug: fixed)

Opened 5 years ago

Last modified 3 years ago

panic! (the 'impossible' happened)

Reported by: iampure@… Owned by:
Priority: highest Milestone:
Component: GHCi Version: 6.7
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: tc232 Blocked By:
Blocking: Related Tickets:

Description

After hours of reducing my code, I finally was able to make a small test case. I am essentially stuck if this doesn't get fixed soon.

Output:

ghc-6.7.20070702: panic! (the 'impossible' happened)

(GHC version 6.7.20070702 for i386-unknown-linux):

nameModule $dMonad{v a3hFy}

Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug

Attachments

YetAnotherBug.hs Download (456 bytes) - added by iampure@… 5 years ago.
It should load fine in 6.7, but evaluating a, makes it panic.

Change History

Changed 5 years ago by iampure@…

It should load fine in 6.7, but evaluating a, makes it panic.

Changed 5 years ago by simonpj

Thanks for the boiled-down case. I'll look into it.

So it's fine in 6.6.1, right? Can you use that meanwhile?

Simon

Changed 5 years ago by simonpj

I've boiled it down more:

module Foo where

import Control.Monad.State

newtype L m r = L (StateT Int m r)

instance Monad m => Monad (L m)

zork :: (Monad m) => a -> L m ()
zork = undefined

mumble e = do { modify id; zork e }

Compiling this with -dcore-lint shows the error. More anon.

Simon

Changed 5 years ago by iampure@…

I am sure my requirements don't fit version 6.6.1. This specific code works with 6.6.1, but I reported other bugs, on which 6.6.1 doesn't suffice. I think most of those bugs have been fixed in the version I report this bug for (which is the reason I compiled 6.7), but I am positive my code base doesn't work with 6.6.1. Conclusion: this is still a blocker for me.

What is "More anon."?

Changed 5 years ago by simonpj

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

I've fixed this one. Thanks for a helpful report.

Simon

A tricky bug to do with the way the implication constraints are solved in TcSimplify?. See Note [Reducing implication constraints].

Changed 5 years ago by iampure@…

  • status changed from closed to reopened
  • resolution fixed deleted

I was pleased to find out you had solved this so quickly, but unfortunately, I cannot build ghc from darcs now.

I did: ./darcs-all pull -a sh boot make and got:

 http://pastebin.ca/604150

Changed 5 years ago by iampure@…

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

Forgot trivial step in build process, my bad... building.

Changed 3 years ago by simonmar

  • architecture changed from Unknown to Unknown/Multiple

Changed 3 years ago by simonmar

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