Hi, I have an intermittent crash within the Qt Code. I have run it with the Qt sources and the crash occurs on: Line 1273 of qcoreapplication.cpp.
It is due to a de-referenced pointer.
void QCoreApplication::postEvent(QObject *receiver, QEvent *event, int priority)
{
if (receiver == 0) {
qWarning("QCoreApplication::postEvent: Unexpected null receiver");
delete event;
return;
}
QThreadData * volatile * pdata = &receiver->d_func()->threadData;
QThreadData *data = *pdata; <===================================== CRASH HERE
if (!data) {
// posting during destruction? just delete the event to prevent a leak
delete event;
return;
}
// lock the post event mutex
data->postEventList.mutex.lock();
// if object has moved to another thread, follow it
while (data != *pdata) {
data->postEventList.mutex.unlock();
This is within the drag->exec() function, however looks like it may be due to Qt posting application events.
For more information please see the thread on stack overflow:
http://stackoverflow.com/questions/14856836/unknown-intermittent-crash-due-dragging-and-dropping-in-qt
↧