{"id":2224,"date":"2011-07-25T19:03:45","date_gmt":"2011-07-25T10:03:45","guid":{"rendered":"http:\/\/pchero21.com\/?p=2224"},"modified":"2011-07-25T19:03:45","modified_gmt":"2011-07-25T10:03:45","slug":"how-to-use-gdb-in-multi-threaded-network-program","status":"publish","type":"post","link":"http:\/\/pchero21.com\/?p=2224","title":{"rendered":"How to use gdb in Multi Threaded Network Program"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>Stack Overflow \uc5d0\uc11c \uc0c1\ub2f9\ud788 \uc720\uc6a9\ud55c \uc2a4\ub808\ub4dc\ub97c \ubc1c\uacac\ud558\uc5ec \uc774\uacf3\uc5d0 \uc2e3\ub294\ub2e4.<\/p>\n<p>\ub0b4\uc6a9\uc740 \uba40\ud2f0 \uc2a4\ub808\ub4dc \ud658\uacbd\uc5d0\uc11c \ub124\ud2b8\uc6cc\ud06c \ud504\ub85c\uadf8\ub7a8\uc744 \ub514\ubc84\uadf8 \ud560 \ub54c \uc5b4\ub5bb\uac8c gdb\ub97c \uc0ac\uc6a9\ud558\ub294\uac00? \uc774\ub2e4.<\/p>\n<p>&nbsp;<\/p>\n<div>\n<blockquote><p>Enable core dump saving in your environment. Run command <code>ulimit -c unlimited<\/code> and rerun your program. When it crashes, load generated core dump in  gdb and look backtraces of crash. In case of multi threaded program it  is convenient to obtain backtraces from all threads by one command at  once: <code>(gdb) thread apply all bt<\/code>.<\/p><\/blockquote>\n<\/div>\n<p>&nbsp;<\/p>\n<p>\uacb0\ub860\uc801\uc73c\ub85c \ub2e4\uc74c\uc758 \ud55c \uc904\ub85c \uc694\uc57d\ub420 \uc218 \uc788\ub2e4.<\/p>\n<blockquote><p>(gdb) thread apply all bt<\/p><\/blockquote>\n<p>\uc6d0\uae00\uc758 \uc8fc\uc18c\ub294 \uc544\ub798\uc640 \uac19\ub2e4.<\/p>\n<p><a href=\"http:\/\/stackoverflow.com\/questions\/6813629\/how-do-i-use-gdb-for-multi-threaded-networking-program\">http:\/\/stackoverflow.com\/questions\/6813629\/how-do-i-use-gdb-for-multi-threaded-networking-program<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Stack Overflow \uc5d0\uc11c \uc0c1\ub2f9\ud788 \uc720\uc6a9\ud55c \uc2a4\ub808\ub4dc\ub97c \ubc1c\uacac\ud558\uc5ec \uc774\uacf3\uc5d0 \uc2e3\ub294\ub2e4. \ub0b4\uc6a9\uc740 \uba40\ud2f0 \uc2a4\ub808\ub4dc \ud658\uacbd\uc5d0\uc11c \ub124\ud2b8\uc6cc\ud06c \ud504\ub85c\uadf8\ub7a8\uc744 \ub514\ubc84\uadf8 \ud560 \ub54c \uc5b4\ub5bb\uac8c gdb\ub97c \uc0ac\uc6a9\ud558\ub294\uac00? \uc774\ub2e4. &nbsp; Enable core dump saving in your environment. Run command ulimit -c unlimited and rerun your program. &hellip; <a href=\"http:\/\/pchero21.com\/?p=2224\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[16],"tags":[128,188,269,383],"_links":{"self":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/posts\/2224"}],"collection":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2224"}],"version-history":[{"count":0,"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/posts\/2224\/revisions"}],"wp:attachment":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2224"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}