[GHC] #14615: Segfault when printing a simple string

#14615: Segfault when printing a simple string -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.2.2 Keywords: Christmas | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- This segfaults on GHC 8.2.1 and 8.3.20171208 {{{#!hs -- Segfault.hs main = do let xs = [1,1,1,1,1,1,5,0,1,1,1,1,1,4,2,4,0,1,1,1,1,4,2,2,2,4,0,1,1,1,4,2,3,2,2,3,4,0,1,1,4,3,2,2,3,2,2,2,4,0,1,4,2,2,3,2,2,2,3,2,2,4,0,4,2,3,2,2,2,3,2,2,3,2,2,4,0,1,1,1,1,1,1,2,0,1,1,1,1,1,1,2] let f ?? x = fmap ($ x) f putStrLn (traverse ((??) (!!)) xs "\n #%.t") }}} when running it as {{{ $ runghc -ignore-dot-ghci -dcore-lint -fdefer-type-errors Segfault.hs Segmentation fault: 11 }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14615 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14615: Segfault when printing a simple string -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: (none) Type: bug | Status: infoneeded Priority: normal | Milestone: Component: Compiler | Version: 8.2.2 Resolution: | Keywords: Christmas Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by dfeuer): * status: new => infoneeded Comment: The program in question seems to work just fine on Linux with both GHC 8.2.1 and a fairly recent head. Based on the program behavior and the `Christmas` keyword, I have to ask if this report is a joke. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14615#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14615: Segfault when printing a simple string -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: (none) Type: bug | Status: infoneeded Priority: normal | Milestone: Component: Compiler | Version: 8.2.2 Resolution: | Keywords: Christmas Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by dfeuer): * cc: dfeuer (added) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14615#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14615: Segfault when printing a simple string -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 8.2.2 Resolution: worksforme | Keywords: Christmas Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by Iceland_jack): * status: infoneeded => closed * resolution: => worksforme Comment: I ran the program again and the output seems indicative of a joke -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14615#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC