<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - LeakSanitizer throws fatal error around std::async"
href="https://bugs.llvm.org/show_bug.cgi?id=36026">36026</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>LeakSanitizer throws fatal error around std::async
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>6.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>gjasny@googlemail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>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)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>