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

Crash in QNetworkConfigurationManagerPrivate because of uninitialized member

XMLWordPrintable

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

      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).

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes