From owner-freebsd-bugs Sun Sep 22 15:50:10 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA27863 for bugs-outgoing; Sun, 22 Sep 1996 15:50:10 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA27827; Sun, 22 Sep 1996 15:50:03 -0700 (PDT) Resent-Date: Sun, 22 Sep 1996 15:50:03 -0700 (PDT) Resent-Message-Id: <199609222250.PAA27827@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, mi@aldan.zipnet.net Received: from aldan.zipnet.net (aldan.zipnet.net [199.232.255.49]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id PAA27587 for ; Sun, 22 Sep 1996 15:49:23 -0700 (PDT) Received: (from mi@localhost) by aldan.zipnet.net (8.6.12/8.6.12) id SAA19197; Sun, 22 Sep 1996 18:46:43 -0400 Message-Id: <199609222246.SAA19197@aldan.zipnet.net> Date: Sun, 22 Sep 1996 18:46:43 -0400 From: Mikhail Teterin Reply-To: mi@aldan.zipnet.net To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/1666: consistent crash in /usr/bin/vi Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 1666 >Category: bin >Synopsis: crash in vi, while reading multiple files >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Sep 22 15:50:01 PDT 1996 >Last-Modified: >Originator: Mikhail Teterin >Organization: >Release: FreeBSD 2.1-STABLE i386 >Environment: Same bug exists in the August snapshot -- did not seem to change since Version 1.34, Wed Aug 17 14:37:48 1994 The CSRG, University of California, Berkeley. >Description: The files I attempted to edit are as follows: -rw------- 1 mi bin 262 Aug 14 22:10 /tmp/est.15658 -rw------- 1 root bin 100 Aug 9 22:12 /tmp/est.3042 being a humble `mi' without root's privileges, I get a "permission denied" error from vi, when I attempt to use the `:n' command. My next stupid `:n' will crash vi with a seg-fault (I guess, list of files to be edited has ended with NULL, but the second file is still marked as not-looked-at or smth, because an attempt to read it failed). >How-To-Repeat: cd /tmp touch q w chmod 600 q w su chown root w exit vi q w :n :n >Fix: Avoid looking at files unreadable to you :) >Audit-Trail: >Unformatted: