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

Crash in QNetworkSession destructor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.9.6
    • None
    • macOS HighSierra Version 10.13.4 (17E199)
      Xcode Version 9.4 (9F1027a)
      Qt 5.9.6
    • macOS

    Description

      Getting a crash that happens consistently after ~2 mins of the app running.

      Here's a stack trace:

      #0 0x0000608000365f40 in 0x608000365f40 ()
      #1 0x000000010e2dfdc9 in 0x10e2dfdc9 ()
      #2 0x0000000103262ea2 in QNetworkSession::~QNetworkSession() ()
      #3 0x00000001035426c2 in QObject::event(QEvent*) ()
      #4 0x0000000103519df8 in QCoreApplicationPrivate::notify_helper(QObject*, QEvent*) ()
      #5 0x0000000103519afd in QCoreApplication::notify(QObject*, QEvent*) ()
      #6 0x0000000103519a7f in QCoreApplication::notifyInternal2(QObject*, QEvent*) ()
      #7 0x000000010351ac32 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) ()
      #8 0x0000000105db3e8e in QCocoaEventDispatcherPrivate::processPostedEvents() ()
      #9 0x0000000105db4741 in QCocoaEventDispatcherPrivate::postedEventsSourceCallback(void*) ()
      #10 0x00007fff2c465a61 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ ()
      #11 0x00007fff2c51f47c in __CFRunLoopDoSource0 ()
      #12 0x00007fff2c4484c0 in __CFRunLoopDoSources0 ()
      #13 0x00007fff2c44793d in __CFRunLoopRun ()
      #14 0x00007fff2c4471a3 in CFRunLoopRunSpecific ()
      #15 0x00007fff2b72fd96 in RunCurrentEventLoopInMode ()
      #16 0x00007fff2b72fb06 in ReceiveNextEventCommon ()
      #17 0x00007fff2b72f884 in _BlockUntilNextEventMatchingListInModeWithFilter ()
      #18 0x00007fff299e2a73 in _DPSNextEvent ()
      #19 0x00007fff2a178e34 in -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] ()
      #20 0x00007fff299d7885 in -[NSApplication run] ()
      #21 0x0000000105db353d in QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
      #22 0x0000000103515742 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
      #23 0x000000010351a172 in QCoreApplication::exec() ()
      #24 0x000000010000f669 in main at /Users/timothyscaffidi/Documents/repos/depthkit/apps/depthkit/src/main.cpp:133
      #25 0x00007fff54761015 in start ()
      #26 0x00007fff54761015 in start ()
      

      Looking at the source of QNetworkSession::~QNetworkSession(), I see that there is no null check prior to deleting the pointer 'd':

      QNetworkSession::~QNetworkSession()
      {
          delete d;
      }

      Attachments

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

        Activity

          People

            tpochep Timur Pocheptsov
            timscaffidi Timothy Scaffidi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes