Open whatdoineed2do opened 7 years ago
https://www.imagemagick.org/discourse-server/viewtopic.php?f=2&t=32745&p=149961
IM generates an file with a hole (pwrite
1byte to the size required) and then mmap
it - but when the tmp disk partition is full there is no check check against this an when accessing the mmap'd area it goes bang with bus error.
Deep within IM caching - no exceptions are thrown by the IM i/f that can be caught.
MAGICK_TMPDIR=/some/small/loop/device imgcat ...
if you forget, this will use
/tmp
- even with 1Gb of free space it can quickly fill up with magick tmp files and then coredump. trap this inImageThumbGen
(one of the_genthumbnail
methods) and handle properly