Message22297
Logged In: YES
user_id=86307
Not sure about the embedded application, but I believe the
problem with the interactive interpreter is that you're
executing a code snippet ("p.start()") which calls the
function to enable the profiler, and then does a return from
PyEval_EvalFrame. This means the first event the profiler
sees will be the return, without having previosly seen a
call (since when PyEval_EvalFrame was entered, profiling was
not yet started). The LogReader class assumes that a return
event must have been preceeded by a corresponding call event
so that it can pop the previously pushed information. You
can get the same crash with a simple:
>>> p.start()
>>> p.stop()
and then try to load the stats.
By the way, with Python2.4b1, the example does not crash
when executed non-interactively from the command line (at
least on my Windows XP system).
|
|
Date |
User |
Action |
Args |
2007-08-23 14:25:54 | admin | link | issue1019882 messages |
2007-08-23 14:25:54 | admin | create | |
|