qt6-bb10/tests/auto
Thiago Macieira 950b35cf97 Clear the current thread data for the main thread
This avoids crashes accessing deleted memory when creating a QObject
after the last QObject had been deleted, like a qDebug() in global
destructors.

==41000== Invalid read of size 4
==41000==    at 0x5F01ED5: bool QBasicAtomicOps<4>::ref<int>(int&) (qatomic_x86.h:208)
==41000==    by 0x5F01309: QBasicAtomicInteger<int>::ref() (qbasicatomic.h:147)
==41000==    by 0x5F24051: QThreadData::ref() (qthread.cpp:100)
==41000==    by 0x614A984: QObject::QObject(QObject*) (qobject.cpp:681)
==41000==  Address 0x6ee73f0 is 0 bytes inside a block of size 152 free'd
==41000==    at 0x4A0736C: operator delete(void*) (vg_replace_malloc.c:480)
==41000==    by 0x5F240BF: QThreadData::deref() (qthread.cpp:109)
==41000==    by 0x6113F6B: QCoreApplicationData::~QCoreApplicationData() (qcoreapplication.cpp:268)

The comment right above the change in qthread.cpp looks eerily similar
to the problem I'm trying to fix. However, the actual change that
introduced the change is not in the Qt public history, so we can't
know for sure what the problem was then.

Change-Id: I0dba895b041fe6cf81e6f8939ca85035cd00aad1
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
2013-03-05 20:58:00 +01:00
..
android Add missing license header 2013-03-05 08:31:23 +01:00
bic/data Remove QPointerBase bic check. 2013-02-13 15:06:53 +01:00
cmake Merge remote-tracking branch 'origin/stable' into dev 2013-01-28 11:10:29 +01:00
compilerwarnings/data Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
concurrent Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
corelib Clear the current thread data for the main thread 2013-03-05 20:58:00 +01:00
dbus Add QDBusReply::error() const. 2013-03-01 09:39:23 +01:00
gui Introduced QWindow::setMask() to expose existing platform functionality. 2013-02-27 09:11:18 +01:00
guiapplauncher
network Add an encrypted() signal to QNetworkAccessManager and QNetworkReply. 2013-02-19 21:37:32 +01:00
opengl Remove duplicated code for handling OpenGL extensions in QtOpenGL 2013-02-17 20:31:30 +01:00
other Check for network module when building according auto tests 2013-02-19 19:20:53 +01:00
printsupport Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
shared Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
sql Merge remote-tracking branch 'origin/stable' into dev 2013-02-18 16:14:52 +01:00
testlib Merge remote-tracking branch 'origin/stable' into dev 2013-01-28 11:10:29 +01:00
tools moc: Support the '$' character as an identifier 2013-03-02 12:58:18 +01:00
widgets Make tst_qwidget more stable 2013-03-04 14:54:57 +01:00
xml Check for network module when building according auto tests 2013-02-19 19:20:53 +01:00
auto.pro Check for printsupport module when building according auto tests 2013-02-19 19:20:58 +01:00
network-settings.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qtest-config.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
test.pl Fix test script 2013-02-27 18:02:22 +01:00