Bug 460319 - Calling of gdb from valgrind doesn't produce any reasonable backtrace
Summary: Calling of gdb from valgrind doesn't produce any reasonable backtrace
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: gdb
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jan Kratochvil
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-08-27 14:45 UTC by Matěj Cepl
Modified: 2018-04-11 09:33 UTC (History)
2 users (show)

Fixed In Version: gdb-6.8-24.fc10
Clone Of:
Environment:
Last Closed: 2008-09-02 00:59:48 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
output of valgrind (214.00 KB, text/plain)
2008-08-27 14:45 UTC, Matěj Cepl
no flags Details

Description Matěj Cepl 2008-08-27 14:45:15 UTC
Created attachment 315106 [details]
output of valgrind

Description of problem:
When trying to analyze http://bugzilla.gnome.org/show_bug.cgi?id=537740 and https://bugzilla.redhat.com/show_bug.cgi?id=453284 I run
valgrind --leak-check=full --show-reachable=yes --db-attach=yes /usr/bin/empathy
I got the attached results.

Version-Release number of selected component (if applicable):
[matej@hubmaier ~]$ rpm -qa kernel gdb valgrind
kernel-2.6.27-0.244.rc2.git1.fc10.x86_64
kernel-2.6.27-0.186.rc0.git15.fc10.x86_64
kernel-2.6.27-0.159.rc0.git6.fc10.x86_64
valgrind-3.3.0-3.x86_64
gdb-6.8-22.fc10.x86_64
kernel-2.6.27-0.156.rc0.git4.fc10.x86_64
[matej@hubmaier ~]$ uname -r
2.6.27-0.244.rc2.git1.fc10.x86_64
[matej@hubmaier ~]$ 


How reproducible:
100%

Steps to Reproduce:
1.run the above command with empathy which fails to run on FGedora.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Matěj Cepl 2008-08-27 14:47:54 UTC
[matej@hubmaier ~]$ valgrind --leak-check=full --show-reachable=yes --db-attach=yes --log-file=empathy-valgrind-log.txt /usr/bin/empathy

y

GNU gdb Fedora (6.8-22.fc10)

Copyright (C) 2008 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-redhat-linux-gnu"...

Attaching to program: /proc/18260/fd/1014, process 18260

0x00000032184dae45 in ?? ()

(gdb) thread apply all backtrace 

(gdb) quit

The program is running.  Quit anyway (and detach it)? (y or n) y

Detaching from program: /proc/18260/fd/1014, process 18260

y

GNU gdb Fedora (6.8-22.fc10)

Copyright (C) 2008 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-redhat-linux-gnu"...

Attaching to program: /proc/18312/fd/1014, process 18312

0x00000032184cd0f6 in ?? ()

(gdb) thread apply all backtrace

(gdb) quit

The program is running.  Quit anyway (and detach it)? (y or n) y

Detaching from program: /proc/18312/fd/1014, process 18312

y

GNU gdb Fedora (6.8-22.fc10)

Copyright (C) 2008 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-redhat-linux-gnu"...

Attaching to program: /proc/18333/fd/1014, process 18333

0x00000032184cd0f6 in ?? ()

(gdb) quit

The program is running.  Quit anyway (and detach it)? (y or n) y

Detaching from program: /proc/18333/fd/1014, process 18333

^[[5;5~Zabit (SIGKILL)

[matej@hubmaier ~]$ 

[matej@hubmaier ~]$

Comment 2 Jan Kratochvil 2008-08-30 21:38:00 UTC
Reproducible.
It is a regression from `gdb-6.3-pie-20050110.patch' (Position Independent Executables support).

Comment 3 Jan Kratochvil 2008-09-02 00:59:48 UTC
Nice bigreport - /proc/PID/aux does not match the provided BFD file as aux is for memcheck.

* Tue Sep  2 2008 Jan Kratochvil <jan.kratochvil> - 6.8-24
- Fix PIE patch regression for loading binaries from valgrind (BZ 460319).

Comment 4 Fedora Update System 2008-09-02 07:16:44 UTC
gdb-6.8-22.fc9 has been submitted as an update for Fedora 9.
http://admin.fedoraproject.org/updates/gdb-6.8-22.fc9

Comment 5 Fedora Update System 2008-09-10 07:11:11 UTC
gdb-6.8-22.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.


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