forked from OSchip/llvm-project
[compiler-rt] [Sanitizers] Extend ThreadDescriptorSize() for glibc-2.32-2.fc33.x86_64+i686
before: $ echo 'int main(){}'|clang -g -fsanitize=leak -x c++ -;./a.out Tracer caught signal 11: addr=0x7f4f73da5f40 pc=0x4222c8 sp=0x7f4f72cffd40 ==1164171==LeakSanitizer has encountered a fatal error. ==1164171==HINT: For debugging, try setting environment variable LSAN_OPTIONS=verbosity=1:log_threads=1 ==1164171==HINT: LeakSanitizer does not work under ptrace (strace, gdb, etc) $ _ after: $ echo 'int main(){}'|clang -g -fsanitize=leak -x c++ -;./a.out) $ _ I haven't verified the size cannot be affected by Fedora patches of upstream glibc-2.32 - but I do not expect upstream glibc-2.32 would have the last sizes `(1216, 2304)` from 2013 around glibc-2.12. Differential Revision: https://reviews.llvm.org/D93386
This commit is contained in:
parent
59810c51e7
commit
6988f7a6f4
|
@ -294,8 +294,10 @@ uptr ThreadDescriptorSize() {
|
|||
val = FIRST_32_SECOND_64(1168, 2288);
|
||||
else if (minor <= 14)
|
||||
val = FIRST_32_SECOND_64(1168, 2304);
|
||||
else
|
||||
else if (minor < 32) // Unknown version
|
||||
val = FIRST_32_SECOND_64(1216, 2304);
|
||||
else // minor == 32
|
||||
val = FIRST_32_SECOND_64(1344, 2496);
|
||||
}
|
||||
#elif defined(__mips__)
|
||||
// TODO(sagarthakur): add more values as per different glibc versions.
|
||||
|
|
Loading…
Reference in New Issue