[GHC] #14669: 32-bit binaries sometimes throw a stack overflow on shutdown.

GHC ghc-devs at haskell.org
Sat Jan 20 20:36:11 UTC 2018


#14669: 32-bit binaries sometimes throw a stack overflow on shutdown.
-----------------------------------+----------------------------------
        Reporter:  sergv           |                Owner:  (none)
            Type:  bug             |               Status:  infoneeded
        Priority:  normal          |            Milestone:
       Component:  Runtime System  |              Version:  8.2.1
      Resolution:                  |             Keywords:
Operating System:  Windows         |         Architecture:  x86
 Type of failure:  Runtime crash   |            Test Case:
      Blocked By:                  |             Blocking:
 Related Tickets:                  |  Differential Rev(s):
       Wiki Page:                  |
-----------------------------------+----------------------------------

Comment (by sergv):

 After quite some trial and error I figured out why debug RTS works and
 release doesn't. It boils down to `gcc` compiler optimizations that RTS
 was compiled with - deubg is build with `-O0` and release with `-O2`. If I
 build debug RTS with `-O2`, `-O1` or `-Og` then I can reproduce the crash
 as well. However, the exact cause of the problem is not known yet.

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


More information about the ghc-tickets mailing list