Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tell Valgrind about our ULT stacks so it doesn't get confused
This avoids reporting false-positive errors like the following: ==25331== Warning: client switching stacks? SP change: 0xfff000508 --> 0x5a30a18 ==25331== to suppress, use: --max-stackframe=68608129776 or greater ==25331== ==25331== Invalid read of size 8 ==25331== at 0x569E4AC: swapcontext (swapcontext.S:93) ==25331== by 0x56A07FF: ??? (in /lib/x86_64-linux-gnu/libc-2.19.so) ==25331== Address 0x5a30bd0 is 256 bytes inside a block of size 1,064 alloc'd ==25331== at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==25331== by 0x5E80E4: CthCreateInner (libthreads-default.c:1714) ==25331== by 0x5E828F: CthCreate (libthreads-default.c:1780) ==25331== by 0x5E8E7C: ConverseInit (machine.c:331) ==25331== by 0x51D9DD: main (main.C:18) The Valgrind documentation explicitly recommends copying the header included here into the client source tree, to avoid an external dependency. The license is specifically geared to support this. Change-Id: I26004af3edb7ac47931b80e78930c92857e31f67
- Loading branch information