public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/27653] New: linux command will be deadlock when linked with libasan
@ 2021-03-26  6:45 hndxvon at 163 dot com
  2021-04-06 14:37 ` [Bug libc/27653] " schwab@linux-m68k.org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: hndxvon at 163 dot com @ 2021-03-26  6:45 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=27653

            Bug ID: 27653
           Summary: linux command will be deadlock when linked with
                    libasan
           Product: glibc
           Version: 2.30
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: hndxvon at 163 dot com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---
              Host: arm64 Kunpeng920
             Build: Gcc-9.2 Glibc-2.30

Hello,
centos seems to be incompatible with libasan(8.0.1).
Run a linux command(like ps,free) with LD_PRELOAD envrionable variable on
centos aarch64 kunpeng920 (gcc-9.2/glibc-2.30), 
It will locked.

Run my scripts:
export ASAN_OPTIONS=detect_leaks=0:halt_on_error=0
export LD_LIBRARY_PATH=/usr/lib64/clang/8.0.1/lib/
export LD_PRELOAD=/lib64/clang/8.0.1/lib/libclang_rt.asan-aarch64.so
ps

------------------------------------------------------------------------
(gdb) bt
#0  0x0000ffffb244ecd8 in pthread_rwlock_wrlock () from /lib64/libpthread.so.0
#1  0x0000ffffb279501c in textdomain () from /lib64/libc.so.6
#2  0x0000ffffb29f72a0 in __interceptor_textdomain (domainname=0x40cab8
"procps-ng") at
../lib/asan/../sanitizer_common/sanitizer_common_interceptors.inc:413
#3  0x0000000000402b10 in main ()
(gdb) info threads
  Id   Target Id                              Frame
* 1    Thread 0xffffb2126480 (LWP 25205) "ps" 0x0000ffffb279501c in textdomain
() from /lib64/libc.so.6
There is only one thread. how could it generate deadlock?

But unset LD_PRELOAD, ps runs ok.
Try update compiler-rt to 10.0.0, this deadlock still exists.

Thank you for helping.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2022-07-18  9:50 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-26  6:45 [Bug libc/27653] New: linux command will be deadlock when linked with libasan hndxvon at 163 dot com
2021-04-06 14:37 ` [Bug libc/27653] " schwab@linux-m68k.org
2021-08-12 20:17 ` mathieu.desnoyers at efficios dot com
2021-08-12 20:23 ` [Bug libc/27653] i18n causes deadlocks with malloc interposers due to missing reentrancy mathieu.desnoyers at efficios dot com
2021-08-12 20:29 ` mathieu.desnoyers at efficios dot com
2021-08-12 20:30 ` mathieu.desnoyers at efficios dot com
2021-08-12 20:37 ` francis.deslauriers at efficios dot com
2021-08-13 14:40 ` mathieu.desnoyers at efficios dot com
2021-08-30  3:29 ` hndxvon at 163 dot com
2021-08-30 14:09 ` mathieu.desnoyers at efficios dot com
2022-03-04 13:16 ` vincent-srcware at vinc17 dot net
2022-03-04 13:26 ` vincent-srcware at vinc17 dot net
2022-07-18  9:32 ` jeanmichael.celerier at gmail dot com
2022-07-18  9:50 ` jeanmichael.celerier at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).