"/usr/bin/gstack is a script which invokes gdb and it's slow. Especially for threaded C++ apps."
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:
--- Additional comment from Jan Kratochvil on 2014-07-15 11:24:03 EDT ---
--- Additional comment from Jan Kratochvil on 2014-10-01 15:50:28 EDT ---
[patch] Fix 100x slowdown regression on DWZ files
gdb-7.7.1-20.fc20 has been submitted as an update for Fedora 20.
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing gdb-7.7.1-20.fc20'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
gdb-7.7.1-21.fc20 has been submitted as an update for Fedora 20.
gdb-7.7.1-21.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.