On Fri, Feb 07, 2014 at 01:53:14PM +0000, Gareth Rees wrote: > Emacs for Mac OS X crashes when trying to display a badly formatted > PPM image. The crash is 100% reproducible. I'm able to reproduce this crash on the current head. My impression after running it through the debugger is that -release is called on the pixmap after it has been deallocated earlier in pbm_load. I have created a patch that sets the pixmap to NO_PIXMAP in case pbm_load runs into an error. In the long run the better solution is probably to look over the NS memory management so that it works properly. Marcus