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

Crash in QNetworkConfigurationManagerPrivate because of uninitialized member

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • 4.8.x
    • 4.7.4
    • None
    • windows

    Description

      I sometimes get a crash at startup. The problem is that I have concurrent threads creating QNAM. The way the singleton for the QNetworkConfigurationManagerPrivate is done allows it to have 2 instances alive for a short period of time, out of which 1 will be deleted.

      The problem is when it is deleted, the member bearerThread is accessed. But this member was not initialized. To fix the problem, it needs to be initialized to 0 in the constructor (qnetworkconfigmanager_p.cpp:62).

      Attachments

        Issue Links

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

          Activity

            People

              phartman Peter Hartmann (closed Nokia identity) (Inactive)
              thierryb Thierry Bastian
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes