nvidia-settings crashes after upgrading to nvidia-drivers-361.18-r1 (gentoo)

nvidia-settings crashes when I try to start it. This worked fine with the -358.16 version of the drivers.

$ nvidia-settings 
Segmentation fault
$ nvidia-settings -v

nvidia-settings:  version 361.18  (buildmeister@swio-display-x64-rhel04-13)  Sat Jan  9 21:51:07 PST 2016
  The NVIDIA X Server Settings tool.

  This program is used to configure the NVIDIA Linux graphics driver.
  For more detail, please see the nvidia-settings(1) man page.

Last line of my ‘dmesg’

[ 1385.011482] nvidia-settings[10612]: segfault at 0 ip 00007fefc25a50af sp 00007fff2c79e598 error 4 in libc-2.21.so[7fefc251b000+18e000]

gdb output

$ gdb nvidia-settings
GNU gdb (Gentoo 7.10.1 vanilla) 7.10.1
Copyright (C) 2015 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-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.gentoo.org/>.
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 nvidia-settings...(no debugging symbols found)...done.
(gdb) run
Starting program: /opt/bin/nvidia-settings 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff707d0af in rawmemchr () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ffff707d0af in rawmemchr () from /lib64/libc.so.6
#1  0x00007ffff7068772 in ?? () from /lib64/libc.so.6
#2  0x00007ffff7058d67 in __isoc99_vsscanf () from /lib64/libc.so.6
#3  0x00007ffff7058d07 in __isoc99_sscanf () from /lib64/libc.so.6
#4  0x00007ffff3c4fe81 in epoxy_glx_version () from /usr/lib64/libepoxy.so.0
#5  0x00007ffff5a9cd39 in ?? () from /usr/lib64/libgdk-3.so.0
#6  0x00007ffff5a9d05a in ?? () from /usr/lib64/libgdk-3.so.0
#7  0x00007ffff5aa563e in ?? () from /usr/lib64/libgdk-3.so.0
#8  0x00007ffff5aa25e6 in ?? () from /usr/lib64/libgdk-3.so.0
#9  0x00007ffff5a94c45 in ?? () from /usr/lib64/libgdk-3.so.0
#10 0x00007ffff5a6f357 in gdk_display_manager_open_display () from /usr/lib64/libgdk-3.so.0
#11 0x00007ffff5efd780 in gtk_init_check () from /usr/lib64/libgtk-3.so.0
#12 0x000000000040a03a in main ()
(gdb)

nvidia-bug-report.log.gz (181 KB)