[Qt-interest] glibc detected 'corrupted double-linked list' due to a static QCursor member variable in installed eventHandler?

Frank Hemer frank at hemer.org
Mon May 25 04:18:22 CEST 2009


Using Qt4.4.2:

The following code crashes on exit:

MyClass::MyClass () {
	...
	installEventFilter (this)
	...
}

bool MyClass::eventFilter (QObject * obj, QEvent * e) {
	static QCursor defaultCursor (Qt::ArrowCursor);
	return QObject::eventFilter (obj, e);
}

This happens on linux only.
Using a custom cursor or setting defaultCursor to a custom cursor before d'tor 
gets called fixes the problem.

Unfortunatelly it seems not to be reproducable in a simple example.

Has anybody else seen this behavior - so its worth filing a bug report?

Thanx
Frank



More information about the Qt-interest-old mailing list