{"id":65,"date":"2007-02-11T22:48:42","date_gmt":"2007-02-11T21:48:42","guid":{"rendered":"http:\/\/www.hlynes.com\/2007\/02\/11\/tls-and-uml-pita\/"},"modified":"2007-02-13T12:52:24","modified_gmt":"2007-02-13T11:52:24","slug":"tls-and-uml-pita","status":"publish","type":"post","link":"http:\/\/www.hlynes.com\/?p=65","title":{"rendered":"TLS and UML = PITA"},"content":{"rendered":"<p>So it&#8217;s sunday and I decide to run apt-get on my Debian box which hosts this here blog and the <a href=\"http:\/\/www.peapodpy.org\/\">peapod project<\/a> page. Mysql 5 gets an update. apt-get stops it: apt-get starts it: and it dies on it&#8217;s arse.<\/p>\n<pre>Feb 11 15:54:02 hlynes mysqld[707]: 070211 15:54:02 [Note] \/usr\/sbin\/mysqld: Shutdown complete\r\nFeb 11 15:54:02 hlynes mysqld[707]:\r\nFeb 11 15:54:03 hlynes mysqld_safe[6754]: ended\r\nFeb 11 15:55:46 hlynes init: Trying to re-exec init\r\nFeb 11 16:01:45 hlynes mysqld_safe[10043]: mysqld got signal 11;\r\nFeb 11 16:01:45 hlynes mysqld_safe[10043]: This could be because you hit a bug.\r\nIt is also possible that this binary\r\nFeb 11 16:01:45 hlynes mysqld_safe[10043]: or one of the libraries it was linked\r\nagainst is corrupt, improperly built,\r\nFeb 11 16:01:45 hlynes mysqld_safe[10043]: or misconfigured. This error can also\r\nbe caused by malfunctioning hardware.\r\nFeb 11 16:01:45 hlynes mysqld_safe[10043]: We will try our best to scrape up som\r\ne info that will hopefully help diagnose\r\nFeb 11 16:01:45 hlynes mysqld_safe[10043]: the problem, but since we have alread\r\ny crashed, something is definitely wrong\r\nFeb 11 16:01:45 hlynes mysqld_safe[10043]: and this may fail.<\/pre>\n<p>After much googling it turns out to be to do with the fact that this is a Bytemark virtual machine running under <a href=\"http:\/\/user-mode-linux.sourceforge.net\/\">UML<\/a>. Apparently the tls library which is part of <a href=\"http:\/\/en.wikipedia.org\/wiki\/Native_POSIX_Thread_Library\">NPTL<\/a> does some very strange things  with memory that work just fine on a normal kernel but not one running under UML.<\/p>\n<p>Anyway the workaround is to move \/lib\/tls out of the way. Apparently this can fox apache also.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So it&#8217;s sunday and I decide to run apt-get on my Debian box which hosts this here blog and the peapod project page. Mysql 5 gets an update. apt-get stops it: apt-get starts it: and it dies on it&#8217;s arse. Feb 11 15:54:02 hlynes mysqld[707]: 070211 15:54:02 [Note] \/usr\/sbin\/mysqld: Shutdown complete Feb 11 15:54:02 hlynes &hellip; <a href=\"http:\/\/www.hlynes.com\/?p=65\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">TLS and UML = PITA<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,9],"tags":[],"class_list":["post-65","post","type-post","status-publish","format-standard","hentry","category-sysadmin","category-tech"],"_links":{"self":[{"href":"http:\/\/www.hlynes.com\/index.php?rest_route=\/wp\/v2\/posts\/65"}],"collection":[{"href":"http:\/\/www.hlynes.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.hlynes.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.hlynes.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.hlynes.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=65"}],"version-history":[{"count":0,"href":"http:\/\/www.hlynes.com\/index.php?rest_route=\/wp\/v2\/posts\/65\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.hlynes.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=65"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hlynes.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=65"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hlynes.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=65"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}