Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue7358] cPickle crash on failed assertion

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Nov 19, 2009, 7:50 AM

Post #1 of 4 (303 views)
Permalink
[issue7358] cPickle crash on failed assertion

New submission from Ryan Shaw <ryan.shaw [at] stanfordalumni>:

def save_object(r, key, m):
r.set(key, cPickle.dumps(m))

[4] >>> save_object(r, 'cluster', cluster)
python: ./Modules/cStringIO.c:419: O_cwrite: Assertion `oself->pos + l <
2147483647' failed.
Aborted

Linux 2.6.30.9-96.fc11.x86_64 #1 SMP x86_64 GNU/Linux

----------
components: Library (Lib)
messages: 95482
nosy: rybesh
severity: normal
status: open
title: cPickle crash on failed assertion
type: crash
versions: Python 2.6

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7358>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 19, 2009, 8:05 AM

Post #2 of 4 (284 views)
Permalink
[issue7358] cPickle crash on failed assertion [In reply to]

Eric Smith <eric [at] trueblade> added the comment:

What are the types and values of cluster and r?

Can you reproduce this in a self-contained script?

----------
nosy: +eric.smith

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7358>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 19, 2009, 9:43 AM

Post #3 of 4 (277 views)
Permalink
[issue7358] cPickle crash on failed assertion [In reply to]

Ryan Shaw <ryan.shaw [at] stanfordalumni> added the comment:

r is the Redis python client. cluster is a large cluster tree along the
lines of the cluster_node class found here:
http://jesolem.blogspot.com/2009/04/hierarchical-clustering-in-python.html

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7358>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 19, 2009, 9:47 AM

Post #4 of 4 (282 views)
Permalink
[issue7358] cPickle crash on failed assertion [In reply to]

Ryan Shaw <ryan.shaw [at] stanfordalumni> added the comment:

I can't reproduce this in a self-contained script. Pickling a smaller
cluster object and storing it in Redis works fine. The cluster object that
caused the crash was large, a binary tree with >5000 leaves holding the
results of a nine-hour calculation.

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7358>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.