[BUG] 440.59 driver crashed on switching virtual desktop with running OpenGL application


I just encountered a crash in libnvidia-glcore.so.440.59 exactly when switching from a virtual desktop (where an OpenGL application, a Second Life viewer, was running) to another virtual desktop.
The stack trace dumped by the application shows without possible doubt that the crash occurred on return from libnvidia-glcore.so.440.59 to libpthread.so.0 (so it’s obviously related to the driver threading, which never caused any issue to me before today).

Here is the stack trace I got:

0   com.secondlife.indra.viewer	0x117494e LLAppViewerLinux::handleSyncCrashTrace() + 206
1   com.secondlife.indra.viewer	0x19540be default_unix_signal_handler(int, siginfo_t*, void*) + 1358
2   unknown	0x7ffff5b97fa0 /lib64/libpthread.so.0(+0x13fa0) [0x7ffff5b97fa0]
3   unknown	0x7fffe3f6b591 /usr/lib64/libnvidia-glcore.so.440.59(+0xee4591) [0x7fffe3f6b591]
4   unknown	0x7fffe3fd397c /usr/lib64/libnvidia-glcore.so.440.59(+0xf4c97c) [0x7fffe3fd397c]
5   unknown	0x7fffe3fd3ade /usr/lib64/libnvidia-glcore.so.440.59(+0xf4cade) [0x7fffe3fd3ade]
6   unknown	0x7fffe3fd4190 /usr/lib64/libnvidia-glcore.so.440.59(+0xf4d190) [0x7fffe3fd4190]
7   unknown	0x7fffe3fcd626 /usr/lib64/libnvidia-glcore.so.440.59(+0xf46626) [0x7fffe3fcd626]
8   unknown	0x7fffe3bf30f3 /usr/lib64/libnvidia-glcore.so.440.59(+0xb6c0f3) [0x7fffe3bf30f3]
9   unknown	0x7fffe3c356d6 /usr/lib64/libnvidia-glcore.so.440.59(+0xbae6d6) [0x7fffe3c356d6]
10  unknown	0x7fffe3c3ae91 /usr/lib64/libnvidia-glcore.so.440.59(+0xbb3e91) [0x7fffe3c3ae91]
11  unknown	0x7fffe3edc65c /usr/lib64/libnvidia-glcore.so.440.59(+0xe5565c) [0x7fffe3edc65c]
12  unknown	0x7ffff5b8cfbd /lib64/libpthread.so.0(+0x8fbd) [0x7ffff5b8cfbd]
13  unknown	0x7ffff531ce3f /lib64/libc.so.6(clone+0x3f) [0x7ffff531ce3f]

I never encountered such a crash with NVIDIA drivers and any OpenGL application before…

I’m also attaching a nvidia-bug-report.log below.
nvidia-bug-report.log.gz (1.11 MB)