I'm a developer working in Python, which often causes Avast's 15 second sandbox (free version) to scan some of my package entrypoints. An entrypoint is an .exe file python/setuptools creates to enable users to start a specific script from the commandline. This is normally ok, and can be canceled when I know I trust it, but there is a special case that causes the sandbox to BSOD Windows: If the entry point calls Python's standard library functions for opening a browser to a specific URL (in a new thread), then a new tab will be opened in my already open instance of Firefox. Upon completion (or close to completion) of the sandbox scan, a blue screen will appear, and the OS will restart.
The python code in question:
import webbrowser
import threading
browser = webbrowser.get()
def launch_browser():
browser.open(url, new=2)
threading.Thread(target=launch_browser).start()
I can submit a minidump, but an initial analysis says that it is firefox.exe that is the failing process, but aswSnx.sys is also involved. EXCEPTION_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%p referenced memory at 0x%p. The memory could not be %s.