HarbourMasters / 2ship2harkinian

Creative Commons Zero v1.0 Universal
776 stars 64 forks source link

Segfault on Start on Fedora 40, Ubuntu 24.04 #519

Open rehashedsalt opened 4 months ago

rehashedsalt commented 4 months ago

Description of the crash:

Segmentation fault with log dumped to STDOUT/STDERR. A "2ship has crashed" window pops up but no main rendering window does.

Can you reproduce? If so please list the steps:

Screenshots or videos:

N/A

Logs:

[2024-05-26 23:54:49.105] [/home/runner/work/nevergonnagiveyouup/nevergonnagiveyouup/libultraship/src/resource/archive/ArchiveManager.cpp:152] [info] Reading archive: /var/home/salt/Programs/2ship2harkinian/mm.o2r
[2024-05-26 23:54:49.270] [/home/runner/work/nevergonnagiveyouup/nevergonnagiveyouup/libultraship/src/resource/archive/ArchiveManager.cpp:182] [info] Adding Archive /var/home/salt/Programs/2ship2harkinian/mm.o2r to Archive Manager
[2024-05-26 23:54:49.284] [/home/runner/work/nevergonnagiveyouup/nevergonnagiveyouup/libultraship/src/resource/archive/ArchiveManager.cpp:152] [info] Reading archive: /tmp/.mount_2s.app2V0OVf/usr/bin/2ship.o2r
[2024-05-26 23:54:49.286] [/home/runner/work/nevergonnagiveyouup/nevergonnagiveyouup/libultraship/src/resource/archive/ArchiveManager.cpp:182] [info] Adding Archive /tmp/.mount_2s.app2V0OVf/usr/bin/2ship.o2r to Archive Manager
Failed to initialize OpenGL loader!
[23:54:49.542] [os.cpp:25] [info] Added SDL game controllers from "/tmp/.mount_2s.app2V0OVf/usr/bin/gamecontrollerdb.txt" (327)
[23:54:50.415] [CrashHandler.cpp:72] [critical] Signal: 11
INVALID ACCESS TO STORAGE
Registers:
RAX: 0x0000000000000000
RDI: 0x00005559B0FCB9A0
RSI: 0x00005559AFA83690
RDX: 0x0000000200000003
RCX: 0x00005559AFA83688
R8:  0x01D517802F8A2AA3
R9:  0x00007FFC35412E00
R10: 0x0000000000000002
R11: 0xC05C3B46890C6B02
RSP: 0x00007FFC35412D30
RBX: 0x00005559B0FDF280
RBP: 0x00007FFC35412DC0
R12: 0x00005559B0FDF280
R13: 0x0000000000000000
R14: 0x00007FFC35412DF0
R15: 0x00007FFC35412DB0
RIP: 0x00005559AE83E962
EFL: 0x0000000000010206
Traceback:
1 /lib64/libc.so.6(+0x40710) [0x7f13c8b70710]
2 ImGui_ImplOpenGL3_NewFrame() (+0x22)
3 Ship::Gui::DrawMenu() (+0x112)
4 gfx_start_frame() (+0x82)
5 Graph_StartFrame (+0x342)
6 RunFrame (+0x1C7)
7 Graph_ThreadEntry (+0x17)
8 main (+0x10D)
9 /lib64/libc.so.6(+0x2a088) [0x7f13c8b5a088]
10 __libc_start_main (+0x8B)
11 _start (+0x25)

System Information:

Additional Information:

rehashedsalt commented 4 months ago

Building locally from 8ef6c0... tries to work? The game renders at an appropriate framerate, but the audio is scuffed, sounding like it misses 9/10 samples. Then, after advancing to file select or letting the attract cinematics play out, the game segfaults within a couple seconds.

Sometimes the stacktrace looks like this:

terminate called after throwing an instance of 'std::system_error'
  what():  Invalid argument
[00:38:09.038] [CrashHandler.cpp:72] [critical] Signal: 6
ABORT
Registers:
RAX: 0x0000000000000000
RDI: 0x0000000000086701
RSI: 0x0000000000086701
RDX: 0x0000000000000006
RCX: 0x00007F8BB60DD144
R8:  0x0000000000000000
R9:  0x00007FFD52C661F0
R10: 0x0000000000000008
R11: 0x0000000000000246
RSP: 0x00007FFD52C66650
RBX: 0x0000000000086701
RBP: 0x00007FFD52C66690
R12: 0x00007F8BB5A11880
R13: 0x00007F8BB65A0170
R14: 0x0000000000000006
R15: 0x0000000002C21858
RIP: 0x00007F8BB60DD144
EFL: 0x0000000000000246
Traceback:
1 /lib64/libc.so.6(+0x40710) [0x7f8bb6085710]
2 /lib64/libc.so.6(+0x98144) [0x7f8bb60dd144]
3 gsignal (+0x1E)
4 abort (+0xDF)
5 /lib64/libstdc++.so.6(+0xa5d99) [0x7f8bb63e7d99]
6 /lib64/libstdc++.so.6(+0xb7b7c) [0x7f8bb63f9b7c]
7 std::unexpected() (+0x0)
8 /lib64/libstdc++.so.6(+0xb7e08) [0x7f8bb63f9e08]
9 std::__throw_system_error(int) (+0x83)
10 std::mutex::lock() (+0x2B)
11 std::unique_lock<std::mutex>::lock() (+0x47)
12 std::unique_lock<std::mutex>::unique_lock(std::mutex&) (+0x37)
13 Graph_ProcessGfxCommands (+0x2C7)
14 Graph_ExecuteAndDraw (+0x438)
15 Graph_Update (+0x3A)
16 RunFrame (+0x10F)
17 Graph_ThreadEntry (+0x18)
18 main (+0x104)
19 /lib64/libc.so.6(+0x2a088) [0x7f8bb606f088]
20 __libc_start_main (+0x8B)
21 _start (+0x25)

Segmentation fault (core dumped)

But fairly often, it'll look like the audio engine throws up:

[00:42:18.895] [z_demo.c:1581] [info] Cutscene_HandleConditionalTriggers: entrance: 55296, cutsceneIndex: 0xFFF2
File Name scenes/nonmq/Z2_CLOCKTOWER/Z2_CLOCKTOWER_room_00
[00:42:18.905] [GameInteractor.cpp:46] [debug] OnRoomInit: sceneId: 111, roomNum: 0
[00:42:18.906] [GameInteractor.cpp:39] [debug] OnSceneInit: sceneId: 111, spawnNum: 0
[00:42:18.907] [GameInteractor.cpp:122] [debug] OnFlagSet: flagType: 2, flag: 82
[00:42:30.371] [CrashHandler.cpp:72] [critical] Signal: 11
INVALID ACCESS TO STORAGE
Registers:
RAX: 0x95868F88944FA0CC
RDI: 0x0000000000000003
RSI: 0x0000000000000001
RDX: 0x0000000000000042
RCX: 0x0000000002CA90E0
R8:  0x00000000055A5630
R9:  0x000000000643E810
R10: 0x0000000000000000
R11: 0x0000000000000293
RSP: 0x00007FFE96B41C10
RBX: 0x00007FFE96B422A8
RBP: 0x00007FFE96B41C60
R12: 0x0000000000000001
R13: 0x0000000000000000
R14: 0x00007F591DF02000
R15: 0x0000000002C21858
RIP: 0x0000000000E9F814
EFL: 0x0000000000010282
Traceback:
1 /lib64/libc.so.6(+0x40710) [0x7f591d6a2710]
2 AudioSfx_ChooseActiveSfx (+0x258)
3 AudioSfx_ProcessActiveSfx (+0x2E)
4 Audio_Update (+0x7A)
5 Graph_UpdateGame (+0x3D)
6 Graph_Update (+0x27)
7 RunFrame (+0x10F)
8 Graph_ThreadEntry (+0x18)
9 main (+0x104)
10 /lib64/libc.so.6(+0x2a088) [0x7f591d68c088]
11 __libc_start_main (+0x8B)
12 _start (+0x25)

The build and execution environment is a fresh Fedora 40 toolbox mostly following the build instructions from SOH:

toolbox create 2shipbuilder
toolbox enter 2shipbuilder
sudo dnf install gcc gcc-c++ git cmake ninja-build lsb_release SDL2-devel libpng-devel libzip-devel libzip-tools nlohmann-json-devel tinyxml2-devel spdlog-devel boost-devel
git clone https://github.com/HarbourMasters/2ship2harkinian
cd 2ship2harkinian
git checkout 8ef6c0
git submodule update --init
cmake -H. -Bbuild-cmake -GNinja
cmake --build build-cmake --target Generate2ShipOtr
cmake --build build-cmake
cd build-cmake/mm
# Copy your ROM into pwd
./2s2h.elf

This might be a separate, unrelated issue though.

rehashedsalt commented 4 months ago

Alright, this is 100% a dependency issue. If I take the AppImage and extract it with --appimage-extract, I can replicate the issue using the extracted AppImage on my host machine.

