Bug 1249102

Summary: "monstartup: out of memory" on PPC64LE
Product: Red Hat Enterprise Linux 7 Reporter: Laurent Vivier <lvivier>
Component: glibcAssignee: Martin Sebor <msebor>
Status: CLOSED ERRATA QA Contact: Arjun Shankar <ashankar>
Severity: medium Docs Contact:
Priority: high    
Version: 7.2CC: ashankar, bgollahe, bugproxy, codonell, fweimer, hannsj_uhl, jkachuck, mmilgram, mnewsome, msebor, pbokoc, pfrankli, tgummels, woodard
Target Milestone: rcKeywords: Patch, ZStream
Target Release: 7.3   
Hardware: ppc64le   
OS: Linux   
Whiteboard:
Fixed In Version: glibc-2.17-108.el7_3 Doc Type: Bug Fix
Doc Text:
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.
Story Points: ---
Clone Of:
: 1298956 (view as bug list) Environment:
Last Closed: 2016-11-03 08:24:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1203710, 1230910, 1276040, 1297579, 1298956, 1364088    

Description Laurent Vivier 2015-07-31 13:36:11 UTC
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

Comment 3 Carlos O'Donell 2015-08-04 16:12:19 UTC
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.

Comment 8 Florian Weimer 2015-12-10 13:35:43 UTC
*** Bug 1290414 has been marked as a duplicate of this bug. ***

Comment 18 Joseph Kachuck 2016-01-19 18:04:26 UTC
Hello,
This bug has been copied as 7.2 z-stream (EUS) bug #1298930

Thank You
Joe Kachuck

Comment 19 Hanns-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 ...

Comment 20 Joseph Kachuck 2016-01-19 21:01:45 UTC
Hello,
Yes I apologize that was a typo:
 This bug has been copied as 7.2 z-stream (EUS) bug #1298956

Thank You
Joe Kachuck

Comment 23 errata-xmlrpc 2016-11-03 08:24:15 UTC
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