Bug 221124

Summary: FreeBSD11.1 + nvidia + libmap.conf~gcc crashes most apps
Product: Base System Reporter: Hannes Hauswedell <h2+fbsdports>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Some People    
Priority: ---    
Version: 11.1-RELEASE   
Hardware: Any   
OS: Any   

Description Hannes Hauswedell 2017-07-31 14:35:17 UTC
I use my workstation for software development and make use of the great weekly compiler snapshots of gcc and clang. To make the newer GCCs work out-of-the-box I have added to my /etc/libmap.conf:
libgcc_s.so.1   gcc8/libgcc_s.so.1
libgomp.so.1    gcc8/libgomp.so.1
libssp.so.0     gcc8/libssp.so.0
libstdc++.so.6  gcc8/libstdc++.so.6

This has always worked fine. But, after my first update to FreeBSD11.0, everything seemed broken, many apps (Firefox, gajim) immediately segfaulted, some after routine usage (most KDE apps). At the time a downgrade of the nvidia-driver to 340 solved these problems.

Now, after updating to 11.1 I was seeing them again, independent of the Nvidia-driver version. After some investigation, I found that this little test:
already triggers the problem. It belongs to 
so I suspect the whole thing is related to the parallel introduction of mesa-libs with the nvidia driver and some shared library magic breaking with newer GCC's standard library?

I can work around this for now, but it was  quite hard to actually pin this down to libmap.conf and I suspect it will cause issues in other situations, as well. 

Thanks for your help,