Bug#888685: vim-gtk: segfaults after :set mouse=a in text console used for startx

Francesco Poli (wintermute) invernomuto at paranoici.org
Sun Jan 28 17:28:16 UTC 2018


Package: vim-gtk
Version: 2:8.0.1401-2
Severity: important

Hello!

I noticed a bug in vim, while attempting to use it in a text console.

The steps to reproduce the bug are:

  0) use a (Debian testing) system (with systemd as PID 1 and)
     without graphical display managers (no lightdm or other similar
     DMs)

  1) log in on a text console (tty1)

  2) open a graphical X session

     $ startx

  3) use the X session and then exit

  4) when you come back to the text console (tty1), do *not* log out

  5) on the text console (tty1), start vim

     $ vim -u NONE

  6) the text editor starts normally, with its splash screen

  7) issue the command

     :set mouse=a

  8) watch Vim dying with a segfault:

     Vim: Caught deadly signal SEGV
     Vim: Finished.
     Segmentation fault


Please note that this does not happen on a new text console, after
logging in, without starting an X session.
But, if I do so, mouse support does not seem to work properly, even
though gpm is running and lets me use the mouse to perform copy/paste
operations in the text console...

Is there anything I am misunderstanding?

Please investigate/fix this bug and/or forward my bug report upstream,
as appropriate.

Thanks for your time!
Bye.


-- Package-specific info:

--- real paths of main Vim binaries ---
/usr/bin/vi is /usr/bin/vim.gtk
/usr/bin/vim is /usr/bin/vim.gtk
/usr/bin/gvim is /usr/bin/vim.gtk

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (800, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.14.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages vim-gtk depends on:
ii  libacl1             2.2.52-3+b1
ii  libc6               2.26-4
ii  libgdk-pixbuf2.0-0  2.36.11-1
ii  libglib2.0-0        2.54.3-2
ii  libgpm2             1.20.7-4
ii  libgtk2.0-0         2.24.32-1
ii  libice6             2:1.0.9-2
ii  liblua5.2-0         5.2.4-1.1+b2
ii  libpango-1.0-0      1.40.14-1
ii  libperl5.26         5.26.1-4
ii  libpython3.6        3.6.4-3
ii  libruby2.3          2.3.6-2
ii  libselinux1         2.7-2
ii  libsm6              2:1.2.2-1+b3
ii  libtcl8.6           8.6.8+dfsg-2
ii  libtinfo5           6.0+20171125-1
ii  libx11-6            2:1.6.4-3
ii  libxt6              1:1.1.5-1
ii  vim-common          2:8.0.1401-2
ii  vim-gui-common      2:8.0.1401-2
ii  vim-runtime         2:8.0.1401-2

vim-gtk recommends no packages.

Versions of packages vim-gtk suggests:
pn  cscope            <none>
ii  fonts-dejavu      2.37-1
pn  gnome-icon-theme  <none>
pn  vim-doc           <none>

-- no debconf information



More information about the pkg-vim-maintainers mailing list