[prev in list] [next in list] [prev in thread] [next in thread] 

List:       haiku-bugs
Subject:    [haiku-bugs] [Haiku] #17224: MMAP: process address mapping uses all avail memory due to no ENOMEM re
From:       "Haiku" <trac () haiku-os ! org>
Date:       2021-08-28 18:03:40
Message-ID: 044.5ed90f5d8456214bbf39af48aae9d2eb () haiku-os ! org
[Download RAW message or body]

--==============)84238915500197120=MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

#17224: MMAP: process address mapping uses all avail memory due to no ENOMEM result
--------------------------+--------------------------
 Reporter:  cocobean      |       Owner:  nobody
     Type:  bug           |      Status:  new
 Priority:  normal        |   Milestone:  Unscheduled
Component:  System/POSIX  |     Version:  R1/beta3
 Keywords:  mmap, posix   |  Blocked By:
 Blocking:                |    Platform:  All
--------------------------+--------------------------
 Open POSIX Test Suite fails MMAP 24-1 test. Does not provided ENOMEM
 result when available or free memory resource(s) is near exhaustion (i.e.
 insufficient room in the address space for continued memory mapping).

 The test will hold used memory resources even if the thread is killed.
 Tested on Haiku R1B3 x86_64 (+56).


 {{{
   The mmap() function shall fail if:
   [ENOMEM] MAP_FIXED was specified, and the range [addr,addr+len)
   exceeds that allowed for the address space of a process;
   or, if MAP_FIXED was not specified and
   there is insufficient room in the address space to effect the mapping.

   Test Steps:
   1. In a very long loop, keep mapping a shared memory object,
      until there this insufficient room in the address space;
   2. Should get ENOMEM.
 }}}



 Ref:
 ​https://github.com/haiku/open_posix_testsuite/blob/master/conformance/interfaces/mmap/24-1.c
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/17224>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.
--==============)84238915500197120==--

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic