KDE crash handler occurs when launching applications

Symptom

KDE crash handler occurs when launching applications.

Detail

When launching application such as terminal under KDE, the crash handler occurs. Using backtrace, the system reports the following error messages:

from /opt/kde3/lib64/libkdecore.so.4
#2 0x0000002a98321bde in __pthread_sighandler () from /lib64/libpthread.so.0
#3 
#4 0x0000002a97149fb2 in glXChannelRectSyncSGIX () from /usr/lib64/libGL.so.1
#5 0x0000002a9714c183 in glXChannelRectSyncSGIX () from /usr/lib64/libGL.so.1
#6 0x0000002a97efbc3b in XCloseDisplay () from /usr/X11R6/lib64/libX11.so.6
#7 0x0000002a96a719d6 in qt_cleanup() () from /usr/lib/qt3/lib64/libqt-mt.so.3
#8 0x0000002a96ad1000 in QApplication::~QApplication() ()
from /usr/lib/qt3/lib64/libqt-mt.so.3
#9 0x0000002a960c55d5 in KApplication::~KApplication() ()
from /opt/kde3/lib64/libkdecore.so.4
#10 0x000000000040e0aa in main ()

Solution

The symptom occurs because the Mesa has been updated or reinstalled on system running with the Nvidia binary driver. Since the Nvidia binary driver includes a different set of OpenGL libraries, reinstalling or updating the Mesa OpenGL package overwrites the Nvidia OpenGL libraries. Since the Nvidia OpenGL libraries have been overwritten, X applications that access them will crash.

To fix the problem, reinstalling the Nvidia binary driver.