Re: [GHC] #7980: runghc dies silently when given large numbers of arguments. Compiled code does not.

#7980: runghc dies silently when given large numbers of arguments. Compiled code does not. ------------------------------------------------+-------------------------- Reporter: totherme | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.6.2 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 Type of failure: Incorrect result at runtime | (amd64) Test Case: | Difficulty: Blocking: | Unknown | Blocked By: | Related Tickets: ------------------------------------------------+-------------------------- Changes (by rwbarton): * difficulty: => Unknown Comment: In HEAD (thanks to commit df810a59d8 of process) your first command produces an error message:
`runghc: /home/rwbarton/bin/ghc: rawSystem: runInteractiveProcess: exec: resource exhausted (Argument list too long)`
(What's going on here is that Linux has both a limit on the total size of the argument list, and the size of each individual argument; and `runghc` packs its entire argument list into a single argument to `ghc`. Your `$(seq 1 100000)` fits comfortably within the limit on the total argument list, but not within the limit on a single argument.) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/7980#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC