{"id":5250,"date":"2014-03-30T20:01:10","date_gmt":"2014-03-30T20:01:10","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/gdb-cannot-find-new-threads-generic-error-collection-of-common-programming-errors\/"},"modified":"2014-03-30T20:01:10","modified_gmt":"2014-03-30T20:01:10","slug":"gdb-cannot-find-new-threads-generic-error-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/gdb-cannot-find-new-threads-generic-error-collection-of-common-programming-errors\/","title":{"rendered":"gdb: Cannot find new threads: generic error-Collection of common programming errors"},"content":{"rendered":"<p>When I run GDB against a program which loads a .so which is linked to pthreads, GDB reports error &#8220;Cannot find new threads: generic error&#8221;.<\/p>\n<p>Note that executable that I run is not linked with pthreads.<\/p>\n<p>Any clues?<\/p>\n<pre>\n$ gdb --args lua -lluarocks.require\nGNU gdb (GDB) 7.0-ubuntu\nCopyright (C) 2009 Free Software Foundation, Inc.\nLicense GPLv3+: GNU GPL version 3 or later \nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\nand \"show warranty\" for details.\nThis GDB was configured as \"x86_64-linux-gnu\".\nFor bug reporting instructions, please see:\n...\nReading symbols from \/usr\/bin\/lua...(no debugging symbols found)...done.\n(gdb) run\nStarting program: \/usr\/bin\/lua -lluarocks.require\nLua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio\n&gt; require 'ev'\n[Thread debugging using libthread_db enabled]\nCannot find new threads: generic error\n(gdb) q\nA debugging session is active.\n\n    Inferior 1 [process 4986] will be killed.\n\nQuit anyway? (y or n) y\n<\/pre>\n<p>This function gets called on <code>require 'ev'<\/code>:<\/p>\n<p>http:\/\/github.com\/brimworks\/lua-ev\/blob\/master\/lua_ev.c#L25-65<\/p>\n<p>Additional information about my system:<\/p>\n<pre>\n$ uname -a\nLinux localhost 2.6.31-20-generic #58-Ubuntu SMP Fri Mar 12 04:38:19 UTC 2010 x86_64 GNU\/Linux\n<\/pre>\n<pre>\n$ lsb_release -a\nNo LSB modules are available.\nDistributor ID: Ubuntu\nDescription:    Ubuntu 9.10\nRelease:    9.10\nCodename:   karmic\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>When I run GDB against a program which loads a .so which is linked to pthreads, GDB reports error &#8220;Cannot find new threads: generic error&#8221;. Note that executable that I run is not linked with pthreads. Any clues? $ gdb &#8211;args lua -lluarocks.require GNU gdb (GDB) 7.0-ubuntu Copyright (C) 2009 Free Software Foundation, Inc. License [&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-5250","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5250","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=5250"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5250\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}