resize during insert problem

Bug #1074454 reported by gregrwm
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
vim (Ubuntu)
New
Undecided
Unassigned

Bug Description

resize during insert seems to cause a problem. to reproduce:
create a textfile using the 21 lines of text given below.
resize an xterm to 12 lines long and 80 characters wide.
in the xterm, edit (vim) the textfile.
position the cursor on the / preceeding "vmlinuz", and type
cB/
(with no escape)(still in insert mode)
resize the xterm to 10 lines by 80 characters.
vim is now in an inconsistent state.
the first visible cue is the disappearance of text following the cursor.
further inserted characters appear to insert on the wrong line.
as things progress it may recover itself, or it may ABRT or SEGV.
for example if at this point i
hit <Esc> (end the insert)
type :ls (with no CR)
enlarge the window
i get
Vim: Caught deadly signal SEGV
Vim: preserving files...
and it hangs thus.

<textfile>
   uuid 960c92bd-69d3-415f-93b6-2242187e3557
   uuid 960c92bd-69d3-415f-93b6-2242187e3557
   uuid 960c92bd-69d3-415f-93b6-2242187e3557
   uuid 960c92bd-69d3-415f-93b6-2242187e3557
   uuid 960c92bd-69d3-415f-93b6-2242187e3557
   uuid 960c92bd-69d3-415f-93b6-2242187e3557
   uuid 960c92bd-69d3-415f-93b6-2242187e3557
   uuid 960c92bd-69d3-415f-93b6-2242187e3557
   uuid 960c92bd-69d3-415f-93b6-2242187e3557
   uuid 960c92bd-69d3-415f-93b6-2242187e3557
   kernel /SL-60-i386/Install-DVD/vmlinuz quiet panic=30 method=hd:sda7: ksdevice=
   initrd /SL-60-i386/Install-DVD/initrd.img
   initrd /SL-60-i386/Install-DVD/initrd.img
   initrd /SL-60-i386/Install-DVD/initrd.img
   initrd /SL-60-i386/Install-DVD/initrd.img
   initrd /SL-60-i386/Install-DVD/initrd.img
   initrd /SL-60-i386/Install-DVD/initrd.img
   initrd /SL-60-i386/Install-DVD/initrd.img
   initrd /SL-60-i386/Install-DVD/initrd.img
   initrd /SL-60-i386/Install-DVD/initrd.img
   initrd /SL-60-i386/Install-DVD/initrd.img
</textfile>

$ lsb_release -rd
Description: Ubuntu 12.10
Release: 12.10
$ apt-cache policy vim
vim:
  Installed: 2:7.3.547-4ubuntu1
  Candidate: 2:7.3.547-4ubuntu1
  Version table:
 *** 2:7.3.547-4ubuntu1 0
        500 http://ie.archive.ubuntu.com/ubuntu/ quantal/main i386 Packages
        100 /var/lib/dpkg/status

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.