Author Arfrever
Recipients Arfrever, Ramchandra Apte, benjamin.peterson, flox, mark.dickinson, neologix, phillies, pitrou, python-dev, serhiy.storchaka, vstinner
Date 2013-02-25.19:57:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1361822234.58.0.13734453847.issue13555@psf.upfronthosting.co.za>
In-reply-to
Content
680959a3ae2e has caused that g-ir-scanner tool from gobject-introspection (which seems to create some pickles and next load them?) fails with MemoryError, e.g. during building of GTK+.
MemoryError occurs only for a subset of pickles.
I attach a small pickle, which allows to reproduce this problem.
Download this pickle and save it in /tmp.

Additional preparation:
$ cd /tmp
$ wget -q http://ftp.gnome.org/pub/gnome/sources/gobject-introspection/1.34/gobject-introspection-1.34.2.tar.xz
$ tar -xJf gobject-introspection-1.34.2.tar.xz
$ sed -e '/^with LibtoolImporter/,/^$/d' -i gobject-introspection-1.34.2/giscanner/xmlwriter.py

Behavior before 680959a3ae2e:
$ PYTHONPATH="gobject-introspection-1.34.2" python2.7 -c 'import cPickle; print(cPickle.load(open("pickle")))'
<giscanner.girparser.GIRParser object at 0x7f506299be90>

Behavior after 680959a3ae2e:
$ PYTHONPATH="gobject-introspection-1.34.2" python2.7 -c 'import cPickle; print(cPickle.load(open("pickle")))'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
MemoryError
History
Date User Action Args
2013-02-25 19:57:14Arfreversetrecipients: + Arfrever, mark.dickinson, pitrou, vstinner, benjamin.peterson, flox, neologix, python-dev, Ramchandra Apte, phillies, serhiy.storchaka
2013-02-25 19:57:14Arfreversetmessageid: <1361822234.58.0.13734453847.issue13555@psf.upfronthosting.co.za>
2013-02-25 19:57:14Arfreverlinkissue13555 messages
2013-02-25 19:57:14Arfrevercreate