åä¾ã®ããããã§ããã ãææããã¦ææãæãããã¨ã ãã¯é·ãã¦ããå±±æ¬ã§ãã ä»åã¯ãC/C++ ã§ä½ã£ãããã°ã©ã ãéç¨ä¸ã«ã¯ã©ãã·ã¥ããã¨ãã®ãããã°æ¹æ³ã®ã話ãã§ãã éçºä¸ã®ãããã°ã¯ gdb ãªã©ã§ã½ã¼ã¹è¿½ããªãããããã°ã§ãã¾ãããéç¨ä¸ã§ã㨠strip ãã¦ãããæé©åãã¦ããããã¦ãããã°ãé£ãããªãã¾ãã ããããããããªãã¯ã©ãã·ã¥ããã¨æ å ±ãæ®ããã«å°ã£ã¦ãã¾ãã¾ãããããªã¨ãã©ããããã Step1. ã¹ã¿ãã¯ãã¬ã¼ã¹ãåºåãã ãããªé¢æ°ãç¨æãã¾ããããLinux 以å¤ã®äººã¯ãããªãã«å®è£ ãã¦ãã ããã #include <execinfo.h> #include <unistd.h> void dump_stack() { void* bt[100]; int n = backtrace(bt, 100); backtrace_symbols_fd(bt,
{{#tags}}- {{label}}
{{/tags}}