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

GHC ghc-devs at haskell.org
Sun Aug 25 21:31:43 UTC 2013


#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




More information about the ghc-tickets mailing list