|
From: Nicholas N. <nj...@ca...> - 2003-11-24 12:06:07
|
On Mon, 24 Nov 2003, Dennis Lubert wrote: > This sounds like programming at microsoft. I would not try to spent time on > fixing tools/programs so that they work with invalid behaviour, guessing > what the user wants. Programs should be able to handle 4 bytes alignment. > If not, then they are not very well implemented. Anyone who needs this > should use valgrinds suppression feature, I think this is what it was > designed for : Not showing errors to users, which are well known. Looks like this is a divisive issue. It's unfortunate that the errors reported by Memcheck when 8-byte alignment is assumed don't make it at all obvious what the problem is. Which is the lesser evil -- not reporting bugs that occur because of alignment assumptions, or people not using Valgrind at all because they can't understand why it's complaining? Maybe a FAQ entry about this is a good compromise. N |