Bug 748280

Summary: gvim does not detach from console
Product: [Fedora] Fedora Reporter: Iskren Ivov Chernev <iskren.chernev>
Component: vimAssignee: Karsten Hopp <karsten>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 15CC: karsten, mcsontos, nlminhtl, rbgarga
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Iskren Ivov Chernev 2011-10-23 21:28:02 UTC
Description of problem:
Running gvim on xterm/gnome-terminal does not detach the gvim process from the terminal. On quit, the vim process crashes

Version-Release number of selected component (if applicable):
vim-enhanced.x86_64 2:7.3.315-1.fc15

Steps to Reproduce:
1. Open xterm or gnome-terminal
2. run gvim
3. quit gvim with :q
  
Actual results:
2. gvim does not detach from the console
3. The console displays: 
------------
E852: The child program failed to start the GUI<no \n here, but displayed after a second>
gvim: xcb_io.c:221: poll_for_event: Assertion `(((long) (event_sequence) - (long) (dpy->request)) <= 0)' failed
<some blank lines>
Vim: Caught deadly signal ABRT

Vim: Finished.
Aborted
------------

Note: I couldn't copy the text from the console, because it seemed broken after this (clicking with the mouse results in printing some characters on the current line), so I rewrote it by hand.



Expected results:
2. gvim should detach from the terminal process (so the terminal is free for new commands)
3. it should not crash and break the console mouse support

Additional info:
I'm running xmonad, started from .xinitrc
I talked to vim guys and they said the bug was fixed in vim 7.3.344

Comment 1 Iskren Ivov Chernev 2011-10-23 23:03:54 UTC
Debian bug for the same thing: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=644639

Comment 2 Minh Ngo 2011-11-08 12:18:12 UTC
 I can confirm this bug

https://gist.github.com/a14ca3ba70091522a443

Comment 3 Marian Csontos 2011-12-15 11:58:45 UTC
As a quick workaround I created xgvim in my ~/bin:

> #!/bin/bash
> exec nohup gvim "$@" > nohup.gvim.out &

Warning: This won't work with -f option, but that's not broken so no need for the workaround when using -f - that's why not using gvim as a name.

Comment 4 Renato Botelho 2012-05-10 15:51:38 UTC
FYI, After update to 7.3.515 from updates-testing the problem is gone.

Comment 5 Fedora End Of Life 2012-08-06 20:04:27 UTC
This message is a notice that Fedora 15 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 15. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained.  At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this 
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen 
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we were unable to fix it before Fedora 15 reached end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" (top right of this page) and open it against that 
version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 6 Fedora End Of Life 2012-08-06 20:04:27 UTC
This message is a notice that Fedora 15 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 15. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained.  At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this 
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen 
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we were unable to fix it before Fedora 15 reached end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" (top right of this page) and open it against that 
version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping