Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 708412 - media-gfx/gimp-2.10.14 - src_compile(): Segmentation fault in GEGL_USE_OPENCL=no GEGL_SWAP=ram /usr/bin/gegl-0.4 ../../icons/Symbolic/64/gimp-frame.png -o 64/gimp-frame.png -- gegl:invert-gamma
Summary: media-gfx/gimp-2.10.14 - src_compile(): Segmentation fault in GEGL_USE_OPENCL...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: Normal normal (vote)
Assignee: Sergey Torokhov
URL:
Whiteboard:
Keywords:
Depends on: 730082
Blocks: 685624
  Show dependency tree
 
Reported: 2020-02-05 20:28 UTC by ernsteiswuerfel
Modified: 2020-07-05 08:41 UTC (History)
2 users (show)

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


Attachments
build.log (gimp-2.10.14:20200205-201627.log,227.25 KB, text/plain)
2020-02-05 20:28 UTC, ernsteiswuerfel
Details
emerge --info (file_708412.txt,5.91 KB, text/plain)
2020-02-05 20:29 UTC, ernsteiswuerfel
Details
build.log (2.10.18-r1, ppc) (gimp-2.10.18-r1:20200628-234649.log.xz,95.13 KB, application/x-xz)
2020-06-29 01:07 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2020-02-05 20:28:21 UTC
Created attachment 612018 [details]
build.log

