Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-15257

CPU 100% caused by unique_ptr<base_class>

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • Qt Creator 3.6.0-rc1
    • Qt Creator 3.5.1, Qt Creator 3.6.0-beta1
    • C/C++/Obj-C++ Support
    • None
    • Ubuntu 14.04 running in VMware Player 7.1.2 build-2780323
      Mac OS 10.11.1 running Xcode 7.0 / clang 7.0.0

      Just typing the following code (without even saving the file) causes 1 of 4 CPU cores go to 100% load. After a minute or so, all 4 cores are 100%.

      p->any_member_function();

      p is declared as unique_ptr<Base>.

      Derived class is defined as follows:
      template<class T>
      struct Derived : Base

      { T var; member_function_1(); ... }

      unique_ptr<plain old data struct> does not cause any issues.

        For Gerrit Dashboard: QTCREATORBUG-15257
        # Subject Branch Project Status CR V

            kosjar Nikolai Kosjar
            bugsrep Bug Reporter
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes