Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 624964 - sys-process/procps-3.3.12-r1: sudo -u foo kill -9 -1 throws segfault at 0 ip 00007f6e0d39fd15 sp 00007ffe23d99570 error 4 in libc-2.24.so
Summary: sys-process/procps-3.3.12-r1: sudo -u foo kill -9 -1 throws segfault at 0 ip ...
Status: UNCONFIRMED
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: 2017-07-14 09:52 UTC by Marcin Mirosław
Modified: 2017-07-22 09:05 UTC (History)
1 user (show)

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 Marcin Mirosław 2017-07-14 09:52:27 UTC
When I issue `sudo -u someuser kill -9 -1` I'm getting segfault.

Reproducible: Always




Here is backtrace:
# sudo -u marcin gdb -q kill 
Reading symbols from kill...Reading symbols from /usr/lib64/debug//bin/kill.debug...done.
done.
(gdb) set args -9 -1
(gdb) run
Starting program: /bin/kill -9 -1

Program received signal SIGSEGV, Segmentation fault.
__GI_____strtol_l_internal (nptr=0x0, endptr=endptr@entry=0x0, base=base@entry=10, group=group@entry=0, loc=0x7ffff7dd53e0 <_nl_global_locale>) at ../stdlib/strtol_l.c:293
293     ../stdlib/strtol_l.c: Nie ma takiego pliku ani katalogu.
(gdb) bt
#0  __GI_____strtol_l_internal (nptr=0x0, endptr=endptr@entry=0x0, base=base@entry=10, group=group@entry=0, loc=0x7ffff7dd53e0 <_nl_global_locale>) at ../stdlib/strtol_l.c:293
#1  0x00007ffff7a7aca2 in __strtol (nptr=<optimized out>, endptr=endptr@entry=0x0, base=base@entry=10) at ../stdlib/strtol.c:106
#2  0x0000000000402104 in atoi (__nptr=<optimized out>) at /usr/include/stdlib.h:241
#3  kill_main (argv=0x7fffffffe448, argc=<optimized out>) at skill.c:482
#4  main (argc=3, argv=0x7fffffffe448) at skill.c:752
(gdb) bt full
#0  __GI_____strtol_l_internal (nptr=0x0, endptr=endptr@entry=0x0, base=base@entry=10, group=group@entry=0, loc=0x7ffff7dd53e0 <_nl_global_locale>) at ../stdlib/strtol_l.c:293
        negative = <optimized out>
        cutoff = <optimized out>
        cutlim = <optimized out>
        i = <optimized out>
        s = 0x0
        c = <optimized out>
        save = <optimized out>
        end = <optimized out>
        overflow = <optimized out>
        cnt = <optimized out>
        current = <optimized out>
        thousands = 0x0
        thousands_len = 0
        grouping = 0x0
#1  0x00007ffff7a7aca2 in __strtol (nptr=<optimized out>, endptr=endptr@entry=0x0, base=base@entry=10) at ../stdlib/strtol.c:106
No locals.
#2  0x0000000000402104 in atoi (__nptr=<optimized out>) at /usr/include/stdlib.h:241
No locals.
#3  kill_main (argv=0x7fffffffe448, argc=<optimized out>) at skill.c:482
        i = <optimized out>
        loop = 1
        pid = <optimized out>
        exitvalue = 0
        longopts = {{name = 0x403849 "list", has_arg = 2, flag = 0x0, val = 108}, {name = 0x403936 "table", has_arg = 0, flag = 0x0, val = 76}, {name = 0x40393c "signal", has_arg = 1, flag = 0x0, 
            val = 115}, {name = 0x403943 "help", has_arg = 0, flag = 0x0, val = 104}, {name = 0x403948 "version", has_arg = 0, flag = 0x0, val = 86}, {name = 0x0, has_arg = 0, flag = 0x0, val = 0}}
        signo = 9
        longopts = {{name = 0x403849 "list", has_arg = 2, flag = 0x0, val = 108}, {name = 0x403936 "table", has_arg = 0, flag = 0x0, val = 76}, {name = 0x40393c "signal", has_arg = 1, flag = 0x0, 
            val = 115}, {name = 0x403943 "help", has_arg = 0, flag = 0x0, val = 104}, {name = 0x403948 "version", has_arg = 0, flag = 0x0, val = 86}, {name = 0x0, has_arg = 0, flag = 0x0, val = 0}}
#4  main (argc=3, argv=0x7fffffffe448) at skill.c:752
        run_time = {fast = 0, interactive = 0, verbose = 0, warnings = 0, noaction = 0, debugging = 0}
(gdb)


# emerge --info
Portage 2.3.6 (python 3.4.6-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-6.3.0, glibc-2.24-r3, 4.11.0-bcache+ x86_64)
=================================================================
System uname: Linux-4.11.0-bcache+-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.4.1
Timestamp of repository gentoo: Fri, 14 Jul 2017 06:00:01 +0000
sh bash 4.4_p12
ld GNU gold (Gentoo 2.28 p1.2 2.28) 1.14
ccache version 3.3.4 [enabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo
dev-util/ccache:          3.3.4::gentoo
dev-util/cmake:           3.8.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1::gentoo
sys-apps/openrc:          0.28::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r3::gentoo
sys-devel/automake:       1.15.1::gentoo
sys-devel/binutils:       2.28-r2::gentoo
sys-devel/gcc:            6.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.24-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://192.168.138.254/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fpeel-loops              -fuse-linker-plugin -fuse-ld=bfd -fvar-tracking-assignments -g"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe -fpeel-loops              -fuse-linker-plugin -fuse-ld=bfd -fvar-tracking-assignments -g"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=native -pipe -fpeel-loops              -fuse-linker-plugin -fuse-ld=bfd -fvar-tracking-assignments -g"
FEATURES="assume-digests binpkg-logs ccache cgroup collision-protect compressdebug config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=native -pipe -fpeel-loops              -fuse-linker-plugin -fuse-ld=bfd -fvar-tracking-assignments -g"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -z relro -Wl,--sort-common -O2 -march=native -pipe -fpeel-loops              -fuse-linker-plugin -fuse-ld=bfd -fvar-tracking-assignments -g"
MAKEOPTS="-j3 -l4"
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="X a52 aac acl acpi aio alsa amd64 apm async bash-completion bittorrent branding bzip2 cairo caps cdda cdr chroot cli consolekit crypt cups cxx dbus declarative dmx dri dvd dvdr emboss encode exif fam firefox ftp gif glamor glibc-omitfp gpl gpm iconv idn iproute2 ipv6 ithreads jit jpeg kde kipi kwallet laptop lcms libnotify lightning logrotate mad mmap mng modules mp3 mp4 mpeg multilib ncurses network-cron nls nptl nsplugin nspluginwrapper objc ogg opengl openmp openssl optimization optimized-qmake pam pango pcre pdf phonon plasma png policykit ppds python3 qml qt3support qt4 qt5 readline samba sdl seccomp semantic-desktop session sharedmem smp spell ssl startup-notification svg threads threadsafe tiff tools truetype udev udisks unicode unwind upower urandom usb vim vim-pager vim-syntax vorbis widgets wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid zip zlib" ABI_X86="32 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 authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cgid dav dbd deflate dir env expires ext_filter filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id usertrack vhost_alias" APACHE2_MPMS="worker" 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="mmx mmxext sse sse2 sse3 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" INPUT_DEVICES="evdev" KERNEL="linux" L10N="pl en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="pl en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="nvidia fbdev nouveau" 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, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON