Fix cmake order#8
Open
ChillerDragon wants to merge 1 commit into
Open
Conversation
Pointer31
pushed a commit
that referenced
this pull request
May 10, 2026
On archlinux by default sdl2 is replaced by sdl2-compat which uses sdl3 under the hood. And a recent update of it caused a segfault during launch of the headless client for me. ``` $ uname -a Linux archlinux 6.18.9-arch1-2 #1 SMP PREEMPT_DYNAMIC Mon, 09 Feb 2026 17:16:33 +0000 x86_64 GNU/Linux $ pacman -Q | grep sdl qemu-audio-sdl 10.2.0-3 qemu-ui-sdl 10.2.0-3 sdl12-compat 1.2.68-2 sdl2-compat 2.32.64-1 sdl2_image 2.8.8-1 sdl3 3.4.0-4 ``` ``` cmake .. -DCMAKE_BUILD_TYPE=Debug -DHEALDESS_CLIENT=ON make gdb ./DDNet ``` causes this segfault directly on start: ``` 2026-02-19 10:52:00 I sound: sound init successful using audio driver 'pipewire' 2026-02-19 10:52:00 I textrender: Freetype version 2.14.1 (compiled = 2.14.1) Thread 1 "DDNet" received signal SIGSEGV, Segmentation fault. 0x00007fffe214bf6b in ?? () from /usr/lib/libSDL3.so.0 (gdb) bt #0 0x00007fffe214bf6b in ??? () at /usr/lib/libSDL3.so.0 #1 0x00007ffff7d72e7b in ??? () at /usr/lib/libSDL2-2.0.so.0 #2 0x00007ffff7d72f46 in ??? () at /usr/lib/libSDL2-2.0.so.0 #3 0x0000555555955ea8 in CGraphicsBackend_SDL_GL::SetWindowGrab (this=0x555556212bd0, Grab=true) at /home/chiller/Desktop/git/ddnet/src/engine/client/backend_sdl.cpp:1718 #4 0x00005555559a0676 in CGraphics_Threaded::SetWindowGrab (this=0x7fffb4e99010, Grab=true) at /home/chiller/Desktop/git/ddnet/src/engine/client/graphics_threaded.cpp:2746 #5 0x00005555559b7d23 in CInput::MouseModeRelative (this=0x5555560c23b0) at /home/chiller/Desktop/git/ddnet/src/engine/client/input.cpp:296 #6 0x00005555559b7090 in CInput::Init (this=0x5555560c23b0) at /home/chiller/Desktop/git/ddnet/src/engine/client/input.cpp:100 #7 0x0000555555969fc4 in CClient::Run (this=0x7fffe15da010) at /home/chiller/Desktop/git/ddnet/src/engine/client/client.cpp:3130 #8 0x0000555555973aa5 in main (argc=1, argv=0x7fffffffccd8) at /home/chiller/Desktop/git/ddnet/src/engine/client/client.cpp:5002 ```
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.