But, if I then enter my container I created to build 2ship and execute the extracted AppImage from within that context (fuse doesn't work in a Toolbox), 2ship Just Works. Audio is fine and we no longer segfault at launch (or randomly like I did when building locally).

Just to sanity check, a fresh Fedora 40 toolbox segfaults on start the same as my host, so some step in the process of preparing a fresh Fedora 40 toolbox to build 2ship installs a dependency that isn't present on my host or in the AppImage.

Both my Toolbox and host system are running Fedora 40, so a diff of installed packages was easy to generate:

packages.diff.txt

+ is any package that's in the container that isn't on my host.

cc @briaguya-ai

briaguya-ai commented 4 months ago

not sure what package would do it but i'm thinking it's likely this commit that fixed the issue https://github.com/ocornut/imgui/commit/a3eea8a75a073694df72a31530632804df0001ec

qubitnano commented 4 months ago

I'm also seeing this on Fedora 40 Workstation GNOME Wayland built 2ship using commit b54542494ee4792f94bce5556d24eef01b00ebeb Includes imgui v1.90.6-docking

Game starts with garbled audio when going to the main menu, will load for a few seconds and will lock up. no coredumps. same trackback.

[2024-06-02 14:25:50.596] [/tmp/2ship2harkinian/libultraship/src/resource/archive/ArchiveManager.cpp:152] [info] Reading archive: /tmp/2ship2harkinian/build-cmake/mm/./mm.o2r
[2024-06-02 14:25:50.763] [/tmp/2ship2harkinian/libultraship/src/resource/archive/ArchiveManager.cpp:182] [info] Adding Archive /tmp/2ship2harkinian/build-cmake/mm/./mm.o2r to Archive Manager
[2024-06-02 14:25:50.798] [/tmp/2ship2harkinian/libultraship/src/resource/archive/ArchiveManager.cpp:152] [info] Reading archive: /tmp/2ship2harkinian/build-cmake/mm/2ship.o2r
[2024-06-02 14:25:50.798] [/tmp/2ship2harkinian/libultraship/src/resource/archive/O2rArchive.cpp:28] [trace] Failed to find file version in zip archive  /tmp/2ship2harkinian/build-cmake/mm/2ship.o2r.
[2024-06-02 14:25:50.798] [/tmp/2ship2harkinian/libultraship/src/resource/archive/ArchiveManager.cpp:182] [info] Adding Archive /tmp/2ship2harkinian/build-cmake/mm/2ship.o2r to Archive Manager
[14:25:51.050] [os.cpp:27] [error] Failed add SDL game controller mappings from "./gamecontrollerdb.txt" (Invalid RWops)
[14:25:53.989] [z_demo.c:1581] [info] Cutscene_HandleConditionalTriggers: entrance: 7168, cutsceneIndex: 0xFFFA
[14:25:53.994] [GameInteractor.cpp:126] [debug] OnFlagSet: flagType: 1, flag: 6976
[14:25:53.994] [GameInteractor.cpp:126] [debug] OnFlagSet: flagType: 1, flag: 7040
[14:25:53.994] [GameInteractor.cpp:126] [debug] OnFlagSet: flagType: 1, flag: 7169
[14:25:53.994] [GameInteractor.cpp:126] [debug] OnFlagSet: flagType: 1, flag: 7170
[14:25:53.994] [GameInteractor.cpp:126] [debug] OnFlagSet: flagType: 1, flag: 7172
[14:25:53.994] [GameInteractor.cpp:135] [debug] OnFlagUnset: flagType: 1, flag: 6976
[14:25:53.994] [GameInteractor.cpp:135] [debug] OnFlagUnset: flagType: 1, flag: 7040
[14:25:53.994] [GameInteractor.cpp:135] [debug] OnFlagUnset: flagType: 1, flag: 7169
[14:25:53.994] [GameInteractor.cpp:135] [debug] OnFlagUnset: flagType: 1, flag: 7170
[14:25:53.994] [GameInteractor.cpp:135] [debug] OnFlagUnset: flagType: 1, flag: 7172
[14:25:53.995] [GameInteractor.cpp:46] [debug] OnRoomInit: sceneId: 8, roomNum: 0
[14:25:53.997] [GameInteractor.cpp:39] [debug] OnSceneInit: sceneId: 8, spawnNum: 0
[14:26:02.301] [CrashHandler.cpp:72] [critical] Signal: 11
INVALID ACCESS TO STORAGE
Registers:
RAX: 0x0AA40C080D570E93
RDI: 0x0000000000000004
RSI: 0x00000000000000F7
RDX: 0x0000000000000000
RCX: 0x0000000002C96740
R8:  0x0000000004FF4010
R9:  0x0000000000000007
R10: 0x0000000008497100
R11: 0x366A1A23398319ED
RSP: 0x00007FFE8CB73F60
RBX: 0x00007FFE8CB745F8
RBP: 0x00007FFE8CB73FB0
R12: 0x0000000000000001
R13: 0x0000000000000000
R14: 0x00007F3B7E862000
R15: 0x0000000002C0E858
RIP: 0x0000000000E98AE6
EFL: 0x0000000000010202
Traceback:
1 /lib64/libc.so.6(+0x40710) [0x7f3b7df70710]
2 AudioSfx_ChooseActiveSfx (+0x258)
3 AudioSfx_ProcessActiveSfx (+0x2E)
4 Audio_Update (+0x7A)
5 Graph_UpdateGame (+0x3D)
6 Graph_Update (+0x27)
7 RunFrame (+0x10F)
8 Graph_ThreadEntry (+0x18)
9 main (+0x104)
10 /lib64/libc.so.6(+0x2a088) [0x7f3b7df5a088]
11 __libc_start_main (+0x8B)
12 _start (+0x25)
qubitnano commented 4 months ago

I got this with gdb. Just start the game and don't touch anything, the sound is distorted and it will crash a few seconds during the title cutscene.

(gdb) run
Starting program: /home/x570/git/2ship2harkinian/build-cmake/mm/2s2h.elf
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7ffff6a006c0 (LWP 1716190)]
[2024-06-03 05:02:52.723] [/home/x570/git/2ship2harkinian/libultraship/src/resource/archive/ArchiveManager.cpp:152] [info] Reading archive: /home/x570/git/2ship2harkinian/build-cmake/mm/./mm.o2r
[2024-06-03 05:02:53.202] [/home/x570/git/2ship2harkinian/libultraship/src/resource/archive/ArchiveManager.cpp:182] [info] Adding Archive /home/x570/git/2ship2harkinian/build-cmake/mm/./mm.o2r to Archive Manager
[2024-06-03 05:02:53.265] [/home/x570/git/2ship2harkinian/libultraship/src/resource/archive/ArchiveManager.cpp:152] [info] Reading archive: /home/x570/git/2ship2harkinian/build-cmake/mm/2ship.o2r
[2024-06-03 05:02:53.266] [/home/x570/git/2ship2harkinian/libultraship/src/resource/archive/O2rArchive.cpp:28] [trace] Failed to find file version in zip archive  /home/x570/git/2ship2harkinian/build-cmake/mm/2ship.o2r.
[2024-06-03 05:02:53.266] [/home/x570/git/2ship2harkinian/libultraship/src/resource/archive/ArchiveManager.cpp:182] [info] Adding Archive /home/x570/git/2ship2harkinian/build-cmake/mm/2ship.o2r to Archive Manager
[New Thread 0x7ffff60006c0 (LWP 1716282)]
[New Thread 0x7ffff56006c0 (LWP 1716283)]
[New Thread 0x7ffff4c006c0 (LWP 1716284)]
[New Thread 0x7fffefe006c0 (LWP 1716285)]
[New Thread 0x7fffef4006c0 (LWP 1716286)]
[New Thread 0x7fffeea006c0 (LWP 1716287)]
[New Thread 0x7fffee0006c0 (LWP 1716288)]
[New Thread 0x7fffed6006c0 (LWP 1716290)]
[New Thread 0x7fffecc006c0 (LWP 1716291)]
[New Thread 0x7fffec2006c0 (LWP 1716293)]
[New Thread 0x7fffeb8006c0 (LWP 1716294)]
[New Thread 0x7fffeae006c0 (LWP 1716295)]
[New Thread 0x7fffe10006c0 (LWP 1716439)]
[New Thread 0x7fffdbe006c0 (LWP 1716440)]
[New Thread 0x7fffdb4006c0 (LWP 1716446)]
[New Thread 0x7fffdaa006c0 (LWP 1716447)]
[New Thread 0x7fffda0006c0 (LWP 1716448)]
[New Thread 0x7fffd96006c0 (LWP 1716449)]
[New Thread 0x7fffd8c006c0 (LWP 1716451)]
[New Thread 0x7fffd3e006c0 (LWP 1716452)]
[New Thread 0x7fffd34006c0 (LWP 1716453)]
[New Thread 0x7fffd2a006c0 (LWP 1716459)]
[New Thread 0x7fffeeb206c0 (LWP 1716462)]
[New Thread 0x7fffd20006c0 (LWP 1716469)]
[New Thread 0x7fffd14006c0 (LWP 1716497)]
[05:02:54.481] [os.cpp:27] [error] Failed add SDL game controller mappings from "./gamecontrollerdb.txt" (Invalid RWops)
[05:02:57.221] [z_demo.c:1581] [info] Cutscene_HandleConditionalTriggers: entrance: 7168, cutsceneIndex: 0xFFFA
[05:02:57.224] [GameInteractor.cpp:126] [debug] OnFlagSet: flagType: 1, flag: 6976
File Name scenes/nonmq/SPOT00/SPOT00_room_00
[05:02:57.224] [GameInteractor.cpp:126] [debug] OnFlagSet: flagType: 1, flag: 7040
[05:02:57.224] [GameInteractor.cpp:126] [debug] OnFlagSet: flagType: 1, flag: 7169
[05:02:57.224] [GameInteractor.cpp:126] [debug] OnFlagSet: flagType: 1, flag: 7170
[05:02:57.224] [GameInteractor.cpp:126] [debug] OnFlagSet: flagType: 1, flag: 7172
[05:02:57.224] [GameInteractor.cpp:135] [debug] OnFlagUnset: flagType: 1, flag: 6976
[05:02:57.224] [GameInteractor.cpp:135] [debug] OnFlagUnset: flagType: 1, flag: 7040
[05:02:57.224] [GameInteractor.cpp:135] [debug] OnFlagUnset: flagType: 1, flag: 7169
[05:02:57.224] [GameInteractor.cpp:135] [debug] OnFlagUnset: flagType: 1, flag: 7170
[05:02:57.224] [GameInteractor.cpp:135] [debug] OnFlagUnset: flagType: 1, flag: 7172
[05:02:57.225] [GameInteractor.cpp:46] [debug] OnRoomInit: sceneId: 8, roomNum: 0
[05:02:57.225] [GameInteractor.cpp:39] [debug] OnSceneInit: sceneId: 8, spawnNum: 0
[05:03:20.221] [z_demo.c:1581] [info] Cutscene_HandleConditionalTriggers: entrance: 55296, cutsceneIndex: 0xFFF2
File Name scenes/nonmq/Z2_CLOCKTOWER/Z2_CLOCKTOWER_room_00
[05:03:20.227] [GameInteractor.cpp:46] [debug] OnRoomInit: sceneId: 111, roomNum: 0
[05:03:20.228] [GameInteractor.cpp:39] [debug] OnSceneInit: sceneId: 111, spawnNum: 0
[05:03:20.228] [GameInteractor.cpp:126] [debug] OnFlagSet: flagType: 2, flag: 82
[New Thread 0x7fffafc006c0 (LWP 1717031)]

Thread 1 "2s2h.elf" received signal SIGSEGV, Segmentation fault.
AudioSfx_ChooseActiveSfx (bankId=3 '\003') at /home/x570/git/2ship2harkinian/mm/src/audio/sfx.c:431
431                entryPosY = *entry->posY * 1;
(gdb) bt
#0  AudioSfx_ChooseActiveSfx (bankId=3 '\003') at /home/x570/git/2ship2harkinian/mm/src/audio/sfx.c:431
#1  0x0000000000e99c1a in AudioSfx_ProcessActiveSfx () at /home/x570/git/2ship2harkinian/mm/src/audio/sfx.c:886
#2  0x0000000000e78099 in Audio_Update () at /home/x570/git/2ship2harkinian/mm/src/audio/code_8019AF00.c:3659
#3  0x0000000000eaa066 in Graph_UpdateGame (gameState=0x7fffb8a01630) at /home/x570/git/2ship2harkinian/mm/src/code/graph.c:247
#4  0x0000000000eaa54e in Graph_Update (gfxCtx=0x2da0f20 <runFrameContext>, gameState=0x7fffb8a01630) at /home/x570/git/2ship2harkinian/mm/src/code/graph.c:352
#5  0x0000000000eaa704 in RunFrame () at /home/x570/git/2ship2harkinian/mm/src/code/graph.c:415
#6  0x0000000000eaa79b in Graph_ThreadEntry (arg0=0x0) at /home/x570/git/2ship2harkinian/mm/src/code/graph.c:437
#7  0x0000000000eaba5d in main (argc=1, argv=0x7fffffff4e38) at /home/x570/git/2ship2harkinian/mm/src/code/main.c:118
(gdb) bt full
#0  AudioSfx_ChooseActiveSfx (bankId=3 '\003') at /home/x570/git/2ship2harkinian/mm/src/audio/sfx.c:431
        numChosenSfx = 0 '\000'
        numChannels = 3 '\003'
        entryIndex = 66 'B'
        i = 3 '\003'
        j = 2 '\002'
        k = 0 '\000'
        sfxImportance = 4 '\004'
        needNewSfx = 1 '\001'
        chosenEntryIndex = 255 '\377'
        pad = <optimized out>
        entry = 0x2c9a430 <sSfxRequests+2128>
        chosenSfx = {{priority = 2147483647, entryIndex = 255 '\377'}, {priority = 2147483647, entryIndex = 255 '\377'}, {priority = 2147483647, entryIndex = 255 '\377'}}
        activeSfx = 0x2c9c440 <gActiveSfx+64>
        entryPosY = 6.33588155e-37
        entryPosX = 2.80259693e-45
#1  0x0000000000e99c1a in AudioSfx_ProcessActiveSfx () at /home/x570/git/2ship2harkinian/mm/src/audio/sfx.c:886
        bankId = 3 '\003'
#2  0x0000000000e78099 in Audio_Update () at /home/x570/git/2ship2harkinian/mm/src/audio/code_8019AF00.c:3659
No locals.
#3  0x0000000000eaa066 in Graph_UpdateGame (gameState=0x7fffb8a01630) at /home/x570/git/2ship2harkinian/mm/src/code/graph.c:247
No locals.
#4  0x0000000000eaa54e in Graph_Update (gfxCtx=0x2da0f20 <runFrameContext>, gameState=0x7fffb8a01630) at /home/x570/git/2ship2harkinian/mm/src/code/graph.c:352
No locals.
#5  0x0000000000eaa704 in RunFrame () at /home/x570/git/2ship2harkinian/mm/src/code/graph.c:415
        freq = 56016544
        gfxCtx = {polyOpaBuffer = 0x5303450, polyXluBuffer = 0x7fffffff48df, unk_8 = "\360H\377\377\377\177\000",
          overlayBuffer = 0x1549005 <std::_Sp_counted_ptr_inplace<std::__future_base::_State_baseV2, std::allocator<void>, (__gnu_cxx::_Lock_policy)2>::_M_destroy()+89>, unk_14 = 4294920432,
          unk_18 = "\377\177\000\000P40\005\000\000\000\000\337H\377\377\377\177\000\000P40\005\000\000\000\000`40\005", msgBuff = {{data8 = 96 '`', data16 = 13408, data32 = 87045216, ptr = 0x5303460}, {
              data8 = 223 '\337', data16 = 18655, data32 = 4294920415, ptr = 0x7fffffff48df}, {data8 = 96 '`', data16 = 13408, data32 = 87045216, ptr = 0x5303460}, {data8 = 96 '`', data16 = 18784,
              data32 = 4294920544, ptr = 0x7fffffff4960}, {data8 = 236 '\354', data16 = 9964, data32 = 13182700, ptr = 0xc926ec <std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release()+162>}, {
              data8 = 0 '\000', data16 = 0, data32 = 0, ptr = 0x0}, {data8 = 80 'P', data16 = 13392, data32 = 87045200, ptr = 0x5303450}, {data8 = 48 '0', data16 = 18736, data32 = 4294920496,
              ptr = 0x7fffffff4930}}, schedMsgQ = 0x153a0ac <std::unique_ptr<std::__future_base::_Result_base, std::__future_base::_Result_base::_Deleter>::operator*() const+62>, queue = {mtqueue = 0x1,
            fullqueue = 0x5303468, validCount = -46704, first = 32767, msgCount = 22252417, msg = 0x5303458}, unk_74 = "\001\000\000", task = {next = 0x20ffff4970, state = 32, flags = 16843008,
            framebuffer = 0x7fffffff4980, list = {t = {type = 13196539, flags = 0, ucode_boot = 0x1ffff4990, ucode_boot_size = 4294962720, ucode = 0x2, ucode_size = 87092432, ucode_data = 0x7fffffff49d0,
                ucode_data_size = 31, dram_stack = 0x1, dram_stack_size = 0, output_buff = 0x7fffffff4a00, output_buff_size = 0x7ffff7b022bc <operator new(unsigned long)+28>, data_ptr = 0x1f,
                data_size = 13199043, yield_data_ptr = 0x7fffffff4a00, yield_data_size = 0}, force_structure_alignment = 13196539}, msgQ = 0x1f, msg = {data8 = 176 '\260', data16 = 19376, data32 = 4294921136,
              ptr = 0x7fffffff4bb0}},
          unk_D0 = "\340\3540\005\377\377\377\377\260K\377\377\377\177\000\000PJ\377\377\377\177\000\000\355 \311\000\000\000\000\000\037\000\000\000\000\000\000\000\036\000\000\000\000\000\000\000\370ф\001\000\000\000\000\220\0020\005\000\000\000\000`J\377\377\377\177\000\000\3216\311\000\000\000\000\000\260K\377\377\377\177\000\000 \356\377\377\377\377\377\377\002\000\000\000\000\000\000\000\200\0020\005\000\000\000\000\240J\377\377\377\177\000\000\316=\177\367\377\177\000\000\036\000\000\000\000\000\000\000\177\000\000\000\000\000\000\000\320z\277d\336XZb\220\0020\005\000\000\000\000\037", '\000' <repeats 15 times>, "\320J\377\377\377\177\000\000\305i\312\000\000\000\000\000\360J\377\377\377\177\000\000\037"..., workBuffer = 0x5300290, work = {{size = 140737488309168, start = 0x7fffffff4b30,
              p = 0xc996ec <std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_destroy(unsigned long)+136>, d = 0x1e}, tha = {size = 140737488309168, start = 0x7fffffff4b30,
              head = 0xc996ec <std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_destroy(unsigned long)+136>, tail = 0x1e}}, debugBuffer = 0x7fffffff4bb0, debug = {{size = 0,
              start = 0x7fffffff4b48, p = 0x7fffffff4b20, d = 0x7fffffff4c38}, tha = {size = 0, start = 0x7fffffff4b48, head = 0x7fffffff4b20, tail = 0x7fffffff4c38}},
          unk_1C8 = "0K\377\377\377\177\000\000\213\273M\001\000\000\000\000PK\377\377\377\177\000\0000L\377\377\377\177\000\000PK\377\377\377\177\000\000`\273M\001\000\000\000\000\370ф\001\000\000\000\0000L\377\377\377\177\000\000pK\377\377\377\177\000\000\252\273M\001", '\000' <repeats 12 times>, "0L\377\377\377\177\000\000\000L\377\377\377\177\000\000\326\177M\001\000\000\000\000\200'\300\272\377\177\000\000\240\276V\003\000\000\000\000\200\034W\003\377\377\377\377\240\276V\003\000\000\000\000\320K\377\377\377\177\000\000\214\025F\001\000\000\000\000\220\0020\005\377\377\377\377\240\276V\003", viMode = 0xffffffff0356bea8,
          zbuffer = 0x356bea8, unk_27C = "\360K\377\377\377\177\000\000\025GF\001\000\000\000\000\b9Q\003\377\377\377\377\250\276V\003", overlay = {{size = 56016552, start = 0x100000001, p = 0x200356bf18,
              d = 0x10101ff00000020}, tha = {size = 56016552, start = 0x100000001, head = 0x200356bf18, tail = 0x10101ff00000020}}, polyOpa = {{size = 140737488309296,
              start = 0xc95cfb <std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()+39>, p = 0x356bf10, d = 0x7fffffff4c98}, tha = {size = 140737488309296,
              start = 0xc95cfb <std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()+39>, head = 0x356bf10, tail = 0x7fffffff4c98}}, polyXlu = {{size = 140737488309328,
              start = 0xc93bfc <std::__shared_ptr<Ship::Context, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr()+28>, p = 0x356bf10, d = 0x7fffffff4c90}, tha = {size = 140737488309328,
--Type <RET> for more, q to quit, c to continue without paging--
              start = 0xc93bfc <std::__shared_ptr<Ship::Context, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr()+28>, head = 0x356bf10, tail = 0x7fffffff4c90}}, gfxPoolIdx = 4294921328,
          curFrameBuffer = 0xc93c18 <std::shared_ptr<Ship::Context>::~shared_ptr()+24>, unk_2D0 = "\260\276V\003", viConfigFeatures = 0, unk_2D8 = "\220L", updateViMode = 255 '\377',
          framebufferIndex = 255 '\377', callback = 0x7fffffff4cb0, callbackArg = 0x14e44db <WindowIsRunning()+105>, xScale = 4.06230873e-36, yScale = 0, masterList = 0x4acca90}
        nextOvl = 0x2c3ea80 <gGameStateOverlayTable>
        ovl = <optimized out>
        gameState = <optimized out>
        size = 111232
        pad = {1, 0}
