[#68478] Looking for MRI projects for Ruby Google Summer of Code 2015 — Tony Arcieri <bascule@...>

Hi ruby-core,

10 messages 2015/03/10

[ruby-core:68550] [Ruby trunk - Bug #10980] [Open] Ruby process stuck i D state

From: johan@...
Date: 2015-03-18 00:01:54 UTC
List: ruby-core #68550
Issue #10980 has been reported by Johan F=C3=B6rberg.

----------------------------------------
Bug #10980: Ruby process stuck i D state
https://bugs.ruby-lang.org/issues/10980

* Author: Johan F=C3=B6rberg
* Status: Open
* Priority: Normal
* Assignee:=20
* ruby -v: 2.2.1
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
My ruby process frequently gets stuck in the 'D' kernel state, requiring a =
reboot.

I mostly use Ruby for Ruby on Rails with Unicorn. Ususally Ruby gets stuck =
during Rspec testing or when running the Unicorn. I can't observe any more =
patterns or anything that I might be doing with the kernel that would lock =
it up.

I'm not sure what information that would interest you so I'll just put a ra=
ndom blob. Please ask for more info

ruby -v
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]

uname -a
Linux starbuck 3.18.6-1-ARCH #1 SMP PREEMPT Sat Feb 7 08:44:05 CET 2015 x86=
_64 GNU/Linux

dmesg
[18616.675069] INFO: task ruby:9327 blocked for more than 120 seconds.
[18616.675075]       Tainted: G          IO   3.18.6-1-ARCH #1
[18616.675076] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables =
this message.
[18616.675078] ruby            D 0000000000000000     0  9327      1 0x0000=
0004
[18616.675082]  ffff88010d383b68 0000000000000082 ffff8801a99c6eb0 00000000=
00013640
[18616.675085]  ffff88010d383fd8 0000000000013640 ffff880213368000 ffff8801=
a99c6eb0
[18616.675088]  ffff88021fdf5b00 0000010000000000 0000000000000000 ffff8802=
1fdf4e40
[18616.675091] Call Trace:
[18616.675099]  [<ffffffff81177161>] ? zone_statistics+0x81/0xa0
[18616.675105]  [<ffffffff8109e777>] ? try_to_wake_up+0x1e7/0x380
[18616.675110]  [<ffffffff81551599>] schedule+0x29/0x70
[18616.675114]  [<ffffffff81553e25>] rwsem_down_write_failed+0x175/0x360
[18616.675118]  [<ffffffff812c0e63>] call_rwsem_down_write_failed+0x13/0x20
[18616.675122]  [<ffffffff81553604>] ? down_write+0x24/0x40
[18616.675126]  [<ffffffff8122c5cd>] do_coredump+0x16d/0xf30
[18616.675131]  [<ffffffff81080524>] ? force_sig_info+0xd4/0xf0
[18616.675135]  [<ffffffff8107e3d7>] ? __sigqueue_free.part.15+0x37/0x40
[18616.675139]  [<ffffffff8108180c>] get_signal+0x38c/0x710
[18616.675144]  [<ffffffff81014617>] do_signal+0x37/0x800
[18616.675147]  [<ffffffff8107e3d7>] ? __sigqueue_free.part.15+0x37/0x40
[18616.675152]  [<ffffffff811d1b95>] ? __sb_end_write+0x35/0x70
[18616.675154]  [<ffffffff811cf552>] ? vfs_write+0x1c2/0x200
[18616.675158]  [<ffffffff81014e48>] do_notify_resume+0x68/0xa0
[18616.675162]  [<ffffffff81556322>] retint_signal+0x48/0x86

ps x
.... crashes due to the process that is stuck

top=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
 9327 johan     20   0  251.0m 131.7m   0.0  1.7   0:02.96 D ruby=20=20=20=
=20=20=20=20=20

kill -9 9327
(No effect)=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20



--=20
https://bugs.ruby-lang.org/

In This Thread

Prev Next