GNU bug report logs - #64254
Bug in initialization with exotic locale

Previous Next

Package: guile;

Reported by: Pavel Dovgalyuk <pavel.dovgalyuk <at> ispras.ru>

Date: Fri, 23 Jun 2023 15:31:02 UTC

Severity: normal

To reply to this bug, email your comments to 64254 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guile <at> gnu.org:
bug#64254; Package guile. (Fri, 23 Jun 2023 15:31:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Pavel Dovgalyuk <pavel.dovgalyuk <at> ispras.ru>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Fri, 23 Jun 2023 15:31:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Pavel Dovgalyuk <pavel.dovgalyuk <at> ispras.ru>
To: bug-guile <at> gnu.org
Subject: Bug in initialization with exotic locale
Date: Fri, 23 Jun 2023 10:48:38 +0300
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




This bug report was last modified 1 year and 154 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.