I am not familiar with a compiler flag -optical, though I see that media-tv/kodi recognizes a USE flag optical. According to your pastebin, kodi is crashing in gallium. Please rebuild gallium with debug symbols and reproduce the crash. It may also be useful to show info locals and info args in the faulting thread.[post=8866189]thegrind[/post] wrote:I am using the gentoo repo for kodi git. I had issues with getting it built but I resolved this with using -optical as a flag. The problem I have now is that when I start Kodi I get a segfault and a core dump.
Code: Select all
(gdb) info locals
i = 0
hex_digits = "0123456789abcdef"
i = <optimized out>
(gdb) info args
len = 20
binary = 0x10 <error: Cannot access memory at address 0x10>
buf = 0x7fffffffd968 "\200\326AWUU"Code: Select all
#7 0x00007ffef9a31f14 in ?? () from /usr/lib64/libgallium-25.0.7.soCode: Select all
#12 0x00007ffefedf1920 in gbm_create_device () from /usr/lib64/libgbm.so.1Code: Select all
The program is not being run.
Temporary breakpoint 1 at 0x538798
Starting program: /usr/lib64/kodi/kodi-gbm
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib64/libthread_db.so.1".
Temporary breakpoint 1, 0x0000555555a88798 in main ()
Program not restarted.
Continuing.
[New Thread 0x7ffff029b020 (LWP 2507)]
[New Thread 0x7fffee5df020 (LWP 2508)]
Thread 1 "kodi-gbm" received signal SIGSEGV, Segmentation fault.
0x00007fffeeeb22d4 in mesa_bytes_to_hex (len=20, binary=0x10 <error: Cannot access memory at address 0x10>, buf=0x7fffffffd978 "\200\326AWUU") at ../mesa-99>
40 buf[i] = hex_digits[binary[i >> 1] >> 4];
Continuing.
Unable to fetch general registers: No such process.
[Thread 0x7fffee5df020 (LWP 2508) exited]
[Thread 0x7ffff029b020 (LWP 2507) exited]
Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
The program is not being run.Code: Select all
################ SYSTEM INFO ################
Date: Tue Jul 8 18:36:06 CDT 2025
Kodi Options:
Arch: aarch64
Kernel: Linux 6.12.12-v8-16k+ #1 SMP PREEMPT Sun Feb 9 17:53:04 CST 2025
Release: Gentoo
############## END SYSTEM INFO ##############
############### STACK TRACE #################
=====> Core file: /home/jim/core (2025-07-08 18:35:59.973791463 -0500)
=========================================
[New LWP 2287]
[New LWP 2289]
[New LWP 2288]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib64/libthread_db.so.1".
Core was generated by `/usr/lib64/kodi/kodi-gbm'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007ffebb4c22d4 in ?? () from /usr/lib64/libgallium-25.2.0-devel.so
[Current thread is 1 (Thread 0x7ffec87adf20 (LWP 2287))]
Thread 3 (Thread 0x7ffec0b1b020 (LWP 2288)):
#0 0x00007ffec3e608ec in ?? () from /usr/lib64/libc.so.6
#1 0x00007ffec3e63404 in pthread_cond_wait () from /usr/lib64/libc.so.6
#2 0x0000555561241ddc in ANNOUNCEMENT::CAnnouncementManager::Process() ()
#3 0x0000555560946e7c in CThread::Action() ()
#4 0x0000555560948708 in ?? ()
#5 0x00007ffec415e6dc in ?? () from /usr/lib/gcc/aarch64-unknown-linux-gnu/14/libstdc++.so.6
#6 0x00007ffec3e6418c in ?? () from /usr/lib64/libc.so.6
#7 0x00007ffec3ec664c in ?? () from /usr/lib64/libc.so.6
Thread 2 (Thread 0x7ffeb2a2f020 (LWP 2289)):
#0 0x00007ffec3ec6964 in epoll_pwait () from /usr/lib64/libc.so.6
#1 0x0000555560534be8 in CLibInputHandler::Process() ()
#2 0x0000555560946e7c in CThread::Action() ()
#3 0x0000555560948708 in ?? ()
#4 0x00007ffec415e6dc in ?? () from /usr/lib/gcc/aarch64-unknown-linux-gnu/14/libstdc++.so.6
#5 0x00007ffec3e6418c in ?? () from /usr/lib64/libc.so.6
#6 0x00007ffec3ec664c in ?? () from /usr/lib64/libc.so.6
Thread 1 (Thread 0x7ffec87adf20 (LWP 2287)):
#0 0x00007ffebb4c22d4 in ?? () from /usr/lib64/libgallium-25.2.0-devel.so
#1 0x00007ffebb78ff48 in ?? () from /usr/lib64/libgallium-25.2.0-devel.so
#2 0x00007ffebb78dda8 in ?? () from /usr/lib64/libgallium-25.2.0-devel.so
#3 0x00007ffebb7813a4 in ?? () from /usr/lib64/libgallium-25.2.0-devel.so
#4 0x00007ffebb757710 in ?? () from /usr/lib64/libgallium-25.2.0-devel.so
#5 0x00007ffebb757800 in ?? () from /usr/lib64/libgallium-25.2.0-devel.so
#6 0x00007ffebb0e02f0 in ?? () from /usr/lib64/libgallium-25.2.0-devel.so
#7 0x00007ffebb710ea4 in ?? () from /usr/lib64/libgallium-25.2.0-devel.so
#8 0x00007ffebb0e3f20 in driCreateNewScreen3 () from /usr/lib64/libgallium-25.2.0-devel.so
#9 0x00007ffeb21f302c in ?? () from /usr/lib64/gbm/dri_gbm.so
#10 0x00007ffeb21f38b0 in ?? () from /usr/lib64/gbm/dri_gbm.so
#11 0x00007ffec4df175c in ?? () from /usr/lib64/libgbm.so.1
#12 0x00007ffec4df1920 in gbm_create_device () from /usr/lib64/libgbm.so.1
#13 0x000055556141d3e4 in KODI::WINDOWING::GBM::CGBMUtils::CreateDevice(int) ()
#14 0x000055556141b734 in KODI::WINDOWING::GBM::CWinSystemGbm::InitWindowSystem() ()
#15 0x000055556141e3cc in KODI::WINDOWING::GBM::CWinSystemGbmEGLContext::InitWindowSystemEGL(int, int) ()
#16 0x000055556141ea50 in KODI::WINDOWING::GBM::CWinSystemGbmGLContext::InitWindowSystem() ()
#17 0x0000555560b480a4 in CApplication::CreateGUI() ()
#18 0x00005555609803e8 in XBMC_Run ()
#19 0x0000555560428898 in main ()
############# END STACK TRACE ###############