[GHC] #9885: ghc-pkg parser eats too much memory

GHC ghc-devs at haskell.org
Mon Jan 22 01:39:31 UTC 2018


#9885: ghc-pkg parser eats too much memory
-------------------------------------+-------------------------------------
        Reporter:  gnezdo            |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  low               |            Milestone:
       Component:  ghc-pkg           |              Version:  7.8.3
      Resolution:                    |             Keywords:
Operating System:  Linux             |         Architecture:
 Type of failure:  Runtime           |  Unknown/Multiple
  performance bug                    |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
-------------------------------------+-------------------------------------

Comment (by Ben Gamari <ben@…>):

 In [changeset:"2671cccde749ed64129097358f81bff43480cdb9/ghc" 2671ccc/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="2671cccde749ed64129097358f81bff43480cdb9"
 Update Cabal submodule

 - Cabal-2.2 uses SPDX license identifiers, so I had to update
   `cabal-version: 2.1` packages `license: BSD3` to `license: BSD-3-Clause`
 - `ghc-cabal` used old ReadP parsec, now it uses `parsec` too
 - InstalledPackageInfo pretty-printing have changed a little,
   fields with default values aren't printed. This can be changed in
   `Cabal` still, but I haven't found problems with omitting them.

 Note: `BSD-3-Clause` is parsed as "name = BSD, version = 3" by old
 parser (because 3-Clause looks like version 3 with tag Clause).
 If you see *"BSD-3" is not a valid license*, then something is using
 old parser still.

 Fixes #9885.
 }}}

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9885#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list