[llvm-bugs] [Bug 36026] New: LeakSanitizer throws fatal error around std::async

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Jan 20 08:47:57 PST 2018


https://bugs.llvm.org/show_bug.cgi?id=36026

            Bug ID: 36026
           Summary: LeakSanitizer throws fatal error around std::async
           Product: new-bugs
           Version: 6.0
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: gjasny at googlemail.com
                CC: llvm-bugs at lists.llvm.org

Hello,

I encounter the following leak sanitizer error on Ubuntu Bionic:

#include <future>
int main()
{
  auto write = std::async(std::launch::async, []() {});
  write.wait();
  return 0;
}

$ clang++-6.0 -fsanitize=address -o testcase testcase.cpp && ./testcase 
==8777==LeakSanitizer has encountered a fatal error.
==8777==HINT: For debugging, try setting environment variable
LSAN_OPTIONS=verbosity=1:log_threads=1
==8777==HINT: LeakSanitizer does not work under ptrace (strace, gdb, etc)

Environment:
* Ubuntu Bionic on amd64
* Clang 1:6.0~svn321357 from llvm-toolchain-snapshot (in universe-proposed
repo)
* Libstdc++ 7.2.0-19ubuntu1

Thanks,
Gregor


Full Debug output with LSAN_OPTIONS=verbosity=1:log_threads=1

==8784==AddressSanitizer: libc interceptors initialized
|| `[0x10007fff8000, 0x7fffffffffff]` || HighMem    ||
|| `[0x02008fff7000, 0x10007fff7fff]` || HighShadow ||
|| `[0x00008fff7000, 0x02008fff6fff]` || ShadowGap  ||
|| `[0x00007fff8000, 0x00008fff6fff]` || LowShadow  ||
|| `[0x000000000000, 0x00007fff7fff]` || LowMem     ||
MemToShadow(shadow): 0x00008fff7000 0x000091ff6dff 0x004091ff6e00
0x02008fff6fff
redzone=16
max_redzone=2048
quarantine_size_mb=256M
thread_local_quarantine_size_kb=1024K
malloc_context_size=30
SHADOW_SCALE: 3
SHADOW_GRANULARITY: 8
SHADOW_OFFSET: 0x7fff8000
==8784==Installed the sigaction for signal 11
==8784==Installed the sigaction for signal 7
==8784==Installed the sigaction for signal 8
==8784==T0: stack [0x7fff2012a000,0x7fff2092a000) size 0x800000;
local=0x7fff20928d88
==8784==AddressSanitizer Init done
==8784==T1: stack [0x7f0e63aff000,0x7f0e642fef40) size 0x7fff40;
local=0x7f0e642fee58
==8784==T1 TSDDtor
==8784==T1 exited
==8786==Could not attach to thread 8784 (errno 1).
==8786==Failed suspending threads.
==8784==LeakSanitizer has encountered a fatal error.
==8784==HINT: For debugging, try setting environment variable
LSAN_OPTIONS=verbosity=1:log_threads=1
==8784==HINT: LeakSanitizer does not work under ptrace (strace, gdb, etc)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180120/97d96da7/attachment.html>


More information about the llvm-bugs mailing list