Cinnamon receives segfault from libnvidia-glcore.so

Hello,

I’m running Linux Mint 18.2, Cinnamon 3.4.3 and nvidia-384 driver.

When I switch to tty1 and try to do cinnamon --replace, it ends with a segfault.

Here’s the full output with gdb:

GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from cinnamon...(no debugging symbols found)...done.
Starting program: /usr/bin/cinnamon --replace
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe2687700 (LWP 24021)]
[New Thread 0x7fffe1e86700 (LWP 24022)]
[New Thread 0x7fffe1478700 (LWP 24023)]
[New Thread 0x7fffe0c77700 (LWP 24024)]
[New Thread 0x7fffe0bf6700 (LWP 24025)]
[New Thread 0x7fffe0b75700 (LWP 24026)]
[New Thread 0x7fffe0af4700 (LWP 24027)]
[New Thread 0x7fffe0a73700 (LWP 24028)]
[New Thread 0x7fffe09f2700 (LWP 24029)]
[New Thread 0x7fffe0971700 (LWP 24030)]
[New Thread 0x7fffe08f0700 (LWP 24031)]
Cjs-Message: JS LOG: About to start Cinnamon
St-Message: cogl npot texture sizes SUPPORTED
Cjs-Message: JS LOG: Cinnamon started at Sun Oct 22 2017 14:58:22 GMT+0100 (BST)

(cinnamon:24015): St-WARNING **: Ignoring length property that isn't a number at line 1526, col 13
Cjs-Message: JS LOG: network applet: Cannot find connection for active (or connection cannot be read)
[New Thread 0x7fffa891f700 (LWP 24036)]
[New Thread 0x7fffa3fff700 (LWP 24037)]
openGL version 3.1 detected (GL3 Cogl Driver)

(cinnamon:24015): St-WARNING **: Failed to allocate offscreen for texture (sized 22)
[New Thread 0x7fffa31ff700 (LWP 24039)]

Thread 1 "cinnamon" received signal SIGSEGV, Segmentation fault.
0x00007fffe3a0b92b in ?? () from /usr/lib/nvidia-384/libnvidia-glcore.so.384.90
(gdb) quit
A debugging session is active.

	Inferior 1 [process 24015] will be killed.

Quit anyway? (y or n) y

I have reported this to the cinnamon team and was told it’s a problem with the driver.

More than happy to provide any additional info needed to fix this.
nvidia-bug-report.log.gz (244 KB)