Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
thanks for your patch but I will need to revert, it will not handle sigbus due to misalignement and will decrease the possibility to debug on sparc such fault
You should do something like this:
create a list of mmap file with mapped size
- catch sigbus, if addr (see sig_info_t) of fault is on the file mapped error on stderr and exit
- else restore sigbus to default handler and raise sigbus
Before that the list must be manipulated atomically (rcu in userspace is in this case a good option)