Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash with MSVC Address Sanitizer #58

Open
devshgraphicsprogramming opened this issue Jun 24, 2021 · 2 comments
Open

Crash with MSVC Address Sanitizer #58

devshgraphicsprogramming opened this issue Jun 24, 2021 · 2 comments
Labels
question Further information is requested

Comments

@devshgraphicsprogramming

Callstack of the crashing frame

>	KernelBase.dll!00007ff96c3a4b89()	Unknown
 	[External Code]	
 	ntdll.dll!00007ff96e6c8a4c()	Unknown
 	ntdll.dll!00007ff96e6a1276()	Unknown
 	ntdll.dll!00007ff96e6f0cae()	Unknown
 	ucrtbase.dll!00007ff96bf48919()	Unknown
 	windows.storage.dll!00007ff969ff113e()	Unknown
 	windows.storage.dll!00007ff969fce89f()	Unknown
 	shell32.dll!00007ff96cc8726f()	Unknown
 	ExplorerFrame.dll!00007ff938a8670b()	Unknown
 	ExplorerFrame.dll!00007ff938a0a490()	Unknown
 	ExplorerFrame.dll!00007ff938a0a418()	Unknown
 	ExplorerFrame.dll!00007ff938a3dab6()	Unknown
 	ExplorerFrame.dll!00007ff938a3de8a()	Unknown
 	ExplorerFrame.dll!00007ff938a5310a()	Unknown
 	shell32.dll!00007ff96ccaad7c()	Unknown
 	shell32.dll!00007ff96cca8e3f()	Unknown
 	shell32.dll!00007ff96cca8aaf()	Unknown
 	dui70.dll!00007ff927adee7c()	Unknown
 	dui70.dll!00007ff927ad984d()	Unknown
 	dui70.dll!00007ff927aebae0()	Unknown
 	dui70.dll!00007ff927ada220()	Unknown
 	dui70.dll!00007ff927ada332()	Unknown
 	dui70.dll!00007ff927ada332()	Unknown
 	dui70.dll!00007ff927ada332()	Unknown
 	dui70.dll!00007ff927ada332()	Unknown
 	dui70.dll!00007ff927adc97f()	Unknown
 	dui70.dll!00007ff927adc61a()	Unknown
 	shell32.dll!00007ff96cce4356()	Unknown
 	shell32.dll!00007ff96cce3e72()	Unknown
 	shell32.dll!00007ff96cd11670()	Unknown
 	shell32.dll!00007ff96cd1107e()	Unknown
 	shell32.dll!00007ff96cd0fd87()	Unknown
 	shell32.dll!00007ff96cd0fa53()	Unknown
 	shell32.dll!00007ff96cd2b630()	Unknown
 	comdlg32.dll!00007ff96d961cc9()	Unknown
 	comdlg32.dll!00007ff96d963d9d()	Unknown
 	comdlg32.dll!00007ff96d946331()	Unknown
 	user32.dll!00007ff96e40297f()	Unknown
 	user32.dll!00007ff96e4020c2()	Unknown
 	user32.dll!00007ff96e401fd6()	Unknown
 	user32.dll!00007ff96e3fe858()	Unknown
 	user32.dll!00007ff96e3fde1b()	Unknown
 	user32.dll!00007ff96e3f6b4d()	Unknown
 	user32.dll!00007ff96e41d427()	Unknown
 	user32.dll!00007ff96e41d2f2()	Unknown
 	user32.dll!00007ff96e41d288()	Unknown
 	comdlg32.dll!00007ff96d97608a()	Unknown
 	comdlg32.dll!00007ff96d953084()	Unknown
 	comdlg32.dll!00007ff96d9ba404()	Unknown
 	comdlg32.dll!00007ff96d9b8cfa()	Unknown
 	comdlg32.dll!00007ff96d9bdade()	Unknown
 	SHCore.dll!00007ff96d38e449()	Unknown
 	[External Code]	
 	kernel32.dll!00007ff96d427034()	Unknown
 	ntdll.dll!00007ff96e6a2651()	Unknown

Thread state when I crash

Not Flagged		4924	0	Main Thread	Main Thread	raytracedao_rwdi.exe!Concurrency::details::stl_condition_variable_win7::wait_for
Not Flagged		25896	0	Worker Thread	ntdll.dll thread	ntdll.dll!00007ff96e6f0874
Not Flagged		4316	0	Worker Thread	ntdll.dll thread	ntdll.dll!00007ff96e6f0874
Not Flagged		21840	0	Worker Thread	ntdll.dll thread	ntdll.dll!00007ff96e6f0874
Not Flagged		14324	0	Worker Thread	ntdll.dll thread	win32u.dll!00007ff96c3411c4
Not Flagged		18416	0	Worker Thread	ntdll.dll thread	ntdll.dll!00007ff96e6f0874
Not Flagged		27228	0	Worker Thread	raytracedao_rwdi.exe!asan_thread_start	win32u.dll!00007ff96c34a104
Not Flagged		22168	0	Worker Thread	raytracedao_rwdi.exe!asan_thread_start	nvoglv64.dll!00007ff8f72a56da
Not Flagged		2044	0	Worker Thread	raytracedao_rwdi.exe!asan_thread_start	nvoglv64.dll!00007ff8f72df307
Not Flagged		16288	0	Worker Thread	raytracedao_rwdi.exe!asan_thread_start	win32u.dll!00007ff96c341124
Not Flagged	>	24300	0	Worker Thread	ntdll.dll thread	raytracedao_rwdi.exe!__asan::ShadowExceptionHandler
Not Flagged		23076	0	Worker Thread	raytracedao_rwdi.exe!asan_thread_start	win32u.dll!00007ff96c34a104
Not Flagged		23796	0	Worker Thread	raytracedao_rwdi.exe!asan_thread_start	combase.dll!00007ff96c78b296
Not Flagged		17428	0	Worker Thread	ntdll.dll thread	ntdll.dll!00007ff96e6f0874
Not Flagged		12632	0	Worker Thread	ntdll.dll thread	ntdll.dll!00007ff96e6f0874
Not Flagged		12376	0	Worker Thread	raytracedao_rwdi.exe!asan_thread_start	combase.dll!00007ff96c78b296
Not Flagged		14656	0	Worker Thread	raytracedao_rwdi.exe!asan_thread_start	win32u.dll!00007ff96c34a104
Not Flagged		15860	0	Worker Thread	ntdll.dll thread	win32u.dll!00007ff96c34a104
Not Flagged		26620	0	Worker Thread	ntdll.dll thread	dlnashext.dll!00007ff937627ef8
Not Flagged		22384	0	Worker Thread	ntdll.dll thread	win32u.dll!00007ff96c34a104
Not Flagged		6556	0	Worker Thread	raytracedao_rwdi.exe!asan_thread_start	combase.dll!00007ff96c787665
Not Flagged		18644	0	Worker Thread	ntdll.dll thread	MMDevAPI.dll!00007ff965a7a21b

I crash right after the open file dialog opens

		pfd::message("Choose file to load", "Choose mitsuba XML file to load or ZIP containing an XML. \nIf you cancel or choosen file fails to load, simple scene will be loaded.", pfd::choice::ok);
		pfd::open_file file("Choose XML or ZIP file", "../../media/mitsuba", { "ZIP files (.zip)", "*.zip", "XML files (.xml)", "*.xml"});
		if (!file.result().empty())

in the file.result() call while looping on the window.

@samhocevar
Copy link
Owner

I am afraid I am unable to reproduce this with a simple programs that consists of the above three lines, with Visual Studio 2019 16.10.2. I tried all combinations of x86/x64 and Debug/Release.

Is this part of a more complex application? Do you think you could provide a repro case?

@samhocevar samhocevar added the question Further information is requested label Jun 24, 2021
@devshgraphicsprogramming
Copy link
Author

Did you try static mulithreaded runtime libs (no dlls) + ASAN?

Yeah its part of some examples in my engine
https://github.com/Devsh-Graphics-Programming/Nabla/tree/pathtracing

its a pretty huge repo, you need to select the following extra options in cmake to compile example 22

NBL_BUILD_MITSUBA_LOADER
NBL_RADEON_RAYS

for the crashbug

NBL_SANITIZE_ADDRESS

but examples 18 and 44 should crash too (I'll check soon).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants