PR0040.html

LSB Problem Report

Problem Report Number 0040 (REJ.0005)
Submitter's Classification Test Suite Problem (TSD)
State Resolved
Resolution Rejected (REJ)
Raised 2003-10-26 16:31
Updated 2003-11-06 09:33
Published 2003-11-06 09:33
Certification Program Linux Standard Base Conformance Release 1.3
Test Suite lsb-runtime IA32 version 1.3.6-3
Test Identification LSB.os/mfiles/mmap_P/T.mmap_P 34
Problem Summary mmap_P 34 segv when more virtual memory is available than expected
Problem Text When a process has a ~4 GiB address space available, the
test segfaults. This is strace output from a process with a
~4 GiB address space instead of a 3 GiB address space:

3 GiB:

chmod("/tmp/vsrt_mmap", 0777) = 0
open("/tmp/vsrt_mmap", O_RDWR) = 5
mmap2(NULL, 1073766400, PROT_WRITE, MAP_SHARED, 5, 0) =
0x77480000
mmap2(NULL, 12288, PROT_NONE, MAP_SHARED, 5, 0) = 0x7747d000
munmap(0x7747d000, 12288) = 0
mmap2(0x7747d000, 2147528704, PROT_WRITE,
MAP_SHARED|MAP_FIXED, 5, 0) = -1 ENOMEM (Cannot allocate memory)
close(5) = 0

4 GiB:

3039 chmod("/tmp/vsrt_mmap", 0777) = 0
3039 open("/tmp/vsrt_mmap", O_RDWR) = 5
3039 mmap2(NULL, 1073766400, PROT_WRITE, MAP_SHARED, 5, 0)
= 0x4018a000
3039 mmap2(NULL, 12288, PROT_NONE, MAP_SHARED, 5, 0) =
0x40017000
3039 munmap(0x40017000, 12288) = 0
3039 mmap2(0x40017000, 2147528704, PROT_WRITE,
MAP_SHARED|MAP_FIXED, 5, 0) = 0x40017000
3039 --- SIGSEGV (Segmentation fault) @ 0 (0) ---
3039 --- SIGBUS (Bus error) @ 0 (0) ---
3039 --- SIGSEGV (Segmentation fault) @ 0 (0) ---
3039 +++ killed by SIGSEGV +++
Test Output 400|721 34 1 20:32:47|IC Start
200|721 34 20:32:47|TP Start
220|721 34 7 20:32:49|NORESULT (auto-generated by TCC)

Review Information

Review Type TSMA Review
Start Date 2003-10-26 16:31
Last Updated 2003-11-03 17:39
Completed 2003-11-03 17:39
Status Complete
Review Recommendation Rejected (REJ)
Review Response This is believed to be an AMD 64 kernel bug.
We recommend that this be rejected.

Review Type SA Review
Start Date 2003-11-03 17:39
Last Updated 2003-11-05 17:09
Completed 2003-11-05 17:09
Status Complete
Review Resolution Rejected (REJ)
Review Conclusion The request is rejected

 

Copyright 2005, The Free Standards Group, All Rights Reserved