Bug 3417 - gdb does not tell which debug packages should be installed
Summary: gdb does not tell which debug packages should be installed
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 2
Hardware: x86_64 Linux
Priority: High major
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-22 14:50 CET by Shlomi Fish
Modified: 2013-11-22 22:49 CET (History)
6 users (show)

See Also:
Source RPM: gdb-7.3.50.20110722-2.mga2.src.rpm
CVE:
Status comment:


Attachments

Description Shlomi Fish 2011-11-22 14:50:07 CET
Description of problem:

When I start gdb on a process or attach it to an existing process, it scans for dependencies, and says where it cannot find the debugging symbols but doesn't say which debug packages should be installed as it used to say. Please make it say that, again.

How reproducible:

Always

Steps to Reproduce:
1. gdb /bin/ls
2. r -lR /
3. Ctrl+C
4. bt.
Comment 1 Manuel Hiebel 2011-11-22 22:20:07 CET
Hi, thanks for reporting this bug.
As there is no maintainer for this package I added the committers in CC.

CC: (none) => arnaud.patard, dmorganec, mageia, misc

Comment 2 Kamil Rytarowski 2011-11-23 10:23:10 CET
Please give your output.

CC: (none) => krytarowski

Comment 3 Shlomi Fish 2011-11-23 11:18:14 CET
(In reply to comment #2)
> Please give your output.

shlomif@telaviv1:~$ gdb /bin/ls
GNU gdb (GDB) 7.3.50.20110722-2.mga2 (Mageia release 2)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-mageia-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /bin/ls...(no debugging symbols found)...done.
(gdb)
Comment 4 Kamil Rytarowski 2011-11-23 23:57:00 CET
^C
Program received signal SIGINT, Interrupt.
0x00007ffff74f6a75 in __getdents64 () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ffff74f6a75 in __getdents64 () from /lib64/libc.so.6
#1  0x00007ffff74f6451 in readdir64 () from /lib64/libc.so.6
#2  0x000000000040793f in ?? ()
#3  0x0000000000408afd in ?? ()
#4  0x00007ffff7477c3d in __libc_start_main () from /lib64/libc.so.6
#5  0x00000000004026d9 in ?? ()
#6  0x00007fffffffdfa8 in ?? ()
#7  0x000000000000001c in ?? ()
#8  0x0000000000000003 in ?? ()
#9  0x00007fffffffe316 in ?? ()
#10 0x00007fffffffe31e in ?? ()
#11 0x00007fffffffe322 in ?? ()
#12 0x0000000000000000 in ?? ()

This is my result, is this right?
Comment 5 Kamil Rytarowski 2011-11-24 00:44:13 CET
And this on the top:

$ gdb /bin/ls
GNU gdb (GDB) 7.1-6.mga1 (Mageia release 1)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-mageia-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /bin/ls...(no debugging symbols found)...done.
Missing debug package(s), you should install: coreutils-debug-8.8-2.mga1.x86_64
(gdb)
Comment 6 Manuel Hiebel 2011-11-24 00:49:43 CET
(In reply to comment #5)
> And this on the top:
> 
> $ gdb /bin/ls
> GNU gdb (GDB) 7.1-6.mga1 (Mageia release 1)
> Missing debug package(s), you should install: coreutils-debug-8.8-2.mga1.x86_64
> (gdb)

But Shlomi speak about cauldron ;)
Comment 7 Kamil Rytarowski 2011-11-24 01:08:44 CET
A yes... excuse me. I've reproduced this in the x86_64 Cauldron environment.
Comment 8 D Morgan 2011-11-24 02:12:07 CET
i will take a look to it

Assignee: bugsquad => dmorganec

Comment 9 D Morgan 2011-11-24 02:27:36 CET
Please test next gdb rpm.
Comment 10 Shlomi Fish 2011-11-24 09:06:00 CET
(In reply to comment #9)
> Please test next gdb rpm.

With:

gdb-7.3.50.20110722-3.mga2

I don't know if it's the ânextâ gdb rpm but it's the latest in the svn repository, I'm getting this:

<QUOTE>
shlomif@telaviv1:~$ gdb /bin/ls
GNU gdb (GDB) 7.3.50.20110722-3.mga2 (Mageia release 2)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-mageia-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /bin/ls...(no debugging symbols found)...done.
(gdb) 
</QUOTE>

So it's still not good. Mageia Cauldron, x86-64.

Regards,

-- Shlomi Fish
Comment 11 Marja Van Waes 2012-02-27 21:18:36 CET
Pinging, because nothing has happened with this report for more than 3 months, it still has the status NEW or REOPENED.

@ D Morgan

Please set status to ASSIGNED. If for work flow reasons you can't do that, then please put OK on the whiteboard instead.

CC: (none) => marja11

Comment 12 Kamil Rytarowski 2012-04-02 01:10:44 CEST
Still valid.
Comment 13 Manuel Hiebel 2012-04-06 19:09:21 CEST
please can we fix this bug before the release ? personnly I will never know wich package is necessary for debugging :(

Priority: Normal => High

Comment 14 Shlomi Fish 2012-05-17 10:41:19 CEST
Hi!

I'd like to fix this bug. Can anyone give me some guidance on how to fix it? Does Mandriva or Fedora have a similar patch to gdb? Why did this functionality get broken in the first place?

Regards,

-- Shlomi Fish
Comment 15 Kamil Rytarowski 2012-05-17 22:25:42 CEST
(In reply to comment #14)
> Hi!
> 
> I'd like to fix this bug. Can anyone give me some guidance on how to fix it?

Start with this patch:
http://svnweb.mageia.org/packages/cauldron/gdb/current/SOURCES/gdb-7.1-buildid-locate-mageia.patch?revision=171528&view=markup&sortby=date

> Does Mandriva or Fedora have a similar patch to gdb?

Fedora is our upstream.

>  Why did this functionality
> get broken in the first place?
This is the question.
> 
> Regards,
> 
> -- Shlomi Fish
Comment 16 Marja Van Waes 2012-05-26 13:10:08 CEST
Hi,

This bug was filed against cauldron, but we do not have cauldron at the moment.

Please report whether this bug is still valid for Mageia 2.

Thanks :)

Cheers,
marja

Keywords: (none) => NEEDINFO

Comment 17 Shlomi Fish 2012-05-26 15:21:25 CEST
Valid in Mageia 2.

Keywords: NEEDINFO => (none)
Version: Cauldron => 2

Marja Van Waes 2012-05-28 18:02:47 CEST

Version: 2 => Cauldron
Whiteboard: (none) => MGA2TOO

Comment 18 Marja Van Waes 2012-07-06 15:06:11 CEST
Please look at the bottom of this mail to see whether you're the assignee of this  bug, if you don't already know whether you are.


If you're the assignee:

We'd like to know for sure whether this bug was assigned correctly. Please change status to ASSIGNED if it is, or put OK on the whiteboard instead.

If you don't have a clue and don't see a way to find out, then please put NEEDHELP on the whiteboard.

Please assign back to Bug Squad or to the correct person to solve this bug if we were wrong to assign it to you, and explain why.

Thanks :)

**************************** 

@ the reporter and persons in the cc of this bug:

If you have any new information that wasn't given before (like this bug being valid for another version of Mageia, too, or it being solved) please tell us.

@ the reporter of this bug

If you didn't reply yet to a request for more information, please do so within two weeks from now.

Thanks all :-D
Comment 19 Shlomi Fish 2012-07-22 22:06:34 CEST
OK, here is some news. I discovered that the old gdb package tried to find librpm.so.2 instead of librpm.so.3 so I had to fix it, and it's available in the new package that I submitted just now:

gdb-7.4.50.20120714-1.mga3

Furthermore, with the new package, I found a workaround to the bug. Just add this
line:

set build-id-verbose 2

to the file ~/.gdbinit and it will work again. It appears to be cancelled due to a conditional checking this variable by default, but I'm not sure why.
Comment 20 Manuel Hiebel 2012-07-23 18:30:24 CEST
if it works fine on cauldron, any updates possible on mga2 ?
Comment 21 Shlomi Fish 2012-07-23 19:15:21 CEST
(In reply to comment #20)
> if it works fine on cauldron, any updates possible on mga2 ?

If Mga 2 is using librpm.so.2 then I believe no updates are needed in order to perform my workaround. If not, then we will need an update.

Regards,

-- Shlomi Fish
Comment 22 Marja Van Waes 2012-07-30 17:57:30 CEST
(In reply to comment #21)
> (In reply to comment #20)
> > if it works fine on cauldron, any updates possible on mga2 ?
> 
> If Mga 2 is using librpm.so.2 then I believe no updates are needed in order to
> perform my workaround. If not, then we will need an update.
> 

Mga 2 is using librpm.so.2 (provided by lib64rpm2 or librpm2)

Thx for the workaround, Shlomi, I added it in
https://wiki.mageia.org/en/Debugging_software_crashes#gdb
Comment 23 Shlomi Fish 2012-08-01 23:03:42 CEST
(In reply to comment #22)
> (In reply to comment #21)
> > (In reply to comment #20)
> > > if it works fine on cauldron, any updates possible on mga2 ?
> > 
> > If Mga 2 is using librpm.so.2 then I believe no updates are needed in order to
> > perform my workaround. If not, then we will need an update.
> > 
> 
> Mga 2 is using librpm.so.2 (provided by lib64rpm2 or librpm2)
> 
> Thx for the workaround, Shlomi, I added it in
> https://wiki.mageia.org/en/Debugging_software_crashes#gdb

You're welcome. Are we still seeking a more permanent fix?

Regards,

-- Shlomi Fish
Comment 24 Marja Van Waes 2012-08-02 08:28:02 CEST
(In reply to comment #23)

> > Thx for the workaround, Shlomi, I added it in
> > https://wiki.mageia.org/en/Debugging_software_crashes#gdb
> 
> You're welcome. Are we still seeking a more permanent fix?
> 

Yes, we are :)

gdb is not only used by packagers/developers, but also by bug reporters who have never heard of gdb before, but are asked to use gdb to get a backtrace of their crash.

A permanent fix will make getting that backtrace a bit less hard for them
Manuel Hiebel 2013-03-07 13:46:02 CET

Version: Cauldron => 2
Whiteboard: MGA2TOO => (none)

D Morgan 2013-09-17 23:50:00 CEST

Assignee: dmorganec => bugsquad

Comment 25 Manuel Hiebel 2013-11-22 22:49:41 CET
Mageia 2 changed to end-of-life (EOL) status on ''22 November''. Mageia 2 is no
longer maintained, which means that it will not receive any further security or
bug fix updates. As a result and as this bug is fixed in mga3 we are closing it.

Thank you for reporting this bug and we are sorry it could not be fixed. 

--
The Mageia Bugsquad

Status: NEW => RESOLVED
Resolution: (none) => OLD


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