:: [DNG] Debian vim bug ?
Etusivu
Poista viesti
Vastaa
Lähettäjä: g4sra
Päiväys:  
Vastaanottaja: dng@lists.dyne.org
Aihe: [DNG] Debian vim bug ?
Rather than using gvim I prefer to work mainly in konsole using gpm mouse, and this may (or may not) be gpm related. I do have numerous other vim plugins installed also.

I am experiencing high load when using vim. This occurs whenever I edit and save a file but DO NOT move the cursor afterwards.

I strace'd it to vim spinning around 'poll' & 'select'.
Can anybody else duplicate this phenomenon ?


strace -p 24368
poll([{fd=5, events=POLLIN}], 1, 0)     = 0 (Timeout)
select(8, [0 3 5 7], [], [0 3 7], NULL) = 1 (in [7])
recvmsg(5, {msg_namelen=0}, 0)          = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(5, {msg_namelen=0}, 0)          = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(5, {msg_namelen=0}, 0)          = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(5, {msg_namelen=0}, 0)          = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=5, events=POLLIN}], 1, 0)     = 0 (Timeout)
select(8, [0 3 5 7], [], [0 3 7], NULL) = 1 (in [7])
recvmsg(5, {msg_namelen=0}, 0)          = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(5, {msg_namelen=0}, 0)          = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(5, {msg_namelen=0}, 0)          = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(5, {msg_namelen=0}, 0)          = -1 EAGAIN (Resource temporarily unavailable)


strace -p 24368 -k
> /usr/bin/vim.gtk(_start+0x2a) [0x6e4ba]

recvmsg(5, {msg_namelen=0}, 0)          = -1 EAGAIN (Resource temporarily unavailable)

> /lib/x86_64-linux-gnu/libpthread-2.28.so(recvmsg+0x11) [0x12391]
> /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0(xcb_wait_for_special_event+0x4c8) [0xee58]
> /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0(xcb_poll_for_reply64+0x178) [0xf958]
> /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0(_XFreeX11XCBStructure+0x82e) [0x434de]

^C > /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0(_XFreeX11XCBStructure+0x9a0) [0x43650]
> /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0(_XEventsQueued+0x5d) [0x4394d]
> /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0(XEventsQueued+0x50) [0x35640]
> /usr/lib/x86_64-linux-gnu/libXt.so.6.0.0(XtAppPending+0x141) [0x2f051]
> /usr/bin/vim.gtk(get_winbuf_options+0x24c) [0x17a4cc]
> /usr/bin/vim.gtk(xsmp_handle_requests+0x2ab) [0x180fab]
> /usr/bin/vim.gtk(mch_write+0xeb) [0x18156b]
> /usr/bin/vim.gtk(ui_wait_for_chars_or_timer+0x50) [0x216040]
> /usr/bin/vim.gtk(get_winbuf_options+0x315) [0x17a595]
> /usr/bin/vim.gtk(inchar_loop+0xdc) [0x21821c]
> /usr/bin/vim.gtk(ui_inchar+0xda) [0x217c9a]
> /usr/bin/vim.gtk(fix_input_buffer+0x370) [0x1089b0]
> /usr/bin/vim.gtk(vim_unescape_csi+0x1052) [0x10a8b2]
> /usr/bin/vim.gtk(vgetc+0x257) [0x10b6d7]
> /usr/bin/vim.gtk(safe_vgetc+0x9) [0x10bb09]
> /usr/bin/vim.gtk(normal_cmd+0x10e) [0x15ae8e]
> /usr/bin/vim.gtk(main_loop+0x43a) [0x281f5a]
> /usr/bin/vim.gtk(vim_main2+0xc1f) [0x2832bf]
> /usr/bin/vim.gtk(main+0xae7) [0x6c9b7]
> /lib/x86_64-linux-gnu/libc-2.28.so(__libc_start_main+0xeb) [0x2409b]