[Scummvm-tracker] [ScummVM :: Bugs] #12810: SCI: Police Quest IV sometimes segfaults in DEV version with __memmove_avx_unaligned_erms () when the menu button is pressed

ScummVM :: Bugs trac at scummvm.org
Mon Aug 16 21:56:24 UTC 2021


#12810: SCI: Police Quest IV sometimes segfaults in DEV version with
__memmove_avx_unaligned_erms () when the menu button is pressed
----------------------+-----------------------------
Reporter:  heavysink  |       Owner:  (none)
    Type:  defect     |      Status:  new
Priority:  normal     |   Component:  Engine: SCI
 Version:             |  Resolution:
Keywords:             |        Game:  Police Quest 4
----------------------+-----------------------------
Comment (by heavysink):

 Hi,

 I run it again with ./configure --enable-asan --disable-all-engines
 --enable-engine=sci32 and this time it will quit during game. The message
 is


 {{{
 ==217823==ERROR: AddressSanitizer: alloc-dealloc-mismatch (operator new []
 vs operator delete) on 0x7fffe4f3d800
     #0 0x7ffff7675819 in operator delete(void*)
 /build/gcc/src/gcc/libsanitizer/asan/asan_new_delete.cpp:160
     #1 0x55555655e096  (/usr/bin/scummvm+0x100a096)
     #2 0x55555652513b  (/usr/bin/scummvm+0xfd113b)
     #3 0x555556554851  (/usr/bin/scummvm+0x1000851)
     #4 0x555556554a57  (/usr/bin/scummvm+0x1000a57)
     #5 0x5555565d652d  (/usr/bin/scummvm+0x108252d)
     #6 0x5555565b424c  (/usr/bin/scummvm+0x106024c)
     #7 0x7ffff74978e3  (/usr/lib/libSDL2-2.0.so.0+0x788e3)
     #8 0x7ffff7497442  (/usr/lib/libSDL2-2.0.so.0+0x78442)
     #9 0x7ffff753b0b9  (/usr/lib/libSDL2-2.0.so.0+0x11c0b9)
     #10 0x7ffff648b258 in start_thread (/usr/lib/libpthread.so.0+0x9258)
     #11 0x7ffff60585e2 in __GI___clone (/usr/lib/libc.so.6+0xfe5e2)

 0x7fffe4f3d800 is located 0 bytes inside of 10485760-byte region
 [0x7fffe4f3d800,0x7fffe593d800)
 allocated by thread T4 (SDLTimer) here:
     #0 0x7ffff7674e21 in operator new[](unsigned long)
 /build/gcc/src/gcc/libsanitizer/asan/asan_new_delete.cpp:102
     #1 0x555556528312  (/usr/bin/scummvm+0xfd4312)
     #2 0x55555652b997  (/usr/bin/scummvm+0xfd7997)
     #3 0x55555655f886  (/usr/bin/scummvm+0x100b886)
     #4 0x5555565257fe  (/usr/bin/scummvm+0xfd17fe)
     #5 0x555556560915  (/usr/bin/scummvm+0x100c915)
     #6 0x555556554665  (/usr/bin/scummvm+0x1000665)
     #7 0x555556554a57  (/usr/bin/scummvm+0x1000a57)
     #8 0x5555565d652d  (/usr/bin/scummvm+0x108252d)
     #9 0x5555565b424c  (/usr/bin/scummvm+0x106024c)
     #10 0x7ffff74978e3  (/usr/lib/libSDL2-2.0.so.0+0x788e3)

 Thread T4 (SDLTimer) created by T0 here:
     #0 0x7ffff7614fa7 in __interceptor_pthread_create
 /build/gcc/src/gcc/libsanitizer/asan/asan_interceptors.cpp:216
     #1 0x7ffff753b137  (/usr/lib/libSDL2-2.0.so.0+0x11c137)

 SUMMARY: AddressSanitizer: alloc-dealloc-mismatch
 /build/gcc/src/gcc/libsanitizer/asan/asan_new_delete.cpp:160 in operator
 delete(void*)
 ==217823==HINT: if you don't care about these errors you may set
 ASAN_OPTIONS=alloc_dealloc_mismatch=0
 ==217823==ABORTING
 }}}
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/12810#comment:2>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list