#6  0x0000000000eaa79b in Graph_ThreadEntry (arg0=0x0) at /home/x570/git/2ship2harkinian/mm/src/code/graph.c:437
No locals.
#7  0x0000000000eaba5d in main (argc=1, argv=0x7fffffff4e38) at /home/x570/git/2ship2harkinian/mm/src/code/main.c:118
        fb = <optimized out>
        sysHeap = 140736290881552
        exit = 32767
        msg = 0x3538fe8 <resourceVersions+8>
thread apply all bt ```c (gdb) thread apply all bt Thread 28 (Thread 0x7fffafc006c0 (LWP 1717031) "2s2h.elf:sh1"): #0 0x00007ffff77df919 in __futex_abstimed_wait_common64 (private=0, futex_word=0x4ebfa10, expected=0, op=393, abstime=0x0, cancel=true) at futex-internal.c:57 #1 __futex_abstimed_wait_common (futex_word=futex_word@entry=0x4ebfa10, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87 #2 0x00007ffff77df99f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x4ebfa10, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139 #3 0x00007ffff77e22e9 in __pthread_cond_wait_common (cond=0x4ebf9e8, mutex=, clockid=0, abstime=0x0) at pthread_cond_wait.c:503 #4 ___pthread_cond_wait (cond=0x4ebf9e8, mutex=) at pthread_cond_wait.c:618 #5 0x00007fffe817b8ad in cnd_wait (cond=, mtx=) at ../src/c11/impl/threads_posix.c:135 #6 0x00007fffe815946b in util_queue_thread_func (input=input@entry=0x7fffa808c4f0) at ../src/util/u_queue.c:290 #7 0x00007fffe817b7dc in impl_thrd_routine (p=) at ../src/c11/impl/threads_posix.c:67 #8 0x00007ffff77e31b7 in start_thread (arg=) at pthread_create.c:447 #9 0x00007ffff786539c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 Thread 27 (Thread 0x7fffd14006c0 (LWP 1716497) "2s2h.elf"): #0 0x00007ffff77df919 in __futex_abstimed_wait_common64 (private=0, futex_word=0x2c8a2b4 , expected=0, op=393, abstime=0x0, cancel=true) at futex-internal.c:57 #1 __futex_abstimed_wait_common (futex_word=futex_word@entry=0x2c8a2b4 , expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87 #2 0x00007ffff77df99f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x2c8a2b4 , expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139 #3 0x00007ffff77e22e9 in __pthread_cond_wait_common (cond=0x2c8a288 , mutex=, clockid=0, abstime=0x0) at pthread_cond_wait.c:503 #4 ___pthread_cond_wait (cond=0x2c8a288 , mutex=) at pthread_cond_wait.c:618 #5 0x00007ffff7b26840 in __gthread_cond_wait (__cond=, __mutex=) at /usr/src/debug/gcc-14.1.1-4.fc40.x86_64/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/x86_64-redhat-linux/bits/gthr-default.h:878 #6 std::__condvar::wait (this=, __m=...) at /usr/src/debug/gcc-14.1.1-4.fc40.x86_64/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/bits/std_mutex.h:171 #7 std::condition_variable::wait (this=, __lock=...) at ../../../../../libstdc++-v3/src/c++11/condition_variable.cc:41 #8 0x0000000000c8b6c2 in OTRAudio_Thread () at /home/x570/git/2ship2harkinian/mm/2s2h/BenPort.cpp:336 #9 0x0000000000cb4ae8 in std::__invoke_impl (__f=@0x5309438: 0xc8b68d ) at /usr/include/c++/14/bits/invoke.h:61 #10 0x0000000000cb4a32 in std::__invoke (__fn=@0x5309438: 0xc8b68d ) at /usr/include/c++/14/bits/invoke.h:96 #11 0x0000000000cb4854 in std::thread::_Invoker >::_M_invoke<0ul> (this=0x5309438) at /usr/include/c++/14/bits/std_thread.h:292 #12 0x0000000000cb453a in std::thread::_Invoker >::operator() (this=0x5309438) at /usr/include/c++/14/bits/std_thread.h:299 #13 0x0000000000cb40a2 in std::thread::_State_impl > >::_M_run (this=0x5309430) at /usr/include/c++/14/bits/std_thread.h:244 #14 0x00007ffff7b30524 in std::execute_native_thread_routine (__p=0x5309430) at ../../../../../libstdc++-v3/src/c++11/thread.cc:104 #15 0x00007ffff77e31b7 in start_thread (arg=) at pthread_create.c:447 #16 0x00007ffff786539c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 Thread 26 (Thread 0x7fffd20006c0 (LWP 1716469) "SDLAudioP2"): #0 0x00007ffff77df919 in __futex_abstimed_wait_common64 (private=0, futex_word=0x506eb6c, expected=0, op=393, abstime=0x0, cancel=true) at futex-internal.c:57 #1 __futex_abstimed_wait_common (futex_word=futex_word@entry=0x506eb6c, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87 #2 0x00007ffff77df99f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x506eb6c, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139 #3 0x00007ffff77e22e9 in __pthread_cond_wait_common (cond=0x506eb40, mutex=, clockid=0, abstime=0x0) at pthread_cond_wait.c:503 #4 ___pthread_cond_wait (cond=0x506eb40, mutex=) at pthread_cond_wait.c:618 #5 0x00007fffefe85848 in pa_cond_wait (c=, m=) at ../src/pulsecore/mutex-posix.c:146 #6 0x00007fffefee20e4 in pa_threaded_mainloop_wait (m=0x50665c0) at ../src/pulse/thread-mainloop.c:216 #7 0x00007ffff7ecda05 in PULSEAUDIO_PlayDevice (this=0x5178f70) at /usr/src/debug/SDL2-2.30.3-1.fc40.x86_64/src/audio/pulseaudio/SDL_pulseaudio.c:412 #8 0x00007ffff7dfb7a2 in SDL_RunAudio (userdata=) at /usr/src/debug/SDL2-2.30.3-1.fc40.x86_64/src/audio/SDL_audio.c:788 #9 0x00007ffff7f1cd76 in SDL_RunThread (thread=0x507e880) at /usr/src/debug/SDL2-2.30.3-1.fc40.x86_64/src/thread/SDL_thread.c:292 #10 RunThread (data=0x507e880) at /usr/src/debug/SDL2-2.30.3-1.fc40.x86_64/src/thread/pthread/SDL_systhread.c:76 #11 0x00007ffff77e31b7 in start_thread (arg=) at pthread_create.c:447 #12 0x00007ffff786539c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 --Type for more, q to quit, c to continue without paging-- Thread 25 (Thread 0x7fffeeb206c0 (LWP 1716462) "PulseHotplug"): #0 0x00007ffff77df919 in __futex_abstimed_wait_common64 (private=0, futex_word=0x506eb6c, expected=0, op=393, abstime=0x0, cancel=true) at futex-internal.c:57 #1 __futex_abstimed_wait_common (futex_word=futex_word@entry=0x506eb6c, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87 #2 0x00007ffff77df99f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x506eb6c, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139 #3 0x00007ffff77e22e9 in __pthread_cond_wait_common (cond=0x506eb40, mutex=, clockid=0, abstime=0x0) at pthread_cond_wait.c:503 #4 ___pthread_cond_wait (cond=0x506eb40, mutex=) at pthread_cond_wait.c:618 #5 0x00007fffefe85848 in pa_cond_wait (c=, m=) at ../src/pulsecore/mutex-posix.c:146 #6 0x00007fffefee20e4 in pa_threaded_mainloop_wait (m=0x50665c0) at ../src/pulse/thread-mainloop.c:216 #7 0x00007ffff7ece60d in HotplugThread (data=0x4fffd00) at /usr/src/debug/SDL2-2.30.3-1.fc40.x86_64/src/audio/pulseaudio/SDL_pulseaudio.c:872 #8 0x00007ffff7f1cd76 in SDL_RunThread (thread=0x507e640) at /usr/src/debug/SDL2-2.30.3-1.fc40.x86_64/src/thread/SDL_thread.c:292 #9 RunThread (data=0x507e640) at /usr/src/debug/SDL2-2.30.3-1.fc40.x86_64/src/thread/pthread/SDL_systhread.c:76 #10 0x00007ffff77e31b7 in start_thread (arg=) at pthread_create.c:447 #11 0x00007ffff786539c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 Thread 24 (Thread 0x7fffd2a006c0 (LWP 1716459) "PulseMainloop"): #0 0x00007ffff785772d in __GI___poll (fds=fds@entry=0x7fff90007110, nfds=nfds@entry=2, timeout=timeout@entry=-1) at ../sysdeps/unix/sysv/linux/poll.c:29 #1 0x00007fffefee0ab6 in poll (__timeout=-1, __nfds=2, __fds=0x7fff90007110) at /usr/include/bits/poll2.h:39 #2 poll_func (ufds=0x7fff90007110, nfds=2, timeout=-1, userdata=0x50007a0) at ../src/pulse/thread-mainloop.c:70 #3 0x00007fffefeca424 in pa_mainloop_poll (m=m@entry=0x4ae38a0) at ../src/pulse/mainloop.c:863 #4 0x00007fffefed4d33 in pa_mainloop_iterate (m=m@entry=0x4ae38a0, block=block@entry=1, retval=retval@entry=0x0) at ../src/pulse/mainloop.c:945 #5 0x00007fffefed4df8 in pa_mainloop_run (m=0x4ae38a0, retval=0x0) at ../src/pulse/mainloop.c:963 #6 0x00007fffefee59ff in thread (userdata=0x50665c0) at ../src/pulse/thread-mainloop.c:101 #7 0x00007fffefe898fb in internal_thread_func (userdata=0x5000700) at ../src/pulsecore/thread-posix.c:81 #8 0x00007ffff77e31b7 in start_thread (arg=) at pthread_create.c:447 #9 0x00007ffff786539c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 Thread 23 (Thread 0x7fffd34006c0 (LWP 1716453) "2s2h.elf:gl0"): #0 0x00007ffff77df919 in __futex_abstimed_wait_common64 (private=0, futex_word=0x5108e20, expected=0, op=393, abstime=0x0, cancel=true) at futex-internal.c:57 #1 __futex_abstimed_wait_common (futex_word=futex_word@entry=0x5108e20, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87 #2 0x00007ffff77df99f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x5108e20, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139 #3 0x00007ffff77e22e9 in __pthread_cond_wait_common (cond=0x5108df8, mutex=, clockid=0, abstime=0x0) at pthread_cond_wait.c:503 #4 ___pthread_cond_wait (cond=0x5108df8, mutex=) at pthread_cond_wait.c:618 #5 0x00007fffe817b8ad in cnd_wait (cond=, mtx=) at ../src/c11/impl/threads_posix.c:135 #6 0x00007fffe815946b in util_queue_thread_func (input=input@entry=0x5034a30) at ../src/util/u_queue.c:290 #7 0x00007fffe817b7dc in impl_thrd_routine (p=) at ../src/c11/impl/threads_posix.c:67 #8 0x00007ffff77e31b7 in start_thread (arg=) at pthread_create.c:447 #9 0x00007ffff786539c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 Thread 22 (Thread 0x7fffd3e006c0 (LWP 1716452) "2s2h.elf:gdrv0"): #0 0x00007ffff77df919 in __futex_abstimed_wait_common64 (private=0, futex_word=0x50d4ee0, expected=0, op=393, abstime=0x0, cancel=true) at futex-internal.c:57 #1 __futex_abstimed_wait_common (futex_word=futex_word@entry=0x50d4ee0, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87 #2 0x00007ffff77df99f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x50d4ee0, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139 #3 0x00007ffff77e22e9 in __pthread_cond_wait_common (cond=0x50d4eb8, mutex=, clockid=0, abstime=0x0) at pthread_cond_wait.c:503 #4 ___pthread_cond_wait (cond=0x50d4eb8, mutex=) at pthread_cond_wait.c:618 #5 0x00007fffe817b8ad in cnd_wait (cond=, mtx=) at ../src/c11/impl/threads_posix.c:135 #6 0x00007fffe815946b in util_queue_thread_func (input=input@entry=0x5060670) at ../src/util/u_queue.c:290 --Type for more, q to quit, c to continue without paging-- #7 0x00007fffe817b7dc in impl_thrd_routine (p=) at ../src/c11/impl/threads_posix.c:67 #8 0x00007ffff77e31b7 in start_thread (arg=) at pthread_create.c:447 #9 0x00007ffff786539c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 Thread 21 (Thread 0x7fffd8c006c0 (LWP 1716451) "2s2h.e:traceq0"): #0 0x00007ffff77df919 in __futex_abstimed_wait_common64 (private=0, futex_word=0x5049718, expected=0, op=393, abstime=0x0, cancel=true) at futex-internal.c:57 #1 __futex_abstimed_wait_common (futex_word=futex_word@entry=0x5049718, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87 #2 0x00007ffff77df99f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x5049718, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139 #3 0x00007ffff77e22e9 in __pthread_cond_wait_common (cond=0x50496f0, mutex=, clockid=0, abstime=0x0) at pthread_cond_wait.c:503 #4 ___pthread_cond_wait (cond=0x50496f0, mutex=) at pthread_cond_wait.c:618 #5 0x00007fffe817b8ad in cnd_wait (cond=, mtx=) at ../src/c11/impl/threads_posix.c:135 #6 0x00007fffe815946b in util_queue_thread_func (input=input@entry=0x505e490) at ../src/util/u_queue.c:290 #7 0x00007fffe817b7dc in impl_thrd_routine (p=) at ../src/c11/impl/threads_posix.c:67 #8 0x00007ffff77e31b7 in start_thread (arg=) at pthread_create.c:447 #9 0x00007ffff786539c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 Thread 20 (Thread 0x7fffd96006c0 (LWP 1716449) "2s2h.e:traceq0"): #0 0x00007ffff77df919 in __futex_abstimed_wait_common64 (private=0, futex_word=0x4fa7568, expected=0, op=393, abstime=0x0, cancel=true) at futex-internal.c:57 #1 __futex_abstimed_wait_common (futex_word=futex_word@entry=0x4fa7568, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87 #2 0x00007ffff77df99f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x4fa7568, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139 #3 0x00007ffff77e22e9 in __pthread_cond_wait_common (cond=0x4fa7540, mutex=, clockid=0, abstime=0x0) at pthread_cond_wait.c:503 #4 ___pthread_cond_wait (cond=0x4fa7540, mutex=) at pthread_cond_wait.c:618 #5 0x00007fffe817b8ad in cnd_wait (cond=, mtx=) at ../src/c11/impl/threads_posix.c:135 #6 0x00007fffe815946b in util_queue_thread_func (input=input@entry=0x4fdd530) at ../src/util/u_queue.c:290 #7 0x00007fffe817b7dc in impl_thrd_routine (p=) at ../src/c11/impl/threads_posix.c:67 #8 0x00007ffff77e31b7 in start_thread (arg=) at pthread_create.c:447 #9 0x00007ffff786539c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 Thread 19 (Thread 0x7fffda0006c0 (LWP 1716448) "2s2h.e:traceq0"): #0 0x00007ffff77df919 in __futex_abstimed_wait_common64 (private=0, futex_word=0x4f54378, expected=0, op=393, abstime=0x0, cancel=true) at futex-internal.c:57 #1 __futex_abstimed_wait_common (futex_word=futex_word@entry=0x4f54378, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87 #2 0x00007ffff77df99f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x4f54378, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139 #3 0x00007ffff77e22e9 in __pthread_cond_wait_common (cond=0x4f54350, mutex=, clockid=0, abstime=0x0) at pthread_cond_wait.c:503 #4 ___pthread_cond_wait (cond=0x4f54350, mutex=) at pthread_cond_wait.c:618 #5 0x00007fffe817b8ad in cnd_wait (cond=, mtx=) at ../src/c11/impl/threads_posix.c:135 #6 0x00007fffe815946b in util_queue_thread_func (input=input@entry=0x4f98580) at ../src/util/u_queue.c:290 #7 0x00007fffe817b7dc in impl_thrd_routine (p=) at ../src/c11/impl/threads_posix.c:67 #8 0x00007ffff77e31b7 in start_thread (arg=) at pthread_create.c:447 #9 0x00007ffff786539c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 Thread 18 (Thread 0x7fffdaa006c0 (LWP 1716447) "2s2h.e:sh_opt0"): #0 0x00007ffff77df919 in __futex_abstimed_wait_common64 (private=0, futex_word=0x4ebfbc0, expected=0, op=393, abstime=0x0, cancel=true) at futex-internal.c:57 #1 __futex_abstimed_wait_common (futex_word=futex_word@entry=0x4ebfbc0, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87 #2 0x00007ffff77df99f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x4ebfbc0, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139 #3 0x00007ffff77e22e9 in __pthread_cond_wait_common (cond=0x4ebfb98, mutex=, clockid=0, abstime=0x0) at pthread_cond_wait.c:503 --Type for more, q to quit, c to continue without paging-- #4 ___pthread_cond_wait (cond=0x4ebfb98, mutex=) at pthread_cond_wait.c:618 #5 0x00007fffe817b8ad in cnd_wait (cond=, mtx=) at ../src/c11/impl/threads_posix.c:135 #6 0x00007fffe815946b in util_queue_thread_func (input=input@entry=0x4f44fc0) at ../src/util/u_queue.c:290 #7 0x00007fffe817b7dc in impl_thrd_routine (p=) at ../src/c11/impl/threads_posix.c:67 #8 0x00007ffff77e31b7 in start_thread (arg=) at pthread_create.c:447 #9 0x00007ffff786539c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 Thread 17 (Thread 0x7fffdb4006c0 (LWP 1716446) "2s2h.elf:sh0"): #0 0x00007ffff77df919 in __futex_abstimed_wait_common64 (private=0, futex_word=0x4ebfa14, expected=0, op=393, abstime=0x0, cancel=true) at futex-internal.c:57 #1 __futex_abstimed_wait_common (futex_word=futex_word@entry=0x4ebfa14, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87 #2 0x00007ffff77df99f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x4ebfa14, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139 #3 0x00007ffff77e22e9 in __pthread_cond_wait_common (cond=0x4ebf9e8, mutex=, clockid=0, abstime=0x0) at pthread_cond_wait.c:503 #4 ___pthread_cond_wait (cond=0x4ebf9e8, mutex=) at pthread_cond_wait.c:618 #5 0x00007fffe817b8ad in cnd_wait (cond=, mtx=) at ../src/c11/impl/threads_posix.c:135 #6 0x00007fffe815946b in util_queue_thread_func (input=input@entry=0x4f0be40) at ../src/util/u_queue.c:290 #7 0x00007fffe817b7dc in impl_thrd_routine (p=) at ../src/c11/impl/threads_posix.c:67 #8 0x00007ffff77e31b7 in start_thread (arg=) at pthread_create.c:447 #9 0x00007ffff786539c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 Thread 16 (Thread 0x7fffdbe006c0 (LWP 1716440) "2s2h.el:disk$0"): #0 0x00007ffff77df919 in __futex_abstimed_wait_common64 (private=0, futex_word=0x4f0b1a8, expected=0, op=393, abstime=0x0, cancel=true) at futex-internal.c:57 #1 __futex_abstimed_wait_common (futex_word=futex_word@entry=0x4f0b1a8, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87 #2 0x00007ffff77df99f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x4f0b1a8, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139 #3 0x00007ffff77e22e9 in __pthread_cond_wait_common (cond=0x4f0b180, mutex=, clockid=0, abstime=0x0) at pthread_cond_wait.c:503 #4 ___pthread_cond_wait (cond=0x4f0b180, mutex=) at pthread_cond_wait.c:618 #5 0x00007fffe817b8ad in cnd_wait (cond=, mtx=) at ../src/c11/impl/threads_posix.c:135 #6 0x00007fffe815946b in util_queue_thread_func (input=input@entry=0x4f0bb00) at ../src/util/u_queue.c:290 #7 0x00007fffe817b7dc in impl_thrd_routine (p=) at ../src/c11/impl/threads_posix.c:67 #8 0x00007ffff77e31b7 in start_thread (arg=) at pthread_create.c:447 #9 0x00007ffff786539c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 Thread 15 (Thread 0x7fffe10006c0 (LWP 1716439) "2s2h.elf:cs0"): #0 0x00007ffff77df919 in __futex_abstimed_wait_common64 (private=0, futex_word=0x4ebe7c8, expected=0, op=393, abstime=0x0, cancel=true) at futex-internal.c:57 #1 __futex_abstimed_wait_common (futex_word=futex_word@entry=0x4ebe7c8, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87 #2 0x00007ffff77df99f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x4ebe7c8, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139 #3 0x00007ffff77e22e9 in __pthread_cond_wait_common (cond=0x4ebe7a0, mutex=, clockid=0, abstime=0x0) at pthread_cond_wait.c:503 #4 ___pthread_cond_wait (cond=0x4ebe7a0, mutex=) at pthread_cond_wait.c:618 #5 0x00007fffe817b8ad in cnd_wait (cond=, mtx=) at ../src/c11/impl/threads_posix.c:135 #6 0x00007fffe815946b in util_queue_thread_func (input=input@entry=0x4ebc310) at ../src/util/u_queue.c:290 #7 0x00007fffe817b7dc in impl_thrd_routine (p=) at ../src/c11/impl/threads_posix.c:67 #8 0x00007ffff77e31b7 in start_thread (arg=) at pthread_create.c:447 #9 0x00007ffff786539c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 Thread 14 (Thread 0x7fffeae006c0 (LWP 1716295) "2s2h.elf"): #0 0x00007ffff77df919 in __futex_abstimed_wait_common64 (private=0, futex_word=0x356e4f4, expected=0, op=393, abstime=0x0, cancel=true) at futex-internal.c:57 #1 __futex_abstimed_wait_common (futex_word=futex_word@entry=0x356e4f4, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87 --Type for more, q to quit, c to continue without paging-- #2 0x00007ffff77df99f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x356e4f4, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139 #3 0x00007ffff77e22e9 in __pthread_cond_wait_common (cond=0x356e4c8, mutex=, clockid=0, abstime=0x0) at pthread_cond_wait.c:503 #4 ___pthread_cond_wait (cond=0x356e4c8, mutex=) at pthread_cond_wait.c:618 #5 0x00007ffff7b26840 in __gthread_cond_wait (__cond=, __mutex=) at /usr/src/debug/gcc-14.1.1-4.fc40.x86_64/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/x86_64-redhat-linux/bits/gthr-default.h:878 #6 std::__condvar::wait (this=, __m=...) at /usr/src/debug/gcc-14.1.1-4.fc40.x86_64/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/bits/std_mutex.h:171 #7 std::condition_variable::wait (this=, __lock=...) at ../../../../../libstdc++-v3/src/c++11/condition_variable.cc:41 #8 0x000000000153ab1f in std::condition_variable::wait const&)::{lambda()#1}>(std::unique_lock&, BS::thread_pool::worker(unsigned int, std::function const&)::{lambda()#1}) (this=0x356e4c8, __lock=..., __p=...) at /usr/include/c++/14/condition_variable:105 #9 0x000000000153953f in BS::thread_pool::worker(unsigned int, std::function const&) (this=0x356e4c0, idx=11, init_task=...) at /home/x570/git/2ship2harkinian/build-cmake/_deps/threadpool-src/include/BS_thread_pool.hpp:920 #10 0x0000000001549773 in std::__invoke_impl const&), BS::thread_pool*, unsigned int, std::function >(std::__invoke_memfun_deref, void (BS::thread_pool::*&&)(unsigned int, std::function const&), BS::thread_pool*&&, unsigned int&&, std::function&&) (__f=@0x4acc528: (void (BS::thread_pool::*)(class BS::thread_pool * const, unsigned int, const class std::function &)) 0x1539406 const&)>, __t=@0x4acc520: 0x356e4c0) at /usr/include/c++/14/bits/invoke.h:74 #11 0x0000000001549500 in std::__invoke const&), BS::thread_pool*, unsigned int, std::function >(void (BS::thread_pool::*&&)(unsigned int, std::function const&), BS::thread_pool*&&, unsigned int&&, std::function&&) (__fn=@0x4acc528: (void (BS::thread_pool::*)(class BS::thread_pool * const, unsigned int, const class std::function &)) 0x1539406 const&)>) at /usr/include/c++/14/bits/invoke.h:96 #12 0x0000000001549333 in std::thread::_Invoker const&), BS::thread_pool*, unsigned int, std::function > >::_M_invoke<0ul, 1ul, 2ul, 3ul>(std::_Index_tuple<0ul, 1ul, 2ul, 3ul>) (this=0x4acc4f8) at /usr/include/c++/14/bits/std_thread.h:292 #13 0x00000000015491f8 in std::thread::_Invoker const&), BS::thread_pool*, unsigned int, std::function > >::operator()() (this=0x4acc4f8) at /usr/include/c++/14/bits/std_thread.h:299 #14 0x0000000001549126 in std::thread::_State_impl const&), BS::thread_pool*, unsigned int, std::function > > >::_M_run() (this=0x4acc4f0) at /usr/include/c++/14/bits/std_thread.h:244 #15 0x00007ffff7b30524 in std::execute_native_thread_routine (__p=0x4acc4f0) at ../../../../../libstdc++-v3/src/c++11/thread.cc:104 #16 0x00007ffff77e31b7 in start_thread (arg=) at pthread_create.c:447 #17 0x00007ffff786539c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 Thread 13 (Thread 0x7fffeb8006c0 (LWP 1716294) "2s2h.elf"): #0 0x00007ffff77df919 in __futex_abstimed_wait_common64 (private=0, futex_word=0x356e4f0, expected=0, op=393, abstime=0x0, cancel=true) at futex-internal.c:57 #1 __futex_abstimed_wait_common (futex_word=futex_word@entry=0x356e4f0, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87 #2 0x00007ffff77df99f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x356e4f0, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139 #3 0x00007ffff77e22e9 in __pthread_cond_wait_common (cond=0x356e4c8, mutex=, clockid=0, abstime=0x0) at pthread_cond_wait.c:503 #4 ___pthread_cond_wait (cond=0x356e4c8, mutex=) at pthread_cond_wait.c:618 #5 0x00007ffff7b26840 in __gthread_cond_wait (__cond=, __mutex=) at /usr/src/debug/gcc-14.1.1-4.fc40.x86_64/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/x86_64-redhat-linux/bits/gthr-default.h:878 #6 std::__condvar::wait (this=, __m=...) at /usr/src/debug/gcc-14.1.1-4.fc40.x86_64/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/bits/std_mutex.h:171 #7 std::condition_variable::wait (this=, __lock=...) at ../../../../../libstdc++-v3/src/c++11/condition_variable.cc:41 #8 0x000000000153ab1f in std::condition_variable::wait const&)::{lambda()#1}>(std::unique_lock&, BS::thread_pool::worker(unsigned int, std::function const&)::{lambda()#1}) (this=0x356e4c8, __lock=..., __p=...) at /usr/include/c++/14/condition_variable:105 #9 0x000000000153953f in BS::thread_pool::worker(unsigned int, std::function const&) (this=0x356e4c0, idx=10, init_task=...) at /home/x570/git/2ship2harkinian/build-cmake/_deps/threadpool-src/include/BS_thread_pool.hpp:920 #10 0x0000000001549773 in std::__invoke_impl const&), BS::thread_pool*, unsigned int, std::function >(std::__invoke_memfun_deref, void (BS::thread_pool::*&&)(unsigned int, std::function const&), BS::thread_pool*&&, unsigned int&&, std::function&&) (__f=@0x4acc368: (void (BS::thread_pool::*)(class BS::thread_pool * const, unsigned int, const class std::function &)) 0x1539406 const&)>, __t=@0x4acc360: 0x356e4c0) at /usr/include/c++/14/bits/invoke.h:74 #11 0x0000000001549500 in std::__invoke const&), BS::thread_pool*, unsigned int, std::function >(void (BS::thread_pool::*&&)(unsigned int, std::function const&), BS::thread_pool*&&, unsigned int&&, std::function&&) (__fn=@0x4acc368: (void (BS::thread_pool::*)(class BS::thread_pool * const, unsigned int, const class std::function &)) 0x1539406 const&)>) at /usr/include/c++/14/bits/invoke.h:96 #12 0x0000000001549333 in std::thread::_Invoker const&), BS::thread_pool*, unsigned int, std::function > >::_M_invoke<0ul, 1ul, 2ul, 3ul>(std::_Index_tuple<0ul, 1ul, 2ul, 3ul>) (this=0x4acc338) at /usr/include/c++/14/bits/std_thread.h:292 #13 0x00000000015491f8 in std::thread::_Invoker const&), BS::thread_pool*, unsigned int, std::function > >::operator()() (this=0x4--Type for more, q to quit, c to continue without paging-- acc338) at /usr/include/c++/14/bits/std_thread.h:299 #14 0x0000000001549126 in std::thread::_State_impl const&), BS::thread_pool*, unsigned int, std::function > > >::_M_run() (this=0x4acc330) at /usr/include/c++/14/bits/std_thread.h:244 #15 0x00007ffff7b30524 in std::execute_native_thread_routine (__p=0x4acc330) at ../../../../../libstdc++-v3/src/c++11/thread.cc:104 #16 0x00007ffff77e31b7 in start_thread (arg=) at pthread_create.c:447 #17 0x00007ffff786539c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 Thread 12 (Thread 0x7fffec2006c0 (LWP 1716293) "2s2h.elf"): #0 0x00007ffff77df919 in __futex_abstimed_wait_common64 (private=0, futex_word=0x356e4f4, expected=0, op=393, abstime=0x0, cancel=true) at futex-internal.c:57 #1 __futex_abstimed_wait_common (futex_word=futex_word@entry=0x356e4f4, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87 #2 0x00007ffff77df99f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x356e4f4, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139 #3 0x00007ffff77e22e9 in __pthread_cond_wait_common (cond=0x356e4c8, mutex=, clockid=0, abstime=0x0) at pthread_cond_wait.c:503 #4 ___pthread_cond_wait (cond=0x356e4c8, mutex=) at pthread_cond_wait.c:618 #5 0x00007ffff7b26840 in __gthread_cond_wait (__cond=, __mutex=) at /usr/src/debug/gcc-14.1.1-4.fc40.x86_64/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/x86_64-redhat-linux/bits/gthr-default.h:878 #6 std::__condvar::wait (this=, __m=...) at /usr/src/debug/gcc-14.1.1-4.fc40.x86_64/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/bits/std_mutex.h:171 #7 std::condition_variable::wait (this=, __lock=...) at ../../../../../libstdc++-v3/src/c++11/condition_variable.cc:41 #8 0x000000000153ab1f in std::condition_variable::wait const&)::{lambda()#1}>(std::unique_lock&, BS::thread_pool::worker(unsigned int, std::function const&)::{lambda()#1}) (this=0x356e4c8, __lock=..., __p=...) at /usr/include/c++/14/condition_variable:105 #9 0x000000000153953f in BS::thread_pool::worker(unsigned int, std::function const&) (this=0x356e4c0, idx=9, init_task=...) at /home/x570/git/2ship2harkinian/build-cmake/_deps/threadpool-src/include/BS_thread_pool.hpp:920 #10 0x0000000001549773 in std::__invoke_impl const&), BS::thread_pool*, unsigned int, std::function >(std::__invoke_memfun_deref, void (BS::thread_pool::*&&)(unsigned int, std::function const&), BS::thread_pool*&&, unsigned int&&, std::function&&) (__f=@0x4acc1a8: (void (BS::thread_pool::*)(class BS::thread_pool * const, unsigned int, const class std::function &)) 0x1539406 const&)>, __t=@0x4acc1a0: 0x356e4c0) at /usr/include/c++/14/bits/invoke.h:74 #11 0x0000000001549500 in std::__invoke const&), BS::thread_pool*, unsigned int, std::function >(void (BS::thread_pool::*&&)(unsigned int, std::function const&), BS::thread_pool*&&, unsigned int&&, std::function&&) (__fn=@0x4acc1a8: (void (BS::thread_pool::*)(class BS::thread_pool * const, unsigned int, const class std::function &)) 0x1539406 const&)>) at /usr/include/c++/14/bits/invoke.h:96 #12 0x0000000001549333 in std::thread::_Invoker const&), BS::thread_pool*, unsigned int, std::function > >::_M_invoke<0ul, 1ul, 2ul, 3ul>(std::_Index_tuple<0ul, 1ul, 2ul, 3ul>) (this=0x4acc178) at /usr/include/c++/14/bits/std_thread.h:292 #13 0x00000000015491f8 in std::thread::_Invoker const&), BS::thread_pool*, unsigned int, std::function > >::operator()() (this=0x4acc178) at /usr/include/c++/14/bits/std_thread.h:299 #14 0x0000000001549126 in std::thread::_State_impl const&), BS::thread_pool*, unsigned int, std::function > > >::_M_run() (this=0x4acc170) at /usr/include/c++/14/bits/std_thread.h:244 #15 0x00007ffff7b30524 in std::execute_native_thread_routine (__p=0x4acc170) at ../../../../../libstdc++-v3/src/c++11/thread.cc:104 #16 0x00007ffff77e31b7 in start_thread (arg=) at pthread_create.c:447 #17 0x00007ffff786539c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 Thread 11 (Thread 0x7fffecc006c0 (LWP 1716291) "2s2h.elf"): #0 0x00007ffff77df919 in __futex_abstimed_wait_common64 (private=0, futex_word=0x356e4f0, expected=0, op=393, abstime=0x0, cancel=true) at futex-internal.c:57 #1 __futex_abstimed_wait_common (futex_word=futex_word@entry=0x356e4f0, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87 #2 0x00007ffff77df99f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x356e4f0, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139 #3 0x00007ffff77e22e9 in __pthread_cond_wait_common (cond=0x356e4c8, mutex=, clockid=0, abstime=0x0) at pthread_cond_wait.c:503 #4 ___pthread_cond_wait (cond=0x356e4c8, mutex=) at pthread_cond_wait.c:618 #5 0x00007ffff7b26840 in __gthread_cond_wait (__cond=, __mutex=) at /usr/src/debug/gcc-14.1.1-4.fc40.x86_64/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/x86_64-redhat-linux/bits/gthr-default.h:878 #6 std::__condvar::wait (this=, __m=...) at /usr/src/debug/gcc-14.1.1-4.fc40.x86_64/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/bits/std_mutex.h:171 #7 std::condition_variable::wait (this=, __lock=...) at ../../../../../libstdc++-v3/src/c++11/condition_variable.cc:41 #8 0x000000000153ab1f in std::condition_variable::wait const&)::{lambda()#1}>(std::unique_lock&, BS::thread_pool::worker(unsigned int, std::function const&)::{lambda()#1}) (this=0x356e4c8, __lock=..., __p=...) at /usr/include/c++/14/condition_variable:105 --Type for more, q to quit, c to continue without paging-- #9 0x000000000153953f in BS::thread_pool::worker(unsigned int, std::function const&) (this=0x356e4c0, idx=8, init_task=...) at /home/x570/git/2ship2harkinian/build-cmake/_deps/threadpool-src/include/BS_thread_pool.hpp:920 #10 0x0000000001549773 in std::__invoke_impl const&), BS::thread_pool*, unsigned int, std::function >(std::__invoke_memfun_deref, void (BS::thread_pool::*&&)(unsigned int, std::function const&), BS::thread_pool*&&, unsigned int&&, std::function&&) (__f=@0x4acbfe8: (void (BS::thread_pool::*)(class BS::thread_pool * const, unsigned int, const class std::function &)) 0x1539406 const&)>, __t=@0x4acbfe0: 0x356e4c0) at /usr/include/c++/14/bits/invoke.h:74 #11 0x0000000001549500 in std::__invoke const&), BS::thread_pool*, unsigned int, std::function >(void (BS::thread_pool::*&&)(unsigned int, std::function const&), BS::thread_pool*&&, unsigned int&&, std::function&&) (__fn=@0x4acbfe8: (void (BS::thread_pool::*)(class BS::thread_pool * const, unsigned int, const class std::function &)) 0x1539406 const&)>) at /usr/include/c++/14/bits/invoke.h:96 #12 0x0000000001549333 in std::thread::_Invoker const&), BS::thread_pool*, unsigned int, std::function > >::_M_invoke<0ul, 1ul, 2ul, 3ul>(std::_Index_tuple<0ul, 1ul, 2ul, 3ul>) (this=0x4acbfb8) at /usr/include/c++/14/bits/std_thread.h:292 #13 0x00000000015491f8 in std::thread::_Invoker const&), BS::thread_pool*, unsigned int, std::function > >::operator()() (this=0x4acbfb8) at /usr/include/c++/14/bits/std_thread.h:299 #14 0x0000000001549126 in std::thread::_State_impl const&), BS::thread_pool*, unsigned int, std::function > > >::_M_run() (this=0x4acbfb0) at /usr/include/c++/14/bits/std_thread.h:244 #15 0x00007ffff7b30524 in std::execute_native_thread_routine (__p=0x4acbfb0) at ../../../../../libstdc++-v3/src/c++11/thread.cc:104 #16 0x00007ffff77e31b7 in start_thread (arg=) at pthread_create.c:447 #17 0x00007ffff786539c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 Thread 10 (Thread 0x7fffed6006c0 (LWP 1716290) "2s2h.elf"): #0 0x00007ffff77df919 in __futex_abstimed_wait_common64 (private=0, futex_word=0x356e4f0, expected=0, op=393, abstime=0x0, cancel=true) at futex-internal.c:57 #1 __futex_abstimed_wait_common (futex_word=futex_word@entry=0x356e4f0, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87 #2 0x00007ffff77df99f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x356e4f0, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139 #3 0x00007ffff77e22e9 in __pthread_cond_wait_common (cond=0x356e4c8, mutex=, clockid=0, abstime=0x0) at pthread_cond_wait.c:503 #4 ___pthread_cond_wait (cond=0x356e4c8, mutex=) at pthread_cond_wait.c:618 #5 0x00007ffff7b26840 in __gthread_cond_wait (__cond=, __mutex=) at /usr/src/debug/gcc-14.1.1-4.fc40.x86_64/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/x86_64-redhat-linux/bits/gthr-default.h:878 #6 std::__condvar::wait (this=, __m=...) at /usr/src/debug/gcc-14.1.1-4.fc40.x86_64/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/bits/std_mutex.h:171 #7 std::condition_variable::wait (this=, __lock=...) at ../../../../../libstdc++-v3/src/c++11/condition_variable.cc:41 #8 0x000000000153ab1f in std::condition_variable::wait const&)::{lambda()#1}>(std::unique_lock&, BS::thread_pool::worker(unsigned int, std::function const&)::{lambda()#1}) (this=0x356e4c8, __lock=..., __p=...) at /usr/include/c++/14/condition_variable:105 #9 0x000000000153953f in BS::thread_pool::worker(unsigned int, std::function const&) (this=0x356e4c0, idx=7, init_task=...) at /home/x570/git/2ship2harkinian/build-cmake/_deps/threadpool-src/include/BS_thread_pool.hpp:920 #10 0x0000000001549773 in std::__invoke_impl const&), BS::thread_pool*, unsigned int, std::function >(std::__invoke_memfun_deref, void (BS::thread_pool::*&&)(unsigned int, std::function const&), BS::thread_pool*&&, unsigned int&&, std::function&&) (__f=@0x4acbe28: (void (BS::thread_pool::*)(class BS::thread_pool * const, unsigned int, const class std::function &)) 0x1539406 const&)>, __t=@0x4acbe20: 0x356e4c0) at /usr/include/c++/14/bits/invoke.h:74 #11 0x0000000001549500 in std::__invoke const&), BS::thread_pool*, unsigned int, std::function >(void (BS::thread_pool::*&&)(unsigned int, std::function const&), BS::thread_pool*&&, unsigned int&&, std::function&&) (__fn=@0x4acbe28: (void (BS::thread_pool::*)(class BS::thread_pool * const, unsigned int, const class std::function &)) 0x1539406 const&)>) at /usr/include/c++/14/bits/invoke.h:96 #12 0x0000000001549333 in std::thread::_Invoker const&), BS::thread_pool*, unsigned int, std::function > >::_M_invoke<0ul, 1ul, 2ul, 3ul>(std::_Index_tuple<0ul, 1ul, 2ul, 3ul>) (this=0x4acbdf8) at /usr/include/c++/14/bits/std_thread.h:292 #13 0x00000000015491f8 in std::thread::_Invoker const&), BS::thread_pool*, unsigned int, std::function > >::operator()() (this=0x4acbdf8) at /usr/include/c++/14/bits/std_thread.h:299 #14 0x0000000001549126 in std::thread::_State_impl const&), BS::thread_pool*, unsigned int, std::function > > >::_M_run() (this=0x4acbdf0) at /usr/include/c++/14/bits/std_thread.h:244 #15 0x00007ffff7b30524 in std::execute_native_thread_routine (__p=0x4acbdf0) at ../../../../../libstdc++-v3/src/c++11/thread.cc:104 #16 0x00007ffff77e31b7 in start_thread (arg=) at pthread_create.c:447 #17 0x00007ffff786539c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 Thread 9 (Thread 0x7fffee0006c0 (LWP 1716288) "2s2h.elf"): #0 0x00007ffff77df919 in __futex_abstimed_wait_common64 (private=0, futex_word=0x356e4f0, expected=0, op=393, abstime=0x0, cancel=true) at futex-internal.c:57 #1 __futex_abstimed_wait_common (futex_word=futex_word@entry=0x356e4f0, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-i--Type for more, q to quit, c to continue without paging-- nternal.c:87 #2 0x00007ffff77df99f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x356e4f0, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139 #3 0x00007ffff77e22e9 in __pthread_cond_wait_common (cond=0x356e4c8, mutex=, clockid=0, abstime=0x0) at pthread_cond_wait.c:503 #4 ___pthread_cond_wait (cond=0x356e4c8, mutex=) at pthread_cond_wait.c:618 #5 0x00007ffff7b26840 in __gthread_cond_wait (__cond=, __mutex=) at /usr/src/debug/gcc-14.1.1-4.fc40.x86_64/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/x86_64-redhat-linux/bits/gthr-default.h:878 #6 std::__condvar::wait (this=, __m=...) at /usr/src/debug/gcc-14.1.1-4.fc40.x86_64/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/bits/std_mutex.h:171 #7 std::condition_variable::wait (this=, __lock=...) at ../../../../../libstdc++-v3/src/c++11/condition_variable.cc:41 #8 0x000000000153ab1f in std::condition_variable::wait const&)::{lambda()#1}>(std::unique_lock&, BS::thread_pool::worker(unsigned int, std::function const&)::{lambda()#1}) (this=0x356e4c8, __lock=..., __p=...) at /usr/include/c++/14/condition_variable:105 #9 0x000000000153953f in BS::thread_pool::worker(unsigned int, std::function const&) (this=0x356e4c0, idx=6, init_task=...) at /home/x570/git/2ship2harkinian/build-cmake/_deps/threadpool-src/include/BS_thread_pool.hpp:920 #10 0x0000000001549773 in std::__invoke_impl const&), BS::thread_pool*, unsigned int, std::function >(std::__invoke_memfun_deref, void (BS::thread_pool::*&&)(unsigned int, std::function const&), BS::thread_pool*&&, unsigned int&&, std::function&&) (__f=@0x4acbc68: (void (BS::thread_pool::*)(class BS::thread_pool * const, unsigned int, const class std::function &)) 0x1539406 const&)>, __t=@0x4acbc60: 0x356e4c0) at /usr/include/c++/14/bits/invoke.h:74 #11 0x0000000001549500 in std::__invoke const&), BS::thread_pool*, unsigned int, std::function >(void (BS::thread_pool::*&&)(unsigned int, std::function const&), BS::thread_pool*&&, unsigned int&&, std::function&&) (__fn=@0x4acbc68: (void (BS::thread_pool::*)(class BS::thread_pool * const, unsigned int, const class std::function &)) 0x1539406 const&)>) at /usr/include/c++/14/bits/invoke.h:96 #12 0x0000000001549333 in std::thread::_Invoker const&), BS::thread_pool*, unsigned int, std::function > >::_M_invoke<0ul, 1ul, 2ul, 3ul>(std::_Index_tuple<0ul, 1ul, 2ul, 3ul>) (this=0x4acbc38) at /usr/include/c++/14/bits/std_thread.h:292 #13 0x00000000015491f8 in std::thread::_Invoker const&), BS::thread_pool*, unsigned int, std::function > >::operator()() (this=0x4acbc38) at /usr/include/c++/14/bits/std_thread.h:299 #14 0x0000000001549126 in std::thread::_State_impl const&), BS::thread_pool*, unsigned int, std::function > > >::_M_run() (this=0x4acbc30) at /usr/include/c++/14/bits/std_thread.h:244 #15 0x00007ffff7b30524 in std::execute_native_thread_routine (__p=0x4acbc30) at ../../../../../libstdc++-v3/src/c++11/thread.cc:104 #16 0x00007ffff77e31b7 in start_thread (arg=) at pthread_create.c:447 #17 0x00007ffff786539c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 Thread 8 (Thread 0x7fffeea006c0 (LWP 1716287) "2s2h.elf"): #0 0x00007ffff77df919 in __futex_abstimed_wait_common64 (private=0, futex_word=0x356e4f0, expected=0, op=393, abstime=0x0, cancel=true) at futex-internal.c:57 #1 __futex_abstimed_wait_common (futex_word=futex_word@entry=0x356e4f0, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87 #2 0x00007ffff77df99f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x356e4f0, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139 #3 0x00007ffff77e22e9 in __pthread_cond_wait_common (cond=0x356e4c8, mutex=, clockid=0, abstime=0x0) at pthread_cond_wait.c:503 #4 ___pthread_cond_wait (cond=0x356e4c8, mutex=) at pthread_cond_wait.c:618 #5 0x00007ffff7b26840 in __gthread_cond_wait (__cond=, __mutex=) at /usr/src/debug/gcc-14.1.1-4.fc40.x86_64/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/x86_64-redhat-linux/bits/gthr-default.h:878 #6 std::__condvar::wait (this=, __m=...) at /usr/src/debug/gcc-14.1.1-4.fc40.x86_64/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/bits/std_mutex.h:171 #7 std::condition_variable::wait (this=, __lock=...) at ../../../../../libstdc++-v3/src/c++11/condition_variable.cc:41 #8 0x000000000153ab1f in std::condition_variable::wait const&)::{lambda()#1}>(std::unique_lock&, BS::thread_pool::worker(unsigned int, std::function const&)::{lambda()#1}) (this=0x356e4c8, __lock=..., __p=...) at /usr/include/c++/14/condition_variable:105 #9 0x000000000153953f in BS::thread_pool::worker(unsigned int, std::function const&) (this=0x356e4c0, idx=5, init_task=...) at /home/x570/git/2ship2harkinian/build-cmake/_deps/threadpool-src/include/BS_thread_pool.hpp:920 #10 0x0000000001549773 in std::__invoke_impl const&), BS::thread_pool*, unsigned int, std::function >(std::__invoke_memfun_deref, void (BS::thread_pool::*&&)(unsigned int, std::function const&), BS::thread_pool*&&, unsigned int&&, std::function&&) (__f=@0x4acbaa8: (void (BS::thread_pool::*)(class BS::thread_pool * const, unsigned int, const class std::function &)) 0x1539406 const&)>, __t=@0x4acbaa0: 0x356e4c0) at /usr/include/c++/14/bits/invoke.h:74 #11 0x0000000001549500 in std::__invoke const&), BS::thread_pool*, unsigned int, std::function >(void (BS::thread_pool::*&&)(unsigned int, std::function const&), BS::thread_pool*&&, unsigned int&&, std::function&&) (__fn=@0x4acbaa8: (void (BS::thread_pool::*)(class BS::thread_pool * const, unsigned int, const class std::function &)) 0x1539406 const&)>) at /usr/include/c++/14/bits/invoke.h:96 #12 0x0000000001549333 in std::thread::_Invoker const&), BS::thread_pool*, unsigned int, std::function > >::_M_invoke<0ul, 1ul, 2ul, 3ul>(std::_Index_tuple<0ul, 1ul, 2ul, 3ul>) (this=0x4acba78) at /usr/include/c++/14/bits/std_thread.h:292 --Type for more, q to quit, c to continue without paging-- #13 0x00000000015491f8 in std::thread::_Invoker const&), BS::thread_pool*, unsigned int, std::function > >::operator()() (this=0x4acba78) at /usr/include/c++/14/bits/std_thread.h:299 #14 0x0000000001549126 in std::thread::_State_impl const&), BS::thread_pool*, unsigned int, std::function > > >::_M_run() (this=0x4acba70) at /usr/include/c++/14/bits/std_thread.h:244 #15 0x00007ffff7b30524 in std::execute_native_thread_routine (__p=0x4acba70) at ../../../../../libstdc++-v3/src/c++11/thread.cc:104 #16 0x00007ffff77e31b7 in start_thread (arg=) at pthread_create.c:447 #17 0x00007ffff786539c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 Thread 7 (Thread 0x7fffef4006c0 (LWP 1716286) "2s2h.elf"): #0 0x00007ffff77df919 in __futex_abstimed_wait_common64 (private=0, futex_word=0x356e4f0, expected=0, op=393, abstime=0x0, cancel=true) at futex-internal.c:57 #1 __futex_abstimed_wait_common (futex_word=futex_word@entry=0x356e4f0, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87 #2 0x00007ffff77df99f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x356e4f0, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139 #3 0x00007ffff77e22e9 in __pthread_cond_wait_common (cond=0x356e4c8, mutex=, clockid=0, abstime=0x0) at pthread_cond_wait.c:503 #4 ___pthread_cond_wait (cond=0x356e4c8, mutex=) at pthread_cond_wait.c:618 #5 0x00007ffff7b26840 in __gthread_cond_wait (__cond=, __mutex=) at /usr/src/debug/gcc-14.1.1-4.fc40.x86_64/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/x86_64-redhat-linux/bits/gthr-default.h:878 #6 std::__condvar::wait (this=, __m=...) at /usr/src/debug/gcc-14.1.1-4.fc40.x86_64/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/bits/std_mutex.h:171 #7 std::condition_variable::wait (this=, __lock=...) at ../../../../../libstdc++-v3/src/c++11/condition_variable.cc:41 #8 0x000000000153ab1f in std::condition_variable::wait const&)::{lambda()#1}>(std::unique_lock&, BS::thread_pool::worker(unsigned int, std::function const&)::{lambda()#1}) (this=0x356e4c8, __lock=..., __p=...) at /usr/include/c++/14/condition_variable:105 #9 0x000000000153953f in BS::thread_pool::worker(unsigned int, std::function const&) (this=0x356e4c0, idx=4, init_task=...) at /home/x570/git/2ship2harkinian/build-cmake/_deps/threadpool-src/include/BS_thread_pool.hpp:920 #10 0x0000000001549773 in std::__invoke_impl const&), BS::thread_pool*, unsigned int, std::function >(std::__invoke_memfun_deref, void (BS::thread_pool::*&&)(unsigned int, std::function const&), BS::thread_pool*&&, unsigned int&&, std::function&&) (__f=@0x4acb8e8: (void (BS::thread_pool::*)(class BS::thread_pool * const, unsigned int, const class std::function &)) 0x1539406 const&)>, __t=@0x4acb8e0: 0x356e4c0) at /usr/include/c++/14/bits/invoke.h:74 #11 0x0000000001549500 in std::__invoke const&), BS::thread_pool*, unsigned int, std::function >(void (BS::thread_pool::*&&)(unsigned int, std::function const&), BS::thread_pool*&&, unsigned int&&, std::function&&) (__fn=@0x4acb8e8: (void (BS::thread_pool::*)(class BS::thread_pool * const, unsigned int, const class std::function &)) 0x1539406 const&)>) at /usr/include/c++/14/bits/invoke.h:96 #12 0x0000000001549333 in std::thread::_Invoker const&), BS::thread_pool*, unsigned int, std::function > >::_M_invoke<0ul, 1ul, 2ul, 3ul>(std::_Index_tuple<0ul, 1ul, 2ul, 3ul>) (this=0x4acb8b8) at /usr/include/c++/14/bits/std_thread.h:292 #13 0x00000000015491f8 in std::thread::_Invoker const&), BS::thread_pool*, unsigned int, std::function > >::operator()() (this=0x4acb8b8) at /usr/include/c++/14/bits/std_thread.h:299 #14 0x0000000001549126 in std::thread::_State_impl const&), BS::thread_pool*, unsigned int, std::function > > >::_M_run() (this=0x4acb8b0) at /usr/include/c++/14/bits/std_thread.h:244 #15 0x00007ffff7b30524 in std::execute_native_thread_routine (__p=0x4acb8b0) at ../../../../../libstdc++-v3/src/c++11/thread.cc:104 #16 0x00007ffff77e31b7 in start_thread (arg=) at pthread_create.c:447 #17 0x00007ffff786539c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 Thread 6 (Thread 0x7fffefe006c0 (LWP 1716285) "2s2h.elf"): #0 0x00007ffff77df919 in __futex_abstimed_wait_common64 (private=0, futex_word=0x356e4f0, expected=0, op=393, abstime=0x0, cancel=true) at futex-internal.c:57 #1 __futex_abstimed_wait_common (futex_word=futex_word@entry=0x356e4f0, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87 #2 0x00007ffff77df99f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x356e4f0, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139 #3 0x00007ffff77e22e9 in __pthread_cond_wait_common (cond=0x356e4c8, mutex=, clockid=0, abstime=0x0) at pthread_cond_wait.c:503 #4 ___pthread_cond_wait (cond=0x356e4c8, mutex=) at pthread_cond_wait.c:618 #5 0x00007ffff7b26840 in __gthread_cond_wait (__cond=, __mutex=) at /usr/src/debug/gcc-14.1.1-4.fc40.x86_64/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/x86_64-redhat-linux/bits/gthr-default.h:878 #6 std::__condvar::wait (this=, __m=...) at /usr/src/debug/gcc-14.1.1-4.fc40.x86_64/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/bits/std_mutex.h:171 #7 std::condition_variable::wait (this=, __lock=...) at ../../../../../libstdc++-v3/src/c++11/condition_variable.cc:41 #8 0x000000000153ab1f in std::condition_variable::wait const&)::{lambda()#1}>(std::unique_lock&, BS::thread_pool::worker(unsigned int, std:--Type for more, q to quit, c to continue without paging-- :function const&)::{lambda()#1}) (this=0x356e4c8, __lock=..., __p=...) at /usr/include/c++/14/condition_variable:105 #9 0x000000000153953f in BS::thread_pool::worker(unsigned int, std::function const&) (this=0x356e4c0, idx=3, init_task=...) at /home/x570/git/2ship2harkinian/build-cmake/_deps/threadpool-src/include/BS_thread_pool.hpp:920 #10 0x0000000001549773 in std::__invoke_impl const&), BS::thread_pool*, unsigned int, std::function >(std::__invoke_memfun_deref, void (BS::thread_pool::*&&)(unsigned int, std::function const&), BS::thread_pool*&&, unsigned int&&, std::function&&) (__f=@0x358d418: (void (BS::thread_pool::*)(class BS::thread_pool * const, unsigned int, const class std::function &)) 0x1539406 const&)>, __t=@0x358d410: 0x356e4c0) at /usr/include/c++/14/bits/invoke.h:74 #11 0x0000000001549500 in std::__invoke const&), BS::thread_pool*, unsigned int, std::function >(void (BS::thread_pool::*&&)(unsigned int, std::function const&), BS::thread_pool*&&, unsigned int&&, std::function&&) (__fn=@0x358d418: (void (BS::thread_pool::*)(class BS::thread_pool * const, unsigned int, const class std::function &)) 0x1539406 const&)>) at /usr/include/c++/14/bits/invoke.h:96 #12 0x0000000001549333 in std::thread::_Invoker const&), BS::thread_pool*, unsigned int, std::function > >::_M_invoke<0ul, 1ul, 2ul, 3ul>(std::_Index_tuple<0ul, 1ul, 2ul, 3ul>) (this=0x358d3e8) at /usr/include/c++/14/bits/std_thread.h:292 #13 0x00000000015491f8 in std::thread::_Invoker const&), BS::thread_pool*, unsigned int, std::function > >::operator()() (this=0x358d3e8) at /usr/include/c++/14/bits/std_thread.h:299 #14 0x0000000001549126 in std::thread::_State_impl const&), BS::thread_pool*, unsigned int, std::function > > >::_M_run() (this=0x358d3e0) at /usr/include/c++/14/bits/std_thread.h:244 #15 0x00007ffff7b30524 in std::execute_native_thread_routine (__p=0x358d3e0) at ../../../../../libstdc++-v3/src/c++11/thread.cc:104 #16 0x00007ffff77e31b7 in start_thread (arg=) at pthread_create.c:447 #17 0x00007ffff786539c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 Thread 5 (Thread 0x7ffff4c006c0 (LWP 1716284) "2s2h.elf"): #0 0x00007ffff77df919 in __futex_abstimed_wait_common64 (private=0, futex_word=0x356e4f0, expected=0, op=393, abstime=0x0, cancel=true) at futex-internal.c:57 #1 __futex_abstimed_wait_common (futex_word=futex_word@entry=0x356e4f0, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87 #2 0x00007ffff77df99f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x356e4f0, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139 #3 0x00007ffff77e22e9 in __pthread_cond_wait_common (cond=0x356e4c8, mutex=, clockid=0, abstime=0x0) at pthread_cond_wait.c:503 #4 ___pthread_cond_wait (cond=0x356e4c8, mutex=) at pthread_cond_wait.c:618 #5 0x00007ffff7b26840 in __gthread_cond_wait (__cond=, __mutex=) at /usr/src/debug/gcc-14.1.1-4.fc40.x86_64/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/x86_64-redhat-linux/bits/gthr-default.h:878 #6 std::__condvar::wait (this=, __m=...) at /usr/src/debug/gcc-14.1.1-4.fc40.x86_64/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/bits/std_mutex.h:171 #7 std::condition_variable::wait (this=, __lock=...) at ../../../../../libstdc++-v3/src/c++11/condition_variable.cc:41 #8 0x000000000153ab1f in std::condition_variable::wait const&)::{lambda()#1}>(std::unique_lock&, BS::thread_pool::worker(unsigned int, std::function const&)::{lambda()#1}) (this=0x356e4c8, __lock=..., __p=...) at /usr/include/c++/14/condition_variable:105 #9 0x000000000153953f in BS::thread_pool::worker(unsigned int, std::function const&) (this=0x356e4c0, idx=2, init_task=...) at /home/x570/git/2ship2harkinian/build-cmake/_deps/threadpool-src/include/BS_thread_pool.hpp:920 #10 0x0000000001549773 in std::__invoke_impl const&), BS::thread_pool*, unsigned int, std::function >(std::__invoke_memfun_deref, void (BS::thread_pool::*&&)(unsigned int, std::function const&), BS::thread_pool*&&, unsigned int&&, std::function&&) (__f=@0x358d3c8: (void (BS::thread_pool::*)(class BS::thread_pool * const, unsigned int, const class std::function &)) 0x1539406 const&)>, __t=@0x358d3c0: 0x356e4c0) at /usr/include/c++/14/bits/invoke.h:74 #11 0x0000000001549500 in std::__invoke const&), BS::thread_pool*, unsigned int, std::function >(void (BS::thread_pool::*&&)(unsigned int, std::function const&), BS::thread_pool*&&, unsigned int&&, std::function&&) (__fn=@0x358d3c8: (void (BS::thread_pool::*)(class BS::thread_pool * const, unsigned int, const class std::function &)) 0x1539406 const&)>) at /usr/include/c++/14/bits/invoke.h:96 #12 0x0000000001549333 in std::thread::_Invoker const&), BS::thread_pool*, unsigned int, std::function > >::_M_invoke<0ul, 1ul, 2ul, 3ul>(std::_Index_tuple<0ul, 1ul, 2ul, 3ul>) (this=0x358d398) at /usr/include/c++/14/bits/std_thread.h:292 #13 0x00000000015491f8 in std::thread::_Invoker const&), BS::thread_pool*, unsigned int, std::function > >::operator()() (this=0x358d398) at /usr/include/c++/14/bits/std_thread.h:299 #14 0x0000000001549126 in std::thread::_State_impl const&), BS::thread_pool*, unsigned int, std::function > > >::_M_run() (this=0x358d390) at /usr/include/c++/14/bits/std_thread.h:244 #15 0x00007ffff7b30524 in std::execute_native_thread_routine (__p=0x358d390) at ../../../../../libstdc++-v3/src/c++11/thread.cc:104 #16 0x00007ffff77e31b7 in start_thread (arg=) at pthread_create.c:447 #17 0x00007ffff786539c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 Thread 4 (Thread 0x7ffff56006c0 (LWP 1716283) "2s2h.elf"): #0 0x00007ffff77df919 in __futex_abstimed_wait_common64 (private=0, futex_word=0x356e4f0, expected=0, op=393, abstime=0x0, cancel=true) at futex-internal.c:57 --Type for more, q to quit, c to continue without paging-- #1 __futex_abstimed_wait_common (futex_word=futex_word@entry=0x356e4f0, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87 #2 0x00007ffff77df99f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x356e4f0, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139 #3 0x00007ffff77e22e9 in __pthread_cond_wait_common (cond=0x356e4c8, mutex=, clockid=0, abstime=0x0) at pthread_cond_wait.c:503 #4 ___pthread_cond_wait (cond=0x356e4c8, mutex=) at pthread_cond_wait.c:618 #5 0x00007ffff7b26840 in __gthread_cond_wait (__cond=, __mutex=) at /usr/src/debug/gcc-14.1.1-4.fc40.x86_64/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/x86_64-redhat-linux/bits/gthr-default.h:878 #6 std::__condvar::wait (this=, __m=...) at /usr/src/debug/gcc-14.1.1-4.fc40.x86_64/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/bits/std_mutex.h:171 #7 std::condition_variable::wait (this=, __lock=...) at ../../../../../libstdc++-v3/src/c++11/condition_variable.cc:41 #8 0x000000000153ab1f in std::condition_variable::wait const&)::{lambda()#1}>(std::unique_lock&, BS::thread_pool::worker(unsigned int, std::function const&)::{lambda()#1}) (this=0x356e4c8, __lock=..., __p=...) at /usr/include/c++/14/condition_variable:105 #9 0x000000000153953f in BS::thread_pool::worker(unsigned int, std::function const&) (this=0x356e4c0, idx=1, init_task=...) at /home/x570/git/2ship2harkinian/build-cmake/_deps/threadpool-src/include/BS_thread_pool.hpp:920 #10 0x0000000001549773 in std::__invoke_impl const&), BS::thread_pool*, unsigned int, std::function >(std::__invoke_memfun_deref, void (BS::thread_pool::*&&)(unsigned int, std::function const&), BS::thread_pool*&&, unsigned int&&, std::function&&) (__f=@0x3574b78: (void (BS::thread_pool::*)(class BS::thread_pool * const, unsigned int, const class std::function &)) 0x1539406 const&)>, __t=@0x3574b70: 0x356e4c0) at /usr/include/c++/14/bits/invoke.h:74 #11 0x0000000001549500 in std::__invoke const&), BS::thread_pool*, unsigned int, std::function >(void (BS::thread_pool::*&&)(unsigned int, std::function const&), BS::thread_pool*&&, unsigned int&&, std::function&&) (__fn=@0x3574b78: (void (BS::thread_pool::*)(class BS::thread_pool * const, unsigned int, const class std::function &)) 0x1539406 const&)>) at /usr/include/c++/14/bits/invoke.h:96 #12 0x0000000001549333 in std::thread::_Invoker const&), BS::thread_pool*, unsigned int, std::function > >::_M_invoke<0ul, 1ul, 2ul, 3ul>(std::_Index_tuple<0ul, 1ul, 2ul, 3ul>) (this=0x3574b48) at /usr/include/c++/14/bits/std_thread.h:292 #13 0x00000000015491f8 in std::thread::_Invoker const&), BS::thread_pool*, unsigned int, std::function > >::operator()() (this=0x3574b48) at /usr/include/c++/14/bits/std_thread.h:299 #14 0x0000000001549126 in std::thread::_State_impl const&), BS::thread_pool*, unsigned int, std::function > > >::_M_run() (this=0x3574b40) at /usr/include/c++/14/bits/std_thread.h:244 #15 0x00007ffff7b30524 in std::execute_native_thread_routine (__p=0x3574b40) at ../../../../../libstdc++-v3/src/c++11/thread.cc:104 #16 0x00007ffff77e31b7 in start_thread (arg=) at pthread_create.c:447 #17 0x00007ffff786539c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 Thread 3 (Thread 0x7ffff60006c0 (LWP 1716282) "2s2h.elf"): #0 0x00007ffff77df919 in __futex_abstimed_wait_common64 (private=0, futex_word=0x356e4f0, expected=0, op=393, abstime=0x0, cancel=true) at futex-internal.c:57 #1 __futex_abstimed_wait_common (futex_word=futex_word@entry=0x356e4f0, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87 #2 0x00007ffff77df99f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x356e4f0, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139 #3 0x00007ffff77e22e9 in __pthread_cond_wait_common (cond=0x356e4c8, mutex=, clockid=0, abstime=0x0) at pthread_cond_wait.c:503 #4 ___pthread_cond_wait (cond=0x356e4c8, mutex=) at pthread_cond_wait.c:618 #5 0x00007ffff7b26840 in __gthread_cond_wait (__cond=, __mutex=) at /usr/src/debug/gcc-14.1.1-4.fc40.x86_64/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/x86_64-redhat-linux/bits/gthr-default.h:878 #6 std::__condvar::wait (this=, __m=...) at /usr/src/debug/gcc-14.1.1-4.fc40.x86_64/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/bits/std_mutex.h:171 #7 std::condition_variable::wait (this=, __lock=...) at ../../../../../libstdc++-v3/src/c++11/condition_variable.cc:41 #8 0x000000000153ab1f in std::condition_variable::wait const&)::{lambda()#1}>(std::unique_lock&, BS::thread_pool::worker(unsigned int, std::function const&)::{lambda()#1}) (this=0x356e4c8, __lock=..., __p=...) at /usr/include/c++/14/condition_variable:105 #9 0x000000000153953f in BS::thread_pool::worker(unsigned int, std::function const&) (this=0x356e4c0, idx=0, init_task=...) at /home/x570/git/2ship2harkinian/build-cmake/_deps/threadpool-src/include/BS_thread_pool.hpp:920 #10 0x0000000001549773 in std::__invoke_impl const&), BS::thread_pool*, unsigned int, std::function >(std::__invoke_memfun_deref, void (BS::thread_pool::*&&)(unsigned int, std::function const&), BS::thread_pool*&&, unsigned int&&, std::function&&) (__f=@0x3575048: (void (BS::thread_pool::*)(class BS::thread_pool * const, unsigned int, const class std::function &)) 0x1539406 const&)>, __t=@0x3575040: 0x356e4c0) at /usr/include/c++/14/bits/invoke.h:74 #11 0x0000000001549500 in std::__invoke const&), BS::thread_pool*, unsigned int, std::function >(void (BS::thread_pool::*&&)(unsigned int, std::function const&), BS::thread_pool*&&, unsigned int&&, std::function&&) (__fn=@0x3575048: (void (BS::thread_pool::*)(class BS::thread_pool * const, unsigned int, const class std::function &)) 0x1539406 const&)>) at /usr/include/c++/14/bits/invoke.h:96 #12 0x0000000001549333 in std::thread::_Invoker const&), BS::thread_pool*, unsigned int, std::function > >::_M_invoke<0ul, 1ul, 2u--Type for more, q to quit, c to continue without paging-- l, 3ul>(std::_Index_tuple<0ul, 1ul, 2ul, 3ul>) (this=0x3575018) at /usr/include/c++/14/bits/std_thread.h:292 #13 0x00000000015491f8 in std::thread::_Invoker const&), BS::thread_pool*, unsigned int, std::function > >::operator()() (this=0x3575018) at /usr/include/c++/14/bits/std_thread.h:299 #14 0x0000000001549126 in std::thread::_State_impl const&), BS::thread_pool*, unsigned int, std::function > > >::_M_run() (this=0x3575010) at /usr/include/c++/14/bits/std_thread.h:244 #15 0x00007ffff7b30524 in std::execute_native_thread_routine (__p=0x3575010) at ../../../../../libstdc++-v3/src/c++11/thread.cc:104 #16 0x00007ffff77e31b7 in start_thread (arg=) at pthread_create.c:447 #17 0x00007ffff786539c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 Thread 2 (Thread 0x7ffff6a006c0 (LWP 1716190) "2s2h.elf"): #0 0x00007ffff77df919 in __futex_abstimed_wait_common64 (private=0, futex_word=0x356c0a4, expected=0, op=393, abstime=0x0, cancel=true) at futex-internal.c:57 #1 __futex_abstimed_wait_common (futex_word=futex_word@entry=0x356c0a4, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87 #2 0x00007ffff77df99f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x356c0a4, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139 #3 0x00007ffff77e22e9 in __pthread_cond_wait_common (cond=0x356c078, mutex=, clockid=0, abstime=0x0) at pthread_cond_wait.c:503 #4 ___pthread_cond_wait (cond=0x356c078, mutex=) at pthread_cond_wait.c:618 #5 0x00007ffff7b26840 in __gthread_cond_wait (__cond=0x356c078, __mutex=) at /usr/src/debug/gcc-14.1.1-4.fc40.x86_64/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/x86_64-redhat-linux/bits/gthr-default.h:878 #6 std::__condvar::wait (this=0x356c078, __m=...) at /usr/src/debug/gcc-14.1.1-4.fc40.x86_64/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/bits/std_mutex.h:171 #7 std::condition_variable::wait (this=this@entry=0x356c078, __lock=...) at ../../../../../libstdc++-v3/src/c++11/condition_variable.cc:41 #8 0x00007ffff7d4a8eb in std::condition_variable::wait::dequeue(spdlog::details::async_msg&)::{lambda()#1}>(std::unique_lock&, spdlog::details::mpmc_blocking_queue::dequeue(spdlog::details::async_msg&)::{lambda()#1}) (this=0x356c078, __lock=..., __p=...) at /usr/include/c++/14/condition_variable:105 #9 spdlog::details::mpmc_blocking_queue::dequeue (this=0x356c050, popped_item=...) at /usr/src/debug/spdlog-1.12.0-4.fc40.x86_64/include/spdlog/details/mpmc_blocking_q.h:74 #10 spdlog::details::thread_pool::process_next_msg_ (this=this@entry=0x356c050) at /usr/src/debug/spdlog-1.12.0-4.fc40.x86_64/include/spdlog/details/thread_pool-inl.h:111 #11 0x00007ffff7d4aaa8 in spdlog::details::thread_pool::worker_loop_ (this=0x356c050) at /usr/src/debug/spdlog-1.12.0-4.fc40.x86_64/include/spdlog/details/thread_pool-inl.h:102 #12 0x00007ffff7d4aaeb in operator() (__closure=0x3569f78) at /usr/src/debug/spdlog-1.12.0-4.fc40.x86_64/include/spdlog/details/thread_pool-inl.h:29 #13 std::__invoke_impl, std::function):: > (__f=...) at /usr/include/c++/14/bits/invoke.h:61 #14 std::__invoke, std::function):: > (__fn=...) at /usr/include/c++/14/bits/invoke.h:96 #15 std::thread::_Invoker, std::function):: > >::_M_invoke<0> (this=0x3569f78) at /usr/include/c++/14/bits/std_thread.h:292 #16 std::thread::_Invoker, std::function):: > >::operator() (this=0x3569f78) at /usr/include/c++/14/bits/std_thread.h:299 #17 std::thread::_State_impl, std::function):: > > >::_M_run(void) (this=0x3569f70) at /usr/include/c++/14/bits/std_thread.h:244 #18 0x00007ffff7b30524 in std::execute_native_thread_routine (__p=0x3569f70) at ../../../../../libstdc++-v3/src/c++11/thread.cc:104 #19 0x00007ffff77e31b7 in start_thread (arg=) at pthread_create.c:447 #20 0x00007ffff786539c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 Thread 1 (Thread 0x7ffff7119880 (LWP 1716124) "2s2h.elf"): #0 AudioSfx_ChooseActiveSfx (bankId=3 '\003') at /home/x570/git/2ship2harkinian/mm/src/audio/sfx.c:431 #1 0x0000000000e99c1a in AudioSfx_ProcessActiveSfx () at /home/x570/git/2ship2harkinian/mm/src/audio/sfx.c:886 #2 0x0000000000e78099 in Audio_Update () at /home/x570/git/2ship2harkinian/mm/src/audio/code_8019AF00.c:3659 #3 0x0000000000eaa066 in Graph_UpdateGame (gameState=0x7fffb8a01630) at /home/x570/git/2ship2harkinian/mm/src/code/graph.c:247 #4 0x0000000000eaa54e in Graph_Update (gfxCtx=0x2da0f20 , gameState=0x7fffb8a01630) at /home/x570/git/2ship2harkinian/mm/src/code/graph.c:352 #5 0x0000000000eaa704 in RunFrame () at /home/x570/git/2ship2harkinian/mm/src/code/graph.c:415 #6 0x0000000000eaa79b in Graph_ThreadEntry (arg0=0x0) at /home/x570/git/2ship2harkinian/mm/src/code/graph.c:437 #7 0x0000000000eaba5d in main (argc=1, argv=0x7fffffff4e38) at /home/x570/git/2ship2harkinian/mm/src/code/main.c:118 ```
briaguya-ai commented 4 months ago