[...]
mkdir -p `dirname 48/gimp-text-layer.png`; GEGL_USE_OPENCL=no GEGL_SWAP=ram /usr/bin/gegl-0.4 ../../icons/Symbolic/48/gimp-text-layer.png -o 48/gimp-text-layer.png -- gegl:invert-gamma
mkdir -p `dirname 48/gimp-wilber.png`; GEGL_USE_OPENCL=no GEGL_SWAP=ram /usr/bin/gegl-0.4 ../../icons/Symbolic/48/gimp-wilber.png -o 48/gimp-wilber.png -- gegl:invert-gamma
mkdir -p `dirname 64/dialog-information.png`; GEGL_USE_OPENCL=no GEGL_SWAP=ram /usr/bin/gegl-0.4 ../../icons/Symbolic/64/dialog-information.png -o 64/dialog-information.png -- gegl:invert-gamma
mkdir -p `dirname 64/gimp-frame.png`; GEGL_USE_OPENCL=no GEGL_SWAP=ram /usr/bin/gegl-0.4 ../../icons/Symbolic/64/gimp-frame.png -o 64/gimp-frame.png -- gegl:invert-gamma
/bin/sh: line 1: 21924 Segmentation fault      (core dumped) GEGL_USE_OPENCL=no GEGL_SWAP=ram /usr/bin/gegl-0.4 ../../icons/Symbolic/64/gimp-frame.png -o 64/gimp-frame.png -- gegl:invert-gamma
make[3]: *** [Makefile:2410: 64/gimp-frame.png] Error 139
make[3]: Leaving directory '/var/tmp/portage/media-gfx/gimp-2.10.14/work/gimp-2.10.14/icons/Symbolic-Inverted'
make[2]: *** [Makefile:716: all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-gfx/gimp-2.10.14/work/gimp-2.10.14/icons'
make[1]: *** [Makefile:851: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/media-gfx/gimp-2.10.14/work/gimp-2.10.14'
make: *** [Makefile:752: all] Error 2
 * ERROR: media-gfx/gimp-2.10.14::gentoo failed (compile phase):
 *   emake failed

Despite gimp, gegl and babl are built with debugsysms and installsources the stack trace is not very informative...

           PID: 25362 (gegl-0.4)
           UID: 250 (portage)
           GID: 250 (portage)
        Signal: 11 (SEGV)
     Timestamp: Wed 2020-02-05 21:20:56 CET (5min ago)
  Command Line: /usr/bin/gegl-0.4 ../../icons/Symbolic/64/gimp-frame.png -o 64/gimp-frame.png -- gegl:invert-gamma
    Executable: /usr/bin/gegl-0.4
 Control Group: /user.slice/user-1000.slice/session-c2.scope
          Unit: session-c2.scope
         Slice: user-1000.slice
       Session: c2
     Owner UID: 1000 (ef)
       Boot ID: ab3040dcd3874a7386fd76ef564120d9
    Machine ID: 3f42a8335be6dabaa20761d55be9bcb7
      Hostname: T1000
       Storage: /var/lib/systemd/coredump/core.gegl-0\x2e4.250.ab3040dcd3874a7386fd76ef564120d9.25362.1580934056000000000000.lz4
       Message: Process 25362 (gegl-0.4) of user 250 dumped core.
                
                Stack trace of thread 21924:
                #0  0x00000000ffb83fec n/a (n/a + 0x0)

GNU gdb (Gentoo 8.3.1 vanilla) 8.3.1
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "powerpc-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.gentoo.org/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/gegl-0.4...
Reading symbols from /usr/lib/debug//usr/bin/gegl-0.4.debug...
[New LWP 21924]
[New LWP 21953]
[New LWP 21948]
[New LWP 21931]
[New LWP 21944]
[New LWP 21940]
[New LWP 21935]
[New LWP 21928]
[New LWP 21950]
[New LWP 21949]
[New LWP 21946]
[New LWP 21943]
[New LWP 21945]
[New LWP 21951]
[New LWP 21933]
[New LWP 21936]
[New LWP 21938]
[New LWP 21927]
[New LWP 21930]
[New LWP 21926]
[New LWP 21952]
[New LWP 21947]
[New LWP 21937]
[New LWP 21942]
[New LWP 21939]
[New LWP 21955]
[New LWP 21932]
[New LWP 21934]
[New LWP 21929]
[New LWP 21925]
[New LWP 21941]
[New LWP 21954]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
Core was generated by `/usr/bin/gegl-0.4 ../../icons/Symbolic/64/gimp-frame.png -o 64/gimp-frame.png -'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0xffb83fec in ?? ()
[Current thread is 1 (Thread 0xf79c2010 (LWP 21924))]
Comment 1 ernsteiswuerfel archtester 2020-02-05 20:29:02 UTC
Created attachment 612020 [details]
emerge --info
Comment 2 ernsteiswuerfel archtester 2020-03-08 14:04:27 UTC
Still the same for gimp-2.10.18-r1:

[...]
mkdir -p `dirname 64/dialog-information.png` && GEGL_USE_OPENCL=no GEGL_SWAP=ram /usr/bin/gegl-0.4 ../../icons/Symbolic/64/dialog-information.png -o 64/dialog-information.png -- cast-format input-format="R'G'B'A float" output-format="RGBA float" brightness-contrast contrast=1.5 cast-format input-format="RGBA float" output-format="R'G'B'A float"
mkdir -p `dirname 64/gimp-frame.png` && GEGL_USE_OPENCL=no GEGL_SWAP=ram /usr/bin/gegl-0.4 ../../icons/Symbolic/64/gimp-frame.png -o 64/gimp-frame.png -- cast-format input-format="R'G'B'A float" output-format="RGBA float" brightness-contrast contrast=1.5 cast-format input-format="RGBA float" output-format="R'G'B'A float"
make[3]: *** [Makefile:2437: 64/gimp-frame.png] Segmentation fault (core dumped)
make[3]: Leaving directory '/var/tmp/portage/media-gfx/gimp-2.10.18-r1/work/gimp-2.10.18/icons/Symbolic-High-Contrast'
make[2]: *** [Makefile:720: all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-gfx/gimp-2.10.18-r1/work/gimp-2.10.18/icons'
make[1]: *** [Makefile:853: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/media-gfx/gimp-2.10.18-r1/work/gimp-2.10.18'
make: *** [Makefile:754: all] Error 2
 * ERROR: media-gfx/gimp-2.10.18-r1::gentoo failed (compile phase):
 *   emake failed
Comment 3 Sergey Torokhov 2020-03-17 18:23:37 UTC
Sorry for long silence. I really don't know how to manage bugs on archs differs from amd64. At least I certainly need to address it to upstream.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-06-27 02:19:55 UTC
(In reply to Sergey Torokhov from comment #3)
> Sorry for long silence. I really don't know how to manage bugs on archs
> differs from amd64. At least I certainly need to address it to upstream.

ernsteiswuerfel, would you mind reporting upstream?
Comment 5 ernsteiswuerfel archtester 2020-06-28 15:58:48 UTC
(In reply to Sam James (sec padawan) from comment #4)
> (In reply to Sergey Torokhov from comment #3)
> > Sorry for long silence. I really don't know how to manage bugs on archs
> > differs from amd64. At least I certainly need to address it to upstream.
> 
> ernsteiswuerfel, would you mind reporting upstream?
Best thing to do probably would be to build gimp + babl + gegl from latest git stable versions, check if the issue persists and then report it there and all babl + gegl bugs found on the way. I will tackle this, but it will take quite some time I gues...

Same for my goode olde Pentium4 to have a comparison which bugs really are ppc32 BE specific and which ones are 'generic'.
Comment 6 ernsteiswuerfel archtester 2020-06-29 01:07:21 UTC
Created attachment 647026 [details]
build.log (2.10.18-r1, ppc)

Well, this was easier than anticipated... Turned out the problem was gegl, but whatever the problem was current gegl 0.4.24 is not affected.

So the solution is simple: Bump gegl to 0.4.24 and babl to 0.1.78 which makes gimp-2.10.18-r1 live again on ppc. \o/
Comment 7 Sergey Torokhov 2020-06-29 09:01:18 UTC
Thank you for problem investigation 

Now wanting for pull request merging: 
https://github.com/gentoo/gentoo/pull/16199
Comment 8 Sergey Torokhov 2020-07-05 08:41:01 UTC
This mentioned above pull request was merged and gegl and babl were updated to 0.4.24 and 0.1.78 respectively. Also gimp was updated to version 2.10.20.

Please reopen if with updated gegl and babl the issue is reproduced again.