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

Crash in QNetworkConfigurationManagerPrivate because of uninitialized member

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Duplicate
    • Affects Version/s: 4.7.4
    • Fix Version/s: 4.8.x
    • Labels:
      None
    • Environment:
      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

              Assignee:
              phartman Peter Hartmann (closed Nokia identity) (Inactive)
              Reporter:
              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