{"id":1873,"date":"2011-04-13T13:36:03","date_gmt":"2011-04-13T04:36:03","guid":{"rendered":"http:\/\/pchero21.com\/?p=1873"},"modified":"2011-04-13T13:36:03","modified_gmt":"2011-04-13T04:36:03","slug":"stack-smashing-detected","status":"publish","type":"post","link":"http:\/\/pchero21.com\/?p=1873","title":{"rendered":"stack smashing detected"},"content":{"rendered":"<p>\ud504\ub85c\uadf8\ub7a8 TEST \uc911 \uc544\ub798\uc640 \uac19\uc740 \uc624\ub958\uac00 \ubc1c\uc0dd\ud588\ub2e4.<\/p>\n<p>\uacb0\uacfc\ub294 Core dump.<\/p>\n<blockquote><p>jonathan@jonathan-laptop:~\/workspace\/TEST$ .\/TEST<br \/>\n*** stack smashing detected ***: .\/TEST terminated<br \/>\n======= Backtrace: =========<br \/>\n\/lib\/tls\/i686\/cmov\/libc.so.6(__fortify_fail+0x50)[0xb775c390]<br \/>\n\/lib\/tls\/i686\/cmov\/libc.so.6(+0xe233a)[0xb775c33a]<br \/>\n.\/TEST[0x804a2f4]<br \/>\n.\/TEST[0x8049189]<br \/>\n.\/TEST[0x8049258]<br \/>\n.\/TEST[0x8049205]<br \/>\n\/lib\/tls\/i686\/cmov\/libc.so.6(__libc_start_main+0xe6)[0xb7690bd6]<br \/>\n.\/TEST[0x8049081]<br \/>\n======= Memory map: ========<br \/>\n08048000-0804f000 r-xp 00000000 08:05 7344439\u00a0\u00a0\u00a0 \/home\/jonathan\/workspace\/TEST\/TEST<br \/>\n0804f000-08050000 r&#8211;p 00007000 08:05 7344439\u00a0\u00a0\u00a0 \/home\/jonathan\/workspace\/TEST\/TEST<br \/>\n08050000-08051000 rw-p 00008000 08:05 7344439\u00a0\u00a0\u00a0 \/home\/jonathan\/workspace\/TEST\/TEST<br \/>\n08051000-080fd000 rw-p 00000000 00:00 0<br \/>\n09a2c000-09a4d000 rw-p 00000000 00:00 0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [heap]<br \/>\nb763d000-b765a000 r-xp 00000000 08:05 4849747\u00a0\u00a0\u00a0 \/lib\/libgcc_s.so.1<br \/>\nb765a000-b765b000 r&#8211;p 0001c000 08:05 4849747\u00a0\u00a0\u00a0 \/lib\/libgcc_s.so.1<br \/>\nb765b000-b765c000 rw-p 0001d000 08:05 4849747\u00a0\u00a0\u00a0 \/lib\/libgcc_s.so.1<br \/>\nb7678000-b767a000 rw-p 00000000 00:00 0<br \/>\nb767a000-b77cd000 r-xp 00000000 08:05 4984558\u00a0\u00a0\u00a0 \/lib\/tls\/i686\/cmov\/libc-2.11.1.so<br \/>\nb77cd000-b77ce000 &#8212;p 00153000 08:05 4984558\u00a0\u00a0\u00a0 \/lib\/tls\/i686\/cmov\/libc-2.11.1.so<br \/>\nb77ce000-b77d0000 r&#8211;p 00153000 08:05 4984558\u00a0\u00a0\u00a0 \/lib\/tls\/i686\/cmov\/libc-2.11.1.so<br \/>\nb77d0000-b77d1000 rw-p 00155000 08:05 4984558\u00a0\u00a0\u00a0 \/lib\/tls\/i686\/cmov\/libc-2.11.1.so<br \/>\nb77d1000-b77d4000 rw-p 00000000 00:00 0<br \/>\nb77ef000-b77f2000 rw-p 00000000 00:00 0<br \/>\nb77f2000-b77f3000 r-xp 00000000 00:00 0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [vdso]<br \/>\nb77f3000-b780e000 r-xp 00000000 08:05 4855235\u00a0\u00a0\u00a0 \/lib\/ld-2.11.1.so<br \/>\nb780e000-b780f000 r&#8211;p 0001a000 08:05 4855235\u00a0\u00a0\u00a0 \/lib\/ld-2.11.1.so<br \/>\nb780f000-b7810000 rw-p 0001b000 08:05 4855235\u00a0\u00a0\u00a0 \/lib\/ld-2.11.1.so<br \/>\nbff3e000-bff53000 rw-p 00000000 00:00 0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [stack]<br \/>\nAborted (core dumped)<\/p><\/blockquote>\n<p>\uc6d0\uc778 \ubd84\uc11d\uc744 \uc704\ud574 \ucf54\uc5b4 \ud30c\uc77c\uacfc \ud568\uaed8 gdb\ub97c \uc2e4\ud589 \uc2dc\ucf1c \ubcf4\uc558\ub2e4.<\/p>\n<blockquote><p>jonathan@jonathan-laptop:~\/workspace\/TEST$ gdb -c core TEST<br \/>\nGNU gdb (GDB) 7.1-ubuntu<br \/>\nCopyright (C) 2010 Free Software Foundation, Inc.<br \/>\nLicense GPLv3+: GNU GPL version 3 or later &lt;http:\/\/gnu.org\/licenses\/gpl.html&gt;<br \/>\nThis is free software: you are free to change and redistribute it.<br \/>\nThere is NO WARRANTY, to the extent permitted by law.\u00a0 Type &#8220;show copying&#8221;<br \/>\nand &#8220;show warranty&#8221; for details.<br \/>\nThis GDB was configured as &#8220;i486-linux-gnu&#8221;.<br \/>\nFor bug reporting instructions, please see:<br \/>\n&lt;http:\/\/www.gnu.org\/software\/gdb\/bugs\/&gt;&#8230;<br \/>\nReading symbols from \/home\/jonathan\/workspace\/TEST\/TEST&#8230;done.<br \/>\n[New Thread 5966]<\/p>\n<p>warning: Can&#8217;t read pathname for load map: Input\/output error.<br \/>\nReading symbols from \/lib\/tls\/i686\/cmov\/libc.so.6&#8230;(no debugging symbols found)&#8230;done.<br \/>\nLoaded symbols for \/lib\/tls\/i686\/cmov\/libc.so.6<br \/>\nReading symbols from \/lib\/ld-linux.so.2&#8230;(no debugging symbols found)&#8230;done.<br \/>\nLoaded symbols for \/lib\/ld-linux.so.2<br \/>\nReading symbols from \/lib\/libgcc_s.so.1&#8230;Reading symbols from \/usr\/lib\/debug\/lib\/libgcc_s.so.1&#8230;done.<br \/>\ndone.<br \/>\nLoaded symbols for \/lib\/libgcc_s.so.1<br \/>\nCore was generated by `.\/TEST&#8217;.<br \/>\nProgram terminated with signal 6, Aborted.<br \/>\n#0\u00a0 0xb77f2430 in __kernel_vsyscall ()<br \/>\n(gdb) where<br \/>\n#0\u00a0 0xb77f2430 in __kernel_vsyscall ()<br \/>\n#1\u00a0 0xb76a4651 in raise () from \/lib\/tls\/i686\/cmov\/libc.so.6<br \/>\n#2\u00a0 0xb76a7a82 in abort () from \/lib\/tls\/i686\/cmov\/libc.so.6<br \/>\n#3\u00a0 0xb76db49d in ?? () from \/lib\/tls\/i686\/cmov\/libc.so.6<br \/>\n#4\u00a0 0xb775c390 in __fortify_fail () from \/lib\/tls\/i686\/cmov\/libc.so.6<br \/>\n#5\u00a0 0xb775c33a in __stack_chk_fail () from \/lib\/tls\/i686\/cmov\/libc.so.6<br \/>\n#6\u00a0 0x0804a2f4 in TestHeadMake () at test.c:515<br \/>\n#7\u00a0 0x08049189 in TestLog (loglvl=1, title=0x804df59 &#8220;TEST&#8221;, fmt=0x804df57 &#8220;n&#8221;) at test.c:196<br \/>\n#8\u00a0 0x08049258 in StartMessage () at test.c:237<br \/>\n#9\u00a0 0x08049205 in main (argc=1, argv=0xbff509a4) at test.c:218<\/p><\/blockquote>\n<p>\ubb38\uc81c\ub294 \uac04\ub2e8\ud588\ub2e4.<\/p>\n<p>\ud568\uc218 TestHeadMake() \ub0b4\uc5d0\uc11c \uc0ac\uc6a9\ud558\ub294 \ubb38\uc790\uc5f4 \ubc84\ud37c timeStr \uc758 \uc0ac\uc774\uc988\uac00 \ub370\uc774\ud130\ub97c \ub2f4\uae30\uc5d0 \uc791\uc558\ub358 \uac83.<\/p>\n<p>\ubc14\ub85c \ucc3e\uc544\uc11c \ud574\uacb0\uc744&#8230; \ud588\uc73c\uba74 \uc88b\uc558\uaca0\uc9c0\ub9cc \ud55c\ucc38\uc744 \ucc3e\uc558\ub2e4&#8230;;;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ud504\ub85c\uadf8\ub7a8 TEST \uc911 \uc544\ub798\uc640 \uac19\uc740 \uc624\ub958\uac00 \ubc1c\uc0dd\ud588\ub2e4. \uacb0\uacfc\ub294 Core dump. jonathan@jonathan-laptop:~\/workspace\/TEST$ .\/TEST *** stack smashing detected ***: .\/TEST terminated ======= Backtrace: ========= \/lib\/tls\/i686\/cmov\/libc.so.6(__fortify_fail+0x50)[0xb775c390] \/lib\/tls\/i686\/cmov\/libc.so.6(+0xe233a)[0xb775c33a] .\/TEST[0x804a2f4] .\/TEST[0x8049189] .\/TEST[0x8049258] .\/TEST[0x8049205] \/lib\/tls\/i686\/cmov\/libc.so.6(__libc_start_main+0xe6)[0xb7690bd6] .\/TEST[0x8049081] ======= Memory map: ======== 08048000-0804f000 r-xp 00000000 08:05 7344439\u00a0\u00a0\u00a0 \/home\/jonathan\/workspace\/TEST\/TEST &hellip; <a href=\"http:\/\/pchero21.com\/?p=1873\">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":[127,138,187,241,365,399],"_links":{"self":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/posts\/1873"}],"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=1873"}],"version-history":[{"count":0,"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/posts\/1873\/revisions"}],"wp:attachment":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1873"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1873"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1873"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}