[GHC] #13617: Segfault in Windows GHCi involving C code compiled with -O4

GHC ghc-devs at haskell.org
Sun Jun 4 02:06:03 UTC 2017


#13617: Segfault in Windows GHCi involving C code compiled with -O4
--------------------------------+----------------------------------------
        Reporter:  RyanGlScott  |                Owner:  (none)
            Type:  bug          |               Status:  new
        Priority:  normal       |            Milestone:
       Component:  GHCi         |              Version:  8.0.2
      Resolution:               |             Keywords:
Operating System:  Windows      |         Architecture:  Unknown/Multiple
 Type of failure:  GHCi crash   |            Test Case:
      Blocked By:               |             Blocking:
 Related Tickets:               |  Differential Rev(s):
       Wiki Page:               |
--------------------------------+----------------------------------------

Comment (by RyanGlScott):

 As Phyx- pointed out to me, `-O4` is just an alias for `-O3` in `gcc` and
 `clang`, so the issue is really with `-O3`. I've confirmed that setting
 `gcc-options: -O3` also triggers this segfault, but not with `gcc-options:
 -O2`.

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


More information about the ghc-tickets mailing list