public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug time/29705] libc timer_create with option SIGEV_THREAD system call having memory leaks after timer_delete system call
Date: Fri, 21 Oct 2022 08:54:25 +0000	[thread overview]
Message-ID: <bug-29705-131-GTbkKSV2HC@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-29705-131@http.sourceware.org/bugzilla/>

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

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> ---
We don't really know if all but one thread have been stopped when
__libc_freeres is called by the leak detector. valgrind does this, but other
callers might not or might not have the capability to do that because Linux
does not provide it.

If those threads are still running, bad things will happen if we free the DTV
and other per-thread data.

The best thing we can probably do here is not to use malloc to allocate DTVs
and other low-level per-thread data structures, effectively hiding these
allocations from the leak detector.

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

  parent reply	other threads:[~2022-10-21  8:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-20  5:10 [Bug time/29705] New: " vikasyadav.net91 at gmail dot com
2022-10-20 16:45 ` [Bug time/29705] " adhemerval.zanella at linaro dot org
2022-10-21  4:20 ` vikasyadav.net91 at gmail dot com
2022-10-21  8:54 ` fweimer at redhat dot com [this message]
2022-11-12  9:25 ` pandom79 at gmail dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-29705-131-GTbkKSV2HC@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=glibc-bugs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).