Bug 447587 - bad strace of mmap(0x80000000,...)
Summary: bad strace of mmap(0x80000000,...)
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: strace
Version: 9
Hardware: i386
OS: Linux
low
low
Target Milestone: ---
Assignee: Roland McGrath
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-05-20 17:03 UTC by John Reiser
Modified: 2009-06-10 23:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-06-10 23:37:35 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description John Reiser 2008-05-20 17:03:17 UTC
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):
strace-4.5.16-5.fc9.i386


How reproducible: always


Steps to Reproduce:
1. build and strace the program below
2.
3.
  
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>

main()
{
	printf("%p\n",
	    mmap(0x80000000, 0x10000,
	        PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0));
	return 0;
}
-----

Comment 1 Roland McGrath 2008-05-27 23:18:43 UTC
Fixed upstream.

Comment 2 Bug Zapper 2009-06-10 01:02:28 UTC
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: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 3 John Reiser 2009-06-10 23:37:35 UTC
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.