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

noreply@sourceforge.net noreply@sourceforge.net
Tue, 04 Dec 2001 13:41:52 -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: Closed
>Resolution: Fixed
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.


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

>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2001-12-04 13:41

Message:
Logged In: YES 
user_id=3066

Fixed to do proper propogation of exceptions in
Modules/_hotshot.c revision 1.11.

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

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