adplug / adplay-unix

AdPlug's UNIX console-based frontend
GNU General Public License v2.0
12 stars 15 forks source link

segfaults with `-O ao` #16

Closed ildar closed 7 months ago

ildar commented 2 years ago

libao-1.2.2-alt5.x86_64

Core was generated by `adplay --output=ao 1.xm'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f8f86487d61 in ?? () from /lib64/libc.so.6
(gdb) bt
#0  0x00007f8f86487d61 in ?? () from /lib64/libc.so.6
#1  0x00007f8f86775432 in _sanitize_matrix (maxchannels=2, matrix=0x2 <error: Cannot access memory at address 0x2>, device=device@entry=0x563cdfd34570) at audio_out.c:634
#2  0x00007f8f86777701 in _open_device (driver_id=<optimized out>, format=0x7fff4b8275a0, options=0x0, file=<optimized out>) at audio_out.c:991
#3  0x0000563cdebe6791 in AOPlayer::AOPlayer(Copl*, char const*, unsigned char, int, int, unsigned long) () at ao.cc:48
#4  0x0000563cdebe4d37 in main () at adplay.cc:527
#5  0x00007f8f8634de2d in __libc_start_main () from /lib64/libc.so.6
#6  0x0000563cdebe5b2a in _start () at ../sysdeps/x86_64/start.S:120