Bug 589920 - bad dwarf cfi data in yp-tools binary
bad dwarf cfi data in yp-tools binary
Status: CLOSED CURRENTRELEASE
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: yp-tools (Show other bugs)
6.0
All Linux
low Severity medium
: rc
: ---
Assigned To: Karel Klíč
Ales Zelinka
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-05-07 06:05 EDT by Mark Wielaard
Modified: 2010-11-10 16:59 EST (History)
2 users (show)

See Also:
Fixed In Version: yp-tools-2.9-10.el6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-11-10 16:59:53 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
python script to check for bad cfi in a binary (1.76 KB, text/plain)
2010-05-07 06:28 EDT, Mark Wielaard
no flags Details

  None (edit)
Description Mark Wielaard 2010-05-07 06:05:58 EDT
Description of problem:

An old version of gcc generated bad dwarf cfi expressions. This would not impact the functioning of the package itself, but might make debugging the binary with gdb, or tracing with systemtap less practical. This isn't a very high priority. But if the package can be rebuild with a current toolchain, gcc-4.4.3-19.el6 or later, that would solve this issue. Background information: http://gcc.gnu.org/ml/gcc-patches/2010-04/msg01422.html This only affects a very small number of packages (and only the i686 binaries).

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

yp-tools-2.9-9.el6.i686 (/usr/bin/yppasswd, /usr/bin/ypchfn, /usr/bin/ypchsh)

The attached check_cfi.py script (thanks to Petr Machata) can be used to check the output of readelf --debug-dump=frames to see whether the faulty dwarf cfi expressions are present in the binary. There should be no output, currently the output is:

-rwxr-xr-x. 3 root root 19K Feb 26 16:28 /usr/bin/yppasswd
readelf --debug-dump=frames /usr/bin/yppasswd | tail -n +3 | python check_cfi.py
['00000000', '00000014', '00000000', 'CIE']
   DW_CFA_def_cfa: r4 (esp) ofs 4
   DW_CFA_offset: r8 (eip) at cfa-4
   DW_CFA_nop
   DW_CFA_nop
['00000144', '00000044', '00000148', 'FDE', 'cie=00000000', 'pc=08049880..0804b1
49']
   DW_CFA_advance_loc: 4 to 08049884
>  DW_CFA_def_cfa: r1 (ecx) ofs 0
   DW_CFA_advance_loc: 9 to 0804988d
   DW_CFA_expression: r5 (ebp) (DW_OP_breg5: 0)
   DW_CFA_advance_loc: 6 to 08049893
   DW_CFA_expression: r7 (edi) (DW_OP_breg5: -4)
   DW_CFA_advance_loc: 3 to 08049896
>  DW_CFA_def_cfa_expression (DW_OP_breg5: -16; DW_OP_deref)
   DW_CFA_advance_loc: 10 to 080498a0
   DW_CFA_expression: r3 (ebx) (DW_OP_breg5: -12)
   DW_CFA_expression: r6 (esi) (DW_OP_breg5: -8)
   DW_CFA_advance_loc2: 521 to 08049aa9
   DW_CFA_remember_state
>  DW_CFA_def_cfa_register: r1 (ecx)
   DW_CFA_advance_loc: 1 to 08049aaa
   DW_CFA_restore: r3 (ebx)
   DW_CFA_advance_loc: 1 to 08049aab
   DW_CFA_restore: r6 (esi)
   DW_CFA_advance_loc: 1 to 08049aac
   DW_CFA_restore: r7 (edi)
   DW_CFA_advance_loc: 1 to 08049aad
   DW_CFA_restore: r5 (ebp)
   DW_CFA_advance_loc: 3 to 08049ab0
   DW_CFA_def_cfa: r4 (esp) ofs 4
   DW_CFA_advance_loc: 8 to 08049ab8
   DW_CFA_restore_state
   DW_CFA_nop
   DW_CFA_nop
error in instr #17, DW_CFA_def_cfa_register


readelf --debug-dump=frames /usr/bin/ypchfn | tail -n +3 | python check_cfi.py
['00000000', '00000014', '00000000', 'CIE']
   DW_CFA_def_cfa: r4 (esp) ofs 4
   DW_CFA_offset: r8 (eip) at cfa-4
   DW_CFA_nop
   DW_CFA_nop
['00000144', '00000044', '00000148', 'FDE', 'cie=00000000', 'pc=08049880..0804b149']
   DW_CFA_advance_loc: 4 to 08049884
>  DW_CFA_def_cfa: r1 (ecx) ofs 0
   DW_CFA_advance_loc: 9 to 0804988d
   DW_CFA_expression: r5 (ebp) (DW_OP_breg5: 0)
   DW_CFA_advance_loc: 6 to 08049893
   DW_CFA_expression: r7 (edi) (DW_OP_breg5: -4)
   DW_CFA_advance_loc: 3 to 08049896
>  DW_CFA_def_cfa_expression (DW_OP_breg5: -16; DW_OP_deref)
   DW_CFA_advance_loc: 10 to 080498a0
   DW_CFA_expression: r3 (ebx) (DW_OP_breg5: -12)
   DW_CFA_expression: r6 (esi) (DW_OP_breg5: -8)
   DW_CFA_advance_loc2: 521 to 08049aa9
   DW_CFA_remember_state
>  DW_CFA_def_cfa_register: r1 (ecx)
   DW_CFA_advance_loc: 1 to 08049aaa
   DW_CFA_restore: r3 (ebx)
   DW_CFA_advance_loc: 1 to 08049aab
   DW_CFA_restore: r6 (esi)
   DW_CFA_advance_loc: 1 to 08049aac
   DW_CFA_restore: r7 (edi)
   DW_CFA_advance_loc: 1 to 08049aad
   DW_CFA_restore: r5 (ebp)
   DW_CFA_advance_loc: 3 to 08049ab0
   DW_CFA_def_cfa: r4 (esp) ofs 4
   DW_CFA_advance_loc: 8 to 08049ab8
   DW_CFA_restore_state
   DW_CFA_nop
   DW_CFA_nop
error in instr #17, DW_CFA_def_cfa_register


readelf --debug-dump=frames /usr/bin/ypchsh | tail -n +3 | python check_cfi.py
['00000000', '00000014', '00000000', 'CIE']
   DW_CFA_def_cfa: r4 (esp) ofs 4
   DW_CFA_offset: r8 (eip) at cfa-4
   DW_CFA_nop
   DW_CFA_nop
['00000144', '00000044', '00000148', 'FDE', 'cie=00000000', 'pc=08049880..0804b149']
   DW_CFA_advance_loc: 4 to 08049884
>  DW_CFA_def_cfa: r1 (ecx) ofs 0
   DW_CFA_advance_loc: 9 to 0804988d
   DW_CFA_expression: r5 (ebp) (DW_OP_breg5: 0)
   DW_CFA_advance_loc: 6 to 08049893
   DW_CFA_expression: r7 (edi) (DW_OP_breg5: -4)
   DW_CFA_advance_loc: 3 to 08049896
>  DW_CFA_def_cfa_expression (DW_OP_breg5: -16; DW_OP_deref)
   DW_CFA_advance_loc: 10 to 080498a0
   DW_CFA_expression: r3 (ebx) (DW_OP_breg5: -12)
   DW_CFA_expression: r6 (esi) (DW_OP_breg5: -8)
   DW_CFA_advance_loc2: 521 to 08049aa9
   DW_CFA_remember_state
>  DW_CFA_def_cfa_register: r1 (ecx)
   DW_CFA_advance_loc: 1 to 08049aaa
   DW_CFA_restore: r3 (ebx)
   DW_CFA_advance_loc: 1 to 08049aab
   DW_CFA_restore: r6 (esi)
   DW_CFA_advance_loc: 1 to 08049aac
   DW_CFA_restore: r7 (edi)
   DW_CFA_advance_loc: 1 to 08049aad
   DW_CFA_restore: r5 (ebp)
   DW_CFA_advance_loc: 3 to 08049ab0
   DW_CFA_def_cfa: r4 (esp) ofs 4
   DW_CFA_advance_loc: 8 to 08049ab8
   DW_CFA_restore_state
   DW_CFA_nop
   DW_CFA_nop
error in instr #17, DW_CFA_def_cfa_register
Comment 2 Mark Wielaard 2010-05-07 06:28:25 EDT
Created attachment 412296 [details]
python script to check for bad cfi in a binary
Comment 3 RHEL Product and Program Management 2010-05-07 07:31:00 EDT
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.
Comment 6 releng-rhel@redhat.com 2010-11-10 16:59:53 EST
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.

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