public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "carlos at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug dynamic-link/30062] glibc 2.36 loader has intermittent segfault error on ppc64le
Date: Tue, 31 Jan 2023 20:56:51 +0000	[thread overview]
Message-ID: <bug-30062-131-cZYpv0Oug4@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-30062-131@http.sourceware.org/bugzilla/>

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

Carlos O'Donell <carlos at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |carlos at redhat dot com
   Last reconfirmed|                            |2023-01-31
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Carlos O'Donell <carlos at redhat dot com> ---
(In reply to ChenQi from comment #0)
> Except the above backtrace and LD_DEBUG testing, I also done one more
> testing which made me believe the bug is in glibc.

The best bet here is to run with Valgrind and try to find the invalid access.

> I changed glibc to musl to check if it's the glibc's issue or not. The
> result is: when using musl, there's no segfault error. That's why I filed a
> bug here.

Musl's dynamic loader will never unload a library and calling dlclose() does
not run the library desctructors.

glibc's dynamic loader will attempt to run destructors and unload and unmap the
library.

Under glibc you must accurately account for any dangling references to the
library after unloading.

Thus I expect that this is related to the libraries you are loading and
unloading and their specific constructors and destructors.

I haven't seen any reports of this in Fedora 37, which uses glibc 2.36, and has
syslog-ng compiled for ppc64le.

> related syslog-ng issue link:
> https://github.com/syslog-ng/syslog-ng/issues/4285

Thanks. I commented there.

Next steps:
- Please run your reproducer under valgrind and see if you can determine the
root cause of the crash.

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

  reply	other threads:[~2023-01-31 20:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-31  5:45 [Bug dynamic-link/30062] New: " Qi.Chen at windriver dot com
2023-01-31 20:56 ` carlos at redhat dot com [this message]
2023-02-01  4:46 ` [Bug dynamic-link/30062] " Qi.Chen at windriver dot com
2023-02-01  4:48 ` Qi.Chen at windriver dot com
2023-02-01 16:40 ` carlos at redhat dot com
2023-02-01 20:57 ` rwmacleod at gmail dot com
2023-02-02  2:18 ` Qi.Chen at windriver dot com
2023-02-02  2:49 ` carlos at redhat dot com
2023-02-02  2:53 ` Qi.Chen at windriver dot com
2023-02-02  4:11 ` carlos at redhat dot com
2024-01-28  8:32 ` sam at gentoo dot org

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-30062-131-cZYpv0Oug4@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).