tech-userlevel archive

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

Re: vi(1) one line crasher



Le Thu, Jun 22, 2023 at 06:40:08PM +0200, Martin Husemann a écrit :
> On Thu, Jun 22, 2023 at 06:22:42PM +0200, tlaronde%polynum.com@localhost wrote:
> > If one opens this one line script in vi, in an xterm with default size,
> > using the dollar '$' to go to the end of the line crashes vi(1).
> 
> I can't reproduce this. Which version of NetBSD? The in-tree vi?
> What is your $TERM? Which xterm?

$ uname -a

NetBSD cauchy.polynum.local 10.0_BETA NetBSD 10.0_BETA (cauchy) #0: Mon Feb 27 11:28:34 CET 2023  tlaronde@cauchy.polynum.local:/usr/obj/polynum.NODECONF-cauchy.polynum.local_netbsd-9.3-amd64_netbsd-amd64/netbsd/obj/sys/arch/amd64/compile/cauchy amd64

Stock userland; native X11; native xterm.

The xterm is launched through twm with this:

"Xterm"		f.exec "LC_CTYPE=fr_FR.ISO8859-15; exec xterm -bg black -fg white -geometry +100+1 -ls&"

                        !!! IMPORTANT !!!

Forgot one important thing: set ts to 8 in vi. With ts == 4 it doesn't
crash:

vi -> set ts=8
                           __________

and the backtrace:

(gdb) bt
#0  0x000078860599c47a in _lwp_kill () from /usr/lib/libc.so.12
#1  0x000078860599c97a in abort () from /usr/lib/libc.so.12
#2  0x000000012f65637a in vs_paint.cold ()
#3  0x000000012f64927e in vs_paint ()
#4  0x000000012f649f75 in vs_refresh ()
#5  0x000000012f645086 in vi ()
#6  0x000000012f62cc98 in editor ()
#7  0x000000012f656704 in main ()
(gdb) 
-- 
        Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
                     http://www.kergis.com/
                    http://kertex.kergis.com/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C


Home | Main Index | Thread Index | Old Index