{"id":33,"date":"2007-10-10T19:23:10","date_gmt":"2007-10-10T17:23:10","guid":{"rendered":"http:\/\/independence.blinkenshell.org\/blog\/?p=4"},"modified":"2007-10-10T19:23:10","modified_gmt":"2007-10-10T17:23:10","slug":"linker-preload-system-reboot","status":"publish","type":"post","link":"https:\/\/independence.blinkenshell.org\/blog\/2007\/10\/10\/linker-preload-system-reboot\/","title":{"rendered":"Snoopy, system reboot"},"content":{"rendered":"<p>Today I was trying to update a program called snoopy logger, which is a program to log all executed commands on a system. It does this by wrapping the function execve(), and it get&#8217;s called every time a program is started because it&#8217;s listed in the ld.so.preload file.<\/p>\n<p>This update was however very unfortunate, I was trying to fix a bug and when I had compiled the new version without any compiler errors I replaced the old snoopy.so with the new one. Then, when I tried executing a command it just froze. This is where the panic starts \ud83d\ude42<\/p>\n<p>I realized that the new snoopy file must be the culprit, but what should I do about it? I can&#8217;t execute a single command. No ls, no mv or cp. Tough one. I had really fucked up the system, no one could start any new processes and if they tried the process would consume 100% CPU and make the system painfully slow.<\/p>\n<p>I logged in to the vserver host and managed to get in that way, I guess it ignored the preload file or something since it&#8217;s not a regular login, and changed back to the previous snoopy-binary. However, all programs on the system seemed to have reloaded the bad version of snoopy and wouldn&#8217;t load back the old one. Therefore I had to restart all processes on the system (ie reboot). This is what caused your screen being dead! Sorry for any inconveniance! \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I was trying to update a program called snoopy logger, which is a program to log all executed commands on a system. It does this by wrapping the function execve(), and it get&#8217;s called every time a program is &hellip; <a href=\"https:\/\/independence.blinkenshell.org\/blog\/2007\/10\/10\/linker-preload-system-reboot\/\">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":{"footnotes":""},"categories":[4,9,16],"tags":[22,24],"class_list":["post-33","post","type-post","status-publish","format-standard","hentry","category-downtime","category-linux","category-software","tag-reboot","tag-snoopy"],"_links":{"self":[{"href":"https:\/\/independence.blinkenshell.org\/blog\/wp-json\/wp\/v2\/posts\/33","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/independence.blinkenshell.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/independence.blinkenshell.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/independence.blinkenshell.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/independence.blinkenshell.org\/blog\/wp-json\/wp\/v2\/comments?post=33"}],"version-history":[{"count":0,"href":"https:\/\/independence.blinkenshell.org\/blog\/wp-json\/wp\/v2\/posts\/33\/revisions"}],"wp:attachment":[{"href":"https:\/\/independence.blinkenshell.org\/blog\/wp-json\/wp\/v2\/media?parent=33"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/independence.blinkenshell.org\/blog\/wp-json\/wp\/v2\/categories?post=33"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/independence.blinkenshell.org\/blog\/wp-json\/wp\/v2\/tags?post=33"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}