Message73689
Example to reproduce the bug (using Python trunk): --- from gc import collect import _lsprof def callMethod(obj): obj.clear() collect() obj = _lsprof.Profiler() obj.enable() callMethod(obj) obj.enable() del obj collect() --- The problem is that the profiler is still running when exiting callMethod() and so it tries to use callMethod context which was free'd just before by profiler_clear(). | |
| Date | User | Action | Args | | 2008-09-24 01:22:08 | vstinner | set | recipients: + vstinner | | 2008-09-24 01:22:08 | vstinner | set | messageid: <1222219328.76.0.602702790572.issue3952@psf.upfronthosting.co.za> | | 2008-09-24 01:22:08 | vstinner | link | issue3952 messages | | 2008-09-24 01:22:07 | vstinner | create | | |