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

Hung eating CPU in QtWebEngineCore around malloc

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3: Somewhat important
    • 5.7.1
    • 5.6.0
    • WebEngine
    • None
    • macOS 10.12
    • 7bc32104660dd9b5dfa9920a288797a7c2790559

    Description

      I see a strange macOS stacktrace showing the application is likely to stuck (or event loop) around allocating memory. The application itself only consumes CPU and does nothing.

      147 Thread_27977206
          + 1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x164f636  [0x10f472636]  content::BrowserMainRunnerImpl::Shutdown() calling content::BrowserMainLoop::ShutdownThreadsAndCleanUp
          +   1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x164d17d  [0x10f47017d] content::BrowserMainLoop::ShutdownThreadsAndCleanUp():
          +     1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x1723d  [0x10de3a23d]  QtWebEngineCore::BrowserMainPartsQt::PostMainMessageLoopRun() calling WebEngineContext::~WebEngineContext()
          +       1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x46c49  [0x10de69c49] WebEngineContext::~WebEngineContext() 
          +         1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x164f217  [0x10f472217] content::BrowserMainRunnerImpl::~BrowserMainRunnerImpl():calling content::BrowserMainRunnerImpl::Shutdown()
          +           1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x164f636  [0x10f472636] content::BrowserMainRunnerImpl::Shutdown() calling content::BrowserMainLoop::ShutdownThreadsAndCleanUp()
          +             1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x164d17d  [0x10f47017d] content::BrowserMainLoop::ShutdownThreadsAndCleanUp():
          +               1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x1723d  [0x10de3a23d]   QtWebEngineCore::BrowserMainPartsQt::PostMainMessageLoopRun() calling WebEngineContext::~WebEngineContext()
          +                 1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x46c49  [0x10de69c49]   WebEngineContext::~WebEngineContext() 
          +                   1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x164f217  [0x10f472217]   content::BrowserMainRunnerImpl::~BrowserMainRunnerImpl():calling content::BrowserMainRunnerImpl::Shutdown()
          +                     1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x164f636  [0x10f472636]   content::BrowserMainRunnerImpl::Shutdown() calling content::BrowserMainLoop::ShutdownThreadsAndCleanUp()
          +                       1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x164d17d  [0x10f47017d]  content::BrowserMainLoop::ShutdownThreadsAndCleanUp():
          +                         1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x1723d  [0x10de3a23d]    QtWebEngineCore::BrowserMainPartsQt::PostMainMessageLoopRun() calling WebEngineContext::~WebEngineContext()
          +                           1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x46c49  [0x10de69c49]     WebEngineContext::~WebEngineContext() 
          +                             1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x164f217  [0x10f472217]      .....
          +                               1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x164f636  [0x10f472636]      .... and so on repeating
          +                                 1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x164d17d  [0x10f47017d]
          +                                   1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x1723d  [0x10de3a23d]
          +                                     1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x46c49  [0x10de69c49]
          +                                       1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x164f217  [0x10f472217]
          +                                         1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x164f636  [0x10f472636]
          +                                           1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x164d17d  [0x10f47017d]
          +                                             1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x1723d  [0x10de3a23d]
          +                                               1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x46c49  [0x10de69c49]
          +                                                 1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x164f217  [0x10f472217]
          +                                                   1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x164f636  [0x10f472636]
          +                                                     1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x164d17d  [0x10f47017d]
          +                                                       1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x1723d  [0x10de3a23d]
          +                                                         1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x46c49  [0x10de69c49]
          +                                                           1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x164f217  [0x10f472217]
          +                                                             1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x164f636  [0x10f472636]
          +                                                               1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x164d17d  [0x10f47017d]
          +                                                                 1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x1723d  [0x10de3a23d]
          +                                                                   1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x46c49  [0x10de69c49]
          +                                                                     1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x164f217  [0x10f472217]
          +                                                                       1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x164f636  [0x10f472636]
          +                                                                         1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x164d17d  [0x10f47017d]
          +                                                                           1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x1723d  [0x10de3a23d]
          +                                                                             1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x46c49  [0x10de69c49]
          +                                                                               1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x164f217  [0x10f472217]
          +                                                                                 1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x164f636  [0x10f472636]
          +                                                                                   1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x164d17d  [0x10f47017d]
          +                                                                                     1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x1723d  [0x10de3a23d]
          +                                                                                       1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x46c49  [0x10de69c49]
          +                                                                                         1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x164f217  [0x10f472217]
          +                                                                                           1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x164f636  [0x10f472636] content::BrowserMainRunnerImpl::Shutdown() calling content::BrowserMainLoop::ShutdownThreadsAndCleanUp()
      
      .... wraparound
            + 1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x164d0b5  [0x10f4700b5] content::BrowserMainLoop::ShutdownThreadsAndCleanUp() calling operator new(unsigned long)
             + 1147 operator new(unsigned long)  (in libc++abi.dylib) + 30  [0x7fffc6de5e2e]
              + 1147 malloc  (in libsystem_malloc.dylib) + 24  [0x7fffc8353258]
               + 1147 malloc_zone_malloc  (in libsystem_malloc.dylib) + 107  [0x7fffc83542da]
                + 1147 ???  (in QtWebEngineCore)  load address 0x10de23000 + 0x970b70  [0x10e793b70] base::(anonymous namespace)::oom_killer_malloc(_malloc_zone_t*, unsigned long): calling *base::(anonymous namespace)::g_old_malloc(%rip) ## base::(anonymous namespace)::g_old_malloc
                 + 1147 szone_malloc_should_clear  (in libsystem_malloc.dylib) + 395  [0x7fffc83544c5]
      

      Attachments

        1. bt_all_image_list.txt
          761 kB
          Taras Tsugrii
        2. bt_all.txt
          730 kB
          Taras Tsugrii
        3. QTBUG-58117.zip
          0.8 kB
          Alexandru Croitor
        4. QTBUG-58117-crash-report.txt
          875 kB
          Alexandru Croitor
        5. toolbox_annotated_trace.txt
          8 kB
          Alexandru Croitor
        6. toolbox_lldb_annotated_crash.txt
          7 kB
          Alexandru Croitor

        Issue Links

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

          Activity

            People

              qt_webengine_team Qt WebEngine Team
              jonnyzzz Eugene
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes