unofficial mirror of 
 help / color / mirror / Atom feed
* bug#64254: Bug in initialization with exotic locale
@ 2023-06-23  7:48 Pavel Dovgalyuk
  0 siblings, 0 replies; only message in thread
From: Pavel Dovgalyuk @ 2023-06-23  7:48 UTC (permalink / raw)
  To: 64254

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-06-23  7:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-23  7:48 bug#64254: Bug in initialization with exotic locale Pavel Dovgalyuk

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