From unknown Fri Aug 15 15:27:04 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#64254 <64254@debbugs.gnu.org> To: bug#64254 <64254@debbugs.gnu.org> Subject: Status: Bug in initialization with exotic locale Reply-To: bug#64254 <64254@debbugs.gnu.org> Date: Fri, 15 Aug 2025 22:27:04 +0000 retitle 64254 Bug in initialization with exotic locale reassign 64254 guile submitter 64254 Pavel Dovgalyuk severity 64254 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 23 11:30:57 2023 Received: (at submit) by debbugs.gnu.org; 23 Jun 2023 15:30:57 +0000 Received: from localhost ([127.0.0.1]:39356 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCikP-0001nR-Um for submit@debbugs.gnu.org; Fri, 23 Jun 2023 11:30:57 -0400 Received: from lists.gnu.org ([209.51.188.17]:45886) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCbXm-00032o-1F for submit@debbugs.gnu.org; Fri, 23 Jun 2023 03:49:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qCbXc-0003oz-D0 for bug-guile@gnu.org; Fri, 23 Jun 2023 03:49:15 -0400 Received: from mail.ispras.ru ([83.149.199.84]) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qCbXU-0005Pp-L0 for bug-guile@gnu.org; Fri, 23 Jun 2023 03:49:08 -0400 Received: from [10.12.102.111] (unknown [85.142.117.226]) by mail.ispras.ru (Postfix) with ESMTPSA id B720E40737A8 for ; Fri, 23 Jun 2023 07:48:38 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 mail.ispras.ru B720E40737A8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ispras.ru; s=default; t=1687506518; bh=qAYUS7Ej9xzBB2gPNFGxDDGPzxzVTi2Q8IVsc31gKAY=; h=Date:From:Subject:To:From; b=i86q+ngwwrNGMyGrSQjeav1A6yYPfqabfCXDHwFDJ86YYeNVuERxrcRKX6QkTI3Ze fVd+miHkfqHkl1A2X4P2mIUuaivWPls7jmuHxizMdD+K1lCi4Gu4Gy4dii30k3o6km 7WgTSbYuPMt0vV0envzDl3jUrhaIun79zvBA2kuI= Message-ID: <128c5c14-c023-e779-6062-fccd5947d48b@ispras.ru> Date: Fri, 23 Jun 2023 10:48:38 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Content-Language: en-US From: Pavel Dovgalyuk Subject: Bug in initialization with exotic locale To: bug-guile@gnu.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=83.149.199.84; envelope-from=pavel.dovgalyuk@ispras.ru; helo=mail.ispras.ru X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 23 Jun 2023 11:30:48 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) 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