I disabled the KEEPALIVE_SIZE_LIMIT, as you suggested, and that also
fixed the problem. The comment describe the code is really unnerving:
/* Limit for the Unicode object free list stay alive optimization.
...
Note: This is an experimental feature ! If you get core dumps when
using Unicode objects, turn this feature off.
*/
Why was this experimental feature released with Python if it causes core
dumps?
Jeremy