<div dir="ltr"><div>I was experimenting to see if I could make an in-memory QTextStream and discovered instead an easy way to make Python 2.7.3 segfault:<br><br>[08:23] python<br>Python 2.7.3 (v2.7.3:70274d53c1dd, Apr  9 2012, 20:52:43) <br>

[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin<br>Type "help", "copyright", "credits" or "license" for more information.<br>>>> from PyQt4.QtCore import (Qt, QString, QTextStream)<br>

>>> ts = QTextStream(QString())<br>>>> ts << u'x'<br>Segmentation fault<br><br></div><div>The above is on OSX 10.6, but exactly the same result happens in Ubuntu 12.<br><br></div><div>It's probably mis-use of the QTextStream (*can* one build a text stream in memory, rewind it and read it back?) but cratering the interpreter seems a bit harsh...<br>

<br></div><div><br></div><div><br></div></div>