Bug 352384

Summary: mmap-FIXED failed in UME (load_segment2)
Product: [Developer tools] valgrind Reporter: FX <fxcoudert>
Component: generalAssignee: Rhys Kidd <rhyskidd>
Status: CONFIRMED ---    
Severity: normal CC: austinenglish, rhyskidd
Priority: NOR    
Version: 3.10 SVN   
Target Milestone: ---   
Platform: Compiled Sources   
OS: macOS   
See Also: https://bugs.kde.org/show_bug.cgi?id=349804
https://bugs.kde.org/show_bug.cgi?id=138424
Latest Commit: Version Fixed In:

Description FX 2015-09-07 14:27:35 UTC
Using valgrind trunk (revision 15637) compiled from sources on Mac OS 10.11 (El Capitan), I get the following error on certain executables (in this case, the GCC compilers):

$ valgrind --version
valgrind-3.11.0.SVN
$ valgrind ./f951
valgrind: mmap-FIXED(0x1015a2000, 1075085312) failed in UME (load_segment2) with error 22 (Invalid argument).

The bzip2'ed executable "f951" can be found at this URL: https://www.dropbox.com/s/wzzj20gte9dm8vh/f951.bz2?dl=0
Comment 1 Rhys Kidd 2015-09-07 15:12:12 UTC
Hello,
To these executables have any packers like UPX run on them?
Comment 2 FX 2015-09-07 15:13:13 UTC
(In reply to Rhys Kidd from comment #1)
> To these executables have any packers like UPX run on them?

Nope.
Comment 3 Rhys Kidd 2015-09-12 06:29:51 UTC
I'm removing this as a blocker on OS X 10.11 support, as the same error is reported with current and prior OS X releases.

The underlying issue here is related to other reports of failure mmap'ing low addresses within the executable, where Valgrind also maps itself. e.g. can be caused by executables with very large text, data or bss segments.

There is some further discussion that can be found here: bz#138424 or with a quick search through closed bug reports with "mmap-FIXED".