Re: [GHC] #4505: Segmentation fault on long input (list of pairs)

#4505: Segmentation fault on long input (list of pairs) -------------------------------------+------------------------------------- Reporter: cathper | Owner: (none) Type: bug | Status: new Priority: high | Milestone: Component: Compiler | Version: 7.0.1 Resolution: | Keywords: Segmentation | fault, segfault, long input Operating System: Linux | Architecture: Type of failure: GHC rejects | Unknown/Multiple valid program | Test Case: Blocked By: 4258 | Blocking: Related Tickets: | Differential Rev(s): Phab:D1180 Wiki Page: | -------------------------------------+------------------------------------- Changes (by George): * failure: Runtime crash => GHC rejects valid program * architecture: x86_64 (amd64) => Unknown/Multiple Comment: {{{ Compiling with -O avoids the bug , probably a good idea to change the current error message to mention that. On my Mac with 8.4.1 alpha 3 ghc --version The Glorious Glasgow Haskell Compilation System, version 8.4.0.20180204 ghc --make LongList.hs [1 of 1] Compiling Main ( LongList.hs, LongList.o ) ghc: sorry! (unimplemented feature or known bug) (GHC version 8.4.0.20180204 for x86_64-apple-darwin): Trying to allocate more than 129024 bytes. This is currently not possible due to a limitation of GHC's code generator. See http://hackage.haskell.org/trac/ghc/ticket/4505 for details. Suggestion: read data from a file instead of having large static data structures in code. bash-3.2$ ghc -O LongList.hs [1 of 1] Compiling Main ( LongList.hs, LongList.o ) Linking LongList ... bash-3.2$ ./LongList 8595 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/4505#comment:49 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC