Exited correctely
[Thread 0x7fffdf6b0700 (LWP 29033) exited]
[Thread 0x7ffff542b700 (LWP 29032) exited]
Exited correctely
Thread 1 "PK2" received signal SIGSEGV, Segmentation fault.
0x00007ffff780cf28 in Mix_FreeMusic () from /usr/lib/libSDL2_mixer-2.0.so.0
(gdb) bt
#0 0x00007ffff780cf28 in Mix_FreeMusic () from /usr/lib/libSDL2_mixer-2.0.so.0
#1 0x0000555555587ffe in PisteSound_End () at engine/PisteSound.cpp:168
#2 0x0000555555588286 in Piste_Quit () at engine/PisteEngine.cpp:126
#3 0x0000555555575ba0 in quit () at src/pk2.cpp:7948
#4 0x00007ffff734723c in __run_exit_handlers () from /usr/lib/libc.so.6
#5 0x00007ffff734736e in exit () from /usr/lib/libc.so.6
#6 0x00007ffff733100a in __libc_start_main () from /usr/lib/libc.so.6
#7 0x00005555555577ae in _start ()
It's not a big problem since it happens when exiting PK2. But I guess it would be better if PK2 could exit without a segmentation fault.
The segfault happens when freeing the music.
GDB log: