Bug 754096 - ltrace crashes on PowerPC if tracing is limited by `-e' to event not present in trace
Summary: ltrace crashes on PowerPC if tracing is limited by `-e' to event not present ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: ltrace
Version: 5.7
Hardware: powerpc
OS: Unspecified
low
medium
Target Milestone: rc
: ---
Assignee: Petr Machata
QA Contact: Miloš Prchlík
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-15 11:58 UTC by Michal Nowak
Modified: 2015-05-05 01:36 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-30 22:39:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Fix (561 bytes, patch)
2011-11-17 16:47 UTC, Petr Machata
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1317 0 normal SHIPPED_LIVE ltrace bug fix update 2013-09-30 21:13:19 UTC

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


Note You need to log in before you can comment on or make changes to this bug.