segfault on pylab.close()

Hi there. I have the following versions of numpy and matplotlib
installed on Debian sarge:

In [3]: matplotlib.__version__
Out[3]: '0.87.7'

In [4]: numpy.__version__
Out[4]: '1.0.1.dev3422'

Recent installations from SVN started giving me a segmentation fault
error when I use pylab.close(). For example, I want to press 'q' to
close the plot window interactively, but I get

$ ./
Segmentation fault

when I do that ( is attached below). When I click on the close
button on the window widget (i.e., Alt+F4), the segfault does NOT
happen. Is this a known bug? I'd appreciate your help!


#!/usr/bin/env python
import pylab as P

def on_press(event):
    key = event.key
    if key == 'q':

def main():
    print 'done.'

if __name__ == '__main__':