Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
vim bug
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Tue Jul 09, 2002 2:21 am    Post subject: vim bug Reply with quote

Hello all,

I emerge'd vim and I noticed a weird issue. When I close rxvt or xterm while I am editing a file with, my cpu meter pegs and running top shows that vim is taking 99.9% of the cpu. I have to send a kill -9 to the process to kill it. Anyone have the same issue and found a solution?
Back to top
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Tue Jul 09, 2002 2:23 am    Post subject: Reply with quote

Moved to Bugs forum. Consider visiting bugs.gentoo.org so the developers will learn of this.
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sun Aug 18, 2002 3:23 pm    Post subject: Reply with quote

Bugs to Other Things Gentoo. Forums reorganized, 'Bugs' being removed. See Gentoo Bugs site to report bugs.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
kyptin
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jun 2002
Posts: 95
Location: UNC (Chapel Hill, NC, USA)

PostPosted: Mon Sep 16, 2002 7:53 pm    Post subject: similar problem with vim Reply with quote

Code:
# ps ax
  921 ?        R    6159:15 vim subbill2.php subamend2.php subres2.php


As you can tell, I'm having a similar problem with vim. I ssh into my server, edit some files with vim, then exit vim (or so I thought) and exit ssh. Yet when I log in again, it seems as though vim has been running full steam ahead the entire time! :o I am editing these files as root, and my $TERM is currently cygwin, although I'm pretty certain this was happening before using a cygwin terminal. (I know, I know, cygwin sucks, but save the flames for later. :roll: )

Did anybody ever submit anything to bugzilla? Is this a legitimate bug deserving bugzilla treatment?
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Mon Sep 16, 2002 7:58 pm    Post subject: Reply with quote

Which version of vim?
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
kyptin
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jun 2002
Posts: 95
Location: UNC (Chapel Hill, NC, USA)

PostPosted: Tue Sep 17, 2002 3:36 am    Post subject: vim version Reply with quote

I'm using vim version 6.1.74. Hope that helps!
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Tue Sep 17, 2002 1:45 pm    Post subject: Reply with quote

I've observed the same behaviour in other distros (like Conectiva), so it is a bug in vim, not in Gentoo.

Vim version 6.0
Back to top
View user's profile Send private message
kyptin
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jun 2002
Posts: 95
Location: UNC (Chapel Hill, NC, USA)

PostPosted: Wed Sep 18, 2002 4:04 am    Post subject: cause of vim bug determined Reply with quote

OK, I figured out the cause of my problem. Occasionally I will have vim open, editing a file, and something which requires my attention will come up. I'll get sidetracked, and come back a half hour later, having forgotten I was in the middle of something. Well, my connection had timed out, and the command window for ssh had closed itself. This left the vim process consuming processor cycles until I happened to notice it in the "ps ax" output. :roll:

Thanks for your help though. :wink:
Back to top
View user's profile Send private message
Mnemia
Guru
Guru


Joined: 17 May 2002
Posts: 476

PostPosted: Wed Sep 18, 2002 4:51 am    Post subject: Reply with quote

I'm pretty sure I've noticed this behavior from vim over ssh connections even when my connection didn't time out.
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Wed Sep 18, 2002 1:04 pm    Post subject: Re: cause of vim bug determined Reply with quote

Sorry, but I don't think the issue is resolved 8)

How can we avoid it?

kyptin wrote:
OK, I figured out the cause of my problem. Occasionally I will have vim open, editing a file, and something which requires my attention will come up. I'll get sidetracked, and come back a half hour later, having forgotten I was in the middle of something. Well, my connection had timed out, and the command window for ssh had closed itself. This left the vim process consuming processor cycles until I happened to notice it in the "ps ax" output. :roll:

Thanks for your help though. :wink:
Back to top
View user's profile Send private message
ElCondor
Guru
Guru


Joined: 10 Apr 2002
Posts: 520
Location: Vienna, Austria, Europe

PostPosted: Wed Sep 18, 2002 1:16 pm    Post subject: Reply with quote

I also came across this vim behavior, also with other distros. to be on the safe side: start vim in screen, so if your connection is lost, vim still has a terminal that it is connected to .. and happy ;)

* ElCondor pasa *
_________________
Here I am the victim of my own choices and I'm just starting!
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Wed Sep 18, 2002 2:02 pm    Post subject: Reply with quote

Could you be more explicit?

ElCondor wrote:
I also came across this vim behavior, also with other distros. to be on the safe side: start vim in screen, so if your connection is lost, vim still has a terminal that it is connected to .. and happy ;)

* ElCondor pasa *
Back to top
View user's profile Send private message
fyerk
Apprentice
Apprentice


Joined: 17 Sep 2002
Posts: 212
Location: Atlanta, GA

PostPosted: Wed Sep 18, 2002 3:30 pm    Post subject: Reply with quote

When editing a file with vim use:
Code:

$ screen vim file

This is so that if your session dies, vim won't lose it's controlling terminal.

screen(1)
_________________
-David
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Wed Sep 18, 2002 3:39 pm    Post subject: Reply with quote

OK, now I gotcha 8)

Thanks

edge wrote:
When editing a file with vim use:
Code:

$ screen vim file

This is so that if your session dies, vim won't lose it's controlling terminal.

screen(1)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum