On the little-endian variant of 64-bit IBM Power Systems (ppc64le), a bug in the dynamic loader could cause applications compiled with profiling enabled to fail to start with the error "monstartup: out of memory". The bug has been corrected and applications compiled for profiling now start correctly.
Description of problem:
A binary compiled with "-pg" doesn't produce any profiling information (no gmon.out). The application start with an error message.
Version-Release number of selected component (if applicable):
Name : glibc
Version : 2.17
Release : 103.el7
Architecture: ppc64le
How reproducible:
Every time
Steps to Reproduce:
1. Create a a basic C file:
#include <stdio.h>
int main(void)
{
printf("Hello World\n");
return 0;
}
2. Compile: gcc -o hello -pg hello.c
3. Run:
$ ./hello
monstartup: out of memory
Hello World
$ ls gmon.out
ls: cannot access gmon.out: No such file or directory
Actual results:
Error at starting.
No gmon.out file
Expected results:
No error.
A gmon.out file to use.
Additional info:
According to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1402726
This bug is fixed upstream by:
https://sourceware.org/git/?p=glibc.git;a=commit;h=a53fbd8e6cd2f69bdfa3431d616a5f332aea6664
Thanks for the bug and the reference to the upstream commit.
We are outside of the RHEL 7.2 development window right now, so we are considering this for RHEL 7.3.
Hello,
This bug has been copied as 7.2 z-stream (EUS) bug #1298930
Thank You
Joe Kachuck
Comment 19Hanns-Joachim Uhl
2016-01-19 19:32:51 UTC
(In reply to Joseph Kachuck from comment #18)
> Hello,
> This bug has been copied as 7.2 z-stream (EUS) bug #1298930
>
> Thank You
> Joe Kachuck
.
... I think this has to read "... bug #1298956 ..." ...
... please confirm or advise ...
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://rhn.redhat.com/errata/RHSA-2016-2573.html
Description of problem: A binary compiled with "-pg" doesn't produce any profiling information (no gmon.out). The application start with an error message. Version-Release number of selected component (if applicable): Name : glibc Version : 2.17 Release : 103.el7 Architecture: ppc64le How reproducible: Every time Steps to Reproduce: 1. Create a a basic C file: #include <stdio.h> int main(void) { printf("Hello World\n"); return 0; } 2. Compile: gcc -o hello -pg hello.c 3. Run: $ ./hello monstartup: out of memory Hello World $ ls gmon.out ls: cannot access gmon.out: No such file or directory Actual results: Error at starting. No gmon.out file Expected results: No error. A gmon.out file to use. Additional info: According to: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1402726 This bug is fixed upstream by: https://sourceware.org/git/?p=glibc.git;a=commit;h=a53fbd8e6cd2f69bdfa3431d616a5f332aea6664