|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1432 Details
Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges
This page provides all information on Problem Report 1432.
Report 1432 Actions
Problem Report Number 1432 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0714 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published 1996-01-22 08:00 Product Standard Internationalised System Calls and Libraries Extended (UNIX 95) Certification Program The Open Brand certification program Test Suite VSU version 4.1.0 Test Identification base/mmap 4 10 Problem Summary TSD4U.00101 This test may fail because the test does not accomodate ETXTBSY conditions. Problem Text
This test may fail because the test does not accomodate ETXTBSY
conditions.
Base WG resolution 1170/129 clarifies that ETXTBSY is a legitimate
error code that can be returned for these interfaces.
The mmap tp3 test has this same issue and is covered in by TSD4U.00038
for VSU 4.0.2.Test Output
TEST PURPOSE #4
A successful call to void *mmap(void *addr, size_t
len, int prot, int flags, int fildes, off_t off) when
fildes is associated with a regular file, the
MAP_PRIVATE flag is set in flags, and the PROT_EXEC
flag is set in prot shall map len bytes at offset off
in the file associated with fildes into the
address space of the process, allow the mapped area to
be executed, and return the location in the address
space at which the mapping is made.
PREP: Obtain the system page size by call to
sysconf(_SC_PAGESIZE)
PREP: Establish signal handlers for SIGSEGV and SIGBUS
PREP: Open a file and initialize it
PREP: Now set proper permissions and re-open file
TEST: mmap() with MAP_PRIVATE returns the address
where file is mapped
ERROR: mmap failed, errno = 26(ETXTBSY - Text file busy)
4 FAIL
TEST PURPOSE #10
A call to void *mmap(void *addr, size_t len, int prot,
int flags, int fildes, off_t off) shall perform
mapping operations on full pages and shall zero-fill any
partial page at the end of a memory region.
PREP: Obtain the system page size by call to
sysconf(_SC_PAGESIZE)
PREP: Establish signal handlers for SIGSEGV and SIGBUS
PREP: Allocate memory for buffer
PREP: Open a file
PREP: Write a page of data to file
TEST: Map half of page from file
ERROR: mmap failed, errno = 26(ETXTBSY - Text file busy)
10 FAIL
TEST PURPOSE #3
A successful call to int mprotect(void *addr, size_t
len, int prot) when prot has the PROT_EXEC flag set
shall change the access protections for the range
[addr,addr+len] to allow the page(s) to be executed
and return 0.
PREP: Obtain the system page size by call to
sysconf(_SC_PAGESIZE)
PREP: Establish signal handlers for SIGSEGV and SIGBUS
PREP: Open a file and initialize it
PREP: Now set proper permissions and re-open file
PREP: Map a page, writeable
TEST: Mprotect((void *)addr,len,PROT_EXEC) returns 0
ERROR: Call to mprotect did not return 0
ERROR: mprotect failed, errno = 26(ETXTBSY - Text file busy)
3 FAILReview Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
We agree this is a test suite deficiency in the test
suite version(s) listed.
Review Type SA Review Start Date null Completed null Status Complete Review Resolution Test Suite Deficiency (TSD) Review Conclusion
This is an agreed Test Suite Deficiency.
Problem Reporting System Options:
- View Report 1432
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority