Bug 1096131 - gdb painfully slow to show backtrace of libreoffice crashes
Summary: gdb painfully slow to show backtrace of libreoffice crashes
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: gdb
Version: 20
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Kratochvil
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1103894
TreeView+ depends on / blocked
 
Reported: 2014-05-09 09:24 UTC by matti aarnio
Modified: 2015-06-16 17:57 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-05-29 12:59:53 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Sourceware 16405 0 'P2' 'RESOLVED' 'backtrace takes GBs and minutes with dwz -m' 2019-11-20 13:55:08 UTC

Description matti aarnio 2014-05-09 09:24:13 UTC
Description of problem:
  Encountered a bug at libreoffice, got abrt to do back-trace.
  Have loaded all debuginfo files that gdb asks for.

  Running simple "where" takes very long time because of two things:
    - gdb loads first all debuginfo files into memory and in this
      particular case there are very large amounts of that data
    - guess: internal data structures looking it up are inefficient, and
      therefore each back-trace step takes several minutes of memory
      searching (or file IO?) to locate particular line of debuginfo.

  ( libreoffice-debuginfo 688 MB, installed size: 2.8 GB. )

Version-Release number of selected component (if applicable):
  gdb-7.6.50.20130731-19.fc20.x86_64

How reproducible:
  Every time I look at libreoffice back-traces with full symbol sets.

  If I throw away libreoffice-debuginfo, then back-trace production
  is fast, but usefulness is less.

Additional info:
  This machine has 16 GB RAM, no swap is happening.

  I would use "gcc -pg" version of gdb to see where it really spends
  all that time, but don't have time myself to debug it more..

Comment 1 Fedora End Of Life 2015-05-29 11:48:10 UTC
This message is a reminder that Fedora 20 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 20. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '20'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 20 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 2 matti aarnio 2015-05-29 12:59:53 UTC
Sourceware bugzilla issue has been fixed.
Libreoffice has not crashed as of late on me so I have not had change to validate the backtrace production.

If it persists at F21/F22, another bug can be issued.

Comment 3 Sergio Durigan Junior 2015-06-16 17:57:02 UTC
(In reply to matti aarnio from comment #2)
> Sourceware bugzilla issue has been fixed.
> Libreoffice has not crashed as of late on me so I have not had change to
> validate the backtrace production.
> 
> If it persists at F21/F22, another bug can be issued.

You can still obtain a backtrace from LibreOffice (or any other program) by (e.g.) attaching to the running process.  You just need to obtain the PID of the process, and then issue a "gdb program PID".


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