vile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vile] vile eating CPU and then dumping core after pkill


From: Gary Jennejohn
Subject: [vile] vile eating CPU and then dumping core after pkill
Date: Wed, 24 Nov 2010 17:09:28 +0100

OK, this may be unreasonable, but here's my story.

BTW FreeBSD 9-current.

I was editing a file with vile, which per wc -l has 132,096 lines.

I moved part way through the file and entered dG; vile would have had
to delete about 110,000 lines.

It may be unreasonable and I don't know the inner workings of vile, but it
seems like dG should just do something like "hey, I know where I am and
I know where the end of the buffer is, so I'll just pretend that the
buffer ends here now" rather than noodling around for a long time with
no apparent effect, other than printing ...working in the status line.

After waiting about 10 minutes, during which vile was eating 100% of one
of my two CPU cores, I got tired of it and pkill'd it.

vile dumped a core (may be a bug in the threading code).

Here's the output from gdb FWIW:
gdb /usr/local/bin/vile vile.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...(no debugging
symbols found)...
Core was generated by `vile'.
Program terminated with signal 6, Aborted.
Reading symbols from /usr/local/lib/libiconv.so.3...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /lib/libncurses.so.8...(no debugging symbols found)...done.
Loaded symbols for /lib/libncurses.so.8
Reading symbols from
/usr/local/lib/perl5/5.8.9/mach/CORE/libperl.so...(no debugging symbols 
found)...done.
Loaded symbols for /usr/local/lib/perl5/5.8.9/mach/CORE/libperl.so
Reading symbols from /lib/libm.so.5...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /lib/libcrypt.so.5...(no debugging symbols found)...done.
Loaded symbols for /lib/libcrypt.so.5
Reading symbols from /lib/libutil.so.9...(no debugging symbols found)...done.
Loaded symbols for /lib/libutil.so.9
Reading symbols from /lib/libthr.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/libthr.so.3
Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x00000008011264dc in thr_kill () from /lib/libc.so.7
[New Thread 801407300 (LWP 100159)]
(gdb) bt
#0  0x00000008011264dc in thr_kill () from /lib/libc.so.7
#1  0x00000008011bd8eb in abort () from /lib/libc.so.7
#2  0x000000000044153b in imdying ()
#3  0x0000000800fc2f66 in _thr_send_sig () from /lib/libthr.so.3
#4  0x0000000800fc304c in _thr_send_sig () from /lib/libthr.so.3
#5  <signal handler called>
#6  0x0000000000475662 in detach_attrib ()
#7  0x0000000000475869 in free_attrib ()
#8  0x000000000044e998 in lremove ()
#9  0x000000000044eee8 in ldel_bytes ()
#10 0x0000000000466ff1 in killregionmaybesave ()
#11 0x000000000045ae5b in vile_op ()
#12 0x000000000045b723 in operdel ()
#13 0x000000000043c327 in execute ()
#14 0x0000000000420372 in main ()
(gdb)

-- 
Gary Jennejohn



reply via email to

[Prev in Thread] Current Thread [Next in Thread]