Ticket #5637 (closed bug: fixed)

Opened 7 months ago

Last modified 4 months ago

runhaskell ghc panic running netwire 2 demo

Reported by: gareth.rowlands Owned by:
Priority: normal Milestone: 7.4.1
Component: Compiler Version: 7.0.3
Keywords: Cc:
Operating System: Windows Architecture: x86
Type of failure: None/Unknown Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description (last modified by igloo) (diff)

Running the netwire 2 demo at the URL below with runhaskell gives a ghc panic.

Steps to reproduce:

1> cabal update; cabal install netwire-2.0.1
...
2> get http://hpaste.org/54025 into demo.hs
3> runhaskell .\demo.hs
ghc: panic! (the 'impossible' happened)
  (GHC version 7.0.3 for i386-unknown-mingw32):
        addTickHsExpr
    (|/\(@ a{tv a1hy} [sk]).
      (netwire-2.0.1:Control.Wire.Trans.Sample.sample{v reZ} [gid])
      @ a{tv a1hy} [sk]
      @ ghc-prim:GHC.Types.Double{(w) tc 3u}
      @ ghc-prim:GHC.Unit.(){(w) tc 40}
      @ ghc-prim:GHC.Types.Double{(w) tc 3u}
      @ (base:Control.Arrow.Kleisli{tc rcq}
           <nt>ghc-prim:GHC.Types.IO{tc 32I})
        $dArrowChoice{v a1l8} [lid]
        $dArrowClock{v a1l9} [lid]
        $dNum{v a1la} [lid]
        $dOrd{v a1lb} [lid]
        co{tv a1lc} [co]
        (((netwire-2.0.1:Control.Wire.Prefab.Random.noise{v rey} [gid])
          @ (base:Control.Arrow.Kleisli{tc rcq}
               <nt>ghc-prim:GHC.Types.IO{tc 32I})
          @ ghc-prim:GHC.Types.Double{(w) tc 3u}
          @ ghc-prim:GHC.Unit.(){(w) tc 40}
          @ ghc-prim:GHC.Unit.(){(w) tc 40}
            $dArrowRandom{v a1or} [lid]
            $dRandom{v a1os} [lid] -< ghc-prim:GHC.Unit.(){(w) v 71} [gid[DataCon]]))|)

In contrast, compiling normally and running works fine:
 ghc --make demo.hs; .\demo

24> ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.0.3
OS: Windows 7 x64 SP1

Attachments

demo.hs Download (0.9 KB) - added by gareth.rowlands 7 months ago.

Change History

Changed 7 months ago by gareth.rowlands

Changed 6 months ago by igloo

  • description modified (diff)

Changed 6 months ago by igloo

  • status changed from new to infoneeded
  • milestone set to 7.4.1

Would it be possible for you to make a self-contained testcase, please? I think there's a good chance this is fixed already, but I'm having trouble reproducing it.

Changed 4 months ago by igloo

  • status changed from infoneeded to closed
  • difficulty set to Unknown
  • resolution set to fixed

No response from submitter, so assuming this is fixed.

Note: See TracTickets for help on using tickets.