C:\Code\python\PCbuild>python Python 2.3a0 (#29, Jun 30 2002, 12:35:41) [MSC 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import t4crash start document end document >>> import profile >>> t4crash.test() start document end document >>> profile.run('t4crash.test()') start document Traceback (most recent call last): File "", line 1, in ? File "C:\CODE\PYTHON\lib\profile.py", line 71, in run prof = prof.run(statement) File "C:\CODE\PYTHON\lib\profile.py", line 403, in run return self.runctx(cmd, dict, dict) File "C:\CODE\PYTHON\lib\profile.py", line 409, in runctx exec cmd in globals, locals File "", line 1, in ? File "t4crash.py", line 46, in test main(files) File "t4crash.py", line 39, in main SAXparser.parse(fileName) File "C:\CODE\PYTHON\lib\xml\sax\expatreader.py", line 107, in parse xmlreader.IncrementalParser.parse(self, source) File "C:\CODE\PYTHON\lib\xml\sax\xmlreader.py", line 123, in parse self.feed(buffer) File "C:\CODE\PYTHON\lib\xml\sax\expatreader.py", line 201, in feed self._parser.Parse(data, isFinal) File "C:\CODE\PYTHON\lib\xml\sax\expatreader.py", line 275, in start_element def start_element(self, name, attrs): File "C:\CODE\PYTHON\lib\profile.py", line 214, in trace_dispatch_i if self.dispatch[event](self, frame,t): File "C:\CODE\PYTHON\lib\profile.py", line 260, in trace_dispatch_call assert rframe.f_back is frame.f_back, ("Bad call", rfn, AssertionError: ('Bad call', ('C:\\CODE\\PYTHON\\lib\\xml\\sax\\expatreader.py', 190, 'feed'), , , , ) >>>