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

Creator uses 100% CPU after it killed timeouted GDB

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • Qt Creator 4.5.0
    • Debugger
    • Linux x64.

    Description

      1. Make GDB process timeout while debugging in Creator. Perhaps it's possible to gdb into GDB to make it stop.
      2. After 20 secs Creator asks if you want to stop debugging and shut down GDB. Answer yes. Perhaps it's wise to make gdb run again before answering yes.
      3. As soon as you clicked on "Stop debugging" Creator will use 100% of a CPU core until restarted.

      Backtrace attached, core dump is here: https://drive.google.com/open?id=1TeceaPZMUgHL5lCxTWE41_keHN8UZkwa . Please, if you find it useful, attach to the bug report since it can be deleted after a month.

      Short backtrace:

      #0  0x00007fec22514bf0 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
      #1  0x00007fec2256d15d in socketNotifierSourceDispatch(_GSource*, int (*)(void*), void*) () from /usr/lib64/libQt5Core.so.5
      #2  0x00007fec1e92cf97 in g_main_dispatch (context=0x7fec10004fc0) at gmain.c:3148
      #3  g_main_context_dispatch (context=context@entry=0x7fec10004fc0) at gmain.c:3813
      #4  0x00007fec1e92d1d0 in g_main_context_iterate (context=context@entry=0x7fec10004fc0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3886
      #5  0x00007fec1e92d25c in g_main_context_iteration (context=0x7fec10004fc0, may_block=1) at gmain.c:3947
      #6  0x00007fec2256c55f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
      #7  0x00007fec1ae60f61 in QPAEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5XcbQpa.so.5
      #8  0x00007fec225134aa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
      #9  0x00007fec2251bfe4 in QCoreApplication::exec() () from /usr/lib64/libQt5Core.so.5
      #10 0x000055ab68f12852 in main (argc=<optimized out>, argv=<optimized out>) at main.cpp:537
      

      Threads:

        Id   Target Id         Frame
      * 1    Thread 0x7fec244e2740 (LWP 5711) "qtcreator" 0x000055ab68f12852 in main (argc=<optimized out>, argv=<optimized out>) at main.cpp:537
        2    Thread 0x7fec164e8700 (LWP 5712) "QXcbEventReader" 0x00007fec21800f0b in __GI___poll (fds=fds@entry=0x7fec164e7d88, nfds=nfds@entry=1, timeout=timeout@entry=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
        3    Thread 0x7fec05fa1700 (LWP 5925) "QDBusConnection" 0x00007fec21800f0b in __GI___poll (fds=0x7fec00018dd0, nfds=4, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
        4    Thread 0x7febefa39700 (LWP 5931) "QThread" 0x00007fec21800f0b in __GI___poll (fds=0x7febe80029e0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
        5    Thread 0x7febef238700 (LWP 5933) "QQmlThread" 0x00007fec21800f0b in __GI___poll (fds=0x7febe0002de0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
        6    Thread 0x7febed3f4700 (LWP 5934) "QQmlThread" 0x00007fec21800f0b in __GI___poll (fds=0x7febe4002de0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
      

      Attachments

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

        Activity

          People

            hjk hjk
            szotsaki Szőts Ákos
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes