<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 - Applications built with address sanitizer crashing with glibc trunk/2.34"
href="https://bugs.llvm.org/show_bug.cgi?id=50448">50448</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Applications built with address sanitizer crashing with glibc trunk/2.34
</td>
</tr>
<tr>
<th>Product</th>
<td>compiler-rt
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>asan
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>raj.khem@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Simple hello world is also crashing when asan is enabled, like below
#0 0x0000000000000000 in ?? ()
#1 0x00007ffff7db8488 in __dlsym (handle=<optimized out>, name=<optimized
out>) at dlsym.c:68
#2 0x00005555555fb9f4 in GetFuncAddr () at
/mnt/b/yoe/master/build/tmp/work-shared/llvm-project-source-13.0.0-r0/git/compiler-rt/lib/interception/interception_linux.cpp:42
#3 InterceptFunction () at
/mnt/b/yoe/master/build/tmp/work-shared/llvm-project-source-13.0.0-r0/git/compiler-rt/lib/interception/interception_linux.cpp:61
#4 0x00005555555dcdae in InitializeCommonInterceptors ()
at
/mnt/b/yoe/master/build/tmp/work-shared/llvm-project-source-13.0.0-r0/git/compiler-rt/lib/asan/../sanitizer_common/sanitizer_common_interceptors.inc:10060
#5 0x00005555555dc5fa in InitializeAsanInterceptors () at
/mnt/b/yoe/master/build/tmp/work-shared/llvm-project-source-13.0.0-r0/git/compiler-rt/lib/asan/asan_interceptors.cpp:619
#6 0x00005555555f73b8 in AsanInitInternal () at
/mnt/b/yoe/master/build/tmp/work-shared/llvm-project-source-13.0.0-r0/git/compiler-rt/lib/asan/asan_rtl.cpp:442
#7 0x00007ffff7fdb2ce in _dl_init (main_map=0x7ffff7ffe1e0, argc=1,
argv=0x7fffffffece8, env=0x7fffffffecf8) at dl-init.c:102
#8 0x00007ffff7fcc0ca in _dl_start_user () at rtld.c:43
#9 0x0000000000000001 in ?? ()
#10 0x00007fffffffeed6 in ?? ()
#11 0x0000000000000000 in ?? ()
This is happening after glibc Added _SC_MINSIGSTKSZ/_SC_SIGSTKSZ sysconfs
see below glibc commit which is causing this.
<a href="https://sourceware.org/git/?p=glibc.git;a=commit;h=6c57d320484988e87e446e2e60ce42816bf51d53">https://sourceware.org/git/?p=glibc.git;a=commit;h=6c57d320484988e87e446e2e60ce42816bf51d53</a></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>