This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2008-09-24.01:22:06
SpamBayes Score 4.973293e-06
Marked as misclassified No
Message-id <1222219328.76.0.602702790572.issue3952@psf.upfronthosting.co.za>
In-reply-to
Content
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().
History
Date User Action Args
2008-09-24 01:22:08vstinnersetrecipients: + vstinner
2008-09-24 01:22:08vstinnersetmessageid: <1222219328.76.0.602702790572.issue3952@psf.upfronthosting.co.za>
2008-09-24 01:22:08vstinnerlinkissue3952 messages
2008-09-24 01:22:07vstinnercreate