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.

classification
Title: segfault on cPickle.loads("0.")
Type: crash Stage:
Components: Library (Lib) Versions: Python 3.1, Python 3.2, Python 2.7, Python 2.6
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: afoglia, eric.smith, flox
Priority: normal Keywords:

Created on 2009-12-18 19:53 by afoglia, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg96580 - (view) Author: Anthony Foglia (afoglia) Date: 2009-12-18 19:53
cPickle in Python 2.6.4 segfaults when trying to load the string "0.". 
pickle throws an error.  cPickle should at the least not segfault.

$ python
Python 2.6.4 (r264:75706, Nov  2 2009, 14:44:17) 
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pickle, cPickle
>>> pickle.loads("0.")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.6/pickle.py", line 1374, in loads
    return Unpickler(file).load()
  File "/usr/lib/python2.6/pickle.py", line 858, in load
    dispatch[key](self)
  File "/usr/lib/python2.6/pickle.py", line 1138, in load_pop
    del self.stack[-1]
IndexError: list assignment index out of range
>>> cPickle.loads("0.")
Segmentation fault (core dumped)
msg96581 - (view) Author: Florent Xicluna (flox) * (Python committer) Date: 2009-12-18 19:59
On 3.1, 3.2 same issue:

>>> pickle.loads(b'0')
Segmentation fault
msg96583 - (view) Author: Eric V. Smith (eric.smith) * (Python committer) Date: 2009-12-18 20:12
This is a duplicate of issue 7455.
History
Date User Action Args
2022-04-11 14:56:55adminsetgithub: 51791
2009-12-18 20:12:34eric.smithsetstatus: open -> closed

nosy: + eric.smith
messages: + msg96583

resolution: duplicate
2009-12-18 19:59:42floxsetnosy: + flox

messages: + msg96581
versions: + Python 3.1, Python 2.7, Python 3.2
2009-12-18 19:53:59afogliacreate