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: Python hangs up on I/O operations on the latest FreeBSD 4.10
Type: Stage:
Components: None Versions: Python 2.3
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, iww, jepler, nnorwitz
Priority: normal Keywords:

Created on 2004-06-09 10:03 by iww, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (5)
msg21091 - (view) Author: _Iww_ (iww) Date: 2004-06-09 10:03
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_
msg21092 - (view) Author: Jeff Epler (jepler) Date: 2004-06-21 21:52
Logged In: YES 
user_id=2772

Indentation was lost on your example.  Please attach it it
to the bug report as a file instead.

In my opinion, the problem you're having is unlikely to be
related to the securityfocus URL you mentioned.
msg21093 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2005-10-03 04:05
Logged In: YES 
user_id=33168

iww, is this a FreeBSD bug?  Does the problem still exist?
msg21094 - (view) Author: _Iww_ (iww) Date: 2005-10-03 12:56
Logged In: YES 
user_id=1059927

nnorwitz, thank you for your attantion!
It was really a short problem in FreeBSD sources. The last version of python did
not worked well.
The bug was solved shortly after my post.

Best regards,
_Iww_
msg21095 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2005-10-03 13:36
Logged In: YES 
user_id=1188172

Closing then.
History
Date User Action Args
2022-04-11 14:56:04adminsetgithub: 40365
2004-06-09 10:03:18iwwcreate