Bug 447587 - bad strace of mmap(0x80000000,...)
bad strace of mmap(0x80000000,...)
Product: Fedora
Classification: Fedora
Component: strace (Show other bugs)
i386 Linux
low Severity low
: ---
: ---
Assigned To: Roland McGrath
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2008-05-20 13:03 EDT by John Reiser
Modified: 2009-06-10 19:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-06-10 19:37:35 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description John Reiser 2008-05-20 13:03:17 EDT
Description of problem: Strace prints the result of a successful
mmap(0x80000000,...) as if it were some kind of error.

Version-Release number of selected component (if applicable):

How reproducible: always

Steps to Reproduce:
1. build and strace the program below
Actual results:
mmap2(0x80000000, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= -1 E??? (errno -2147483648)

Expected results:
mmap2(0x80000000, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x80000000

Additional info:
----- testcase
#include <sys/types.h>
#include <sys/mman.h>
#include <stdio.h>

	    mmap(0x80000000, 0x10000,
	return 0;
Comment 1 Roland McGrath 2008-05-27 19:18:43 EDT
Fixed upstream.
Comment 2 Bug Zapper 2009-06-09 21:02:28 EDT
This message is a reminder that Fedora 9 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 9.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '9'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 9's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 9 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
Comment 3 John Reiser 2009-06-10 19:37:35 EDT
Bug is no longer present in strace-4.5.18-2.fc11.i586:

mmap2(0x80000000, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80000000

This bugzilla report probably should have been Closed one year ago (2008-05-27); see Comment #1.

Note You need to log in before you can comment on or make changes to this bug.