Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 650384 - sys-apps/man-db[seccomp] with app-arch/lbzip2[symlink]: man: bzip2: Bad system call
Summary: sys-apps/man-db[seccomp] with app-arch/lbzip2[symlink]: man: bzip2: Bad syste...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-13 12:42 UTC by Tobias Klausmann (RETIRED)
Modified: 2018-04-06 08:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Klausmann (RETIRED) gentoo-dev 2018-03-13 12:42:01 UTC
This is with app-arch/lbzip2-2.5 and USE="symlink":

$ man ls
man: bzip2: Bad system call
man: bzip2: Bad system call
man: bzip2: Bad system call
man: bzip2: Bad system call
$

I tried looking into what system call this is, but the strace output is quite messy. The error does *not* happen outside of man-page usage, e.g.:

$ dd if=/dev/urandom of=bla bs=1M count=10
10+0 records in
10+0 records out
10485760 bytes (10 MB, 10 MiB) copied, 0.0454207 s, 231 MB/s
$ bzip2 bla
$ lbunzip2 bla.bz2
$ lbzip2 bla
$ lbzip2 bla

(all commands return 0)

So this is an interaction bewteen man and lbzip2, possibly a bug in the former rather than the latter.

I *do* run a pretty bleeding edge kernel (reporduced it with 4.16-rc3 and -rc5, but not older).

Portage 2.3.24 (python 3.6.4-final-0, default/linux/amd64/17.0, gcc-7.3.0, glibc-2.26-r6, 4.16.0-rc5 x86_64)
=================================================================
System uname: Linux-4.16.0-rc5-x86_64-Intel-R-_Core-TM-_i7-7700_CPU_@_3.60GHz-with-gentoo-2.4.1
KiB Mem:    32799104 total,  28624952 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 12 Mar 2018 23:38:09 +0000
Head commit of repository gentoo: 814d02188fdd3b30c1d5b11a0a67def929cff6e9

sh bash 4.4_p19
ld GNU ld (Gentoo 2.30 p1) 2.30.0
app-shells/bash:          4.4_p19::gentoo
dev-lang/perl:            5.26.1-r2::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.4.6-r1::gentoo, 3.5.4-r1::gentoo, 3.6.4::gentoo
dev-util/cmake:           3.10.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.35.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16-r1::gentoo
sys-devel/binutils:       2.30::gentoo
sys-devel/gcc:            7.3.0::gentoo
sys-devel/gcc-config:     1.9.1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r2::gentoo
sys-kernel/linux-headers: 4.15::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo
    priority: -1000

local
    location: /usr/local/portage
    masters: gentoo
    priority: 0

klausman-prometheus
    location: /var/lib/layman/klausman-prometheus
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.2/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ http://mirror.netcologne.de/gentoo/ http://ftp.halifax.rwth-aachen.de/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl acpi amd64 apache2 bash-completion bcmath berkdb bzip2 calendar caps clamav cli crypt cscope curl cxx dri ethereal exif fortran ftp gd gdbm gif gmp gnutls iconv idn imagemagick imap imlib ipv6 jabber jpeg kdeenablefinal libwww maildir mbox mmap mng modules mp3 mpeg mpi multilib mysql mysqli ncurses nls nptl nptlonly ogg oggvorbis openmp pam pcre perl php png posix python readline recode sasl seccomp sockets spell sse ssl svg tcpd truetype unicode vhosts vim vim-pager vim-syntax vorbis xattr xetex zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias reqtimeout slotmem_shm authn_core authz_core authz_dbd cache_disk ratelimit remoteip unixd socache_shmcb" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_4 python3_5 python3_6 pypy pypy3" RUBY_TARGETS="ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Tobias Klausmann (RETIRED) gentoo-dev 2018-03-13 18:21:30 UTC
Reassigning to base-system since this is likely an issue in man-pages, not lbzip2.

I think bug 647496 is basically the same, but for xz.
Comment 2 Mike Gilbert gentoo-dev 2018-03-13 19:54:32 UTC
What version of sys-apps/man-db is installed? See bug 647496.
Comment 3 Tobias Klausmann (RETIRED) gentoo-dev 2018-03-13 20:48:25 UTC
sys-apps/man-db-2.8.2, i.e. current ~amd64
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-03-14 08:10:20 UTC
Tobias, as I said in IRC yesterday, please report this to upstream. You can reach him via man-db-devel@nongnu.org
Comment 5 Tobias Klausmann (RETIRED) gentoo-dev 2018-03-17 08:21:14 UTC
Fixed upstream:

https://git.savannah.gnu.org/cgit/man-db.git/commit/?id=ecba2e037bcb33b7fd4f0caa7bc42bd05fefdfd6
Comment 6 Larry the Git Cow gentoo-dev 2018-04-06 08:26:06 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fcba13ad2baeff8a99b86127cf4fa9a334b37e20

commit fcba13ad2baeff8a99b86127cf4fa9a334b37e20
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2018-04-06 08:25:20 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2018-04-06 08:25:20 +0000

    sys-apps/man-db: Bump to version 2.8.3
    
    Closes: https://bugs.gentoo.org/650384
    Package-Manager: Portage-2.3.28, Repoman-2.3.9

 sys-apps/man-db/Manifest            |   1 +
 sys-apps/man-db/man-db-2.8.3.ebuild | 122 ++++++++++++++++++++++++++++++++++++
 2 files changed, 123 insertions(+)