[Bug sanitizer/91115] stack-buffer-overflow on memset local variable when creating thread on ARM Linux
fhsueh at roku dot com
gcc-bugzilla@gcc.gnu.org
Thu Aug 22 15:44:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91115
--- Comment #7 from Fred Hsueh <fhsueh at roku dot com> ---
This looks more like an odd interaction with ASAN and fork(). The process
reporting the stack-buffer-overflow is actually a fork() child of the main
process.
Something similar to https://github.com/google/sanitizers/issues/836
"LeakSanitizer and AddressSanitizer detect false leaks after fork() with
threads".
Still working on a working demo, but it might be something like this:
- Create thread #1
- Create thread #2
- thread #1 completes and cleans up.
- fork()
child:
- create thread #3 (uses same spot as #1 ok!)
- create thread #4 (uses same spot as #2 ... ASAN detects it writing memory in
another thread's memory).
More information about the Gcc-bugs
mailing list