This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: IDLE Freezes on Ubuntu Warty
Type: Stage:
Components: IDLE Versions: Python 2.3
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: kbk Nosy List: josiahcarlson, kbk, mgpoolman, suzuki_hisao
Priority: normal Keywords:

Created on 2005-01-25 10:44 by mgpoolman, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
gdb-idle-stacktrace mgpoolman, 2005-04-19 11:05 stack trace
Messages (18)
msg24031 - (view) Author: Mark Poolman (mgpoolman) Date: 2005-01-25 10:44
Python 2.3.4 (#2, Aug 13 2004, 00:36:58) 
[GCC 3.3.4 (Debian 1:3.3.4-5ubuntu2)] on linux2
IDLE 1.0.3      

When running idle over an ssh link, idle freezes after
an unpredictable length of time. Over 3 days the
longest it has stayed allive for is ~4hrs, but a few
minutes before freezing is the norm. Niether idle nor
python are consuming cpu time once frozen. I can find
no definete recipie to bring about the freeze, although
(I think) there has always been at least one editor
window open when it happens. There is no output on
stderr, or other diagnostics that I can see.

ssh server(ubuntu warty):
OpenSSH_3.8.1p1 Debian 1:3.8.1p1-11ubuntu3.1, OpenSSL
0.9.7d 17 Mar 2004

ssh client (RH9):
OpenSSH_3.5p1, SSH protocols 1.5/2.0, OpenSSL 0x0090701f

/best/*

Mark
msg24032 - (view) Author: Mark Poolman (mgpoolman) Date: 2005-01-26 09:15
Logged In: YES 
user_id=993923

PS - You don't need an editor window open to get the freeze.

M
msg24033 - (view) Author: Josiah Carlson (josiahcarlson) * (Python triager) Date: 2005-01-29 20:23
Logged In: YES 
user_id=341410

It has been a while since I ran Idle, but I am curious as to
what you mean by "run over ssh".

Do you mean that you have an SSH tunnel to a remote machine,
which forwards X-Windows sessions, and when running Idle
over this, it locks up?
msg24034 - (view) Author: Mark Poolman (mgpoolman) Date: 2005-01-30 17:02
Logged In: YES 
user_id=993923

Yes, exactly. I'm pretty sure it's not an X/ssh/network problem,
everything else works fine (including Idle 0.8).


Mark
msg24035 - (view) Author: Josiah Carlson (josiahcarlson) * (Python triager) Date: 2005-01-30 19:43
Logged In: YES 
user_id=341410

Do you have physical access to the ubuntu warty machine, and
if so, does Idle run very well locally on that machine, not
X forwarded?
msg24036 - (view) Author: Mark Poolman (mgpoolman) Date: 2005-01-30 20:06
Logged In: YES 
user_id=993923


Yes, I've used Idle on that (although only ~ 1 hour) and not
seen the problem there.  
msg24037 - (view) Author: Kurt B. Kaiser (kbk) * (Python committer) Date: 2005-01-31 06:26
Logged In: YES 
user_id=149084

Please try two things:
1. Run IDLE directly on the ubuntu machine long
enough to assure there is no problem standalone.

2. Run IDLE on the xclient but start it with the
-n switch so it runs without the subprocess.

When IDLE freezes, walk over to the server and
kill the subprocess.  It should restart itself.  Is the
system still frozen?  And by frozen, I assume you
mean all screen and keyboard events are
unresponsive.
msg24038 - (view) Author: Mark Poolman (mgpoolman) Date: 2005-01-31 16:27
Logged In: YES 
user_id=993923

1 - OK It's not ssh it's ubuntu.

2 - I'll try this with ububtu.
...And by frozen, I assume ...
All Idle windows are unresponsive to screen and kbd events.
msg24039 - (view) Author: Mark Poolman (mgpoolman) Date: 2005-01-31 16:46
Logged In: YES 
user_id=993923

2 - erm forgive me for sounding stupid, but with the -n
switch I see no sub-process, only the Idle process. It still
freezes though, and killing it just kills it.
msg24040 - (view) Author: Kurt B. Kaiser (kbk) * (Python committer) Date: 2005-02-01 02:01
Logged In: YES 
user_id=149084

Right, there is no subprocess when you use the -n
switch.  It causes IDLE to run like IDLE 0.8.

So if I follow correctly,  IDLE -n freezes on your
ubuntu box without using ssh tunneling.  I suspect
a hardware problem with that system.

Are you starting IDLE on the ubuntu box from the
command line?  If so, are there any messages left
in the command line window?

How much memory does the ubuntu box have? 
Does 'top' show increasing memory requirement for
the IDLE -n process?
msg24041 - (view) Author: Mark Poolman (mgpoolman) Date: 2005-02-01 13:35
Logged In: YES 
user_id=993923

> So if I follow correctly,  IDLE -n freezes on your
ubuntu box without using ssh tunneling.

That is correct. The problem appears exactly the same when
run over ssh though, which, I guess rules out any
gnome/metacity/X wierdness.


> I suspect a hardware problem
I' sceptical about that. There's nothing in dmesg or
/var/log to suggest it, and absolutely no other problems
with the machine in question.

 >Are you starting IDLE from the command line
Yes, but no messages are shown.

> How much memory
255MB, IDLE uses about 3.5% of that on startup, grew to 5.7%
at time of last  crash
msg24042 - (view) Author: Kurt B. Kaiser (kbk) * (Python committer) Date: 2005-02-02 17:21
Logged In: YES 
user_id=149084

To keep things simple, please start IDLE with the
-n switch directly on your ubuntu box for the
purposes of future investigations on this issue.

Can you attach to the frozen IDLE with gdb and then
use 'bt' to get a backtrace and find out what was
going at at the time of the freeze?  If so, is it
repeatable?  

It's occasionally reported that IDLE freezes.  I've never
seen it myself, running IDLE for many days on OpenBSD,
Debian, RH, and Arch Linux, WindowsXP, W2K, and W98,
over a period of many years, so it's hard for me to figure
out what's going on.  But it's peculiar that 0.8 doesn't have
the problem.  Are you sure?

What else is the ubuntu box doing?  Is the load heavy?
msg24043 - (view) Author: Mark Poolman (mgpoolman) Date: 2005-02-02 18:50
Logged In: YES 
user_id=993923

>0.8 doesn't have the problem.  Are you sure?

Can't be certain as haven't used it for extended periods on
that box, but I'll look into it. I've used IDLE daily for
about 4 years on various RH and Suse, and never seen a
problem until now. 

> What else is the ubuntu box doing?  Is the load heavy?
Almost nothing, it's there to evaluate ubuntu as a desktop
w/s, and my main activity is getting some in-house python
s/w ported to it.

gdb results to follow. 
msg24044 - (view) Author: Kurt B. Kaiser (kbk) * (Python committer) Date: 2005-03-04 00:28
Logged In: YES 
user_id=149084

There have been recent reports on idle-dev regarding
IDLE freezing on Debian Sid.  Since ubuntu is Debian
derived, I assume there may be a relationship.
msg24045 - (view) Author: SUZUKI Hisao (suzuki_hisao) Date: 2005-03-19 01:46
Logged In: YES 
user_id=495142

If
1) your IDLE freezes when you close an editor window 
2) which has been editing a file whose path contains a
   non-ASCII character, and
3) you do not call sys.setdefaultencoding() in your
   sitecustomize.py (so letting the default encoding to be
   'ascii'),
then 
my patch 'idlelib.diff' in Python Patch ID 1162825 
"EditorWindow's title with non-ASCII chars." 
may help you.

More precisely, IDLE freezes when updating the
"Recent Files" menu if an implicit conversion of
unicode to ASCII string occurs.  The patch fixes it.

Sorry if it is irrelevant.
msg24046 - (view) Author: Kurt B. Kaiser (kbk) * (Python committer) Date: 2005-04-14 21:01
Logged In: YES 
user_id=149084

Any update on this?
msg24047 - (view) Author: Mark Poolman (mgpoolman) Date: 2005-04-19 11:05
Logged In: YES 
user_id=993923

Haven't been using the machine in question for a while. I
can't reproduce the problem on an opteron with equivalent
set up. (The machine I reported this on is a celeron). I've
atatched a stack trace from gdb, having interrupted with
ctrl-C at the gdb prompt   when idle froze. 
msg24048 - (view) Author: Kurt B. Kaiser (kbk) * (Python committer) Date: 2005-08-23 18:02
Logged In: YES 
user_id=149084

Closing as unreproducible.  Exhibits only on Ubuntu Warty on a
specific machine.
History
Date User Action Args
2022-04-11 14:56:09adminsetgithub: 41484
2005-01-25 10:44:13mgpoolmancreate