[Python-Dev] cPickle coredump with 2.3/cvs

Guido van Rossum guido@python.org
Wed, 11 Jun 2003 14:18:23 -0400


> On NetBSD-current I'm getting this with Python 2.3/cvs (both today's=20
> sources).
> 
> test_newobj_tuple (__main__.cPickleFastPicklerTests) ... ok
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0xbd9c6bd5 in batch_list (self=3D0x816c6c4, iter=3D0x821145c)
>     at /home/marc/work/cvs/python/dist/src/Modules/cPickle.c:1477
> 1477    }
> 
> (gdb) bt
> #0  0xbd9c6bd5 in batch_list (self=3D0x816c6c4, iter=3D0x821145c)
>     at /home/marc/work/cvs/python/dist/src/Modules/cPickle.c:1477
> #1  0xbd9c7184 in save_list (self=3D0x816c6c4, args=3D0x8211ce4)
>     at /home/marc/work/cvs/python/dist/src/Modules/cPickle.c:1602
> #2  0xbd9c95cd in save (self=3D0x816c6c4, args=3D0x8211ce4, pers_save=3D0)
>     at /home/marc/work/cvs/python/dist/src/Modules/cPickle.c:2368
> #3  0xbd9c6c6e in batch_list (self=3D0x816c6c4, iter=3D0x8211574)
>     at /home/marc/work/cvs/python/dist/src/Modules/cPickle.c:1506
> [... #239]
> 
> ( configure options: --enable-shared --with-pydebug )
> 
> I'm not exactly sure whats happening here, but if there's anything I could=20
> do to provide more detail then please let me know.

I can't reproduce this on Linux with the the CVS head.  But it looks
(from the cryptic "[... #239]" part) that you may have a stack
overflow.  Can you see if increasing the stack limit makes the problem
go away?  (I wish I could tell you how to increase the stack limit,
but that depends on your shell and OS; using Bash on Linux, I think
"ulimit -s 9999" set the stack to 9999*1024 bytes.

--Guido van Rossum (home page: http://www.python.org/~guido/)