Summary
Running the unix simulator crashes immediately with signal 11 (SIGSEGV) on systems with NVIDIA GPU drivers and SDL2.
$ cd test && ../bin/micropython_unix run_tests.py
# crashes with SIGSEGV, exit code -11
Workaround
SDL_VIDEODRIVER=software python3 run_tests.py
Or set SDL_VIDEODRIVER=software as an environment variable before running.
Environment
- NVIDIA GPU (confirmed on multiple cards)
- SDL2 with hardware-accelerated video driver
- Ubuntu Linux
Proposed fix
Add a SIGSEGV check in test/integration/util/controller.py SimController.start() — detect proc.poll() == -11 and print the workaround message. Alternatively, set SDL_VIDEODRIVER=software automatically in the test runner.
Summary
Running the unix simulator crashes immediately with signal 11 (SIGSEGV) on systems with NVIDIA GPU drivers and SDL2.
Workaround
Or set
SDL_VIDEODRIVER=softwareas an environment variable before running.Environment
Proposed fix
Add a SIGSEGV check in
test/integration/util/controller.pySimController.start()— detectproc.poll() == -11and print the workaround message. Alternatively, setSDL_VIDEODRIVER=softwareautomatically in the test runner.