Project

General

Profile

Actions

Bug #10980

closed

Ruby process stuck i D state

Added by jforberg (Johan Förberg) about 9 years ago. Updated over 4 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:<unknown>]

Description

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 random 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 0x00000004
[18616.675082] ffff88010d383b68 0000000000000082 ffff8801a99c6eb0 0000000000013640
[18616.675085] ffff88010d383fd8 0000000000013640 ffff880213368000 ffff8801a99c6eb0
[18616.675088] ffff88021fdf5b00 0000010000000000 0000000000000000 ffff88021fdf4e40
[18616.675091] Call Trace:
[18616.675099] [] ? zone_statistics+0x81/0xa0
[18616.675105] [] ? try_to_wake_up+0x1e7/0x380
[18616.675110] [] schedule+0x29/0x70
[18616.675114] [] rwsem_down_write_failed+0x175/0x360
[18616.675118] [] call_rwsem_down_write_failed+0x13/0x20
[18616.675122] [] ? down_write+0x24/0x40
[18616.675126] [] do_coredump+0x16d/0xf30
[18616.675131] [] ? force_sig_info+0xd4/0xf0
[18616.675135] [] ? __sigqueue_free.part.15+0x37/0x40
[18616.675139] [] get_signal+0x38c/0x710
[18616.675144] [] do_signal+0x37/0x800
[18616.675147] [] ? __sigqueue_free.part.15+0x37/0x40
[18616.675152] [] ? __sb_end_write+0x35/0x70
[18616.675154] [] ? vfs_write+0x1c2/0x200
[18616.675158] [] do_notify_resume+0x68/0xa0
[18616.675162] [] retint_signal+0x48/0x86

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

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

kill -9 9327
(No effect)

Actions #1

Updated by jeremyevans0 (Jeremy Evans) over 4 years ago

  • Status changed from Open to Closed
Actions

Also available in: Atom PDF

Like0
Like0