Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 659246 - media-gfx/gimp-2.10.2 segmentation fault at startup
Summary: media-gfx/gimp-2.10.2 segmentation fault at startup
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sergey Torokhov
URL:
Whiteboard:
Keywords:
: 663430 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-06-26 14:22 UTC by Jan-Erik Skata
Modified: 2019-12-07 06:59 UTC (History)
3 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 Jan-Erik Skata 2018-06-26 14:22:37 UTC
Installed media-gfx/gimp-2.10.2 and it segfaults at startup;
From GIMP Crash Debug:

GNU Image Manipulation Program version 2.10.2
git-describe: GIMP_2_10_0-292-gbe7f9b433a
C compiler:
	Using built-in specs.
	COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/x86_64-pc-linux-gnu-gcc
	COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/7.3.0/lto-wrapper
	Target: x86_64-pc-linux-gnu
	Configured with: /var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/gcc-7.3.0/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/7.3.0 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/7.3.0/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/7.3.0/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/7.3.0/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 7.3.0-r3 p1.4' --disable-esp --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-altivec --disable-fixed-point --enable-targets=all --disable-libgcj --enable-libgomp --disable-libmudflap --disable-libssp --disable-libcilkrts --disable-libmpx --enable-vtable-verify --enable-libvtv --enable-lto --without-isl --enable-libsanitizer --enable-default-pie --enable-default-ssp
	Thread model: posix
	gcc version 7.3.0 (Gentoo 7.3.0-r3 p1.4) 
	
using GEGL version 0.4.2 (compiled against version 0.4.2)
using GLib version 2.54.3 (compiled against version 2.54.3)
using GdkPixbuf version 2.36.12 (compiled against version 2.36.12)
using GTK+ version 2.24.32 (compiled against version 2.24.32)
using Pango version 1.42.0 (compiled against version 1.42.0)
using Fontconfig version 2.13.0 (compiled against version 2.13.0)
using Cairo version 1.14.12 (compiled against version 1.14.12)

> fatal error: Segmentation fault

Stack trace:
/usr/lib64/libgimpbase-2.0.so.0(gimp_stack_trace_print+0x468)[0x7fddb74c5598]
gimp(+0xcd9c4)[0x556fc7c269c4]
gimp(+0xcdfb8)[0x556fc7c26fb8]
gimp(+0xce6c7)[0x556fc7c276c7]
/lib64/libpthread.so.0(+0x14090)[0x7fddb4061090]
/lib64/libc.so.6(+0x973de)[0x7fddb3d1c3de]
/usr/lib64/libmypaint-1.3.so.0(mypaint_brush_setting_from_cname+0x2a)[0x7fddb481506a]
/usr/lib64/libmypaint-1.3.so.0(mypaint_brush_from_string+0x1b2)[0x7fddb4814cc2]
gimp(gimp_mybrush_load+0x16a)[0x556fc7f6654a]
gimp(+0x3a9c39)[0x556fc7f02c39]
gimp(+0x3a9e16)[0x556fc7f02e16]
gimp(+0x3aa022)[0x556fc7f03022]
gimp(gimp_data_factory_data_init+0x8b)[0x556fc7f0391b]
gimp(gimp_data_factories_load+0xe2)[0x556fc7ed0712]
gimp(gimp_restore+0x9d)[0x556fc7ecdc4d]
gimp(app_run+0x486)[0x556fc7c264b6]
gimp(main+0x34c)[0x556fc7c25c5c]
/lib64/libc.so.6(__libc_start_main+0xe7)[0x7fddb3ca69f7]
gimp(_start+0x2a)[0x556fc7c25dfa]

emerge --info:
Portage 2.3.40 (python 3.5.5-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-7.3.0, glibc-2.27-r4, 4.16.1-gentoo x86_64)
=================================================================
System uname: Linux-4.16.1-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600K_CPU_@_3.40GHz-with-gentoo-2.6
KiB Mem:    12283872 total,   4998012 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of repository gentoo: Sun, 24 Jun 2018 08:15:01 +0000
Head commit of repository gentoo: 98068af937246ef38c5ed79972697038f6c9dfee
sh bash 4.4_p23
ld GNU ld (Gentoo 2.30 p3) 2.30.0
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
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.4.8-r1::gentoo, 3.5.5-r1::gentoo, 3.6.5-r1::gentoo
dev-util/cmake:           3.11.4::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6::gentoo
sys-apps/openrc:          0.37::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.10.3-r3::gentoo, 1.11.6-r3::gentoo, 1.12.6-r2::gentoo, 1.13.4-r2::gentoo, 1.14.1-r2::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo, 2.30-r3::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo
sys-devel/gcc-config:     1.9.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r3::gentoo
sys-kernel/linux-headers: 4.17::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 

Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=sandybridge -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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="-march=sandybridge -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY 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-logs 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://trumpetti.atm.tut.fi/gentoo/"
LANG="sv_FI.UTF-8"
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="X a52 aac acl acpi activities alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit crypt cups cxx dbus declarative dlloader dri dts dvb dvd dvdr dvdread emboss enblend encode exif fam ffmpeg firefox flac fortran gdbm gif gimp glamor gpm gtk hal iconv ipv6 java jp2 jpeg jpeg2k kde kipi kwallet lcms libnotify libtirpc mad matroska mng modules mp3 mp4 mpeg multilib ncurses nls nptl nptlonly nsplugin nvidia offensive ogg opengl openmp pam pango pcre pdf phonon pic plasma png policykit ppds qml qt3support qt5 readline rtlsdr scanner sdl seccomp sift spell ssl startup-notification svg tcpd theora threads tiff truetype udev udisks unicode upower usb v4l vorbis widgets win32codecs wxwidgets x264 xattr xcb xcomposite xinerama xml xv xvid zlib" ABI_X86="64 32" 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="mmx mmxext sse sse2 sse3 ssse3 sse4_1 sse4_2 aes avx popcnt" 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-0" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby25" USERLAND="GNU" VIDEO_CARDS="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, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jan-Erik Skata 2018-06-26 14:27:08 UTC
Get this in shell:
$ gimp
Missing fast-path babl conversion detected, Implementing missing babl fast paths
accelerates GEGL, GIMP and other software using babl, warnings are printed on
first occurance of formats used where a conversion has to be synthesized
programmatically by babl based on format description

