How important is mcheck?

Jan Kratochvil jan.kratochvil@redhat.com
Tue Feb 11 18:27:00 GMT 2014


On Mon, 10 Feb 2014 16:50:20 +0100, Florian Weimer wrote:
> Could you move mcheck in-tree?

IMO mcheck has been obsoleted by asan (=gcc -fsanitize=address).

I just do not run GDB regularly under asan yet as in that case one can no
longer use 'ulimit -v 1000000' to catch GDB memory runaways.
	ERROR: AddressSanitizer failed to allocate 0x400000000 (17179869184) bytes at address 0x00067fff8000 (12)
	ReserveShadowMemoryRange failed while trying to map 0x400000000 bytes. Perhaps you're using ulimit -v

Unfortunately 'ulimit -m' (=RSS) has no effect so one has to give up on the
memory limit for GDB.  But it should be worth the asan improved checks.


Jan



More information about the Gdb mailing list