@qubitnano do you have the same issue when using the 1.0.1 release appimage?

qubitnano commented 4 months ago

@qubitnano do you have the same issue when using the 1.0.1 release appimage?

I've tested Ubuntu 24.04, Fedora 40, Arch Linux and NixOS. The appimage works fine on all of them.

Compiling on ubuntu 24.04 and arch have no issues. Fedora 40 and NixOS both have the audio problem and crash.

NixOS at first crashes due to some compiler options (FORTIFY_SOURCE I believe), but disabling all hardening eventually gives the same segfault as Fedora.

For reference recent commits on develop with Shipwright works ok at least on NixOS with the same dependencies.

qubitnano commented 4 months ago

Actually on NixOS with -O0 I get the Fedora crash, but with -O2 I get the following. This has fortify enabled.

0x00007ffff76feefc in __pthread_kill_implementation () from /nix/store/k7zgvzp2r31zkg9xqgjim7mbknryv6bs-glibc-2.39-52/lib/libc.so.6
(gdb) bt
#0  0x00007ffff76feefc in __pthread_kill_implementation () from /nix/store/k7zgvzp2r31zkg9xqgjim7mbknryv6bs-glibc-2.39-52/lib/libc.so.6
#1  0x00007ffff76aee86 in raise () from /nix/store/k7zgvzp2r31zkg9xqgjim7mbknryv6bs-glibc-2.39-52/lib/libc.so.6
#2  0x00007ffff7697935 in abort () from /nix/store/k7zgvzp2r31zkg9xqgjim7mbknryv6bs-glibc-2.39-52/lib/libc.so.6
#3  0x00007ffff76987e6 in __libc_message_impl.cold () from /nix/store/k7zgvzp2r31zkg9xqgjim7mbknryv6bs-glibc-2.39-52/lib/libc.so.6
#4  0x00007ffff7784979 in __fortify_fail () from /nix/store/k7zgvzp2r31zkg9xqgjim7mbknryv6bs-glibc-2.39-52/lib/libc.so.6
#5  0x00007ffff7784334 in __chk_fail () from /nix/store/k7zgvzp2r31zkg9xqgjim7mbknryv6bs-glibc-2.39-52/lib/libc.so.6
#6  0x00000000006a1458 in memcpy (__len=32, __src=<optimized out>, __dest=<optimized out>) at /nix/store/fwh4fxd747m0py3ib3s5abamia9nrf90-glibc-2.39-52-dev/include/bits/string_fortified.h:29
#7  aADPCMdecImpl (flags=flags@entry=2 '\002', state=0x7fffbdce7a80) at /build/source/mm/2s2h/mixer.c:160
#8  0x0000000000795200 in AudioSynth_ProcessSample (noteIndex=25, sampleState=0x7fffbdce8ff8, synthState=0x7fffbdce2d70, aiBuf=aiBuf@entry=0x7fffbf7fe630, numSamplesPerUpdate=numSamplesPerUpdate@entry=176, cmd=0x0, updateIndex=2) at /build/source/mm/src/audio/lib/synthesis.c:1229
#9  0x0000000000795c7c in AudioSynth_ProcessSamples (aiBuf=aiBuf@entry=0x7fffbf7fe630, numSamplesPerUpdate=numSamplesPerUpdate@entry=176, cmd=<optimized out>, cmd@entry=0x0, updateIndex=2) at /build/source/mm/src/audio/lib/synthesis.c:840
#10 0x00000000007961d4 in AudioSynth_Update (abiCmdStart=0x0, numAbiCmds=numAbiCmds@entry=0x7fffbf7fc99c, aiBufStart=aiBufStart@entry=0x7fffbf7fe070, numSamplesPerFrame=<optimized out>, numSamplesPerFrame@entry=720) at /build/source/mm/src/audio/lib/synthesis.c:259
#11 0x000000000079785d in AudioMgr_CreateNextAudioBuffer (samples=0x7fffbf7fe070, num_samples=720) at /build/source/mm/src/audio/lib/thread.c:67
#12 0x00000000006943af in OTRAudio_Thread () at /build/source/mm/2s2h/BenPort.cpp:366
#13 0x00007ffff7a53683 in execute_native_thread_routine () from /nix/store/xvzz97yk73hw03v5dhhz3j47ggwf1yq1-gcc-13.2.0-lib/lib/libstdc++.so.6
#14 0x00007ffff76fd272 in start_thread () from /nix/store/k7zgvzp2r31zkg9xqgjim7mbknryv6bs-glibc-2.39-52/lib/libc.so.6
#15 0x00007ffff7778dec in clone3 () from /nix/store/k7zgvzp2r31zkg9xqgjim7mbknryv6bs-glibc-2.39-52/lib/libc.so.6
qubitnano commented 4 months ago

So the problem was that 2s2h needs to be compiled with PIE. It's off by default on NixOS, and I guess Fedora doesn't apply it automatically when building via cmake? The following changes builds it on Fedora with no crashes.

diff --git a/CMakeLists.txt b/CMakeLists.txt
index fcdb1001f..2b13b8d29 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -76,9 +76,10 @@ set(CMAKE_CXX_FLAGS_DEBUG "-g -ffast-math -DDEBUG")
 set(CMAKE_C_FLAGS_RELEASE "-O3 -ffast-math -DNDEBUG")
 set(CMAKE_CXX_FLAGS_RELEASE "-O3 -ffast-math -DNDEBUG")
 else()
-set(CMAKE_C_FLAGS_RELEASE "-O2 -DNDEBUG")
+set(CMAKE_C_FLAGS_RELEASE "-O2 -DNDEBUG -fPIE")
 set(CMAKE_C_FLAGS_DEBUG "-g")
-set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG")
+set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG -fPIE")
+set(CMAKE_EXE_LINKER_FLAGS "-pie")
 set(CMAKE_OBJCXX_FLAGS_RELEASE "-O2 -DNDEBUG")
 endif()