You are not logged in.

#1 2025-11-07 17:21:09

guiodic
Member
Registered: 2018-02-22
Posts: 50

Gimp crashes at startup

By activating OpenCL in GIMP, I get

Thread 1 "gimp" received signal SIGSEGV, Segmentation fault.
0x00007fffd3416227 in ?? () from /usr/lib/libigc.so.2

All ok if OpenCL is disabled.

Maybe Gimp should be rebuilded? Or GEGL? Or is it a GIMP bug?

Last edited by guiodic (2025-11-07 17:25:24)

Offline

#2 2025-11-07 18:55:31

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 70,981

Offline

#3 2025-11-09 14:22:46

guiodic
Member
Registered: 2018-02-22
Posts: 50

Re: Gimp crashes at startup

Nome                      : gc
Versione                  : 8.2.10-2
Descrizione               : A garbage collector for C and C++
Architettura              : x86_64

Offline

#4 2025-11-09 15:06:12

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 70,981

Re: Gimp crashes at startup

Do you have a better backtrace that isn't just the last stack position and ideally using https://wiki.archlinux.org/title/Debuginfod ?

Offline

#5 2025-11-09 19:20:55

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,248

Re: Gimp crashes at startup

guiodic wrote:

Nome                      : gc
Versione                  : 8.2.10-2
Descrizione               : A garbage collector for C and C++
Architettura              : x86_64

https://bbs.archlinux.org/viewtopic.php?id=57855'

Picking 4 lines to post doesn't help.

Offline

#6 2025-11-10 20:00:19

guiodic
Member
Registered: 2018-02-22
Posts: 50

Re: Gimp crashes at startup

Scimmia wrote:
guiodic wrote:

Nome                      : gc
Versione                  : 8.2.10-2
Descrizione               : A garbage collector for C and C++
Architettura              : x86_64

https://bbs.archlinux.org/viewtopic.php?id=57855'

Picking 4 lines to post doesn't help.

Nome                      : gc
Versione                  : 8.2.10-2
Descrizione               : A garbage collector for C and C++
Architettura              : x86_64
URL                       : https://www.hboehm.info/gc/
Licenze                   : LicenseRef-GC  MIT
Gruppi                    : Nessuno
Fornisce                  : Nessuno
Dipenda da                : gcc-libs
Dipendenze opzionali      : Nessuno
Richiesto da              : guile  inkscape
Opzionale per             : Nessuno
Conflitti con             : Nessuno
Sostituisce               : Nessuno
Spazio richiesto          : 781,23 KiB
Pacchettizzatore          : Frederik Schwan <freswa@archlinux.org>
Data di creazione         : mer 22 ott 2025, 19:28:23
Data di installazione     : gio 23 ott 2025, 10:27:22
Motivo dell'installazione : Installato come dipendenza di un altro pacchetto
Script di install         : No
Convalidato da            : Firma

gc: 81 file totali, 0 file alterati

Now that you know the licence for the package, you'll surely understand how to fix the crash, right?

Offline

#7 2025-11-10 20:04:56

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 70,981

Re: Gimp crashes at startup

The line he was looking (and I also somewhat asking) for was

gc: 81 file totali, 0 file alterati

Please avoid bloating the thread with full quotes of previous posts and then

seth wrote:

Do you have a better backtrace that isn't just the last stack position and ideally using https://wiki.archlinux.org/title/Debuginfod ?

Offline

#8 2025-11-10 20:33:40

guiodic
Member
Registered: 2018-02-22
Posts: 50

Re: Gimp crashes at startup

Do you have a better backtrace that isn't just the last stack position and ideally using https://wiki.archlinux.org/title/Debuginfod ?

Starting program: /usr/bin/gimp 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7ffff1a446c0 (LWP 167930)]
[New Thread 0x7ffff09016c0 (LWP 167931)]
[New Thread 0x7fffebfff6c0 (LWP 167932)]
[New Thread 0x7fffeb7fe6c0 (LWP 167933)]
[New Thread 0x7fffeaffd6c0 (LWP 167934)]
[New Thread 0x7fffea7fc6c0 (LWP 167935)]
[New Thread 0x7fffe9ffb6c0 (LWP 167936)]
[New Thread 0x7fffe97fa6c0 (LWP 167937)]
[New Thread 0x7fffe6f006c0 (LWP 167938)]

Thread 1 "gimp" received signal SIGSEGV, Segmentation fault.
0x00007fffd32d4227 in IGC::SOALayoutChecker::visitBitCastInst (this=this@entry=0x7fffffff7dd0, 
    BI=...)
    at /usr/src/debug/intel-graphics-compiler/intel-graphics-compiler-2.20.3/IGC/Compiler/CISACodeGen/LowerGEPForPrivMem.cpp:524
524       Type *baseT = GetBaseType(IGCLLVM::getNonOpaquePtrEltTy(BI.getType()), true);

Offline

#9 2025-11-10 20:52:41

guiodic
Member
Registered: 2018-02-22
Posts: 50

Re: Gimp crashes at startup

If I unset GEGL_USE_OPENCL=gpu, Gimp starts.
Then, it seems a bug in GEGL with the new intel opencl drivers.

Offline

#10 2025-11-10 20:54:57

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 70,981

Re: Gimp crashes at startup

Yup.
The backtrace is gonna be much longer than that, can you post the rest of it?

Offline

#11 2025-11-10 20:57:21

guiodic
Member
Registered: 2018-02-22
Posts: 50

Re: Gimp crashes at startup

seth wrote:

Yup.
The backtrace is gonna be much longer than that, can you post the rest of it?

gdb only gives this after downloading the symbols.

Offline

#12 2025-11-10 20:59:26

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 70,981

Re: Gimp crashes at startup

It uses a pager, have you tried to move up/down w/ the arrow or page keys?

Offline

#13 2025-11-10 21:03:56

guiodic
Member
Registered: 2018-02-22
Posts: 50

Re: Gimp crashes at startup

seth wrote:

It uses a pager, have you tried to move up/down w/ the arrow or page keys?

I'm stupid, but not that stupid.

Offline

#14 2025-11-10 21:07:46

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 70,981

Re: Gimp crashes at startup

You're looking at the stored coredump there?
And that's the *entire* output when you enter

thread apply all backtrace full

into gdb???

Offline

#15 2025-11-10 21:20:21

guiodic
Member
Registered: 2018-02-22
Posts: 50

Re: Gimp crashes at startup

seth wrote:

You're looking at the stored coredump there?
And that's the *entire* output when you enter

thread apply all backtrace full

into gdb???

No, that's what comes out after `run` in gdb. But I'm not at my computer right now, so I'll post the entire coredump tomorrow when I get back to my PC.

I doubt Arch can do anything about it, though, as it's probably an upstream issue.

Offline

#16 2025-11-10 21:23:27

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 70,981

Re: Gimp crashes at startup

The longer trace should make it easier (also for the upstream devs)  to spot the cause or an existing bug.

Offline

Board footer

Powered by FluxBB