FS#57436 - [man-db] 2.8.0-1: "man: iconv: Bad system call (core dumped)" when using non-UTF8 locale

Attached to Project: Arch Linux
Opened by Pascal Ernster (hardfalcon) - Thursday, 08 February 2018, 18:18 GMT
Last edited by Andreas Radke (AndyRTR) - Friday, 09 February 2018, 19:29 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Andreas Radke (AndyRTR)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Starting with man-db 2.8.0-1, on a system where LANG=en_US, executing "man smb.conf" produces the error message "man: iconv: Bad system call (core dumped)" inside the paging viewer (eg "less"). After exiting the paging viewer, I get additionally the following error message:

man: command exited with status 127: iconv -c -f UTF-8 -t ISO-8859-1//TRANSLIT | sed -e '/^[[:space:]]*$/{ N; /^[[:space:]]*\n[[:space:]]*$/D; }' | (cd <fd 3> && LESS=-ix8RmPm Manual page smb\.conf(5) ?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%.. (press h for help or q to quit)$PM Manual page smb\.conf(5) ?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%.. (press h for help or q to quit)$ MAN_PN=smb\.conf(5) less)

I can also reproduce this when LANG is set to other locales, but only with locales that do not have the ".UTF-8" suffix. Also, the error does not occur if LANG=C (I assume that in this case, iconv is not called).

I have reproduced this on multiple machines, and I could even reproduce it on the current Archlinux installation iso:

1. Run "mount -o remount,size=2G /run/archiso/cowspace".
2. Run "pacman -Sy samba".
3. Enable the "en_US" locale in /etc/locale.gen.
4. Execute "locale-gen".
5. Run "export LANG=en_US".
6. Run "man smb.conf". The error will not yet occur.
7. Run "pacman -S man-db" to update man-db to version 2.8.0.
8. Run "man smb.conf" again. No the error will occur.
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Friday, 09 February 2018, 19:29 GMT
Reason for closing:  Fixed
Additional comments about closing:  2.8.1-1
Comment by Andreas Radke (AndyRTR) - Thursday, 08 February 2018, 19:16 GMT
Should be fixed with applying this:

https://git.savannah.gnu.org/cgit/man-db.git/commit/?id=10027a400d6a05f463f3981e1191a2f35d0cc02b

Please test it and report back. Thx. Also see man-db mailing list.
Comment by Andreas Radke (AndyRTR) - Thursday, 08 February 2018, 19:45 GMT
Please try 2.8.0-2.
Comment by Pascal Ernster (hardfalcon) - Thursday, 08 February 2018, 19:51 GMT
Just tried it, 2.8.0-2 doesn't solve the problem on my machine. :/
Comment by Pascal Ernster (hardfalcon) - Friday, 09 February 2018, 15:30 GMT
Upstream has released version 2.8.1 which fixes the issue:
https://git.savannah.gnu.org/cgit/man-db.git/tag/?h=2.8.1

Loading...