Subject: bin/12318: vi segfault
To: None <gnats-bugs@gnats.netbsd.org>
From: None <nocturne@arepa.com>
List: netbsd-bugs
Date: 03/02/2001 18:02:42
>Number:         12318
>Category:       bin
>Synopsis:       vi segfaults on "C-c ."
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 02 15:04:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Eric Mumpower
>Release:        stock NetBSD 1.4.1 or 1.5 <NetBSD-current source date>
>Organization:
Arepa
	
>Environment:
System: NetBSD dr-teeth 1.4.1 NetBSD 1.4.1 (TEETH) #1: Fri Sep 15 18:27:55 EDT 2000 nocturne@dr-teeth:/usr/src/sys/arch/i386/compile/TEETH i386


>Description:

vi apparently leaves its its last-command-history in an inconsistent
state upon recieving C-c in input mode. It either segfaults or inserts
semirandom binary data when attempting to repeat the last command
after typing C-c while in input mode.

	
>How-To-Repeat:

Start 'vi' with no arguments. Type "i" or "a", (then optionally a few
ASCII characters,) then C-c, then ".", and watch vi either spew
semirandom (stack?) data into your buffer, or simply segfault,
depending on whether you entered any text between i/a and C-c.

>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: