Hello, friends!
Here is my sample code, which works perfectly on other systems, but not
the FreeBSD 4.10-STABLE I got today by cvsupping.
#!/usr/local/bin/python
from threading import Thread
class Reading(Thread):
def __init__(self):
Thread.__init__(self)
def run(self):
print "Start!"
z = 1
while 1:
print z
z += 1
fl = open('blah.txt')
fl.read()
fl.close()
for i in range(10):
print "i:", i
zu = open('bzzz.txt')
print "|->", zu.read()
bzz = Reading()
bzz.start()
#---
I have tested this on Python 2.3.3, 2.3.4 and 2.4a0 from CVS.
The interpretar falls in the infinite loop and stays in the poll-state.
You can see it in the top:
34446 goga 2 0 3328K 2576K poll 0:00 0.00% 0.00% python
I think it has some connection to the latest bug, found in the select()
function (http://www.securityfocus.com/bid/10455) and its fix on BSD.
Best regards,
_Iww_
|