Bug 161730 - Shared library handler fails to enable breakpoint in /usr/lib/rpm/debugedit
Summary: Shared library handler fails to enable breakpoint in /usr/lib/rpm/debugedit
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gdb
Version: rawhide
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jan Kratochvil
QA Contact:
URL:
Whiteboard: bzcl34nup
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-06-26 18:06 UTC by Robin Green
Modified: 2008-05-07 00:12 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-05-07 00:12:05 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Source RPM for test case (4.27 KB, application/octet-stream)
2005-06-26 18:06 UTC, Robin Green
no flags Details

Description Robin Green 2005-06-26 18:06:49 UTC
Description of problem:
In the testcase below, which hooks gdb into a stage of the rpmbuild process for
an rpm, gdb is unable to set a breakpoint in /usr/lib/rpm/debugedit.

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

How reproducible:
Always

Steps to Reproduce:
1. Save attached file as jhello.src.rpm
2. Apply the following patch to /usr/lib/rpm/find-debuginfo.sh

--- find-debuginfo.sh~  2005-06-26 19:04:49.000000000 +0100
+++ find-debuginfo.sh   2005-06-26 18:50:21.000000000 +0100
@@ -26,7 +26,7 @@

        mkdir -p "${debugdn}"
        echo extracting debug info from $f
-       /usr/lib/rpm/debugedit -b "$RPM_BUILD_DIR" -d /usr/src/debug -l
"$SOURCEFILE" "$f"
+       /usr/bin/gdb --args /usr/lib/rpm/debugedit -b "$RPM_BUILD_DIR" -d
/usr/src/debug -l "$SOURCEFILE" "$f"
        if test -w "$f"; then
                eu-strip -f "${debugfn}" "$f" || :
        else

3. rpmbuild --rebuild jhello.src.rpm
4. Near the end of the build, gdb should start. Type
b debugedit.c:531
5. Type run
  
Actual results:
Starting program: /usr/lib/rpm/debugedit -b /usr/src/redhat/BUILD -d
/usr/src/debug -l /usr/src/redhat/BUILD/jhello-1.0.0/debugsources.list
/var/tmp/jhello-1.0.0-1rdg/usr/lib/jhello/libjhello.jar.so
warning: shared library handler failed to enable breakpoint
Reading symbols from shared object read from target memory...done.
Loaded system supplied DSO at 0x280000

Program exited normally.
(gdb) 

Expected results:
Breakpoint should be hit

Additional info:
All packages fully updated to latest rawhide

Comment 1 Robin Green 2005-06-26 18:06:49 UTC
Created attachment 115988 [details]
Source RPM for test case

Comment 2 Bug Zapper 2008-04-03 16:14:04 UTC
Based on the date this bug was created, it appears to have been reported
against rawhide during the development of a Fedora release that is no
longer maintained. In order to refocus our efforts as a project we are
flagging all of the open bugs for releases which are no longer
maintained. If this bug remains in NEEDINFO thirty (30) days from now,
we will automatically close it.

If you can reproduce this bug in a maintained Fedora version (7, 8, or
rawhide), please change this bug to the respective version and change
the status to ASSIGNED. (If you're unable to change the bug's version
or status, add a comment to the bug and someone will change it for you.)

Thanks for your help, and we apologize again that we haven't handled
these issues to this point.

The process we're following is outlined here:
http://fedoraproject.org/wiki/BugZappers/F9CleanUp

We will be following the process here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping to ensure this
doesn't happen again.

Comment 3 Bug Zapper 2008-05-07 00:12:03 UTC
This bug has been in NEEDINFO for more than 30 days since feedback was
first requested. As a result we are closing it.

If you can reproduce this bug in the future against a maintained Fedora
version please feel free to reopen it against that version.

The process we're following is outlined here:
http://fedoraproject.org/wiki/BugZappers/F9CleanUp


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