public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug nptl/24774] pthread_rwlock_timedwrlock stalls on ARM
       [not found] <bug-24774-131@http.sourceware.org/bugzilla/>
@ 2021-04-21 18:26 ` cvs-commit at gcc dot gnu.org
  2021-07-28 17:26 ` florian at openwrt dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-04-21 18:26 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Florian Weimer <fw@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=fada9018199c21c469ff0e731ef75c6020074ac9

commit fada9018199c21c469ff0e731ef75c6020074ac9
Author: Florian Weimer <fweimer@redhat.com>
Date:   Wed Apr 21 19:49:51 2021 +0200

    dlfcn: dlerror needs to call free from the base namespace [BZ #24773]

    Calling free directly may end up freeing a pointer allocated by the
    dynamic loader using malloc from libc.so in the base namespace using
    the allocator from libc.so in a secondary namespace, which results in
    crashes.

    This commit redirects the free call through GLRO and the dynamic
    linker, to reach the correct namespace.  It also cleans up the dlerror
    handling along the way, so that pthread_setspecific is no longer
    needed (which avoids triggering bug 24774).

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

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

* [Bug nptl/24774] pthread_rwlock_timedwrlock stalls on ARM
       [not found] <bug-24774-131@http.sourceware.org/bugzilla/>
  2021-04-21 18:26 ` [Bug nptl/24774] pthread_rwlock_timedwrlock stalls on ARM cvs-commit at gcc dot gnu.org
@ 2021-07-28 17:26 ` florian at openwrt dot org
  2021-09-08  6:14 ` fweimer at redhat dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: florian at openwrt dot org @ 2021-07-28 17:26 UTC (permalink / raw)
  To: glibc-bugs

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

Florian Fainelli <florian at openwrt dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |florian at openwrt dot org

--- Comment #2 from Florian Fainelli <florian at openwrt dot org> ---
I can confirm that the reproducer still fails here with glibc 2.27.

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

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

* [Bug nptl/24774] pthread_rwlock_timedwrlock stalls on ARM
       [not found] <bug-24774-131@http.sourceware.org/bugzilla/>
  2021-04-21 18:26 ` [Bug nptl/24774] pthread_rwlock_timedwrlock stalls on ARM cvs-commit at gcc dot gnu.org
  2021-07-28 17:26 ` florian at openwrt dot org
@ 2021-09-08  6:14 ` fweimer at redhat dot com
  2021-09-08  6:19 ` fweimer at redhat dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: fweimer at redhat dot com @ 2021-09-08  6:14 UTC (permalink / raw)
  To: glibc-bugs

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

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fweimer at redhat dot com

--- Comment #3 from Florian Weimer <fweimer at redhat dot com> ---
Yes, the reference to this bug in comment 1 is incorrect, it should have been
bug 24776.

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

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

* [Bug nptl/24774] pthread_rwlock_timedwrlock stalls on ARM
       [not found] <bug-24774-131@http.sourceware.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2021-09-08  6:14 ` fweimer at redhat dot com
@ 2021-09-08  6:19 ` fweimer at redhat dot com
  2021-09-08 13:15 ` adhemerval.zanella at linaro dot org
  2022-10-07 20:34 ` adhemerval.zanella at linaro dot org
  5 siblings, 0 replies; 6+ messages in thread
From: fweimer at redhat dot com @ 2021-09-08  6:19 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #4 from Florian Weimer <fweimer at redhat dot com> ---
This looks like a bug in our atomics, as reported here:

Glibc pthread_rwlock_timed*() Optimization Bug
https://sourceware.org/pipermail/libc-help/2021-September/006004.html

include/atomic.h has:

# ifndef atomic_load_relaxed
#  define atomic_load_relaxed(mem) \
   ({ __typeof ((__typeof (*(mem))) *(mem)) __atg100_val;                     \
   __asm ("" : "=r" (__atg100_val) : "0" (*(mem)));                           \
   __atg100_val; })
# endif

The expression *(mem) does not necessary read from the memory location.

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

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

* [Bug nptl/24774] pthread_rwlock_timedwrlock stalls on ARM
       [not found] <bug-24774-131@http.sourceware.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2021-09-08  6:19 ` fweimer at redhat dot com
@ 2021-09-08 13:15 ` adhemerval.zanella at linaro dot org
  2022-10-07 20:34 ` adhemerval.zanella at linaro dot org
  5 siblings, 0 replies; 6+ messages in thread
From: adhemerval.zanella at linaro dot org @ 2021-09-08 13:15 UTC (permalink / raw)
  To: glibc-bugs

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

Adhemerval Zanella <adhemerval.zanella at linaro dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |adhemerval.zanella at linaro dot o
                   |                            |rg

--- Comment #5 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
I think we can use USE_ATOMIC_COMPILER_BUILTINS for arm.

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

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

* [Bug nptl/24774] pthread_rwlock_timedwrlock stalls on ARM
       [not found] <bug-24774-131@http.sourceware.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2021-09-08 13:15 ` adhemerval.zanella at linaro dot org
@ 2022-10-07 20:34 ` adhemerval.zanella at linaro dot org
  5 siblings, 0 replies; 6+ messages in thread
From: adhemerval.zanella at linaro dot org @ 2022-10-07 20:34 UTC (permalink / raw)
  To: glibc-bugs

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

Adhemerval Zanella <adhemerval.zanella at linaro dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |2.37
           Assignee|unassigned at sourceware dot org   |adhemerval.zanella at linaro dot o
                   |                            |rg
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
Fixed on 2.37.

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

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

end of thread, other threads:[~2022-10-07 20:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-24774-131@http.sourceware.org/bugzilla/>
2021-04-21 18:26 ` [Bug nptl/24774] pthread_rwlock_timedwrlock stalls on ARM cvs-commit at gcc dot gnu.org
2021-07-28 17:26 ` florian at openwrt dot org
2021-09-08  6:14 ` fweimer at redhat dot com
2021-09-08  6:19 ` fweimer at redhat dot com
2021-09-08 13:15 ` adhemerval.zanella at linaro dot org
2022-10-07 20:34 ` adhemerval.zanella at linaro dot org

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).