Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
プロセスを強制終了せずにコア ダンプを生成することはできますか? もしそうなら、そうするためのコマンド/信号は何ですか?
ありがとう、ジム
GDB の一部である「gcore」コマンドを参照してください。
実行中のプログラムにバッチ モードで gdb をアタッチし、バックトレースを取得してからデタッチすることで、最高の成功を収めました。
gdb --batch --quiet -ex "set pagination off" -ex "thread apply all bt" -ex "detach" -ex "quit" pid pid_of_process