https://bugs.kde.org/show_bug.cgi?id=411100
Bug ID: 411100
Summary: Valgrind does not provide a solution in the error
message when an mmap error is detected.
Product: valgrind
Version: unspecified
Platform: Compiled Sources
OS: Linux
Status: REPORTED
Severity: minor
Priority: NOR
Component: memcheck
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 122258
--> https://bugs.kde.org/attachment.cgi?id=122258&action=edit
Program with large BSS.
VERSION
Valgrind-3.16.0.GIT
SUMMARY
I get this error message:
valgrind: mmap(0x602000, 2147483648) failed in UME with error 22 (Invalid
argument).
valgrind: this can be caused by executables with very large text, data or bss
segments.
Valgrind could indicate a solution to this problem by suggesting the following
linker option:
-Wl,-Ttext-segment=0x68000000
STEPS TO REPRODUCE
1. gcc -o large large.c
2. valgrind ./large
3. gcc -Wl,-Ttext-segment=0x68000000 -o large large.c
4. valgrind ./large
OBSERVED RESULT
valgrind: mmap(0x602000, 2147483648) failed in UME with error 22 (Invalid
argument).
valgrind: this can be caused by executables with very large text, data or bss
segments.
EXPECTED RESULT
A message suggesting usage of the above mentioned linker option.
SOFTWARE/OS VERSIONS
Linux: CentOS Linux release 7.5.1804 (Core)
ADDITIONAL INFORMATION
This has been discussed in threads:
https://sourceforge.net/p/valgrind/mailman/message/36140514/
https://sourceforge.net/p/valgrind/mailman/message/36744406/
--
You are receiving this mail because:
You are watching all bug changes.