Bug 1149866 - Slow gstack performance
Summary: Slow gstack performance
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gdb
Version: 21
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Sergio Durigan Junior
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1149865
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-06 19:18 UTC by Sergio Durigan Junior
Modified: 2014-10-12 05:05 UTC (History)
9 users (show)

Fixed In Version: gdb-7.8-25.fc21
Clone Of: 1149865
Environment:
Last Closed: 2014-10-12 05:05:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Sourceware 16405 0 None None None Never

Description Sergio Durigan Junior 2014-10-06 19:18:57 UTC
+++ This bug was initially created as a clone of Bug #1149865 +++

"/usr/bin/gstack is a script which invokes gdb and it's slow. Especially for threaded C++ apps."

Background:
 
  Most of the time is spent reading the symbols and unwinding the stack for each thread. 
  GDB maintains 3 different symbol tables which causes the slowness.

  There is a discussion about speed/performance from sourceware.org:
  https://sourceware.org/gdb/wiki/SymbolHandling?highlight=%28faster%29

--- Additional comment from Jan Kratochvil on 2014-07-15 11:24:03 EDT ---

Upstream PR
  http://sourceware.org/bugzilla/show_bug.cgi?id=16405

--- Additional comment from Jan Kratochvil on 2014-10-01 15:50:28 EDT ---

[patch] Fix 100x slowdown regression on DWZ files
https://sourceware.org/ml/gdb-patches/2014-10/msg00020.html

Comment 1 Fedora Update System 2014-10-06 20:06:58 UTC
gdb-7.8-25.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/gdb-7.8-25.fc21

Comment 2 Fedora Update System 2014-10-08 19:05:43 UTC
Package gdb-7.8-25.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing gdb-7.8-25.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-12375/gdb-7.8-25.fc21
then log in and leave karma (feedback).

Comment 3 Fedora Update System 2014-10-12 05:05:26 UTC
gdb-7.8-25.fc21 has been pushed to the Fedora 21 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.