Info segfaults on open when LANG=pt-BR
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
texinfo (Debian) |
Fix Released
|
Unknown
|
|||
texinfo (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Jammy |
Triaged
|
High
|
Unassigned |
Bug Description
Impact
-------
The common CLI help utility info doesn't work for systems where the language is set to Brazilian
Test Case
--------
Open a terminal and run these 2 commands:
sudo apt install language-pack-pt
LANGUAGE=pt_BR info
The commands should complete without error. You can press q to exit info.
What Could Go Wrong
-------
This is a double fix. First we fix the broken Brazilian translation. That actually won't fix the bug because we use language packs and those are generally only updated just before the LTS point releases (months from now).
Next we cherry pick a fix from upstream to not crash when there is an error in the translations like this.
https:/
Original Bug Report
-------
When using my default locale info segfaults on open:
Using host libthread_db library "/lib/x86_
Core was generated by `info'.
Program terminated with signal SIGABRT, Aborted.
#0 __pthread_
44 ./nptl/
(gdb) bt
#0 __pthread_
#1 __pthread_
#2 __GI___pthread_kill (threadid=
#3 0x00007f555f9c7476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/
#4 0x00007f555f9ad7f3 in __GI_abort () at ./stdlib/abort.c:79
#5 0x000055e7b9c13546 in replace_
string=
#6 0x000055e7b9c068c8 in display_
#7 info_session (error=<optimized out>, user_filename=0x0, ref_list=
#8 main (argc=<optimized out>, argv=<optimized out>) at ./info/info.c:1079
if I do LC_ALL=C info then it opens normally. It seems the translation string is not matching some positional parameter in the original string, but I didn't check that far.
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: info 6.8-4build1
ProcVersionSign
Uname: Linux 5.15.0-
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Fri May 20 09:13:44 2022
InstallationDate: Installed on 2019-05-30 (1085 days ago)
InstallationMedia: Ubuntu 18.04.2 LTS "Bionic Beaver" - Release amd64 (20190210)
ProcEnviron:
LANGUAGE=
PATH=(custom, no user)
XDG_RUNTIME_
LANG=pt_BR.UTF-8
SHELL=/bin/bash
SourcePackage: texinfo
UpgradeStatus: Upgraded to jammy on 2022-04-30 (19 days ago)
Changed in texinfo (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → High |
status: | Triaged → Fix Released |
Changed in texinfo (Ubuntu Jammy): | |
importance: | Undecided → High |
status: | New → Triaged |
description: | updated |
description: | updated |
Changed in texinfo (Debian): | |
status: | Unknown → Fix Released |