|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1313 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 1313.
Report 1313 Actions
Problem Report Number 1313 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0595 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published 1998-04-23 08:00 Product Standard Internationalised System Calls and Libraries Extended V2 (UNIX 98) Certification Program The Open Brand certification program Test Suite VSU version 5.0.2 Test Identification Base/mmap 42 Problem Summary TSD4U.00223 This test may fail due to pointer arithmetic promotions. Corrected in the VSU502A patch Problem Text
Constructs of the form adr3+n*pgsz are producing the wrong results as
the compiler is promoting the pgsz operand to an int * before the addition,
thus it is becoming sizeof(int) times too large. The fix is to use
ipgsz instead.Test Output
TEST CASE: mmap
TEST PURPOSE #42
The mapping established by a call to void *mmap(void
*addr, size_t len, int prot, int flags, int fildes,
off_t off) shall replace any previous mappings for
those whole pages containing any part of the address
space of the process starting at pa and continuing for
len bytes.
PREP: Obtain the system page size by call to
sysconf(_SC_PAGESIZE)
PREP: Establish signal handlers
PREP: Create the file ../tmp/mmap42.file.1
PREP: Allocate memory for buffer
PREP: Write 10240 words with value 11 to the file
PREP: Create the file ../tmp/mmap42.file.2
PREP: Allocate memory for buffer
PREP: Write 1024 words with value 22 to the file
PREP: Create the file ../tmp/mmap42.file.3
PREP: Allocate memory for buffer
PREP: Write 4096 words with value 33 to the file
PREP: Map file1 in the process address space
PREP: Verify contents of the mapped area
PREP: Map file2 such that it overlaps mapping of file1
PREP: Map file3 such that it overlaps mapping of file1
TEST: New mapping replace the contents of previous mapping
TEST: New mapping zero fills partial page at the end of file
TEST: New mappings replace the previous accesses
INFO: Write to a write protected mapped page of file3
TEST: Write references to the mapped area changes
the new file.
INFO: Write to the mapped area
INFO: read from the file
TEST: Write references to the mapped area do not
change the previously mapped file.
INFO: read from the file
CLEANUP: Unmap segments & close files
ERROR: Test took longer than 600 seconds: presuming
function is hung and terminating test
42 FAIL
Review 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 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 1313
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority