Bug 754096

Summary: ltrace crashes on PowerPC if tracing is limited by `-e' to event not present in trace
Product: Red Hat Enterprise Linux 5 Reporter: Michal Nowak <mnowak>
Component: ltraceAssignee: Petr Machata <pmachata>
Status: CLOSED ERRATA QA Contact: Miloš Prchlík <mprchlik>
Severity: medium Docs Contact:
Priority: low    
Version: 5.7CC: mfranc, mnewsome, mprchlik, ohudlick
Target Milestone: rc   
Target Release: ---   
Hardware: powerpc   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-30 22:39:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Fix none

Description Michal Nowak 2011-11-15 11:58:44 UTC
Description of problem:

In

# ltrace /bin/true 
WARNING: Using e_entry from elf header (0x10000970) for address of "_start"
_start(1, 0xff9ef7f4, 0xff9ef7fc, 0xff9ef890, 0xffbf110 <unfinished ...>
__libc_start_main(1, 0xff9ef7f4, 0xff9ef7fc, 0xff9ef890, 0xffbf110 <unfinished ...>
setlocale(6, "")                                 = "en_US.UTF-8"
bindtextdomain("coreutils", "/usr/share/locale") = "/usr/share/locale"
textdomain("coreutils")                          = "coreutils"
__cxa_atexit(0x10000d40, 0, 0, 29440, 0x7574696c) = 0
exit(0 <unfinished ...>
__fpending(0xff803f8, 0, 0, 0, 0xff810c8)        = 0
fclose(0xff803f8)                                = 0
+++ exited (status 0) +++

there's no puts() event, let's limit ltrace to that call (sic):

# ltrace -e puts /bin/true 
WARNING: Using e_entry from elf header (0x10000970) for address of "_start"
Segmentation fault

Version-Release number of selected component (if applicable):

ltrace-0.5-13.45svn.el5_7.11.ppc64, ltrace-0.5-13.45svn.ppc64

How reproducible:

Always. PPC only only, it seems.
  
Actual results:

Crash.

Expected results:

Nothing on ltrace output as well as no crash.

Comment 1 Petr Machata 2011-11-17 16:47:35 UTC
Created attachment 534243 [details]
Fix

The bug is in ppc-only code.  This happens when there are no symbols to trace.

Comment 3 RHEL Program Management 2011-11-17 16:57:31 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 7 RHEL Program Management 2013-04-26 19:28:39 UTC
This request was evaluated by Red Hat Product Management for
inclusion in a Red Hat Enterprise Linux release.  Product
Management has requested further review of this request by
Red Hat Engineering, for potential inclusion in a Red Hat
Enterprise Linux release for currently deployed products.
This request is not yet committed for inclusion in a release.

Comment 11 errata-xmlrpc 2013-09-30 22:39:46 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.

http://rhn.redhat.com/errata/RHBA-2013-1317.html