Info segfaults on open when LANG=pt-BR

Bug #1974438 reported by Alexandre Pereira Nunes
This bug affects 1 person
Affects Status Importance Assigned to Milestone
texinfo (Debian)
Fix Released
texinfo (Ubuntu)
Fix Released

Bug Description

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

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.

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

Using host libthread_db library "/lib/x86_64-linux-gnu/".
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)
 PATH=(custom, no user)
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.