Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 671944 - net-im/slack-bin-3.3.3 segfaults on startup
Summary: net-im/slack-bin-3.3.3 segfaults on startup
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Proxy Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-26 10:18 UTC by Tobias Klausmann (RETIRED)
Modified: 2019-01-15 18:43 UTC (History)
10 users (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 Tobias Klausmann (RETIRED) gentoo-dev 2018-11-26 10:18:03 UTC
Tail end of strace -fF slack:

unmap(0x7fdb7c423000, 206152)          = 0
set_tid_address(0x7fdb75d484d0)         = 16177
set_robust_list(0x7fdb75d484e0, 24)     = 0
rt_sigaction(SIGRTMIN, {sa_handler=0x7fdb7c4066d0, sa_mask=[], sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x7fdb7c4147e0}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {sa_handler=0x7fdb7c406780, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART|SA_SIGINFO, sa_restorer=0x7fdb7c4147e0}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
futex(0x7fdb7932f0c8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
openat(AT_FDCWD, "/dev/urandom", O_RDONLY) = 3
read(3, "N\340\354O", 4)                = 4
close(3)                                = 0
futex(0x57f2cb8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
mmap(0x13d2dd9b4000, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x13d2dd9b4000
mprotect(0x13d2dd9b4000, 4096, PROT_NONE) = 0
mmap(0x13d2dd9d4000, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x13d2dd9d4000
mprotect(0x13d2dd9d4000, 4096, PROT_NONE) = 0
mmap(0x13d2dd9f4000, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x13d2dd9f4000
mprotect(0x13d2dd9f4000, 4096, PROT_NONE) = 0
mmap(0x13d2dda14000, 61440, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x13d2dda14000
mmap(0x13d2dda23000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x13d2dda23000
mmap(0x13d2dda2b000, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x13d2dda2b000
mprotect(0x13d2dda2b000, 4096, PROT_NONE) = 0
mmap(0x13d2dda4b000, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x13d2dda4b000
mmap(0x13d2ddb4b000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x13d2ddb4b000
mmap(0x13d2ddb53000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x13d2ddb53000
madvise(0x13d2dda4b000, 1048576, MADV_DONTNEED) = 0
madvise(0x13d2dda61000, 958464, MADV_DONTNEED) = 0
futex(0x7fdb79bf35b8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x7fdb79bf35b8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
madvise(0x13d2dda5d000, 4096, MADV_DONTNEED) = 0
getrandom("\x03", 1, GRND_NONBLOCK)     = 1
stat("/etc/gnutls/default-priorities", 0x7ffc6bae0190) = -1 ENOENT (No such file or directory)
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_ACCERR, si_addr=0xdbf060} ---
+++ killed by SIGSEGV +++
Segmentation fault



$ emerge --info
Portage 2.3.52 (python 3.6.6-final-0, default/linux/amd64/17.0, gcc-8.2.0, glibc-2.28-r2, 4.19.4 x86_64)
=================================================================
System uname: Linux-4.19.4-x86_64-Intel-R-_Xeon-R-_CPU_E5-2620_v3_@_2.40GHz-with-gentoo-2.6
KiB Mem:    16335640 total,   4990196 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 26 Nov 2018 07:24:34 +0000
Head commit of repository gentoo: c5420382961e213bf535a663b40770f85ad772a1

sh bash 4.4_p23
ld GNU ld (Gentoo 2.31.1 p3) 2.31.1
app-shells/bash:          4.4_p23::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.5.5-r1::gentoo, 3.6.6::gentoo, 3.7.0::gentoo
dev-util/cmake:           3.13.0::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.39.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.15.1-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1-r1::gentoo
sys-devel/gcc:            8.2.0-r4::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.28-r2::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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/share/easy-rsa /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildsyspkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://mirrors.linuxant.fr/distfiles.gentoo.org/ http://gentoo.mirrors.ovh.net/gentoo-distfiles/ http://ftp.halifax.rwth-aachen.de/gentoo/ http://mirror.leaseweb.com/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ http://gentoo.modulix.net/gentoo/ http://tux.rainside.sk/gentoo/"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
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="3dnow 3dnowext X a52 acl alsa amd64 audiofile bash-completion berkdb bmp bzip2 caps cdparanoia cdr cli crypt cups cxx dri dts encode exif ffmpeg fftw fortran gdbm gif glamor gtk iconv idn ipv6 jpeg lame lcms libtirpc lua mad matroska mmap mng mp3 mpeg multilib ncurses nls nptl ogg opengl openmp opus pam pcre png ppds pulseaudio python qt4 readline recode seccomp ssl svg tcpd theora unicode usb v4l vaapi vdpau vim vim-pager vim-syntax vlm vorbis wmf xattr xcb xinerama xosd xpm xscreensaver xvid 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="authn_core authz_core socache_shmcb unixd 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 cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 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" INPUT_DEVICES="keyboard mouse evdev" 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-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6 pypy pypy3" QEMU_SOFTMMU_TARGETS="i386 x86_64 aarch64" QEMU_USER_TARGETS="i386 x86_64 aarch64" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="nvidia" 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_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 John Flatness 2018-11-26 19:32:32 UTC
For me it was an update to something other than slack that triggered this... backtrace names the following:

#1  0x00007f9e583e2072 in node::http2::Http2Session::Callbacks::Callbacks(bool) () from /opt/slack/libnode.so

Probably the culprit update was glibc to 2.28, leading to https://github.com/electron/electron/issues/13972
Comment 2 Tony 2018-11-28 16:35:15 UTC
Can this bug be added as a blocker to https://bugs.gentoo.org/663916

Thanks,
Comment 3 Denis Descheneaux 2018-12-09 04:10:00 UTC
For this bug a workaround is to use another which works (libnode.so)
thats bundled with (in my case with)

skypeforlinux-8.35.76.65

# Backup your original just in case
/usr/lib/slack/libnode.so /path/to/your/backup/folder/libnode.so
cp /opt/skypeforlinux/libnode.so /usr/lib/slack/libnode.so

Slack launches correctly

If you really need it to work, this will do the trick in the meantime...
Comment 4 Ivan Grynko 2019-01-14 06:36:11 UTC
Looks like it has been solved with slack-bin-3.3.4
Comment 5 John Flatness 2019-01-15 15:48:42 UTC
Yes, the glibc 2.28 issue is specifically called out in the Slack 3.3.4 release notes.

I can confirm anecdotally that a version bump of the slack-bin ebuild to 3.3.4 fixes the problem on my system.
Comment 6 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2019-01-15 18:41:36 UTC
3.3.4 has the following release note

The desktop app was not playing nicely with the glibc 2.28. If you were experiencing a segfault, you should segfault no more. It's better now.

https://slack.com/release-notes/linux
Comment 7 Larry the Git Cow gentoo-dev 2019-01-15 18:43:04 UTC
The bug has been closed via the following commit(s):

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

commit fd6af5cbf10b33254a585a1d0f67fdc0d20c264a
Author:     Matthew Thode <prometheanfire@gentoo.org>
AuthorDate: 2019-01-15 18:42:34 +0000
Commit:     Matthew Thode <prometheanfire@gentoo.org>
CommitDate: 2019-01-15 18:42:50 +0000

    net-im/slack-bin: 3.3.4 now works with glibc 2.28
    
    Fixes: https://bugs.gentoo.org/671944
    Package-Manager: Portage-2.3.51, Repoman-2.3.12
    Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>

 net-im/slack-bin/Manifest               |  1 +
 net-im/slack-bin/slack-bin-3.3.4.ebuild | 94 +++++++++++++++++++++++++++++++++
 2 files changed, 95 insertions(+)