classification
Title: cPickle segfault with nested dicts in threaded env
Type: crash Stage:
Components: Extension Modules Versions: Python 2.5
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: amaury.forgeotdarc, kdombrowski, loewis
Priority: normal Keywords: patch

Created on 2010-09-09 15:03 by kdombrowski, last changed 2011-06-01 06:20 by terry.reedy. This issue is now closed.

Files
File name Uploaded Description Edit
test_cpickle.nested_dicts_in_threaded_env.diff kdombrowski, 2010-09-09 15:03
Messages (2)
msg115950 - (view) Author: Kenneth Dombrowski (kdombrowski) Date: 2010-09-09 15:03
FreeBSD 8.0-RELEASE-p2
Python 2.5.5
amd64

attached diff provides a test for cpickle which reproduces a segfault when pickling >15 nested dicts in a threaded environment 

cpickle.patch attached to http://bugs.python.org/issue3640 applys cleanly to the 2.5 source and fixes this issue

i understand 2.5 is no longer maintained except for security fixes, i leave it up to the maintainers to decide if this segfault warrants a security patch 

thank you
msg115956 - (view) Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) Date: 2010-09-09 18:15
Python has several known crashers, they are not considered as security holes.
It seems that FreeBSD has a small stack size for threads (64k); did you try to increase it with thread.stack_size(10**6)?
History
Date User Action Args
2011-06-01 06:20:34terry.reedysetstatus: open -> closed
resolution: out of date
2010-09-09 18:15:13amaury.forgeotdarcsetnosy: + loewis, amaury.forgeotdarc
messages: + msg115956
2010-09-09 15:03:20kdombrowskicreate