"""CPython issue #18909. Segfault on win-amd64 due to corrupt pointer to Tkapp_Interp. Using 64 bit CPython 2.6.6, 2.7.5, 3.2.5 or 3.3.2, numpy 1.7.1, and matplotlib 1.3.0 on Windows 8 64 bit, this script segfaults most of the times. """ # allocate ~4GB fragmented data import numpy a = [numpy.zeros(2**i, 'uint8') for i in range(1, 31)] b = [numpy.zeros(131072, 'float64') for i in range(2048)] import matplotlib matplotlib.use('TkAgg') from matplotlib import pyplot pyplot.plot() pyplot.show()