[Python-bugs-list] [ python-Bugs-483925 ] _hotshot sloppy in error handling

noreply@sourceforge.net noreply@sourceforge.net
Tue, 20 Nov 2001 12:56:51 -0800


Bugs item #483925, was opened at 2001-11-20 12:56
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=483925&group_id=5470

Category: Python Interpreter Core
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jack Jansen (jackjansen)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: _hotshot sloppy in error handling

Initial Comment:
_hotshot is rather sloppy in its handling of I/O errors. The low-level flush_data() routine checks for 
I/O errors, sets an exception and returns -1, but all the routines calling flush_data() then happily 
ignore this. The effect of this is that the exception is orphaned and will come back to haunt you at a 
completely unexpected moment.


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=483925&group_id=5470