From gnb@itga.com.au  Wed Jun 28 19:00:14 2000
Return-Path: <gnb@itga.com.au>
Received: from ns.itga.com.au (ns.itga.com.au [202.53.40.210])
	by hub.freebsd.org (Postfix) with ESMTP id 5837C37BAD0
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 28 Jun 2000 19:00:10 -0700 (PDT)
	(envelope-from gnb@itga.com.au)
Received: from lightning.itga.com.au (lightning.itga.com.au [192.168.71.20])
	by ns.itga.com.au (8.9.3/8.9.3) with ESMTP id MAA10482
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 29 Jun 2000 12:00:07 +1000 (EST)
	(envelope-from gnb@itga.com.au)
Received: from hellcat.itga.com.au (hellcat.itga.com.au [192.168.71.163])
	by lightning.itga.com.au (8.9.3/8.9.3) with ESMTP id MAA04771;
	Thu, 29 Jun 2000 12:00:07 +1000 (EST)
Received: (from gnb@localhost)
	by hellcat.itga.com.au (8.9.3/8.9.3) id MAA03614;
	Thu, 29 Jun 2000 12:00:06 +1000 (EST)
	(envelope-from gnb@itga.com.au)
Message-Id: <200006290200.MAA03614@hellcat.itga.com.au>
Date: Thu, 29 Jun 2000 12:00:06 +1000 (EST)
From: Gregory Bond <gnb@itga.com.au>
To: FreeBSD-gnats-submit@freebsd.org
Subject: python/Tkinter busy-waits
X-Send-Pr-Version: 3.2

>Number:         19571
>Category:       ports
>Synopsis:       python/TKinter busy waits
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    tg
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 28 19:10:01 PDT 2000
>Closed-Date:    Wed Jul 11 04:27:44 PDT 2001
>Last-Modified:  Wed Jul 11 04:29:36 PDT 2001
>Originator:     Gregory Bond
>Release:        FreeBSD 4.0-STABLE i386
>Organization:
ITG Australia Limited
>Environment:

4.0-Stable
Python 1.5.2 installed from the package on the 4.0 CD
Tkinter

>Description:

The attached simple Tkinter script busy-waits on FreeBSD.  The same script does
not busy-wait on Solaris. 

>How-To-Repeat:

Save the following script to a file t.py
Run "python t.py & p=$! && sleep 2 && truss -p $p"
watch the output!

[Why not just "truss python t.py"??  Dunno, truss gets confused somehow.]

Run the same script on Solaris and see it do the right thing with poll()

The equivalent wish script (which is /dev/null) also doesn't
busy-wait on either Solaris or FreeBSD.

-----
#! /usr/local/bin/python

from Tkinter import *

root = Tk()

root.mainloop()
-----
>Fix:

Not known.

>Release-Note:
>Audit-Trail:

From: Thomas Gellekum <tg@melaten.rwth-aachen.de>
To: Gregory Bond <gnb@itga.com.au>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG, deischen@FreeBSD.ORG
Subject: Re: ports/19571: python/Tkinter busy-waits
Date: 03 Jul 2000 14:37:12 +0200

 Gregory Bond <gnb@itga.com.au> writes:
 
 > The attached simple Tkinter script busy-waits on FreeBSD.
 
 It's a thread problem. The non-threaded version works as expected (`cd
 /usr/ports/lang/python; make WITHOUT_THREADS=yes; make install').
 
 I haven't (yet) looked into the python and tcl/tk sources to see
 what's causing it.
 
 tg
 
Responsible-Changed-From-To: freebsd-ports->tg 
Responsible-Changed-By: steve 
Responsible-Changed-When: Thu Jul 6 18:45:24 PDT 2000 
Responsible-Changed-Why:  
Over to port's maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=19571 

From: Gregory Bond <gnb@itga.com.au>
To: freebsd-gnats-submit@FreeBSD.org
Cc: Thomas Gellekum <tg@melaten.rwth-aachen.de>
Subject: Re: ports/19571: python/TKinter busy waits
Date: Wed, 11 Jul 2001 11:05:21 +1000

 This appears fixed in the Python 2.1 version of the package installed on a
 4.3-Stable system.
 
 The PR can be closed.
 
 
State-Changed-From-To: open->closed 
State-Changed-By: tg 
State-Changed-When: Wed Jul 11 04:27:44 PDT 2001 
State-Changed-Why:  
Fixed with Python-2.1 on 4.3-stable. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=19571 
>Unformatted:
