Created attachment 99436 [details] gdb messages when Krita is quit it segfaults.
Created attachment 99437 [details] gdb bt
Hm, that is the same crash Eugene reported on irc, and I have only seen that crash when building Krita in debug mode: 09.06.2016-08:06 < eugening> boud: hmm. odd. for me it crashes in ~KoID 09.06.2016-08:11 < eugening> I see that the address corresponds to this line: const KoID KisLayerPropertiesIcons::colorLabelIndex("color-label", ki18n("Color Label")); Can you also attach your CMakeCache.txt file?
Created attachment 99480 [details] cmakecache
This happens when const KoID KisLayerPropertiesIcons::colorLabelIndex("color-label", ki18n("Color Label")); gets destructed.
I'd recommend building with RelWithDebInfo instead -- this is likely not fixable :-(