Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17878 - nano consumes 100% CPU when it has lost its terminal
Summary: nano consumes 100% CPU when it has lost its terminal
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: SpanKY
URL: http://mail.gnu.org/archive/html/nano...
Whiteboard:
Keywords:
: 44296 58601 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-03-20 10:13 UTC by Sankara Krishnamoorthy
Modified: 2004-12-06 19:41 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sankara Krishnamoorthy 2003-03-20 10:13:20 UTC
if you run nano su'ed to root inside a gnome-terminal and close the terminal
without exiting nano, nano is not terminated and consumes 100% CPU. 

On the other hand if you are a normal user, and open nano and close the
terminal, nano exits properly.


Reproducible: Always
Steps to Reproduce:
1.open gnome-terminal in GNOME2
2.su to root
3.open nano some file or any file existing or new
4. close gnome-terminal without exiting nano.

Actual Results:  
nano consumes 100% CPU

Expected Results:  
nano must be terminated and gnome-terminal must be exited
Comment 1 Sankara Krishnamoorthy 2003-03-20 10:29:41 UTC
GNU nano version 1.0.9
gnome-terminal version 2.2.1
Comment 2 Seth Chandler 2003-03-20 21:31:16 UTC
this is a nano problem....it happens a lot of times....why i switched to vim ;-) 
 
 
if this is reproduceable, then we know what the problem is, but it happens in eterms 
and aterms.... 
 
 
seth 
Comment 3 Sankara Krishnamoorthy 2003-03-21 00:03:05 UTC
what do you suppose the problem is?
Comment 4 Spider (RETIRED) gentoo-dev 2003-03-21 05:09:15 UTC
coul'd not reproduce this in  x86 (nano 1.2.0 , gnome-terminal 2.2.1) 
Comment 5 Mike Gardiner (RETIRED) gentoo-dev 2003-06-09 21:06:19 UTC
cant reproduce on x86 with nano-1.0.9-r1, or nano-1.2.1 and gnome-terminal-2.2.2, using gnome-system-monitor and top to check cpu usage. 
Comment 6 Bas van Dijk 2003-06-23 15:55:05 UTC
I have the same problem. But I have it both in Konsole and in the regular Linux Console. When I 
cleanly exit nano (with Ctrl-X) nano sometimes keeps running and consumes 100% CPU. 
Comment 7 SpanKY gentoo-dev 2003-08-18 17:17:21 UTC
does this still occur with the 1.2.x series ?

i had this happen a lot with me, but as the version increased, the # of times this happened dramatically decreased ...
Comment 8 SpanKY gentoo-dev 2003-09-23 19:41:37 UTC
looks like the bug has been tracked down ... when it's been fixed upstream i'll
fix it in Gentoo ;)
Comment 9 SpanKY gentoo-dev 2003-10-02 00:00:58 UTC
added a patch to fix this to 1.2.1 and 1.2.2
Comment 10 Prakash Punnoor 2004-02-19 13:26:18 UTC
I use nano 1.3.1 and it doesn't appear to be fixed, ie if I open shell, su, nano and just close the shell, nano goes to 100% CPU time.
Comment 11 SpanKY gentoo-dev 2004-02-19 15:29:05 UTC
send a message to the nano-devel because all my test cases have been fixed
Comment 12 SpanKY gentoo-dev 2004-03-13 14:22:43 UTC
*** Bug 44296 has been marked as a duplicate of this bug. ***
Comment 13 Caleb Tennis (RETIRED) gentoo-dev 2004-12-06 19:41:09 UTC
*** Bug 58601 has been marked as a duplicate of this bug. ***