[GHC] #10745: Error in fusion when compiling Data.Yaml

#10745: Error in fusion when compiling Data.Yaml -----------------------------------------+--------------------------------- Reporter: nclarke | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Keywords: | Operating System: Linux Architecture: x86_64 (amd64) | Type of failure: None/Unknown Test Case: | Blocked By: Blocking: | Related Tickets: Differential Revisions: | -----------------------------------------+--------------------------------- {{{ [2 of 7] Compiling Data.Yaml.Internal ( Data/Yaml/Internal.hs, dist/dist- sandbox-b22ce51e/build/Data/Yaml/Internal.o ) Data/Yaml/Internal.hs:28:1: Warning: The import of ‘Control.Applicative’ is redundant except perhaps to import instances from ‘Control.Applicative’ To import instances alone, use: import Control.Applicative() ghc: panic! (the 'impossible' happened) (GHC version 7.10.2 for x86_64-unknown-linux): Tick in rule unstream @ a34_ayco @ Void @ m_aycm @ b_aycn (ConduitWithStream @ a34_ayco @ Void @ m_aycm @ b_aycn (let { $dApplicative_aycu :: Applicative (ConduitM a34_ayco Void m_aycm) [LclId, Str=DmdType] $dApplicative_aycu = $fApplicativeConduitM @ a34_ayco @ Void @ m_aycm ($fFunctorConduitM @ a34_ayco @ Void @ m_aycm) } in letrec { loop_aycv :: b_aycn -> ConduitM a34_ayco Void m_aycm b_aycn [LclId, Arity=1, Str=DmdType] loop_aycv = \ (accum_aycw :: b_aycn) -> $fMonadConduitM_$c>>= @ a34_ayco @ Void @ m_aycm $dApplicative_aycu @ (Maybe a34_ayco) @ b_aycn ((await @ a34_ayco @ m_aycm $dMonad1_aycq) @ Void) (maybe @ (ConduitM a34_ayco Void m_aycm b_aycn) @ a34_ayco ($fMonadConduitM_$creturn @ a34_ayco @ Void @ m_aycm $dApplicative_aycu @ b_aycn accum_aycw) (\ (a35_aycx :: a34_ayco) -> $fMonadConduitM_$c>>= @ a34_ayco @ Void @ m_aycm $dApplicative_aycu @ b_aycn @ b_aycn ($ @ (m_aycm b_aycn) @ (ConduitM a34_ayco Void m_aycm b_aycn) ($fMonadBasebaseConduitM_$clift @ a34_ayco @ Void @ m_aycm @ b_aycn $dMonad1_aycq) (f_aycs accum_aycw a35_aycx)) (\ (accum'_aycy :: b_aycn) -> case accum'_aycy of wild_aycz { __DEFAULT -> loop_aycv wild_aycz }))); } in loop_aycv b1_ayct) (foldMS @ b_aycn @ a34_ayco @ m_aycm $dMonad1_aycq f_aycs b1_ayct @ Void)) }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10745 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10745: Error in fusion when compiling Data.Yaml ---------------------------------+----------------------------------------- Reporter: nclarke | Owner: Type: bug | Status: infoneeded Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #10665 | Differential Revisions: ---------------------------------+----------------------------------------- Changes (by thomie): * status: new => infoneeded * related: => #10665 Comment: I can't reproduce this. I am assuming you are trying to run `cabal install yaml` with ghc-7.10.2. This worked for me, but I might have different versions of dependencies installed than you. Can you give the exact command(s) you are running that will fail when run in a cabal sandbox, after temporarily renaming your .cabal/config file to something else. Thanks. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10745#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10745: Error in fusion when compiling Data.Yaml ---------------------------------+----------------------------------------- Reporter: nclarke | Owner: Type: bug | Status: infoneeded Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: ---------------------------------+----------------------------------------- Changes (by bgamari): * related: #10665 => Comment: Interesting but I have been unable to reproduce this locally. What version of `yaml` is this? Perhaps you could paste the output of `cabal install -n -v3 yaml` so we can document which dependencies are being pulled in here? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10745#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10745: Error in fusion when compiling Data.Yaml
---------------------------------+-----------------------------------------
Reporter: nclarke | Owner:
Type: bug | Status: merge
Priority: normal | Milestone: 7.10.3
Component: Compiler | Version: 7.10.2
Resolution: | Keywords:
Operating System: Linux | Architecture: x86_64 (amd64)
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Revisions:
---------------------------------+-----------------------------------------
Changes (by simonpj):
* status: infoneeded => merge
* milestone: => 7.10.3
Comment:
I believe this is fixed by
{{{
commit bc4b64ca5b99bff6b3d5051b57cb2bc52bd4c841
Author: Simon Peyton Jones

#10745: Error in fusion when compiling Data.Yaml ---------------------------------+----------------------------------------- Reporter: nclarke | Owner: Type: bug | Status: merge Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: ---------------------------------+----------------------------------------- Changes (by nclarke): * milestone: 7.10.3 => Comment: I got this on both `0.8.11` and `0.8.12`, but I likewise have been unable to reproduce in a fresh sandbox. It happened consistently when building in one particular sandbox, and I'm surprised that the compiler was doing was being affected by this, but apparently it was. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10745#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10745: Error in fusion when compiling Data.Yaml ---------------------------------+----------------------------------------- Reporter: nclarke | Owner: Type: bug | Status: merge Priority: normal | Milestone: 7.10.3 Component: Compiler | Version: 7.10.2 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: ---------------------------------+----------------------------------------- Changes (by nclarke): * milestone: => 7.10.3 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10745#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10745: Error in fusion when compiling Data.Yaml ---------------------------------+----------------------------------------- Reporter: nclarke | Owner: Type: bug | Status: merge Priority: normal | Milestone: 7.10.3 Component: Compiler | Version: 7.10.2 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: ---------------------------------+----------------------------------------- Comment (by rwbarton): Do you still have the failing sandbox? If so can you try `cabal build --ghc-option=-dppr-ticks`? There are a few different kinds of ticks and knowing which kind it is might reveal what is special about your sandbox (e.g. profiling or HPC or debugging information is turned on). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10745#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10745: Error in fusion when compiling Data.Yaml
---------------------------------+-----------------------------------------
Reporter: nclarke | Owner:
Type: bug | Status: merge
Priority: normal | Milestone: 7.10.3
Component: Compiler | Version: 7.10.2
Resolution: | Keywords:
Operating System: Linux | Architecture: x86_64 (amd64)
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Revisions:
---------------------------------+-----------------------------------------
Comment (by nclarke):
I didn't have the sandbox, but this issue has reappeared, so I've been
able to build with -dppr-ticks:
{{{
ghc: panic! (the 'impossible' happened)
(GHC version 7.10.2 for x86_64-unknown-linux):
Tick in rule
hpc

#10745: Error in fusion when compiling Data.Yaml ---------------------------------+-------------------------------------- Reporter: nclarke | Owner: Type: bug | Status: closed Priority: normal | Milestone: 7.10.3 Component: Compiler | Version: 7.10.2 Resolution: fixed | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): ---------------------------------+-------------------------------------- Changes (by bgamari): * status: merge => closed * resolution: => fixed Comment: The patch referenced by simonpj in comment:3 has been merged to `ghc-7.10` as db85cbc689b50b52b08ae6326b51ff5d6f50932e. Closing. Reopen if you find this still occurs with the to-be-released 7.10.3. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10745#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC