Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 431930

Summary: CRC checking should be turned on for debuginfo files
Product: Red Hat Enterprise Linux 5 Reporter: Stan Cox <scox>
Component: fryskAssignee: Stan Cox <scox>
Status: CLOSED WONTFIX QA Contact: Len DiMaggio <ldimaggi>
Severity: low Docs Contact:
Priority: low    
Version: 5.2CC: bugzilla, ebachalo, kasal, mcvet, npremji, pmuldoon, scox
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-15 09:45:00 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
reproducer script and test script
none
Dwfl.java patch none

Description Stan Cox 2008-02-07 21:25:41 UTC
Description of problem:
Frysk has historically not checked the CRC of debuginfo files.  This can result
in a silent mismatch between the executable and debuginfo files.

Risk of applying change:
None.  The work of finding debuginfo and matching CRC is almost entirely on the
elfutils side.

Risk of not applying change:
High for situations where an out of date debuginfo is installed.

Steps to Reproduce:
1. Run the script test-sysroot.sh, which will create a debuginfo with a
mismatched crc

Actual results:
test program exits without hitting the breakpoint

Expected results:
1. Run the test script test-sysroot-crc.sh, which will create a debuginfo with a
matched crc
(fhpd) break main
breakpoint 0 deferred
(fhpd) run
Attached to process 18606
starting/running with this command: /tmp/test-sysroot/usr/bin/tstsysroot 
Running process 18606
(fhpd) Breakpoint 0 main 0x400448
list
[0.0]
     1   int main ()
->   2   {
     3     int x = 1;
     4     return x;
     5   }

Comment 1 Stan Cox 2008-02-07 21:25:41 UTC
Created attachment 294272 [details]
reproducer script and test script

Comment 2 Stan Cox 2008-02-07 21:27:54 UTC
Created attachment 294273 [details]
Dwfl.java patch

Comment 3 Andrew Cagney 2008-02-08 22:18:43 UTC
(In reply to comment #0)

> Risk of applying change:
> None.  The work of finding debuginfo and matching CRC is almost entirely on the
> elfutils side.

There is never zero risk.  The patch may mis-apply, the patch may be wrong, the
patch may cause unexpected behavior.  Can it affect non CRC code, can it affect
anything else?  That is is in the elfutils code is irrelevant.


Comment 4 Andrew Cagney 2008-02-08 22:20:15 UTC
Please add a -ve test; where the debuginfo is wrong and confirm the behavior is
as expected.