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 serhiy.storchaka
Recipients bob.ippolito, ezio.melotti, pitrou, rhettinger, serhiy.storchaka
Date 2012-10-14.09:56:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1350208578.8.0.440875886805.issue16228@psf.upfronthosting.co.za>
In-reply-to
Content
JSON encoding crash if the source list resized in process of encoding. This can be happen unintentionally in multithreaded code.

Simple crash code:

import json
a = [object()] * 10
def crasher(obj):
    del a[-1]

json.dumps(a, default=crasher)
History
Date User Action Args
2012-10-14 09:56:18serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, bob.ippolito, pitrou, ezio.melotti
2012-10-14 09:56:18serhiy.storchakasetmessageid: <1350208578.8.0.440875886805.issue16228@psf.upfronthosting.co.za>
2012-10-14 09:56:18serhiy.storchakalinkissue16228 messages
2012-10-14 09:56:18serhiy.storchakacreate