Crash capturing keys in Xonotic keyhunt
=================================================================
==8319==ERROR: AddressSanitizer: heap-use-after-free on address 0x619000e4c0c8 at pc 0x0000007f55b0 bp 0x7fff6fd13590 sp 0x7fff6fd13588
READ of size 4 at 0x619000e4c0c8 thread T0
#0 0x7f55af in R_GetCurrentTexture /home/matthias/xonotic/darkplaces/build-obj/debug/darkplaces-sdl/../../../gl_rmain.c:8326:59
#1 0x81cda5 in R_QueueModelSurfaceList /home/matthias/xonotic/darkplaces/build-obj/debug/darkplaces-sdl/../../../gl_rmain.c:11667:22
#2 0x81cda5 in R_DrawModelSurfaces /home/matthias/xonotic/darkplaces/build-obj/debug/darkplaces-sdl/../../../gl_rmain.c:12860
#3 0x857495 in R_Q1BSP_DrawDepth /home/matthias/xonotic/darkplaces/build-obj/debug/darkplaces-sdl/../../../gl_rsurf.c:660:3
#4 0x804609 in R_DrawModelsDepth /home/matthias/xonotic/darkplaces/build-obj/debug/darkplaces-sdl/../../../gl_rmain.c:5438:4
#5 0x804609 in R_RenderScene /home/matthias/xonotic/darkplaces/build-obj/debug/darkplaces-sdl/../../../gl_rmain.c:7538
#6 0x7fd68d in R_RenderView /home/matthias/xonotic/darkplaces/build-obj/debug/darkplaces-sdl/../../../gl_rmain.c:7413:2
#7 0x65b3f8 in VM_CL_R_RenderScene /home/matthias/xonotic/darkplaces/build-obj/debug/darkplaces-sdl/../../../clvm_cmds.c:3271:2
#8 0xb0f42e in CLVM_ExecuteProgram /home/matthias/xonotic/darkplaces/build-obj/debug/darkplaces-sdl/../../../prvm_execprogram.h:496:7
#9 0x6d3566 in CL_VM_UpdateView /home/matthias/xonotic/darkplaces/build-obj/debug/darkplaces-sdl/../../../csprogs.c:490:3
#10 0x6224ce in SCR_DrawScreen /home/matthias/xonotic/darkplaces/build-obj/debug/darkplaces-sdl/../../../cl_screen.c:2185:7
#11 0x6202e0 in CL_UpdateScreen /home/matthias/xonotic/darkplaces/build-obj/debug/darkplaces-sdl/../../../cl_screen.c:2926:3
#12 0x882f0e in Host_Main /home/matthias/xonotic/darkplaces/build-obj/debug/darkplaces-sdl/../../../host.c:1023:4
#13 0x4e35e7 in main /home/matthias/xonotic/darkplaces/build-obj/debug/darkplaces-sdl/../../../sys_sdl.c:249:2
#14 0x7f1a424cef49 in __libc_start_main (/usr/lib/libc.so.6+0x20f49)
#15 0x412029 in _start (/home/matthias/xonotic/darkplaces/darkplaces-sdl+0x412029)
0x619000e4c0c8 is located 72 bytes inside of 1024-byte region [0x619000e4c080,0x619000e4c480)
freed by thread T2 (SDLAudioP1) here:
#0 0x4b4d42 in __interceptor_free /home/matthias/LLVM/LLVM6/stage_2/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:68:3
#1 0x7f1a33e715a8 in vorbis_book_init_decode (/usr/lib/libvorbis.so.0+0x185a8)
#2 0x7f1a33e61ba7 (/usr/lib/libvorbis.so.0+0x8ba7)
previously allocated by thread T2 (SDLAudioP1) here:
#0 0x4b5083 in __interceptor_malloc /home/matthias/LLVM/LLVM6/stage_2/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:88:3
#1 0x7f1a33e70ca7 in _make_words (/usr/lib/libvorbis.so.0+0x17ca7)
Thread T2 (SDLAudioP1) created by T0 here:
#0 0x49e01d in __interceptor_pthread_create /home/matthias/LLVM/LLVM6/stage_2/llvm/projects/compiler-rt/lib/asan/asan_interceptors.cc:204:3
#1 0x7f1a430b940d (/usr/lib/libSDL2-2.0.so.0+0xe040d)
SUMMARY: AddressSanitizer: heap-use-after-free /home/matthias/xonotic/darkplaces/build-obj/debug/darkplaces-sdl/../../../gl_rmain.c:8326:59 in R_GetCurrentTexture
Shadow bytes around the buggy address:
0x0c32801c17c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c32801c17d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c32801c17e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c32801c17f0: 00 00 00 00 00 00 00 00 00 fa fa fa fa fa fa fa
0x0c32801c1800: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
=>0x0c32801c1810: fd fd fd fd fd fd fd fd fd[fd]fd fd fd fd fd fd
0x0c32801c1820: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
0x0c32801c1830: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
0x0c32801c1840: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
0x0c32801c1850: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
0x0c32801c1860: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==8319==ABORTING
not sure what exactly caused this, happened midgame.
Edited by Matthias Krüger