Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 638978 - Portage (emerge) killed with segmentation fault when trying to emerge packages
Summary: Portage (emerge) killed with segmentation fault when trying to emerge packages
Status: RESOLVED DUPLICATE of bug 638428
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: Normal blocker (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-27 15:14 UTC by Sumit Khanna
Modified: 2017-11-27 17:25 UTC (History)
0 users

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


Attachments
strace output from emerge install (emerge-seg-fault.txt.gz,474.61 KB, application/gzip)
2017-11-27 15:15 UTC, Sumit Khanna
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sumit Khanna 2017-11-27 15:14:27 UTC
When using emerge, I can use -a/-p to preview the installation listing, but any time I try to emerge a package, I get a segmentation fault. (strace attached) 



Reproducible: Always

Steps to Reproduce:
1. emerge <any package>
2.
3.
Actual Results:  
open("/usr/portage/dev-qt/qtlockedfile/qtlockedfile-2.4.1_p20150629.ebuild", O_RDONLY|O_CLOEXEC) = 5
fstat(5, {st_mode=S_IFREG|0644, st_size=1602, ...}) = 0
ioctl(5, TCGETS, 0x7ffcf008f2b0)        = -1 ENOTTY (Inappropriate ioctl for device)
fstat(5, {st_mode=S_IFREG|0644, st_size=1602, ...}) = 0
lseek(5, 0, SEEK_CUR)                   = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SI_KERNEL, si_addr=NULL} ---
+++ killed by SIGSEGV +++
fish: “sudo strace emerge smplayer” terminated by signal SIGSEGV (Address boundary error)



sudo emerge --info
Portage 2.3.13 (python 3.4.5-final-0, default/linux/amd64/13.0, gcc-5.4.0, glibc-2.25-r9, 4.9.34-gentoo x86_64)
=================================================================
System uname: Linux-4.9.34-gentoo-x86_64-Intel-R-_Core-TM-_i7-6700HQ_CPU_@_2.60GHz-with-gentoo-2.4.1
KiB Mem:    32742812 total,  27586088 free
KiB Swap:   33554428 total,  33554428 free
Timestamp of repository gentoo: Mon, 27 Nov 2017 08:00:01 +0000
Head commit of repository gentoo: 84fde63799f57375e4dc9d9f6ecb07e5aaf55c8a
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14::gentoo, 3.4.5::gentoo, 3.5.4::gentoo
dev-util/cmake:           3.8.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.32.1::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.10.3::gentoo, 1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo, 2.26.1::gentoo, 2.28-r2::gentoo, 2.28.1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 4.9.4::gentoo, 5.4.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r9::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 

penguindreams-org
    location: /usr/local/portage
    masters: gentoo
    priority: 0

andy
    location: /var/lib/layman/andy
    masters: gentoo
    priority: 50

gentoo-scala-tools
    location: /var/lib/layman/gentoo-scala-tools
    masters: gentoo
    priority: 50

hamper-overlay
    location: /var/lib/layman/hamper-overlay
    masters: gentoo
    priority: 50

jorgicio
    location: /var/lib/layman/jorgicio
    masters: gentoo
    priority: 50

mozilla
    location: /var/lib/layman/mozilla
    masters: gentoo
    priority: 50

mrueg
    location: /var/lib/layman/mrueg
    masters: gentoo
    priority: 50

obs-studio-overlay
    location: /var/lib/layman/obs-studio-overlay
    masters: gentoo
    priority: 50

sabayon
    location: /var/lib/layman/sabayon
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    masters: gentoo
    priority: 50

sublime-text
    location: /var/lib/layman/sublime-text
    masters: gentoo
    priority: 50

tlp
    location: /var/lib/layman/tlp
    masters: gentoo
    priority: 50

