{"id":746,"date":"2007-06-23T03:00:00","date_gmt":"2007-06-22T18:00:00","guid":{"rendered":"https:\/\/ecoop.net\/memo\/2007-06-23-3.html"},"modified":"2007-06-23T03:00:00","modified_gmt":"2007-06-22T18:00:00","slug":"2007-06-23-3","status":"publish","type":"post","link":"https:\/\/www.ecoop.net\/memo\/archives\/2007-06-23-3.html","title":{"rendered":"GDB \u3067\u30b3\u30a2\u30c0\u30f3\u30d7\u306e\u539f\u56e0\u3092\u63a2\u308b"},"content":{"rendered":"<p>\n\u30d7\u30ed\u30b0\u30e9\u30e0\u5b9f\u884c\u4e2d\u306b Segmentation Fault \u3084 Bus Error \u306a\u3069\u3067 Core dumped \u3068\u306a\u3063\u305f\u5834\u5408\u3001<br \/>\ncore \u30d5\u30a1\u30a4\u30eb(\u307e\u305f\u306f *.core)\u304c\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<br \/>\n&nbsp;<br \/>\n\u3053\u308c\u3092\u89e3\u6790\u3059\u308b\u5834\u5408, GDB(GNU Project Debugger)\u30b3\u30de\u30f3\u30c9\u304c\u6709\u7528\u3067\u3059\u3002\n<\/p>\n<blockquote><p>$ gdb <\u30b3\u30a2\u30c0\u30f3\u30d7\u3057\u305f\u5b9f\u884c\u53ef\u80fd\u30d0\u30a4\u30ca\u30ea> <\u30b3\u30a2\u30c0\u30f3\u30d7\u30d5\u30a1\u30a4\u30eb>\n<\/p><\/blockquote>\n<p>\u4f8b\u3048\u3070\u4ee5\u4e0b\u306e perl \u306e\u30b9\u30af\u30ea\u30d7\u30c8(\u4eee\u306b foo.pl \u3068\u3057\u307e\u3059)\u306e\u5b9f\u884c\u4e2d\u306b\u30b3\u30a2\u30c0\u30f3\u30d7\u3057\u305f\u5834\u5408..\n<\/p>\n<blockquote><p>#!\/bin\/perl<br \/>\n&nbsp;<br \/>\n# \u4f55\u304b\u306e\u51e6\u7406<br \/>\n&nbsp;\n<\/p><\/blockquote>\n<p>\u3053\u306e\u5834\u5408\u306f\u30b9\u30af\u30ea\u30d7\u30c8(foo.pl)\u3067\u306f\u306a\u304f\u3001\u5b9f\u969b\u306b\u30b3\u30a2\u30c0\u30f3\u30d7\u3057\u305f\u30d0\u30a4\u30ca\u30ea\u30d7\u30ed\u30b0\u30e9\u30e0(\/bin\/perl)\u306b\u3064\u3044\u3066 gdb \u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\n<\/p>\n<blockquote><p>$ gdb \/usr\/bin\/perl core<br \/>\nGNU gdb 4.18 (FreeBSD)<br \/>\nCopyright 1998 Free Software Foundation, Inc.<br \/>\nGDB is free software, covered by the GNU General Public License, and you are<br \/>\nwelcome to change it and\/or distribute copies of it under certain conditions.<br \/>\nType &#8220;show copying&#8221; to see the conditions.<br \/>\nThere is absolutely no warranty for GDB.  Type &#8220;show warranty&#8221; for details.<br \/>\nThis GDB was configured as &#8220;i386-unknown-freebsd&#8221;&#8230;Deprecated bfd_read called at \/usr\/src\/gnu\/usr.bin\/binutils\/gdb\/..\/..\/..\/..\/contrib\/gdb\/gdb\/dbxread.c line 2627 in elfstab_build_psymtabs<br \/>\nDeprecated bfd_read called at \/usr\/src\/gnu\/usr.bin\/binutils\/gdb\/..\/..\/..\/..\/contrib\/gdb\/gdb\/dbxread.c line 933 in fill_symbuf<br \/>\n&nbsp;<br \/>\nCore was generated by `perl&#8217;.<br \/>\nProgram terminated with signal 11, Segmentation Fault.<br \/>\n&nbsp;<br \/>\n\u4ee5\u4e0b\u30e9\u30a4\u30d6\u30e9\u30ea\u8aad\u307f\u8fbc\u307f\u3001\u30a8\u30e9\u30fc\u7b87\u6240\u8868\u793a\u304c\u7d9a\u304f\n<\/p><\/blockquote>\n<p>&nbsp;<br \/>\n\u5177\u4f53\u7684\u306a\u30c8\u30ec\u30fc\u30b9\u306e\u4ed5\u65b9\u306b\u3064\u3044\u3066\u306f\u53c2\u8003\u30b5\u30a4\u30c8\u53c2\u7167\u306e\u3053\u3068\u3002<br \/>\n&nbsp;<br \/>\n\u53c2\u8003:<br \/>\n&#8211;<a href=\"http:\/\/exp1gw.ec.t.kanazawa-u.ac.jp\/PC\/gdb.html\">gdb\u3092\u7528\u3044\u305f\u30c7\u30d0\u30c3\u30b0<\/a><br \/>\n&nbsp;&nbsp;core \u30c0\u30f3\u30d7\u89e3\u6790\u65b9\u6cd5\u3092\u542b\u3080 GDB \u306b\u3088\u308b\u30c7\u30d0\u30c3\u30b0\u306e\u57fa\u672c\u304c\u5206\u304b\u308a\u3084\u3059\u304f\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n&nbsp;<br \/>\n&#8211;<a href=\"http:\/\/www.asahi-net.or.jp\/~wg5k-ickw\/html\/online\/gdb-4.18\/gdb_toc.html\">Debugging with GDB<\/a>(\u65e5\u672c\u8a9e)<br \/>\n&nbsp;&nbsp;GDB \u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u65e5\u672c\u8a9e\u8a33<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u5b9f\u884c\u4e2d\u306b Segmentation Fault \u3084 Bus Error \u306a\u3069\u3067 Core dumped \u3068\u306a\u3063\u305f\u5834\u5408\u3001 core \u30d5\u30a1\u30a4\u30eb(\u307e\u305f\u306f *.core)\u304c\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u51fa\u529b\u3055\u308c\u307e\u3059\u3002 &nbsp; &hellip; <a href=\"https:\/\/www.ecoop.net\/memo\/archives\/2007-06-23-3.html\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">GDB \u3067\u30b3\u30a2\u30c0\u30f3\u30d7\u306e\u539f\u56e0\u3092\u63a2\u308b<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[20],"class_list":["post-746","post","type-post","status-publish","format-standard","hentry","tag-linux"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/746","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/comments?post=746"}],"version-history":[{"count":0,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/746\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/media?parent=746"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/categories?post=746"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/tags?post=746"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}