[GHC] #15060: outofmem testcase sometimes crashes on i386

GHC ghc-devs at haskell.org
Wed May 16 20:28:26 UTC 2018


#15060: outofmem testcase sometimes crashes on i386
-------------------------------------+-----------------------------------
        Reporter:  bgamari           |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.4.3
       Component:  Runtime System    |              Version:  8.2.2
      Resolution:                    |             Keywords:  ci-breakage
Operating System:  Unknown/Multiple  |         Architecture:  x86
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D4704
       Wiki Page:                    |
-------------------------------------+-----------------------------------
Changes (by bgamari):

 * differential:   => Phab:D4704
 * milestone:  8.6.1 => 8.4.3


Comment:

 Ahh, I see what is happening here. `mmap` returns `ENOMEM` yet then we
 nevertheless try to `madvise`, which clobbers `errno`, giving us the
 unexpected `EINVAL` error. Consequently we don't detect this to be an out-
 of-memory error. Fix in Phab:D4704.

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


More information about the ghc-tickets mailing list