Project

General

Profile

Bug #5306

Application Hangs Due to Recent rb_thread_select Changes

Added by cfis (Charlie Savage) about 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
ruby -v:
-
Backport:
[ruby-core:39435]

Description

This commit:

4e9438bc9153f7a1f4ea0af85c8dbe359e1a55d8

Changed the implementation of rb_thread_select.

It causes eventmachine to hang on CentOS 5.5. Not sure what the issue is, but its easily reproduced by by running the test eventmachine/tests/test_epoll.rb.

We noticed this because it also causes the tweetstream gem to hang.

The same setup works on Fedora 14 and an up-to-date arch linux. Specific version information included below.

We temporarily fixed this by reverting the commit.

Since Centos is a common production environment (and the one we are using), this seems to us a blocker for 1.9.3.

We are happy to provide any additional information or test fixes.

Thanks - Charlie


We are running this version of CentOS:

Linux app1.zerista.com 2.6.18-238.19.1.el5.centos.plus #1 SMP Mon Jul 18 10:05:09 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux

And this version of Fedora:

Linux ammonite.internal.zerista.com 2.6.35.14-95.fc14.x86_64 #1 SMP Tue Aug 16 21:01:58 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

And this version of eventmachine:

eventmachine (1.0.0.beta.3)

And this version of tweetstream:

tweetstream (1.0.4)


Files

strace_hangs.log (3.87 KB) strace_hangs.log cfis (Charlie Savage), 09/10/2011 05:00 PM
strace_completes.log (307 KB) strace_completes.log cfis (Charlie Savage), 09/10/2011 05:00 PM
strace_pure.log (286 KB) strace_pure.log cfis (Charlie Savage), 09/10/2011 05:00 PM
pmap.log (7.19 KB) pmap.log cfis (Charlie Savage), 09/10/2011 05:00 PM
0001-thread.c-rb_thread_select-mark-original-fd_sets-prop.patch (3.43 KB) 0001-thread.c-rb_thread_select-mark-original-fd_sets-prop.patch normalperson (Eric Wong), 09/11/2011 09:30 AM
0001-thread.c-rb_thread_select-mark-original-fd_sets-prop.patch (4.08 KB) 0001-thread.c-rb_thread_select-mark-original-fd_sets-prop.patch normalperson (Eric Wong), 09/11/2011 03:12 PM
old_thread_select.patch (3.09 KB) old_thread_select.patch kosaki (Motohiro KOSAKI), 09/12/2011 02:27 AM
mingw_backtrace.txt (7.09 KB) mingw_backtrace.txt cfis (Charlie Savage), 09/13/2011 01:29 AM

Related issues

Related to Backport193 - Backport #5299: Segmentation fault when using TweetStream gem in ruby 1.9.3Closedkosaki (Motohiro KOSAKI)09/09/2011Actions

Also available in: Atom PDF