Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 675702 - sys-apps/fwupd-1.2.3 - .../work/fwupd-1.2.3/po/make-images.sh: line 13: 69 Segmentation fault
Summary: sys-apps/fwupd-1.2.3 - .../work/fwupd-1.2.3/po/make-images.sh: line 13: 69...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-17 17:11 UTC by Conrad Kostecki
Modified: 2019-04-16 20:36 UTC (History)
0 users

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


Attachments
build.log (build.log,455.82 KB, text/plain)
2019-01-17 17:51 UTC, Conrad Kostecki
Details
logs.zip (logs.zip,167.56 KB, application/x-zip-compressed)
2019-03-25 22:26 UTC, Conrad Kostecki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Conrad Kostecki gentoo-dev 2019-01-17 17:11:40 UTC
Running custom install script '/var/tmp/portage/sys-apps/fwupd-1.2.3/work/fwupd-1.2.3/po/make-images.sh /usr/share/locale /var/tmp/portage/sys-apps/fwupd-1.2.3/temp/python3.6/bin/python3'
/var/tmp/portage/sys-apps/fwupd-1.2.3/work/fwupd-1.2.3/po/make-images.sh: line 13:    69 Segmentation fault      ${PYTHON3} ${MESON_SOURCE_ROOT}/po/make-images "Installing firmware update…" $LOCALEDIR ${MESON_SOURCE_ROOT}/po/LINGUAS
gzip: /var/tmp/portage/sys-apps/fwupd-1.2.3/image/usr/share/locale/*/LC_IMAGES/*.bmp: No such file or directory
FAILED: meson-install
/usr/lib/python-exec/python3.6/meson install --no-rebuild
ninja: build stopped: subcommand failed.
 * ERROR: sys-apps/fwupd-1.2.3::gentoo failed (install phase):
 *   ninja -v -j9 -l8 -C /var/tmp/portage/sys-apps/fwupd-1.2.3/work/fwupd-1.2.3-build install failed
 *
 * Call stack:
 *     ebuild.sh, line  124:  Called src_install
 *   environment, line 2510:  Called meson_src_install
 *   environment, line 1419:  Called eninja '-C' '/var/tmp/portage/sys-apps/fwupd-1.2.3/work/fwupd-1.2.3-build' 'install'
 *   environment, line  955:  Called die
 * The specific snippet of code:
 *       "$@" || die "${nonfatal_args[@]}" "${*} failed"
 *
 * If you need support, post the output of `emerge --info '=sys-apps/fwupd-1.2.3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-apps/fwupd-1.2.3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-apps/fwupd-1.2.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/fwupd-1.2.3/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-apps/fwupd-1.2.3/work/fwupd-1.2.3'
 * S: '/var/tmp/portage/sys-apps/fwupd-1.2.3/work/fwupd-1.2.3'
Comment 1 Conrad Kostecki gentoo-dev 2019-01-17 17:11:57 UTC
Portage 2.3.56 (python 3.7.0-final-0, default/linux/amd64/17.1, gcc-8.2.0, glibc-2.28-r5, 4.20.2-gentoo x86_64)
=================================================================
System uname: Linux-4.20.2-gentoo-x86_64-Intel-R-_Atom-TM-_CPU_C2758_@_2.40GHz-with-gentoo-2.6
KiB Swap:   34078716 total,  34078716 free
Timestamp of repository gentoo: Thu, 17 Jan 2019 11:15:01 +0000
Head commit of repository gentoo: c8297e8429431c95e37fcaa44962240567bf56ea
sh bash 5.0
ld GNU ld (Gentoo 2.31.1 p5) 2.31.1
distcc 3.3.2 x86_64-pc-linux-gnu [disabled]
ccache version 3.6 [enabled]
app-shells/bash:          5.0::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.28.0::gentoo
dev-lang/python:          2.7.15::gentoo, 3.5.5-r1::gentoo, 3.6.6::gentoo, 3.7.0::gentoo
dev-util/ccache:          3.6::gentoo
dev-util/cmake:           3.13.3::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.40.3::gentoo
sys-apps/sandbox:         2.15::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1-r3::gentoo
sys-devel/gcc:            8.2.0-r6::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.20::gentoo (virtual/os-headers)
sys-libs/glibc:           2.28-r5::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: --exclude-from=/etc/portage/rsync_excludes
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1

crossdev
    location: /usr/local/crossdev
    masters: gentoo

galactica
    location: /usr/local/portage
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mfpmath=sse,387 -mtune=intel -O3 -frecord-gcc-switches -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/share/gnupg/qualified.txt /var/lib/unifi"
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="-march=native -mfpmath=sse,387 -mtune=intel -O3 -frecord-gcc-switches -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build=n --with-bdeps=y"
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="-frecord-gcc-switches"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox protect-owned sandbox sfperms sign strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-frecord-gcc-switches"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="/etc/systemd/* /etc/xinetd.d/* /usr/lib/systemd/*"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,--as-needed -Wl,-O1 -Wl,--sort-common -Wl,-z,now"
LINGUAS="de de_DE"
MAKEOPTS="-j9 -l8"
PKGDIR="/usr/portage/packages"
PORTAGE_BUNZIP2_COMMAND="pbunzip2"
PORTAGE_BZIP2_COMMAND="pbzip2"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-9e"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
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 aalib acl alsa amd64 berkdb bzip2 cairo calendar caps cddb cgi cjk cracklib crypt curl cvs cxx dbus dga djvu dri encode exif fbcon fbcpm ffmpeg fftw flac fontconfig fortran ftp gd gdbm gif git gmp gnutls gpm graphviz gsm iconv icu idn imap imlib inotify introspection ipv6 java javascript jbig jit joystick jpeg jpeg2k lcms ldap libass libcaca libnotify libsamplerate lm_sensors lua lzma lzo mad maildir mbox mhash mikmod milter modplug mp3 mysql mysqli ncurses nls nntp nptl nsplugin offensive ogg openal openexr opengl openmp orc oss pam pcre pdf perl pie png policykit posix postgres postscript pulseaudio python raw readline rtmp samba sasl sdl session slang slp smartcard sndfile snmp soap sockets sound sox speex spell sqlite ssl startup-notification subversion suid svg symlink syslog tcpd theora threads tiff truetype udev unicode usb v4l vaapi vdpau vim-syntax vorbis wavpack webp wmf x264 xattr xcb xface xft xml xmp xpm xscreensaver xv xvid zeroconf zlib zsh-completion" ABI_X86="32 64" COLLECTD_PLUGINS="apcups battery cgroups conntrack contextswitch cpu cpufreq cpusleep df disk dns entropy ethstat exec fhcount filecount hddtemp hugepages interface ipc ipmi iptables irq load lvm java mcelog md memory mysql netlink nfs nginx ntpd openldap openvpn ping postgresql processes protocols rrdcached sensors serial smart snmp swap syslog tcpconns thermal turbostat unixsock uptime users" CPU_FLAGS_X86="aes mmx mmxext sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" ELIBC="glibc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de de_DE" LCD_DEVICES="cfontzpacket crystalfontz glcd2usb hd44780 lcd2usb" NGINX_MODULES_HTTP="access auth_basic autoindex brotli browser charset fancyindex fastcgi geo geoip gunzip gzip headers_more limit_conn proxy realip referer rewrite sticky stub_status upstream_keepalive vhost_traffic_status" NGINX_MODULES_STREAM="access geo geoip limit_conn realip return ssl_preread" PHP_TARGETS="php7-2" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6 python3_7" USERLAND="GNU" VIDEO_CARDS="ast fbdev"
Unset:  CC, CPPFLAGS, CTARGET, CXX, PORTAGE_BINHOST
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2019-01-17 17:25:20 UTC
Please attach the entire build log to this bug report.
Comment 3 Conrad Kostecki gentoo-dev 2019-01-17 17:51:03 UTC
Created attachment 561714 [details]
build.log
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2019-01-17 20:14:33 UTC
Does this segfault error reliably appear? Segmentation faults can also indicate broken memory hardware...
Comment 5 Conrad Kostecki gentoo-dev 2019-01-17 20:28:15 UTC
Yes. This happens on every try to compile.
Never had an segmentation fault on other stuff on that machine?
Comment 6 Conrad Kostecki gentoo-dev 2019-03-25 22:25:35 UTC
I've digged further into it. This must be caused somehow through the ebuild.

When I do compiled fwupd manually, I don't hit the error, since the custom script does not exist there?

FWICS, this segfault seems to be related to fontconfig, as it's always the cause in dmesg:

[1808614.210854] python3[14902]: segfault at 0 ip 00007cd6f95722f2 sp 00007fffe4ec9c80 error 4 in libfontconfig.so.1.12.0[7cd6f956d000+24000]
[1808614.210869] Code: 7f 01 00 31 db 85 c0 0f 94 c3 e9 f0 fb ff ff e8 04 b0 ff ff 0f 1f 40 00 41 57 41 56 41 55 41 54 55 53 48 8d a4 24 88 fd ff ff <0f> b7 19 64 48 8b 04 25 28 00 00 00 48 89 84 24 68 02 00 00 31 c0

I can manually reproduce this:
/var/tmp/portage/sys-apps/fwupd-1.2.5/work/fwupd-1.2.5/po/make-images 'Installing firmware update' /usr/share/locale /var/tmp/portage/sys-apps/fwupd-1.2.5/work/fwupd-1.2.5/po/LINGUAS

I don't think, this is hardware related, but more a bug somehow.
For example, same error here: https://github.com/jaagr/polybar/issues/1435 (but different app, at the end a bug)

@Lars: Any ideas, how to debug this more? Can you read something of the attached debug/trace?
Comment 7 Conrad Kostecki gentoo-dev 2019-03-25 22:26:39 UTC
Created attachment 570826 [details]
logs.zip
Comment 8 Conrad Kostecki gentoo-dev 2019-03-25 22:30:03 UTC
Starting program: /usr/bin/python3.6 /var/tmp/portage/sys-apps/fwupd-1.2.5/work/fwupd-1.2.5/po/make-images Installing\ firmware\ update /usr/share/locale /var/tmp/portage/sys-apps/fwupd-1.2.5/work/fwupd-1.2.5/po/LINGUAS
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6e812f2 in ?? () from /usr/lib64/libfontconfig.so.1
(gdb) bt
#0  0x00007ffff6e812f2 in ?? () from /usr/lib64/libfontconfig.so.1
#1  0x00007ffff6e81420 in ?? () from /usr/lib64/libfontconfig.so.1
#2  0x00007ffff6e815b1 in ?? () from /usr/lib64/libfontconfig.so.1
#3  0x00007ffff6e81d05 in ?? () from /usr/lib64/libfontconfig.so.1
#4  0x00007ffff6e81fda in FcConfigSubstituteWithPat () from /usr/lib64/libfontconfig.so.1
#5  0x00007ffff6e9283d in FcFontRenderPrepare () from /usr/lib64/libfontconfig.so.1
#6  0x00007ffff6e92c95 in FcFontMatch () from /usr/lib64/libfontconfig.so.1
#7  0x00007ffff499e332 in ?? () from /usr/lib64/libpangoft2-1.0.so.0
#8  0x00007ffff499e625 in ?? () from /usr/lib64/libpangoft2-1.0.so.0
#9  0x00007ffff5505ebc in ?? () from /usr/lib64/libpango-1.0.so.0
#10 0x00007ffff55063b1 in ?? () from /usr/lib64/libpango-1.0.so.0
#11 0x00007ffff5507338 in pango_itemize_with_base_dir () from /usr/lib64/libpango-1.0.so.0
#12 0x00007ffff55076af in pango_itemize () from /usr/lib64/libpango-1.0.so.0
#13 0x00007ffff59a0985 in ?? () from /usr/lib64/libffi.so.7
#14 0x00007ffff599faad in ?? () from /usr/lib64/libffi.so.7
#15 0x00007ffff5aa6478 in ?? ()
   from /usr/lib64/python3.6/site-packages/gi/_gi.cpython-36m-x86_64-linux-gnu.so
#16 0x00007ffff5aa8409 in ?? ()
   from /usr/lib64/python3.6/site-packages/gi/_gi.cpython-36m-x86_64-linux-gnu.so
#17 0x00007ffff7ce4b89 in _PyObject_FastCallDict () from /usr/lib64/libpython3.6m.so.1.0
#18 0x00007ffff7dcc949 in ?? () from /usr/lib64/libpython3.6m.so.1.0
#19 0x00007ffff7dd0fa4 in _PyEval_EvalFrameDefault () from /usr/lib64/libpython3.6m.so.1.0
#20 0x00007ffff7dcc771 in ?? () from /usr/lib64/libpython3.6m.so.1.0
#21 0x00007ffff7dccb95 in ?? () from /usr/lib64/libpython3.6m.so.1.0
#22 0x00007ffff7dd0fa4 in _PyEval_EvalFrameDefault () from /usr/lib64/libpython3.6m.so.1.0
#23 0x00007ffff7dcbd33 in ?? () from /usr/lib64/libpython3.6m.so.1.0
#24 0x00007ffff7dccd56 in ?? () from /usr/lib64/libpython3.6m.so.1.0
#25 0x00007ffff7dd0fa4 in _PyEval_EvalFrameDefault () from /usr/lib64/libpython3.6m.so.1.0
#26 0x00007ffff7dcc771 in ?? () from /usr/lib64/libpython3.6m.so.1.0
#27 0x00007ffff7dccdd1 in PyEval_EvalCodeEx () from /usr/lib64/libpython3.6m.so.1.0
#28 0x00007ffff7dcce1c in PyEval_EvalCode () from /usr/lib64/libpython3.6m.so.1.0
#29 0x00007ffff7dff5ab in PyRun_FileExFlags () from /usr/lib64/libpython3.6m.so.1.0
#30 0x00007ffff7dff750 in PyRun_SimpleFileExFlags () from /usr/lib64/libpython3.6m.so.1.0
#31 0x00007ffff7e18c84 in Py_Main () from /usr/lib64/libpython3.6m.so.1.0
#32 0x0000555555555241 in main ()
(gdb)
Comment 9 Conrad Kostecki gentoo-dev 2019-03-25 22:43:09 UTC
Okay, it's getting hot. For a test, I've moved /etc/fonts to /etc/fonts.old and reemerged fontconfig, to get a fresh installed /etc/fonts.

With that, no segfault ouccurs. So there is somewhere the cause.
Comment 10 Conrad Kostecki gentoo-dev 2019-04-16 20:36:06 UTC
I guess, it's time to close. I don't know, whats exact the cause, but after reinstalling /etc/fonts, it works.