From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 785193858400; Sun, 24 Oct 2021 11:55:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 785193858400 From: "hjl.tools at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/28491] ld.so doesn't work well with sanitizer run-time Date: Sun, 24 Oct 2021 11:55:09 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: dynamic-link X-Bugzilla-Version: 2.34 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: see_also Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Oct 2021 11:55:09 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28491 H.J. Lu changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D102911 --- Comment #2 from H.J. Lu --- The backtrace: The backtrace: (gdb) bt #0 __sanitizer::CheckFailed ( file=3D0xf7b17af4 "/export/gnu/import/git/sources/gcc/libsanitizer/asan/asan_malloc_linux.cpp= ", line=3D46,=20 cond=3D0xf7b17ac0 "((allocated_for_dlsym)) < ((kDlsymAllocPoolSize))",= =20 v1=3D1057, v2=3D1024) at /export/gnu/import/git/sources/gcc/libsanitizer/sanitizer_common/sanitizer_= termination.cpp:68 #1 0xf7ababf3 in AllocateFromLocalPool (size_in_bytes=3D) at /export/gnu/import/git/sources/gcc/libsanitizer/asan/asan_malloc_linux.cpp:= 46 #2 __interceptor_malloc (size=3D) at /export/gnu/import/git/sources/gcc/libsanitizer/asan/asan_malloc_linux.cpp:= 127 #3 0xf7fe2475 in malloc (size=3D155) at ../include/rtld-malloc.h:56 #4 __GI__dl_exception_create_format (exception=3Dexception@entry=3D0xffffc= cc4,=20 objname=3D0xf7fc0550 "/export/users/hjl/build/gnu/tools-build/gcc-debug/build-x86_64-linux/x86_6= 4-pc-linux-gnu/32/libsanitizer/asan/.libs/libasan.so.8",=20 fmt=3Dfmt@entry=3D0xf7ff2f11 "undefined symbol: %s%s%s") at dl-exceptio= n.c:157 #5 0xf7fd508b in _dl_lookup_symbol_x (undef_name=3D0xf7b14d64 "crypt_r",=20 undef_map=3D0xf7fc05e0, ref=3D, symbol_scope=3D,=20 version=3D0x0, type_class=3D0, flags=3D0, skip_map=3D0xf7fc05e0) at dl-= lookup.c:877 #6 0xf7960553 in do_sym (handle=3D, name=3D0xf7b14d64 "cryp= t_r",=20 who=3Dwho@entry=3D --Type for more, q to quit, c to continue without paging-- igned long*, unsigned long, unsigned long)+38>, vers=3D0x0, flags=3D2) = at dl-sym.c:146 #7 0xf79609f4 in _dl_sym (handle=3D, name=3D= ,=20 who=3D0xf7af8b86 <__interception::InterceptFunction(char const*, unsign= ed long*, unsigned long, unsigned long)+38>) at dl-sym.c:195 #8 0xf786c617 in dlsym_doit (a=3D0xffffcf60) at dlsym.c:40 #9 0xf7960c28 in __GI__dl_catch_exception (exception=3D,=20 exception@entry=3D0xffffcea4, operate=3D,=20 operate@entry=3D0xf786c5f0 , args=3D,=20 args@entry=3D0xffffcf60) at /export/ssd/git/gitlab/x86-glibc/elf/dl-error-skeleton.c:208 #10 0xf7960ce3 in __GI__dl_catch_error (objname=3D0xffffcf28,=20 errstring=3D0xffffcf2c, mallocedp=3D0xffffcf27,=20 operate=3D0xf786c5f0 , args=3D0xffffcf60) at /export/ssd/git/gitlab/x86-glibc/elf/dl-error-skeleton.c:227 #11 0xf7fea102 in _rtld_catch_error (objname=3D0xffffcf28, errstring=3D0xff= ffcf2c,=20 mallocedp=3D0xffffcf27, operate=3D0xf786c5f0 , args=3D0xfff= fcf60) at /export/ssd/git/gitlab/x86-glibc/elf/dl-error-skeleton.c:260 #12 0xf786bf1a in _dlerror_run (operate=3D,=20 operate@entry=3D0xf786c5f0 , args=3D,=20 args@entry=3D0xffffcf60) at dlerror.c:138 #13 0xf786c696 in dlsym_implementation (dl_caller=3D,=20 name=3D0xf7b14d64 "crypt_r", handle=3D0xffffffff) at dlsym.c:54 #14 ___dlsym (handle=3D0xffffffff, name=3D0xf7b14d64 "crypt_r") at dlsym.c:= 68 #15 0xf7af8b86 in __interception::GetFuncAddr (wrapper_addr=3D4154798864,=20 name=3D0xf7b14d64 "crypt_r") at /export/gnu/import/git/sources/gcc/libsanitizer/interception/interception_l= inux.cpp:42 #16 __interception::InterceptFunction (name=3D0xf7b14d64 "crypt_r",=20 ptr_to_real=3D0xf7b908d8 <__interception::real_crypt_r>, func=3D4154798= 864,=20 wrapper=3D4154798864) at /export/gnu/import/git/sources/gcc/libsanitizer/interception/interception_l= inux.cpp:61 #17 0xf7ab6c1b in InitializeCommonInterceptors () at /export/gnu/import/git/sources/gcc/libsanitizer/sanitizer_common/sanitizer_= common_interceptors.inc:10463 #18 __asan::InitializeAsanInterceptors () at /export/gnu/import/git/sources/gcc/libsanitizer/asan/asan_interceptors.cp--= Type for more, q to quit, c to continue without paging-- p:619 #19 0xf7ac988e in __asan::AsanInitInternal () at /export/gnu/import/git/sources/gcc/libsanitizer/asan/asan_rtl.cpp:444 #20 0xf7fdb29d in _dl_init (main_map=3D, argc=3D1, argv=3D0x= ffffd0e4,=20 env=3D0xffffd0ec) at dl-init.c:102 #21 0xf7fc90fa in _dl_start_user () from /export/build/gnu/tools-build/glibc-32bit-cet-gitlab/build-i686-linux/elf/l= d-linux.so.2 (gdb)=20 Is there a memory after glibc 2.33 which doesn't have this problem? --=20 You are receiving this mail because: You are on the CC list for the bug.=