using QT 4.1.2, running the following piece of code causes X to crash:
int main(int argc, char *argv)
QApplication app(argc, argv);
QGLWidget *gl1 = new QGLWidget(&window);
QGLWidget *gl2 = new QGLWidget((QWidget*)NULL);
X crashes on the last makeCurrent() call.
Constructing the second QGLWidget with &window instead of NULL prevents the crash.
QT 4.1.2, using a slightly modified code that compiles with QT 3.3.5 doesn't
seem to crash.
Fedora Core 5 (2.6.16-1.2111_FC5)
Sorry about the phenomenal bug spam, guys. Adding xorg-team@ to the QA contact so bugs don't get lost in future.
Sorry for not getting back to you sooner. Is this still an issue with recent
servers? If so, can you please attach a backtrace?
See http://www.x.org/wiki/Development/Documentation/ServerDebugging for
instructions on how to provide useful information.