tmacedo
    location: /var/lib/layman/tmacedo
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA Sublime PUEL dotnet-eula"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /usr/share/maven-bin-3.3/conf /var/lib/hsqldb"
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="-O3 -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 splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_NZ.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
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 aalib acl acpi aim alsa amd64 audiofile avahi berkdb bluetooth browserplugin bzip2 cairo cdinstall cdparanoia cdr cleartype cli consolekit corefonts cracklib crypt cups cxx dbus dmenu dri dts dvd dvdr dvdread emacs emul-linux-x86 exif fam ffmpeg firefox fish-completion flac fortran ftp gdbm gif glamor gpm gstreamer gtk2 gtkhtml gudev hal hwdb iconv ipv6 java jpeg ldap libcaca log4j mad matroska mmx modules mono mp3 mp4 mpd mpeg msn multilib mysql ncurses nls nptl nptlonly offensive ogg oggvorbis opengl openmp pam pcre pdf png pulseaudio qt3support quicktime readline real rtc samba sdl seamonkey seccomp session spell sse sse2 ssl svg tcpd theora tiff tracker truetype type1 unicode usb v4l vcd vorbis webp win32codecs wmf xattr xinerama xmms xscreensaver xvid yahoo 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 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 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 uusertrack vhost_alias" 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 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" INPUT_DEVICES="synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gzip limit_conn limit_req map memcached proxy referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi headers_more" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="intel" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Sumit Khanna 2017-11-27 15:15:43 UTC
Created attachment 506826 [details]
strace output from emerge install
Comment 2 Sumit Khanna 2017-11-27 16:16:18 UTC
I looked through my logs and it seems like the last successful `emerge -auDNv world` was on 16 Nov 2017 where Portage got updated to: sys-apps/portage-2.3.13-r1::gentoo. Is this something that could have broken in 2.3.13-r1?


Logs:

---20171116_0201---
Starting Update Process
Updating adelle
 Installing (1 of 35) app-text/libexttextcat-3.4.5::gentoo
 Installing (2 of 35) www-plugins/adobe-flash-27.0.0.187::gentoo
 Installing (3 of 35) app-text/libstaroffice-0.0.4::gentoo
 Installing (4 of 35) app-office/libreoffice-l10n-5.4.2.2::gentoo
 Installing (5 of 35) dev-python/pyblake2-0.9.3::gentoo
 Installing (6 of 35) media-libs/libzmf-0.0.2::gentoo
 Installing (7 of 35) sys-apps/portage-2.3.13-r1::gentoo
 Installing (8 of 35) net-misc/rsync-3.1.2-r1::gentoo
 Installing (9 of 35) dev-libs/nss-3.34::gentoo
 Installing (10 of 35) app-text/libwpd-0.10.2::gentoo
 Installing (11 of 35) app-text/libwps-0.4.7::gentoo
 Installing (12 of 35) app-text/libwpg-0.3.2::gentoo
 Installing (13 of 35) dev-util/mdds-1.2.3::gentoo
 Installing (14 of 35) media-libs/libcdr-0.1.4::gentoo
 Installing (15 of 35) media-libs/libfreehand-0.1.2::gentoo
 Installing (16 of 35) dev-libs/xmlsec-1.2.24-r1::gentoo
 Installing (17 of 35) app-text/libmwaw-0.3.12::gentoo
 Installing (18 of 35) dev-libs/libixion-0.12.2::gentoo
 Installing (19 of 35) dev-libs/liborcus-0.12.1::gentoo
 Installing (20 of 35) net-misc/dropbox-39.4.49::jorgicio
Error:
 *  - /usr/lib64/libMagickCore-6.Q16.so.3.0.0
 *      used by /usr/lib64/libautotrace.so.3.0.0 (media-gfx/autotrace-0.31.1-r7)
>>> package: media-libs/libwebp-0.5.2
 *  - /usr/lib64/libwebp.so.5
 *  - /usr/lib64/libwebp.so.5.0.2
 *      used by /usr/lib64/libwebkitgtk-1.0.so.0.22.17 (net-libs/webkit-gtk-2.4.11-r200)
>>> package: media-libs/libpng-1.6.34
 *  - /usr/lib64/libpng15.so.15
 *  - /usr/lib64/libpng15.so.15.17.0
 *      used by /usr/bin/mrxvt (x11-terms/mrxvt-0.5.4)
 *      used by /usr/bin/xloadimage (media-gfx/xloadimage-4.1-r11)
Use emerge @preserved-rebuild to rebuild packages using these libraries
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.

 * IMPORTANT: 19 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

 * After world updates, it is important to remove obsolete packages with
 * emerge --depclean. Refer to `man emerge` for more information.
Rebuilding adelle
Comment 3 Mike Gilbert gentoo-dev 2017-11-27 16:51:52 UTC
This is probably bug 638428.

Please try running the following to fix it:

emerge --sync
PORTAGE_CHECKSUM_FILTER="* -blake2b" emerge -1 dev-python/pyblake2
Comment 4 Sumit Khanna 2017-11-27 16:56:57 UTC
(In reply to Mike Gilbert from comment #3)
> This is probably bug 638428.
> 
> Please try running the following to fix it:
> 
> emerge --sync
> PORTAGE_CHECKSUM_FILTER="* -blake2b" emerge -1 dev-python/pyblake2

Yep, that fixed it! Packages are emerging fine again. Thanks.
Comment 5 Mike Gilbert gentoo-dev 2017-11-27 17:25:44 UTC

*** This bug has been marked as a duplicate of bug 638428 ***