Opened 4 years ago

Last modified 2 years ago

#16649 closed bug

MMAP: Out of Memory error instead of EOVERFLOW result during PTS test — at Version 1

Reported by: cocobean Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: System/POSIX Version: R1/Development
Keywords: mmap, posix Cc:
Blocked By: Blocking:
Platform: All

Description (last modified by cocobean)

Open POSIX Test Suite fails MMAP 31-1 test with Out of Memory result instead of expected EOVERFLOW result. The test is failing on Haiku R1B2 x86 (+123).

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

Change History (1)

comment:1 by cocobean, 4 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.