distribution icon indicating copy to clipboard operation
distribution copied to clipboard

Segmentation fault in simple SDL2 program in 32-bit mode + wayland

Open inferrna opened this issue 2 years ago • 0 comments

Source: https://gist.githubusercontent.com/miguelmartin75/6946310/raw/544b3c409e9e2716d8a6b16ea2ce5cdb3aa7acee/SDL2.cpp

32 bit clang++ SDL2.cpp -L/usr/lib32/ -O0 -m32 -lSDL2 -lGL -o sdl2test32 64 bit clang++ SDL2.cpp -O0 -lSDL2 -lGL -o sdl2test

Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
#1  0xf7d8d812 in Wayland_VideoInit () at /builddir/build/BUILD/build32/src/video/wayland/SDL_waylandvideo.c:926
#2  0xf7d46aa5 in SDL_VideoInit_REAL () at /builddir/build/BUILD/build32/src/video/SDL_video.c:521
#3  0xf7c28878 in SDL_InitSubSystem_REAL () at /builddir/build/BUILD/build32/src/SDL.c:247
#4  0x5655627f in main ()
(gdb) 

I was intended to test this on the fresh system, but was unable to boot it: #3009

inferrna avatar Dec 19 '23 18:12 inferrna