Package: groff-base
Version: 1.22.4~rc2-2
Severity: important

I found out this problem after debugging 'dwww' which no longer created any
output for manual pages. After near 3 hours of debugging i found that the
command

    man  -EUTF-8 -P/bin/cat  -l "/usr/share/man/man1/7z.1.gz" | dwww-txt2html 
--man --utf8

crashed with the following message:

    man: nroff: Bad system call
    man: command exited with status 159: /usr/lib/man-db/zsoelim | 
/usr/lib/man-db/manconv -f UTF-8:ISO-8859-1 -t UTF-8//IGNORE | preconv -e UTF-8 
| tbl | nroff -mandoc -Tutf8

The same command worked without problems in a shell (with the normal
environment). Using 'env -i ... man ...' with all environment variables
supplied and eliminating the environment variables one by one, the command
crashed with the error message above after i eliminated 'SHELL=/bin/bash'.

This leads me to a work-around for 'dwww'. Insert in 'dwww-convert' near line
248 an environment setting for 'SHELL':

    $ENV{'SHELL'} = '/bin/sh';

This should solve the problems with 'dwww', but if some other programs use
'man' with a limited environment, this problem may occur, too.

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (900, 'testing'), (800, 'unstable'), (500, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.16.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8), 
LANGUAGE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages groff-base depends on:
ii  libc6         2.27-3
ii  libgcc1       1:8.1.0-8
ii  libstdc++6    8.1.0-8
ii  libuchardet0  0.0.6-3

groff-base recommends no packages.

Versions of groff-base which are affected:
ii  groff-base  1.22.3-10
ii  groff-base  1.22.4~rc2-2

-- no debconf information

Reply via email to