Info segfaults on open when LANG=pt-BR

Bug #1974438 reported by Alexandre Pereira Nunes
6
This bug affects 1 person
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://git.savannah.gnu.org/cgit/texinfo.git/commit/?id=04f7ed5ce647050

Original Bug Report
--------------------
When using my default locale info segfaults on open:

Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `info'.
Program terminated with signal SIGABRT, Aborted.
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=140004652754752) at ./nptl/pthread_kill.c:44
44 ./nptl/pthread_kill.c: Arquivo ou diretório inexistente.
(gdb) bt
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=140004652754752) at ./nptl/pthread_kill.c:44
#1 __pthread_kill_internal (signo=6, threadid=140004652754752) at ./nptl/pthread_kill.c:78
#2 __GI___pthread_kill (threadid=140004652754752, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#3 0x00007f555f9c7476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#4 0x00007f555f9ad7f3 in __GI_abort () at ./stdlib/abort.c:79
#5 0x000055e7b9c13546 in replace_in_documentation (
    string=0x7f555fbf61ed "Bem vindo à versão Info %s. Digite \\[get-help-window] p/ ajuda,\\[get-inffo-help-node] p/ tutorial.", help_is_only_window_p=help_is_only_window_p@entry=0) at ./info/infodoc.c:722
#6 0x000055e7b9c068c8 in display_startup_message () at ./info/session.c:187
#7 info_session (error=<optimized out>, user_filename=0x0, ref_list=0x55e7ba92b050) at ./info/session.c:208
#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
ProcVersionSignature: Ubuntu 5.15.0-32.33-lowlatency 5.15.35
Uname: Linux 5.15.0-32-lowlatency x86_64
NonfreeKernelModules: zfs zunicode zcommon znvpair zavl icp
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: unknown
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=pt_BR:pt:en
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=pt_BR.UTF-8
 SHELL=/bin/bash
SourcePackage: texinfo
UpgradeStatus: Upgraded to jammy on 2022-04-30 (19 days ago)

Revision history for this message
Alexandre Pereira Nunes (alexandre-nunes) wrote :
Jeremy Bícha (jbicha)
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
Jeremy Bícha (jbicha)
description: updated
Jeremy Bícha (jbicha)
description: updated
Changed in texinfo (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.