Ticket #2938 (closed bug: duplicate)

Opened 4 years ago

Last modified 4 years ago

excessive use of stack space with longer source lists

Reported by: rk Owned by:
Priority: normal Milestone:
Component: Compiler Version: 6.10.1
Keywords: Cc:
Operating System: Linux Architecture: x86_64 (amd64)
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

ghc does not handle long lists in a good way at the moment

compiling the attached file take to much stack space ...

Attachments

Helvetica.hs Download (218.7 KB) - added by rk 4 years ago.
test case

Change History

Changed 4 years ago by rk

test case

Changed 4 years ago by simonmar

  • status changed from new to closed
  • difficulty set to Unknown
  • resolution set to duplicate

See #2002: we concluded that it was reasonable for GHC to use linear stack space when compiling deeply nested structures, and we have increased GHC's default maximum stack size. The workaround for now is to do this yourself with +RTS -K512m.

Note: See TracTickets for help on using tickets.