[llvm-bugs] [Bug 50448] New: Applications built with address sanitizer crashing with glibc trunk/2.34

via llvm-bugs llvm-bugs at lists.llvm.org
Sat May 22 21:09:52 PDT 2021


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

            Bug ID: 50448
           Summary: Applications built with address sanitizer crashing
                    with glibc trunk/2.34
           Product: compiler-rt
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: asan
          Assignee: unassignedbugs at nondot.org
          Reporter: raj.khem at gmail.com
                CC: llvm-bugs at lists.llvm.org

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. 

https://sourceware.org/git/?p=glibc.git;a=commit;h=6c57d320484988e87e446e2e60ce42816bf51d53

-- 
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/20210523/c22ffe4f/attachment.html>


More information about the llvm-bugs mailing list