Segfault related to alsa on a armhf linux machine


#1
Thread 8 "SDLAudioP2" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb06ff450 (LWP 16284)]
0x0053345c in ALSA_PlayDevice (this=0x84eec8)
at /home/cpi/misc/amulet/third_party/SDL2-2.0.9/src/audio/alsa/SDL_alsa_audio.c:348
348	    const Uint8 *sample_buf = (const Uint8 *) this->hidden->mixbuf;
(gdb) backtrace
#0  0x0053345c in ALSA_PlayDevice (this=0x84eec8)
    at /home/cpi/misc/amulet/third_party/SDL2-2.0.9/src/audio/alsa/SDL_alsa_audio.c:348
#1  0x004f0680 in SDL_RunAudio (devicep=0x84eec8)
    at /home/cpi/misc/amulet/third_party/SDL2-2.0.9/src/audio/SDL_audio.c:765
#2  0x004c2c16 in SDL_RunThread (data=0x84efe0)
    at /home/cpi/misc/amulet/third_party/SDL2-2.0.9/src/thread/SDL_thread.c:283
#3  0x004e6fea in RunThread (data=0x84efe0)
    at /home/cpi/misc/amulet/third_party/SDL2-2.0.9/src/thread/pthread/SDL_systhread.c:78
#4  0xb6db15d8 in start_thread (arg=0x0) at pthread_create.c:458
#5  0xb6d526fa in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:76
   from /lib/arm-linux-gnueabihf/libc.so.6

SDL2 version: 2.0.9
Arch: armv7l
System: Debian 9

not sure where to go from here…


#2

I assume “amulet” is this:

Is there a specific game triggering this, or is this just happening on startup?


#3

Yes it is.

It happens only when I try to create a window with am.window.