Ubuntu pstack无法显示进程堆栈符号的解决办法

重新下载gdb的rpm包,提取里面的pstack和gstack文件:

apt-get install -y rpm2cpio
wget ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/updates/30/Everything/x86_64/Packages/g/gdb-8.3-7.fc30.x86_64.rpm
rpm2cpio ./gdb-8.3-7.fc30.x86_64.rpm | cpio -idmv
cp ./usr/bin/gstack /usr/bin/
cp ./usr/bin/pstack /usr/bin/

推荐阅读更多精彩内容