NetBSD-Bugs archive

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

Re: bin/57630: vi coredump



RVP wrote:

> The following reply was made to PR bin/57630; it has been noted by GNATS.
>
> From: RVP <rvp%SDF.ORG@localhost>
> To: gnats-bugs%netbsd.org@localhost
> Cc: 
> Subject: Re: bin/57630: vi coredump
> Date: Wed, 27 Sep 2023 09:37:14 +0000 (UTC)
>
>  On Tue, 26 Sep 2023, Simon Burge wrote:
>  
>  >> How-To-Repeat:
>  > 	1. Start vi.
>  > 	2. Type a <esc>
>  > 	3. Type :%s/^  <enter>
>  > 	4. See vi segfault.
>  
>  Can't reproduce this with the system vi in 9.3 which is:
>  
>  Version (1.81.6-2013-11-20nb4) The CSRG, University of California, Berkeley.
>  
>  :%s/^<space><space><enter>
>  :%s/^<space><enter>
>  :%s/^<enter>
>  
>  all say: No match found--which is correct since it's an empty buffer. With
>  the appropriate file contents, it correctly deletes the pattern (the last one
>  being a no-op).

Did you do step 2?  It seems to be important to "modify" an empty line.
If I do any of the :%s/ commands without doing that, vi works like you
describe.

>  What does your ~/.exrc look like?

I can repro on nbftp with no ~/.exrc, which is:

NetBSD morden.netbsd.org 9.0_STABLE NetBSD 9.0_STABLE (NBFTP) #0: Sat Jul  4 06:52:32 UTC 2020  spz%franklin.NetBSD.org@localhost:/home/netbsd/9/amd64/obj/sys/arch/amd64/compile/NBFTP amd64

Cheers,
Simon.


Home | Main Index | Thread Index | Old Index