whishlist SIGBUS when EIO
Posted: 2011-04-21T05:36:54-07:00
According to http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=619134
Bastien
Please register a SIGBUS handler during unmapJust noticed that display command from imagemagick sets a SIGBUS after
closing a file that it could not read:
stat("/cdrom/P5130043.JPG", {st_mode=S_IFREG|0555, st_size=8206, ...}) = 0
open("/cdrom/P5130043.JPG", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0555, st_size=8206, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)= 0x7feea7df3000
read(4, 0x7feea7df3000, 2048) = -1 EIO (Input/output error)
lseek(4, 0, SEEK_SET) = 0
mmap(NULL, 8206, PROT_READ, MAP_PRIVATE, 4, 0) = 0x7feea7df0000
close(4) = 0
munmap(0x7feea7df3000, 4096) = 0
--- SIGBUS (Bus error) @ 0 (0) ---
+++ killed by SIGBUS +++
Bastien