*WARNING* missing babl fast path(s): "R'G'B' double" to "CIE Lab double"
gimp: fatal error: Segmentation fault
Comment 2 Sebastian Pipping gentoo-dev 2018-06-26 18:14:48 UTC
Hello Jan,

in the stacktrace "mypaint_brush_setting_from_cname" catches my eye.  Do you have something other than

  - media-gfx/mypaint-brushes-1.3.0

  - media-libs/libmypaint-1.3.0

installed for these packages?  Do you install custom/thirdparty brushes on top somewhere?
Comment 3 Jan-Erik Skata 2018-06-26 19:32:48 UTC
Not what I know of. I have those two installed. I do have some filters and script-fu installed for GIMP 2.8.
Comment 4 Jan-Erik Skata 2018-06-26 19:41:38 UTC
Wavelet-denoise, wavelet-sharpen and gimp_plugin-refocus-it, as well as ufraw-gimp in /usr/lib64/gimp/2.0/plug-ins/. Dynamic-range-extender.scm in .gimp-2.8/scripts/.
Should I try unmerge gimp-2.8 and rename these directories?
Comment 5 Frank Peters 2018-07-01 16:02:28 UTC
I want to confirm that I had the same problem with the exact same stack trace.

However, I noticed that my libmypaint was installed in December 2017.
On a lark I re-emerged libmypaint-1.3.0 and the problem disappeared.

Maybe this will work for you too.
Comment 6 Sebastian Pipping gentoo-dev 2018-07-01 16:24:46 UTC
(In reply to Frank Peters from comment #5)
> However, I noticed that my libmypaint was installed in December 2017.
> On a lark I re-emerged libmypaint-1.3.0 and the problem disappeared.

Nice, thank you!  Jan, can you give that a try?
Comment 7 Jan-Erik Skata 2018-07-02 20:22:28 UTC
Yes, this solved the problem. Guess it had been compiled with an older GCC?
Comment 8 Sebastian Pipping gentoo-dev 2018-07-02 20:36:10 UTC
No idea.  I'd be happy to add a subslot dependency forcing repuilds on libmypaint subslot changes but both libmypaint ebuilds share the same slot-subslot combination.  Any ideas?
Comment 9 Frank Peters 2018-07-03 14:56:59 UTC
(In reply to Sebastian Pipping from comment #8)
>  Any ideas?
>

Could it be gegl?  The latest gimp-2.10.x needs gegl-0.4.  If libmypaint was installed in Dec 2017 it would not be linked with gegl-0.4.

Unfortunately, since I re-emerged libmypaint I cannot check on how it was previously built.
Comment 10 tt_1 2018-07-07 12:47:00 UTC
I get the same segfault as in #1 with gimp-2.9.8-r1 

Just before that I upgraded gimp itself I upgraded to stable gcc-7.3.0 but didn't do an emerge -e world before upgrading gimp. If there are unaffacted people out there it is most likely somewhere deep down in the deps of gimp or from one of the subdeps. Will do the emerge -e world soon and report back here. 

The system is an amd64 stable, but on a musl profile.
Comment 11 Pacho Ramos gentoo-dev 2019-04-09 16:40:26 UTC
You have openmp USE enabled, and it is linked to gcc[openmp], maybe this is one of that packages that needs to be rebuilt after a gcc update :/
Comment 12 Pacho Ramos gentoo-dev 2019-04-09 16:49:14 UTC
*** Bug 663430 has been marked as a duplicate of this bug. ***
Comment 13 Pacho Ramos gentoo-dev 2019-04-19 17:07:24 UTC
(In reply to Pacho Ramos from comment #11)
> You have openmp USE enabled, and it is linked to gcc[openmp], maybe this is
> one of that packages that needs to be rebuilt after a gcc update :/

is that fixing the bug for you?