{"id":5193,"date":"2014-03-30T19:33:27","date_gmt":"2014-03-30T19:33:27","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/whats-wrong-with-my-compiled-application-node-exe-collection-of-common-programming-errors\/"},"modified":"2014-03-30T19:33:27","modified_gmt":"2014-03-30T19:33:27","slug":"whats-wrong-with-my-compiled-application-node-exe-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/whats-wrong-with-my-compiled-application-node-exe-collection-of-common-programming-errors\/","title":{"rendered":"What&#39;s wrong with my compiled application? (node.exe)-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;ve cross-compiled node (v0.4 branch) on my Ubuntu system using mingw32, but copying it on to my Windows system the program doesn&#8217;t work and crashes.<\/p>\n<p>The odd thing is that <code>node.exe -v<\/code> and <code>node.exe --help<\/code> work, it&#8217;s just when it&#8217;s been running for a while that it crashes.<\/p>\n<p>I&#8217;ve uploaded the binary I compiled to https:\/\/gist.github.com\/raw\/1062521\/node.exe<\/p>\n<p>It also needs https:\/\/gist.github.com\/raw\/1062521\/pthreadGC2.dll in the same directory or in your path.<\/p>\n<p><strong>EDIT:<\/strong> I&#8217;ve also compiled it with debug enabled, but gdb still only gets:<\/p>\n<pre><code>Program received signal SIGSEGV, Segmentation fault.\n0x00000000 in ?? ()\n(gdb) bt\n#0  0x00000000 in ?? ()\n#1  0x00000000 in ?? ()\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve cross-compiled node (v0.4 branch) on my Ubuntu system using mingw32, but copying it on to my Windows system the program doesn&#8217;t work and crashes. The odd thing is that node.exe -v and node.exe &#8211;help work, it&#8217;s just when it&#8217;s been running for a while that it crashes. I&#8217;ve uploaded the binary I compiled to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5193","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5193","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5193"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5193\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5193"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}