public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug malloc/27237] New: deadlock in malloc/tst-malloc-stats-cancellation
@ 2021-01-25 11:01 schwab@linux-m68k.org
  2021-01-25 17:20 ` [Bug malloc/27237] " nsz at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: schwab@linux-m68k.org @ 2021-01-25 11:01 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 27237
           Summary: deadlock in malloc/tst-malloc-stats-cancellation
           Product: glibc
           Version: 2.33
            Status: NEW
          Severity: critical
          Priority: P2
         Component: malloc
          Assignee: unassigned at sourceware dot org
          Reporter: schwab@linux-m68k.org
                CC: nszabolcs at gmail dot com
  Target Milestone: ---
              Host: i586-*-* powerpc-*-*

Broken by commit 2682695e5c.

(gdb) thr a a bt

Thread 2 (Thread 0xf7de2b00 (LWP 3534) "tst-malloc-stat"):
#0  futex_wait (private=0, expected=2, futex_word=0xf7f9b700 <main_arena>) at
../sysdeps/nptl/futex-internal.h:146
#1  __lll_lock_wait_private (futex=0xf7f9b700 <main_arena>) at
./lowlevellock.c:35
#2  0xf7e6b144 in realloc_check (oldmem=0x5655a330, bytes=1, caller=0xf7e5cc7d
<_IO_mem_finish+45>) at hooks.c:319
#3  0xf7e6c18e in __GI___libc_realloc (oldmem=0x5655a330, bytes=1) at
malloc.c:3327
#4  0xf7e5cc7d in _IO_mem_finish (fp=0x5655a1e0, dummy=0) at memstream.c:131
#5  0xf7e53921 in _IO_new_fclose (fp=0x5655a1e0) at libioP.h:947
#6  0x5655680a in buffer_threadproc (argp=0xffffd878) at
tst-malloc-stats-cancellation.c:89
#7  0xf7fabdfd in start_thread (arg=0xf7de2b00) at pthread_create.c:473
#8  0xf7ed9bd6 in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:108

Thread 1 (Thread 0xf7de3700 (LWP 3533) "tst-malloc-stat"):
#0  0xf7fb9aa7 in __futex_abstimed_wait_common64 (futex_word=0xf7de2b68,
expected=3534, clockid=<optimized out>, abstime=0x0, private=128, cancel=true)
at ../sysdeps/nptl/futex-internal.c:74
#1  0xf7fb9b8b in __GI___futex_abstimed_wait_cancelable64
(futex_word=<optimized out>, expected=<optimized out>, clockid=<optimized out>,
abstime=0x0, private=128) at ../sysdeps/nptl/futex-internal.c:123
#2  0xf7fad3f9 in __pthread_clockjoin_ex (threadid=<optimized out>,
thread_return=0xffffd874, clockid=0, abstime=0x0, block=true) at
pthread_join_common.c:102
#3  0xf7fad126 in __pthread_join (threadid=4158532352,
thread_return=0xffffd874) at pthread_join.c:24
#4  0x56556332 in main () at tst-malloc-stats-cancellation.c:182

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

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

end of thread, other threads:[~2021-01-28 14:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-25 11:01 [Bug malloc/27237] New: deadlock in malloc/tst-malloc-stats-cancellation schwab@linux-m68k.org
2021-01-25 17:20 ` [Bug malloc/27237] " nsz at gcc dot gnu.org
2021-01-25 18:26 ` schwab@linux-m68k.org
2021-01-26 18:18 ` nsz at gcc dot gnu.org
2021-01-26 18:29 ` schwab@linux-m68k.org
2021-01-26 18:56 ` schwab@linux-m68k.org
2021-01-27  9:21 ` schwab@linux-m68k.org
2021-01-27  9:41 ` nsz at gcc dot gnu.org
2021-01-27 11:30 ` cvs-commit at gcc dot gnu.org
2021-01-27 13:32 ` tuliom at ascii dot art.br
2021-01-28 14:07 ` 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).