Pstack64
pstack(1) analogue working with x84_64 binaries
Install / Use
/learn @dkrotx/Pstack64README
pstack64 - pstack(1) analogue working with x84_64 binaries (pstack 64-bit / pstack amd64)
Copyright (C) 2012 Jan Kisel - jdkrot@gmail.com
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
This actually a demonstation of how to take a backtrace of process and
do it's pretty-printing. I think it's ok to use it for studying, but maybe it's not suitable for real case since it uses Perl and binutils instead of doing this things correctly with libelf & libdwarf.
Benefits:
o It's easy to read :-)
o It shows symbols much faster than gdb -batch since it
performs a lazy lookup.
o Works well with executables and shared objects. Falling back to dynamic
symbols lookup if none of them found in (debug) table.
Drawbacks: o It's strongly depends on GNU binutils and therefore it's Linux-only o It doesn't support threads (even if you pick up right LWP)
Usage: ./pstack64 [-m N] [-Dv] pid [...] -v: be verbose (print debug information) -m N: unwind no more than N frames -D: do not demangle symbols
WARNING: If you see "Permission denied" message, then you need to turn off ptrace(2)-protection: $ sudo sysctl -w kernel.yama.ptrace_scope=0
or simply run pstack64 using `sudo`. It's also necessary to trace processes
which doesn't belongs to you.
Related Skills
node-connect
343.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
92.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
