Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
msvc asasn crash in SHGetFileInfoW (made with https://codeeval.dev)
This happened on Win 10. Testing x32 asan build of SumatraPDf.
==10996==ERROR: AddressSanitizer: attempting to call malloc_usable_size() for pointer which is not owned: 0x028f04f8
#0 0x11e502e in __asan_wrap_HeapSize D:\agent\_work\6\s\src\vctools\crt\asan\llvm\compiler-rt\lib\asan\asan_malloc_win.cc:237
#1 0x7629e31b in msize+0x2b (C:\WINDOWS\System32\ucrtbase.dll+0x1002e31b)
#2 0x7629e7d1 in register_onexit_function+0x231 (C:\WINDOWS\System32\ucrtbase.dll+0x1002e7d1)
#3 0x7629e68d in register_onexit_function+0xed (C:\WINDOWS\System32\ucrtbase.dll+0x1002e68d)
#4 0x7629e61c in register_onexit_function+0x7c (C:\WINDOWS\System32\ucrtbase.dll+0x1002e61c)
#5 0x7629c30f in o__register_onexit_function+0x6f (C:\WINDOWS\System32\ucrtbase.dll+0x1002c30f)
#6 0x7629c2af in o__register_onexit_function+0xf (C:\WINDOWS\System32\ucrtbase.dll+0x1002c2af)
#7 0x76b5832c in RegenerateUserEnvironment+0x226c (C:\WINDOWS\System32\SHELL32.dll+0x6996832c)
#8 0x76b58346 in RegenerateUserEnvironment+0x2286 (C:\WINDOWS\System32\SHELL32.dll+0x69968346)
#9 0x76b09c90 in SHELL32_IconCacheRestore+0x560 (C:\WINDOWS\System32\SHELL32.dll+0x69919c90)
#10 0x76b5da8c in Ordinal660+0x2c (C:\WINDOWS\System32\SHELL32.dll+0x6996da8c)
#11 0x76b09bee in SHELL32_IconCacheRestore+0x4be (C:\WINDOWS\System32\SHELL32.dll+0x69919bee)
#12 0x76b098f3 in SHELL32_IconCacheRestore+0x1c3 (C:\WINDOWS\System32\SHELL32.dll+0x699198f3)
#13 0x76b24744 in ILFindLastID+0xa4 (C:\WINDOWS\System32\SHELL32.dll+0x69934744)
#14 0x76aef0c4 in SHELL32_IconCacheCreate+0x34 (C:\WINDOWS\System32\SHELL32.dll+0x698ff0c4)
#15 0x76b00625 in SHGetImageList+0x95 (C:\WINDOWS\System32\SHELL32.dll+0x69910625)
#16 0x76bb8444 in Ordinal660+0x5a9e4 (C:\WINDOWS\System32\SHELL32.dll+0x699c8444)
#17 0x76b22565 in SHGetFileInfoW+0x805 (C:\WINDOWS\System32\SHELL32.dll+0x69932565)
#18 0x76b21d76 in SHGetFileInfoW+0x16 (C:\WINDOWS\System32\SHELL32.dll+0x69931d76)
#19 0xc4c7af in DrawStartPage C:\Users\kjk\src\sumatrapdf\src\SumatraAbout.cpp:722
#20 0xbdc365 in OnPaintAbout C:\Users\kjk\src\sumatrapdf\src\Canvas.cpp:1171
#21 0xbdca5e in WndProcCanvasAbout C:\Users\kjk\src\sumatrapdf\src\Canvas.cpp:1281
#22 0xbddad0 in WndProcCanvas C:\Users\kjk\src\sumatrapdf\src\Canvas.cpp:1483
#23 0x756946ca in AddClipboardFormatListener+0x4a (C:\WINDOWS\System32\USER32.dll+0x69e446ca)
#24 0x756760bb in CallWindowProcW+0xb2b (C:\WINDOWS\System32\USER32.dll+0x69e260bb)
#25 0x75675c59 in CallWindowProcW+0x6c9 (C:\WINDOWS\System32\USER32.dll+0x69e25c59)
#26 0x7567e62e in IsRectEmpty+0x1fe (C:\WINDOWS\System32\USER32.dll+0x69e2e62e)
#27 0x773441cc in KiUserCallbackDispatcher+0x4c (C:\WINDOWS\SYSTEM32\ntdll.dll+0x4b2f41cc)
#28 0x75674fcf in DispatchMessageW+0xf (C:\WINDOWS\System32\USER32.dll+0x69e24fcf)
#29 0xc705a1 in RunMessageLoop C:\Users\kjk\src\sumatrapdf\src\SumatraStartup.cpp:468
#30 0xc71e96 in WinMain C:\Users\kjk\src\sumatrapdf\src\SumatraStartup.cpp:879
#31 0x120a1d4 in __scrt_common_main_seh d:\agent\_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
#32 0x761a6358 in BaseThreadInitThunk+0x18 (C:\WINDOWS\System32\KERNEL32.DLL+0x6b816358)
#33 0x77337b73 in RtlGetAppContainerNamedObjectPath+0xe3 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x4b2e7b73)
#34 0x77337b43 in RtlGetAppContainerNamedObjectPath+0xb3 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x4b2e7b43)
Address 0x028f04f8 is a wild pointer.
SUMMARY: AddressSanitizer: bad-malloc_usable_size D:\agent\_work\6\s\src\vctools\crt\asan\llvm\compiler-rt\lib\asan\asan_malloc_win.cc:237 in __asan_wrap_HeapSize
==10996==ABORTING
SumatraPDF.exe has triggered a breakpoint.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.