[GHC] #9124: Infinite loop when printing a (finite) list with just one element

#9124: Infinite loop when printing a (finite) list with just one element ------------------------------------+--------------------------------- Reporter: OoS | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.2 Keywords: | Operating System: Windows Architecture: Unknown/Multiple | Type of failure: None/Unknown Difficulty: Unknown | Test Case: Yes Blocked By: | Blocking: Related Tickets: | ------------------------------------+--------------------------------- If I print a (finite) list with ohne element I get a "<<loop>>" from the runtime. When I remove some where clauses from "buildFrustum", the code works again flawlessly. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9124 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9124: Infinite loop when printing a (finite) list with just one element ---------------------------------+------------------------------------ Reporter: OoS | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.2 Resolution: | Keywords: Operating System: Windows | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: Yes | Blocked By: Blocking: | Related Tickets: ---------------------------------+------------------------------------ Changes (by OoS): * cc: oosync@… (added) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9124#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9124: Infinite loop when printing a (finite) list with just one element ---------------------------------+------------------------------------ Reporter: OoS | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.2 Resolution: | Keywords: Operating System: Windows | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: Yes | Blocked By: Blocking: | Related Tickets: ---------------------------------+------------------------------------ Comment (by nomeata): Could you try to minimize the example? I.e. remove code or replace it by constants and see if the problem still occurs, and then repeat until you cannot simplify it further. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9124#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9124: Infinite loop when printing a (finite) list with just one element ---------------------------------+------------------------------------ Reporter: OoS | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.2 Resolution: | Keywords: Operating System: Windows | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: Yes | Blocked By: Blocking: | Related Tickets: ---------------------------------+------------------------------------ Comment (by OoS): Replying to [comment:2 nomeata]:
Could you try to minimize the example? I.e. remove code or replace it by constants and see if the problem still occurs, and then repeat until you cannot simplify it further.
I've tried that before, but if i remove where clauses from "buildFrustum" the error doesn't occur, so i must show all the code. I try to make a simpler test case. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9124#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9124: Infinite loop when printing a (finite) list with just one element ---------------------------------+------------------------------------ Reporter: OoS | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.2 Resolution: | Keywords: Operating System: Windows | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: Yes | Blocked By: Blocking: | Related Tickets: ---------------------------------+------------------------------------ Comment (by OoS): Replying to [comment:2 nomeata]:
Could you try to minimize the example? I.e. remove code or replace it by constants and see if the problem still occurs, and then repeat until you cannot simplify it further. I've simplified the test case as much as possible. If one removes line 61 (right = vec3Add origin $ rightScaled) the code works.
-- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9124#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9124: Infinite loop when printing a (finite) list with just one element ---------------------------------+------------------------------------ Reporter: OoS | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.8.2 Resolution: invalid | Keywords: Operating System: Windows | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: Yes | Blocked By: Blocking: | Related Tickets: ---------------------------------+------------------------------------ Changes (by nomeata): * status: new => closed * resolution: => invalid Comment: Yes, it is used: In the definition of `rightScaled` (which is used in the definition of `right`). Note that you also have a parameter called `right`. Passing `-Wall` to GHC will make the compiler help you to avoid such problems. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9124#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC