PR0035.html

LSB Problem Report

Problem Report Number 0035 (TSD.0022)
Submitter's Classification Test Suite Problem (TSD)
State Resolved
Resolution Test Suite Deficiency (TSD)
Raised 2003-09-08 19:44
Updated 2003-09-11 06:24
Published 2003-09-11 06:24
Certification Program Linux Standard Base Conformance Release 1.3
Test Suite lsb-runtime PPC32 version 1.3.6-3
Test Identification LSB.os/mfiles/munmap_P/T.munmap_P 4
Specification Linux Standard Base Specification 1.3
Location in Spec Chapter 13
Problem Summary incorrect VSRT_ADDR_SPACE_PAGES causes munmap_P 4 to fail
Problem Text The test suite currently defaults to a value of 524300 on
ppc. When munmap_P 4 sets up its maps, it obtains an
address for the second addr (the addr variable) that is more
than (524300 * page size) from the end of the address space
for the process. The result is that the munmap succeeds in
unmapping the entire region, which includes system
libraries. The child process segfaults in a loop and the
parent times out waiting.

Testing here shows that a value of 786409 works. I do not
know how this impacts other test cases.

regions from /proc/$PID/maps from a simplified test case:
000000000fe9d000-000000000ffd9000 /lib/tls/libc-2.3.2.so
000000000ffd9000-000000000ffdd000 /lib/tls/libc-2.3.2.so
000000000ffdd000-000000000ffed000 /lib/tls/libc-2.3.2.so
000000000ffed000-000000000fff0000
0000000010000000-0000000010001000 /root/testcase
0000000010010000-0000000010012000 /root/testcase
0000000040000000-0000000040017000 /lib/ld-2.3.2.so
0000000040017000-0000000040019000
0000000040026000-0000000040028000 /lib/ld-2.3.2.so
00000000ffffd000-00000000fffff000

strace output:
open("/tmp/test_file", O_RDWR) = 3
mmap(NULL, 1073766400, PROT_READ, MAP_SHARED, 3, 0) = 0x40028000
mmap(NULL, 8192, PROT_READ, MAP_SHARED, 3, 0) = 0x40019000
munmap(0x40019000, 2147528704) = 0
write(1, "munmap did not fail\n", 20) = 20

0x40019000 + 2147528704 = 3221372928, which is below the 4GB
- 1 page address space on ppc.
Test Output 200|726 4 22:05:27|TP Start
520|726 4 00018466 1 1|munmap did not fail
520|726 4 00018455 2 1|vsrt_wait_for: Timed-out waiting for
child to exit
520|726 4 00018455 2 2|shared memory not required
220|726 4 1 22:05:40|FAIL

Review Information

Review Type TSMA Review
Start Date 2003-09-08 19:44
Last Updated 2003-09-09 15:13
Completed 2003-09-09 15:13
Status Complete
Review Recommendation Test Suite Deficiency (TSD)
Review Response This is an agreed test suite deficiency.

Review Type SA Review
Start Date 2003-09-09 14:13
Last Updated 2003-09-11 06:23
Completed 2003-09-11 06:23
Status Complete
Review Resolution Test Suite Deficiency (TSD)
Review Conclusion A test suite deficiency is granted.

 

Copyright 2005, The Free Standards Group, All Rights Reserved