[haiku-bugs] [Haiku] #16649: MMAP: Out of Memory error instead of EOVERFLOW result during PTS test

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Tue, 08 Dec 2020 10:34:48 -0000

#16649: MMAP: Out of Memory error instead of EOVERFLOW result during PTS test
--------------------------+-----------------------------
 Reporter:  cocobean      |       Owner:  nobody
     Type:  bug           |      Status:  new
 Priority:  normal        |   Milestone:  Unscheduled
Component:  System/POSIX  |     Version:  R1/Development
 Keywords:  mmap, posix   |  Blocked By:
 Blocking:                |    Platform:  All
--------------------------+-----------------------------
 Open POSIX Test Suite fails MMAP 31-1 test with Out of Memory result
 instead of expected EOVERFLOW result.
 {{{
 The mmap() function shall fail if:
  [EOVERFLOW] The file is a regular file and the value of off
  plus len exceeds the offset maximum established in the open
  file description associated with fildes.

  Note: This error condition came to the standard with large
        file extension and cannot be triggered without it.

        So in order to trigger this we need 32 bit architecture
        and largefile support turned on
 }}}
 .

 Ref:
 
https://github.com/haiku/open_posix_testsuite/blob/master/conformance/interfaces/mmap/31-1.c
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/16649>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: