ii vim 7.0-122+1
ii konsole 3.5.5a.dfsg.1-6
on a 2.6.19.3-grsec-smp-k8r-c
Hello,
sometimes I see vim hanging for no obvious reason (perhaps once per 2-3
months).
This time - I was editing a file in vim in Konsole xshell, and suddenly
it stoped reacting to any keys. The Konsole program worked fine, other
tabs where working, but vim insinde one of the tabs was frozen.
Results of strace:
$ strace -p 24309 -s 9999
Process 24309 attached - interrupt to quit
write(1, "\33]1;rafal@box.lcoffice:
/home/rafal/cre/cpp/observer/trunk\7", 60) = ? ERESTARTSYS (To be restarted)
It waited there (nothing changed as I pressed keys in the vim)
so I send kill to this process:
--- SIGTERM (Terminated) @ 0 (0) ---
sigreturn() = ? (mask now [])
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost -isig -icanon
-echo ...}) = 0
ioctl(0, SNDCTL_TMR_START or TCSETS, {B38400 opost isig icanon echo
...}) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
...}) = 0
kill(0, SIGTSTP) = 0
--- SIGTSTP (Stopped) @ 0 (0) ---
--- SIGTSTP (Stopped) @ 0 (0) ---
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
...}) = 0
ioctl(0, SNDCTL_TMR_START or TCSETS, {B38400 opost -isig -icanon -echo
...}) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost -isig -icanon
-echo ...}) = 0
write(6, "\24\0\6\0\5\0\200\4\'\0\0\0\0\0\0\0\0\0\0\0@B\17\0", 24) = 24
read(6, 0xbf97ffec, 32) = -1 EAGAIN (Resource
temporarily unavailable)
poll([{fd=6, events=POLLIN, revents=POLLIN}], 1, -1) = 1
read(6,
"\1\10&\0\24\0\0\0\37\0\0\0\0\0\0\0O\0\0\0\30\0\0\0(\0\0\0\30\0\0\0",
32) = 32
readv(6, [{"rafal@box.lcoffice: /home/rafal/cre/cpp/observer/trunk -
Shell No. 8 - Konsole", 79}, {"\35", 1}], 2) = 80
write(1, "\33]2;x.h (/home/MOUNT/rafal/cre/cpp/observer/trunk) - VIM\7",
58) = ? ERESTARTSYS (To be restarted)
and nothing... I send another kill, same result;
finally kill -9
--- SIGTERM (Terminated) @ 0 (0) ---
sigreturn() = ? (mask now [])
write(1, "\33]2;x.h (/home/MOUNT/rafal/cre/cpp/observer/trunk) - VIM\7",
58) = ? ERESTARTSYS (To be restarted)
+++ killed by SIGKILL +++
Process 24309 detached
I can observe this with xfce4-terminal. It happened three times during the last week, but I still don't see what triggers this. Here's backtrace from gdb: #0 0xb781c424 in __kernel_vsyscall () #1 0xb6cec44b in write () from /lib/i686/cmov/libc.so.6 #2 0x0815bd90 in mch_write () #3 0x081bdc54 in ui_write () #4 0x081b6ef2 in out_flush () #5 0x0811dc4d in prepare_to_exit () #6 0x0811dc7b in preserve_exit () #7 <signal handler called> #8 0xb781c424 in __kernel_vsyscall () #9 0xb6cec44b in write () from /lib/i686/cmov/libc.so.6 #10 0x0815bd90 in mch_write () #11 0x081bdc54 in ui_write () #12 0x081b6ef2 in out_flush () #13 0x081b7305 in out_str () #14 0x08173a74 in ?? () #15 0x08177cad in ?? () #16 0x0817ab5b in ?? () #17 0x0817eaa1 in ?? () #18 0x0818121f in update_screen () #19 0x081b7a99 in set_shellsize () #20 0x081b7ac2 in shell_resized () #21 0x08160acf in mch_inchar () #22 0x081bdb07 in ui_inchar () #23 0x080efd71 in inchar () #24 0x080f13df in ?? () #25 0x080f2afe in vgetc () #26 0x080f300b in safe_vgetc () #27 0x0808dfb5 in edit () #28 0x0813c7f4 in ?? () #29 0x081435a9 in normal_cmd () #30 0x081030e7 in main_loop () #31 0x0810662a in main ()
Here is more meaningful backtrace, hope it helps:
(gdb) bt
#0 0xb7896424 in __kernel_vsyscall ()
#1 0xb6d3744b in write () from /lib/i686/cmov/libc.so.6
#2 0x0815bd90 in mch_write (
s=0x8231ba0 "\033[?25l\033[m\bGs\033[41;129H\033[1m\033[34m\033[47m4 \033[28;106H\033[?12l\033[?25h12l\033[?25h (2 of 2) - VIM\a[33m==\033[m v ] \033[1m\033[33m$\033[m \033[1m\033[33m\\\033[mj \033[1m\033[33m->\033[m add \033[24;73Hlabel u j", ' ' <repeats 33 times>...,
len=58) at os_unix.c:347
#3 0x081bdc54 in ui_write (
s=0x8231ba0 "\033[?25l\033[m\bGs\033[41;129H\033[1m\033[34m\033[47m4 \033[28;106H\033[?12l\033[?25h12l\033[?25h (2 of 2) - VIM\a[33m==\033[m v ] \033[1m\033[33m$\033[m \033[1m\033[33m\\\033[mj \033[1m\033[33m->\033[m add \033[24;73Hlabel u j", ' ' <repeats 33 times>...,
len=58) at ui.c:51
#4 0x081b6ef2 in out_flush () at term.c:2542
#5 0x080efb6e in inchar (buf=0x822de56 "", maxlen=210, wait_time=-1, tb_change_cnt=18613) at getchar.c:2867
#6 0x080f13df in vgetorpeek (advance=<value optimized out>) at getchar.c:2742
#7 0x080f2afe in vgetc () at getchar.c:1559
#8 0x080f300b in safe_vgetc () at getchar.c:1764
#9 0x0808dfb5 in edit (cmdchar=0, startln=0, count=1) at edit.c:717
#10 0x0814e14f in op_change (oap=0xbfa9f5f0) at ops.c:2657
#11 0x0813bf4b in do_pending_operator (cap=0xbfa9f56c, old_col=31, gui_yank=0) at normal.c:1953
#12 0x081435eb in normal_cmd (oap=0xbfa9f5f0, toplevel=1) at normal.c:1214
#13 0x081030e7 in main_loop (cmdwin=0, noexmode=0) at main.c:1214
#14 0x0810662a in main (argc=4, argv=0xbfa9f844) at main.c:958