{"id":7011,"date":"2014-05-17T00:20:23","date_gmt":"2014-05-17T00:20:23","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/05\/17\/phusion-passenger-ruby-1-9-3-rails-3-1-3-async-bug-thread_timer-select-collection-of-common-programming-errors\/"},"modified":"2014-05-17T00:20:23","modified_gmt":"2014-05-17T00:20:23","slug":"phusion-passenger-ruby-1-9-3-rails-3-1-3-async-bug-thread_timer-select-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/05\/17\/phusion-passenger-ruby-1-9-3-rails-3-1-3-async-bug-thread_timer-select-collection-of-common-programming-errors\/","title":{"rendered":"Phusion Passenger\/ruby 1.9.3\/rails 3.1.3 \/ [ASYNC BUG] thread_timer: select-Collection of common programming errors"},"content":{"rendered":"<p>I just upgraded to Ruby 1.9.3-p0 and Rails 3.1.3. And then I re-installed Phusion Passenger with support for nginx. Now nginx is recording the following error on every page access:<\/p>\n<blockquote>\n<p>[ASYNC BUG] thread_timer: select EBADF<\/p>\n<p>ruby 1.9.3p0 (2011-10-30) [x86_64-linux]<\/p>\n<p>[NOTE] You may have encountered a bug in the Ruby interpreter or extension libraries. Bug reports are welcome. For details: http:\/\/www.ruby-lang.org\/bugreport.html<\/p>\n<\/blockquote>\n<p>All of this is on Ubuntu 11.4.<\/p>\n<p>The error trace in the browser looks like this:<\/p>\n<pre><code>Passenger encountered the following error:\n\nThe application spawner server exited unexpectedly: Unexpected end-of-file detected.\n\nException class:\n    PhusionPassenger::Rack::ApplicationSpawner::Error\n\n#   File                                                                                    Line    Location\n0   \/opt\/gem_home\/gems\/passenger-3.0.9\/lib\/phusion_passenger\/rack\/application_spawner.rb    134     in `rescue in start'\n1   \/opt\/gem_home\/gems\/passenger-3.0.9\/lib\/phusion_passenger\/rack\/application_spawner.rb    129     in `start'\n2   \/opt\/gem_home\/gems\/passenger-3.0.9\/lib\/phusion_passenger\/spawn_manager.rb   253     in `block (2 levels) in spawn_rack_application'\n3   \/opt\/gem_home\/gems\/passenger-3.0.9\/lib\/phusion_passenger\/abstract_server_collection.rb  132     in `lookup_or_add'\n4   \/opt\/gem_home\/gems\/passenger-3.0.9\/lib\/phusion_passenger\/spawn_manager.rb   246     in `block in spawn_rack_application'\n5   \/opt\/gem_home\/gems\/passenger-3.0.9\/lib\/phusion_passenger\/abstract_server_collection.rb  82  in `block in synchronize'\n6   &lt; td=\"\"&gt;  prelude&gt;    10:in `synchronize'\n7   \/opt\/gem_home\/gems\/passenger-3.0.9\/lib\/phusion_passenger\/abstract_server_collection.rb  79  in `synchronize'\n8   \/opt\/gem_home\/gems\/passenger-3.0.9\/lib\/phusion_passenger\/spawn_manager.rb   244     in `spawn_rack_application'\n9   \/opt\/gem_home\/gems\/passenger-3.0.9\/lib\/phusion_passenger\/spawn_manager.rb   137     in `spawn_application'\n10  \/opt\/gem_home\/gems\/passenger-3.0.9\/lib\/phusion_passenger\/spawn_manager.rb   275     in `handle_spawn_application'\n11  \/opt\/gem_home\/gems\/passenger-3.0.9\/lib\/phusion_passenger\/abstract_server.rb     357     in `server_main_loop'\n12  \/opt\/gem_home\/gems\/passenger-3.0.9\/lib\/phusion_passenger\/abstract_server.rb     206     in `start_synchronously'\n13  \/opt\/gem_home\/gems\/passenger-3.0.9\/helper-scripts\/passenger-spawn-server\n<\/code><\/pre>\n<p>Any ideas on how to fix this?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just upgraded to Ruby 1.9.3-p0 and Rails 3.1.3. And then I re-installed Phusion Passenger with support for nginx. Now nginx is recording the following error on every page access: [ASYNC BUG] thread_timer: select EBADF ruby 1.9.3p0 (2011-10-30) [x86_64-linux] [NOTE] You may have encountered a bug in the Ruby interpreter or extension libraries. Bug reports [&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-7011","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7011","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=7011"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7011\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7011"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7011"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7011"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}