From: Pavel Dovgalyuk <pavel.dovgalyuk@ispras.ru>
To: 64254@debbugs.gnu.org
Subject: bug#64254: Bug in initialization with exotic locale
Date: Fri, 23 Jun 2023 10:48:38 +0300 [thread overview]
Message-ID: <128c5c14-c023-e779-6062-fccd5947d48b@ispras.ru> (raw)
The following call sequence can cause an exception, when the locale is
not supported:
init_build_info -> scm_from_locale_string -> ... -> decoding_error
Then function scm_throw tries to access throw_var.
But this variable is not initialized yet, beacuse it is initialized in
scm_init_throw, which will be called later.
Therefore access to throw_var in init_build_info causes segmentation fault.
How to reproduce:
podman run --net=host -it fedora:36 \
/bin/sh -c 'dnf install -y gdb glibc-langpack-ru && export
LC_ALL=ru_RU.KOI8-R; exec gdb'
--
Pavel Dovgalyuk
reply other threads:[~2023-06-23 7:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=128c5c14-c023-e779-6062-fccd5947d48b@ispras.ru \
--to=pavel.dovgalyuk@ispras.ru \
--cc=64254@debbugs.gnu.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).