Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-33744

host lookup: canceling a host lookup at app shutdown will crash

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P1: Critical
    • Some future release
    • 4.8.5
    • Network: DNS
    • None

    Description

      looks like the QHostInfoLookupManager is already destructed, but the socket still calling it or so:

      #0 QHostInfoLookupManager::abortLookup (this=0x0, id=19) at ../../../../../qt/src/network/kernel/qhostinfo.cpp:665
      #1 0x7848e5a0 in QAbstractSocket::disconnectFromHostImplementation (this=0x7e068d40) at ../../../../../qt/src/network/socket/qabstractsocket.cpp:2652
      #2 0x78491050 in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at .moc/release-shared/moc_qabstractsocket.cpp:154
      #3 QAbstractSocket::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at .moc/release-shared/moc_qabstractsocket.cpp:140
      #4 0x79d2e1d4 in QMetaMethod::invoke (this=0x77c3f5bc, object=0x7e068d40, connectionType=Qt::DirectConnection, returnValue=..., val0=..., val1=..., val2=..., val3=..., val4=..., val5=..., val6=..., val7=..., val8=..., val9=...) at ../../../../../qt/src/corelib/kernel/qmetaobject.cpp:1664
      #5 0x79d2fd30 in QMetaObject::invokeMethod (obj=0x7e068d40, member=<optimized out>, type=Qt::DirectConnection, ret=..., val0=..., val1=..., val2=..., val3=..., val4=..., val5=..., val6=..., val7=..., val8=..., val9=...) at ../../../../../qt/src/corelib/kernel/qmetaobject.cpp:1179
      #6 0x7848d280 in invokeMethod (val9=..., val8=..., val7=..., val6=..., val5=..., val4=..., val3=..., val2=..., val1=..., val0=..., type=Qt::DirectConnection, member=0x784c1f9c "disconnectFromHostImplementation", obj=<optimized out>) at ../../include/QtCore/../../../../../qt/src/corelib/kernel/qobjectdefs.h:418
      #7 QAbstractSocket::disconnectFromHost (this=<optimized out>) at ../../../../../qt/src/network/socket/qabstractsocket.cpp:2609
      #8 0x7848d3a4 in QAbstractSocket::close (this=0x7e068d40) at ../../../../../qt/src/network/socket/qabstractsocket.cpp:2587
      #9 0x7848cf5a in QAbstractSocket::abort (this=0x7e068d40) at ../../../../../qt/src/network/socket/qabstractsocket.cpp:2214
      #10 0x7848cf92 in QAbstractSocket::~QAbstractSocket (this=0x7e068d40, __in_chrg=<optimized out>) at ../../../../../qt/src/network/socket/qabstractsocket.cpp:1424
      #11 0x78492696 in QTcpSocket::~QTcpSocket (this=0x7e068d40, __in_chrg=<optimized out>) at ../../../../../qt/src/network/socket/qtcpsocket.cpp:113
      #12 0x784926ca in QTcpSocket::~QTcpSocket (this=0x7e068d40, __in_chrg=<optimized out>) at ../../../../../qt/src/network/socket/qtcpsocket.cpp:113
      #13 0x784a5158 in QSslSocket::~QSslSocket (this=0x7e0688f0, __in_chrg=<optimized out>) at ../../../../../qt/src/network/ssl/qsslsocket.cpp:364
      #14 0x784a51a2 in QSslSocket::~QSslSocket (this=0x7e0688f0, __in_chrg=<optimized out>) at ../../../../../qt/src/network/ssl/qsslsocket.cpp:366
      #15 0x7842ea36 in QHttpNetworkConnectionPrivate::~QHttpNetworkConnectionPrivate (this=0x7e065af0, __in_chrg=<optimized out>) at ../../../../../qt/src/network/access/qhttpnetworkconnection.cpp:113
      #16 0x7842ebf6 in QHttpNetworkConnectionPrivate::~QHttpNetworkConnectionPrivate (this=0x7e065af0, __in_chrg=<optimized out>) at ../../../../../qt/src/network/access/qhttpnetworkconnection.cpp:117
      #17 0x79d3a3a0 in cleanup (pointer=<optimized out>) at ../../include/QtCore/../../../../../qt/src/corelib/tools/qscopedpointer.h:62
      #18 ~QScopedPointer (this=0x7e061714, __in_chrg=<optimized out>) at ../../include/QtCore/../../../../../qt/src/corelib/tools/qscopedpointer.h:100
      #19 QObject::~QObject (this=0x7e061710, __in_chrg=<optimized out>) at ../../../../../qt/src/corelib/kernel/qobject.cpp:939
      #20 0x7842cfb6 in QHttpNetworkConnection::~QHttpNetworkConnection (this=0x7e061710, __in_chrg=<optimized out>) at ../../../../../qt/src/network/access/qhttpnetworkconnection.cpp:921
      #21 0x784627a0 in ~QNetworkAccessCachedHttpConnection (this=0x7e061710, __in_chrg=<optimized out>) at ../../../../../qt/src/network/access/qhttpthreaddelegate.cpp:154
      #22 QNetworkAccessCachedHttpConnection::~QNetworkAccessCachedHttpConnection (this=0x7e061710, __in_chrg=<optimized out>) at ../../../../../qt/src/network/access/qhttpthreaddelegate.cpp:154
      #23 0x78462698 in QNetworkAccessCachedHttpConnection::dispose (this=<optimized out>) at ../../../../../qt/src/network/access/qhttpthreaddelegate.cpp:181
      #24 0x7843d296 in QNetworkAccessCache::clear (this=0x7dfb4610) at ../../../../../qt/src/network/access/qnetworkaccesscache.cpp:126
      #25 0x7843d416 in QNetworkAccessCache::~QNetworkAccessCache (this=0x7dfb4610, __in_chrg=<optimized out>) at ../../../../../qt/src/network/access/qnetworkaccesscache.cpp:113
      #26 0x7843d4aa in QNetworkAccessCache::~QNetworkAccessCache (this=0x7dfb4610, __in_chrg=<optimized out>) at ../../../../../qt/src/network/access/qnetworkaccesscache.cpp:114
      #27 0x784626c8 in qThreadStorage_deleteData<QNetworkAccessCache> (d=<optimized out>) at ../../include/QtCore/../../../../../qt/src/corelib/thread/qthreadstorage.h:97
      #28 QThreadStorage<QNetworkAccessCache*>::deleteData (x=<optimized out>) at ../../include/QtCore/../../../../../qt/src/corelib/thread/qthreadstorage.h:140
      #29 0x79c64a54 in QThreadStorageData::finish (p=0x7dff0e04) at ../../../../../qt/src/corelib/thread/qthreadstorage.cpp:203
      #30 0x79c65622 in QThreadPrivate::finish (arg=0x7dffc050) at ../../../../../qt/src/corelib/thread/qthread_unix.cpp:361
      #31 0x79c662fa in QThreadPrivate::start (arg=0x7dffc050) at ../../../../../qt/src/corelib/thread/qthread_unix.cpp:340
      #32 0x016c5320 in timer_settime (timerid=<optimized out>, flags=<optimized out>, value=<optimized out>, ovalue=0x0) at ../../timer_settime.c:51
      #33 0x00000000 in ?? ()

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            peter-har Peter Hartmann
            peter-har Peter Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes