|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1448 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 1448.
Report 1448 Actions
Problem Report Number 1448 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0730 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published 1995-12-11 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 1 Problem Summary TSD4U.00085 This test may fail on implementations because the env argument is improperly defined as type jmp_buf. Problem Text
This test may fail on implementations because the env argument is
improperly defined as type jmp_buf which may be smaller than the
proper sigjmp_buf type.
This problem was found to be a problem in the mkmmap.c capi_mmap.a
library source file which was causing some memory info to be overwritten.
The problem is that on line 111 of mkmmap.c the env extern variable is defined
as a jmp_buf type but is used in sigsetjmp() in the mmap test source code.
sigsetjmp() requires its argument to be of type sigjmp_buf and in our
implementation type jmp_buf is considerablely smaller than sigjmp_buf causing
the memory corruption when the sigsetjmp() call writes to the variable.Test Output
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_SHARED flag is set in flags, and the PROT_READ
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 read, 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: Allocate memory for buffer
PREP: Now set proper permissions and re-open file
TEST: mmap() with MAP_SHARED returns the address
where file is mapped
TEST: Mapped page at that address may be read
ERROR: Mapped page has invalid contents
At offset 0 Expected: 1 Received: 1024
1 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 1448
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority