You are not logged in.
Hi everyone,
I don't know where to post this. That bug was so weird...
I was compiling stuff and got a system overload, the RAM filled up and lots of stuff swapped out. I build something that I thought was small with yaourt in /tmp/, but it turned out it took a lot of space, and the linking process probably killed what remained of it. I managed to kill the process by being patient, deleted the content from the /tmp/ folder and got my system responsive again. Except... all terminals were stuck! Don't ask me how it's possible, I don't know. It looked like anything that used STDOUT while running instantly froze. Swiching to a real console with Ctrl+Alt+F[1-6] didn't give my anything but a flashing cursor that doesn't respond to any key press. Back on X, all apps continue to work nicely. Can browse web, can even spawn new process, start xchat and arrive on #archlinux and ask how I can debug that.
It was not one terminal. It was ALL terminals that became stuck. I tried getting root with Alt+F2->gksudo terminal, got the black window, the cursor... and a freeze. zsh didn't launch. I tried using my htop shortcut, it did the same thing: terminal window, launch the program, and freeze. Also had some console open in Geany that was idle, it froze too. I couldn't figure any way to get a shell and do anything. I could start GUI apps without problem, but starting a console app froze directly. I even tried to remotely login through SSH, got stuck as soon as I logged in (where it starts the shell probably).
journalctl shows this:
Nov 16 22:23:03 max-p-arch76 kernel: INFO: task Terminal:9743 blocked for more than 120 seconds.
Nov 16 22:23:03 max-p-arch76 kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Nov 16 22:23:03 max-p-arch76 kernel: Terminal D ffff880119d041a0 0 9743 1 0x00000004
Nov 16 22:23:03 max-p-arch76 kernel: ffff88000f975ba8 0000000000000086 ffff88000f975ae8 ffff88000f975fd8
Nov 16 22:23:03 max-p-arch76 kernel: ffff88011a2c4ec0 ffff88000f975fd8 ffff88000f975fd8 ffff88000f975fd8
Nov 16 22:23:03 max-p-arch76 kernel: ffff880119d041a0 ffff88000a518690 00000000000075b9 000000000008085d
Nov 16 22:23:03 max-p-arch76 kernel: Call Trace:
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff810571c2>] ? print_prefix+0xf2/0x140
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff810572ea>] ? msg_print_text+0xda/0x1b0
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff8107fb02>] ? up+0x32/0x50
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff81467fd4>] schedule_timeout+0x204/0x260
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff81079f3b>] ? prepare_to_wait+0x5b/0x90
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff812fac96>] tty_ldisc_wait_idle.isra.6+0x76/0xb0
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff8107a140>] ? abort_exclusive_wait+0xb0/0xb0
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff812fb3d0>] tty_ldisc_hangup+0x160/0x330
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff8118ce6b>] ? fasync_helper+0x7b/0x90
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff812f2db4>] __tty_hangup+0x104/0x3e0
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff812f30be>] tty_vhangup+0xe/0x10
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff812fd21e>] pty_close+0x10e/0x170
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff812f4010>] tty_release+0x180/0x5c0
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff8117be4c>] __fput+0xac/0x230
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff8117c08e>] ____fput+0xe/0x10
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff81076459>] task_work_run+0x69/0x90
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff81015ca5>] do_notify_resume+0xb5/0xc0
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff8147316a>] int_signal+0x12/0x17
Nov 16 22:23:03 max-p-arch76 kernel: INFO: task htop:9784 blocked for more than 120 seconds.
Nov 16 22:23:03 max-p-arch76 kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Nov 16 22:23:03 max-p-arch76 kernel: htop D ffff88006593f620 0 9784 9743 0x00000004
Nov 16 22:23:03 max-p-arch76 kernel: ffff88000c0e7928 0000000000000086 000a52d000000003 ffff88000c0e7fd8
Nov 16 22:23:03 max-p-arch76 kernel: ffff88011a2c5be0 ffff88000c0e7fd8 ffff88000c0e7fd8 ffff88000c0e7fd8
Nov 16 22:23:03 max-p-arch76 kernel: ffff88006593f620 ffff8800d290c1a0 00000000000852d0 0000000000000001
Nov 16 22:23:03 max-p-arch76 kernel: Call Trace:
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff8112024c>] ? __alloc_pages_nodemask+0x16c/0x960
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff81136069>] ? zone_statistics+0x99/0xc0
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff810145b3>] ? __switch_to+0x163/0x410
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff810888ae>] ? update_cpu_clock+0x1ae/0x440
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff81467fd4>] schedule_timeout+0x204/0x260
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff8107d5a9>] ? enqueue_hrtimer+0x29/0xc0
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff814698ad>] wait_for_common+0xcd/0x160
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff81088df0>] ? try_to_wake_up+0x1f0/0x1f0
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff8146995d>] wait_for_completion+0x1d/0x20
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff8107442e>] flush_work+0x2e/0x40
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff81070e90>] ? alloc_worker+0x70/0x70
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff812f0101>] ? xen_swiotlb_map_page+0x61/0x110
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff812fc195>] tty_flush_to_ldisc+0x15/0x20
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff812f5f07>] n_tty_poll+0x77/0x1c0
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff812f2ba2>] tty_poll+0x92/0xa0
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff8118f529>] do_sys_poll+0x239/0x4c0
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff810888ae>] ? update_cpu_clock+0x1ae/0x440
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff8146a323>] ? schedule+0x793/0xf50
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff81088ddd>] ? try_to_wake_up+0x1dd/0x1f0
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff8118e2c0>] ? __pollwait+0xf0/0xf0
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff8118e2c0>] ? __pollwait+0xf0/0xf0
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff81084ff3>] ? __wake_up+0x53/0x70
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff812f1e2e>] ? tty_wakeup+0x3e/0x80
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff81079fc6>] ? remove_wait_queue+0x56/0x60
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff81084ff3>] ? __wake_up+0x53/0x70
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff811ba95b>] ? fsnotify+0x24b/0x340
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff8106c85b>] ? do_sigaction+0x13b/0x1d0
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff8101c9f9>] ? read_tsc+0x9/0x20
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff810a273c>] ? ktime_get_ts+0x4c/0xf0
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff8118e562>] ? poll_select_set_timeout+0x72/0x90
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff8118f88b>] sys_poll+0x6b/0x100
Nov 16 22:23:03 max-p-arch76 kernel: [<ffffffff81472ead>] system_call_fastpath+0x1a/0x1fIt's the third time this month, and I don't know what happened
It is probably similar to another bug I had some time ago: same thing happened, but this time terminal input was only REALLY delayed. Like, I typed, "dmesg", waited about 20 seconds, then the command typed in and executed normally. I thought it was xfce-terminal that had gone weird, switched to Ctrl+Alt+F1, typed my username... and just that was as slow as my GUI terminal. Back on X, browser and everything seemed really fast, but again, the terminal lagged quite a lot. That's why I think it's probably related, the symptoms were exactly the same except I was actually able to end up entering a command and get it's output.
Got some stats in xfce-taskmanager: CPU < 10%, RAM at ~ 3Gb out of 4Gb. Looked pretty normal to me.
So in short:
- text applications = unresponsive. ALL of them.
- GUI applications continue to work perfectly
- Tried several GUI Terminal apps (xterm, gnome-terminal, xfce-terminal, embed terminal in Geany)
- Real consoles doesn't work either
- SSH works, but can't get a terminal again
- Can spawn/kill processes without trouble at all. Through GUI and only GUI.
- Seems like STDIN or STDOUT is completely stuck.
Kernel bug?
It almost never happens, but I thought it was cool to report it somewhere.
Offline