<br><br><div class="gmail_quote">On Tue, Jun 10, 2008 at 9:04 AM, Jean-Paul Calderone <<a href="mailto:exarkun@divmod.com">exarkun@divmod.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
exarkun@charm:~$ ~/Projects/python/trunk/python<br>
Python 2.6a3+ (trunk:63964, Jun 5 2008, 16:49:12)<br>
[GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2<br>
Type "help", "copyright", "credits" or "license" for more information.<br>
>>> import struct<br>
>>> struct.pack("357913941c", 'a')<br>
Segmentation fault<br>
exarkun@charm:~$<br>
<br>
The unit test for exactly this case was deleted in r60892. I would like to<br>
suggest that just deleting unit tests isn't a very good idea.<br>
<br>
Jean-Paul<br></blockquote></div><br>That deletion was apparently in the release25-maint branch where this bug has been fixed in order to avoid the test case from allocating 8gb on 64bit hosts where it wouldn't need to raise a MemoryError (<a href="http://bugs.python.org/issue2137">http://bugs.python.org/issue2137</a>). However it looks like it was never committed to trunk. (release25-maint r60793 has a lot of fixes)<br>
<br>I'm looking into merging the fixes into trunk.<br><br>Martin, since you committed 60793 in Feb, any others like this that need merging from release25-maint to trunk off the top of your head?<br><br>-Greg<br><br>