tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: vi(1) one line crasher
On Thu, Jun 22, 2023 at 08:52:12PM +0200, Martin Husemann wrote:
> env EXINIT='set nu showmatch ts=8 wl=72' vi /tmp/vi_crasher.txt
>
> does crash for me when typing $
#2 0x00000000009a54da in vs_paint (sp=sp@entry=0x6fb6f40de000,
flags=flags@entry=3) at /work/src/external/bsd/nvi/dist/vi/vs_refresh.c:726
726 abort(); /* XXX infinite recursion */
(gdb) list
721 abort();
722 }
723 #else
724 if (vip->sc_smap == NULL) {
725 if (F_ISSET(sp, SC_SCR_REFORMAT))
726 abort(); /* XXX infinite recursion */
727 F_SET(sp, SC_SCR_REFORMAT);
728 return (vs_paint(sp, flags));
729 }
730 #endif
#3 0x00000000009983de in vs_paint (sp=sp@entry=0x6fb6f40de000, flags=3)
at /work/src/external/bsd/nvi/dist/vi/vs_refresh.c:728
#4 0x00000000009990d5 in vs_refresh (sp=sp@entry=0x6fb6f40de000,
forcepaint=forcepaint@entry=0)
at /work/src/external/bsd/nvi/dist/vi/vs_refresh.c:99
#5 0x00000000009941e6 in vi (spp=spp@entry=0x7f7fffe31740)
at /work/src/external/bsd/nvi/dist/vi/vi.c:115
#6 0x000000000097bdf8 in editor (wp=wp@entry=0x6fb6f40f1000,
argc=<optimized out>, argc@entry=2, argv=<optimized out>,
argv@entry=0x7f7fffe319c8)
at /work/src/external/bsd/nvi/dist/common/main.c:436
#7 0x00000000009a5864 in main (argc=2, argv=0x7f7fffe319c8)
at /work/src/external/bsd/nvi/dist/cl/cl_main.c:134
Can you file a PR please?
Thanks!
Martin
Home |
Main Index |
Thread Index |
Old Index