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

Leaks in GlobalBreakpointItem::updateMarker()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • Qt Creator 4.8.0-beta2
    • Debugger
    • Linux/X11

    Description

      Not sure how to trigger, this report is from a longer Qt Creator session build with Address Sanitizer:

      Direct leak of 416 byte(s) in 4 object(s) allocated from:
          #0 0x7f1fcf06a458 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe0458)
          #1 0x7f1fa01fdff5 in Debugger::Internal::GlobalBreakpointItem::updateMarker() /d1/creator/ut/4.8/asan/src/plugins/debugger/breakhandler.cpp:2308
          #2 0x7f1fa01f82cd in Debugger::Internal::BreakHandler::releaseAllBreakpoints() /d1/creator/ut/4.8/asan/src/plugins/debugger/breakhandler.cpp:2043
          #3 0x7f1fa02aecd3 in Debugger::Internal::DebuggerEnginePrivate::destroyPerspective() (/d1/creator/ut/4.8/asan/lib/qtcreator/plugins/libDebugger.so+0x34ccd3)
          #4 0x7f1fa02963ef in Debugger::Internal::DebuggerEngine::setState(Debugger::DebuggerState, bool) /d1/creator/ut/4.8/asan/src/plugins/debugger/debuggerengine.cpp:1729
          #5 0x7f1fa02af8fa in Debugger::Internal::DebuggerEnginePrivate::doFinishDebugger() (/d1/creator/ut/4.8/asan/lib/qtcreator/plugins/libDebugger.so+0x34d8fa)
          #6 0x7f1fa0293019 in Debugger::Internal::DebuggerEngine::notifyEngineShutdownFinished() /d1/creator/ut/4.8/asan/src/plugins/debugger/debuggerengine.cpp:1557
          #7 0x7f1fa0294e44 in Debugger::Internal::DebuggerEngine::notifyDebuggerProcessFinished(int, QProcess::ExitStatus, QString const&) /d1/creator/ut/4.8/asan/src/plugins/debugger/debuggerengine.cpp:1674
          #8 0x7f1fa05e8d1b in Debugger::Internal::GdbEngine::handleGdbFinished(int, QProcess::ExitStatus) gdb/gdbengine.cpp:3839
          #9 0x7f1fa0645cd4 in QtPrivate::FunctorCall<QtPrivate::IndexesList<0, 1>, QtPrivate::List<int, QProcess::ExitStatus>, void, void (Debugger::Internal::GdbEngine::*)(int, QProcess::ExitStatus)>::call(void (Debugger::Internal::GdbEngine::*)(int, QProcess::ExitStatus), Debugger::Internal::GdbEngine*, void**) /home/nik/opt/qt-5.9.5/5.9.5/gcc_64/include/QtCore/qobjectdefs_impl.h:136
          #10 0x7f1fa06428ee in void QtPrivate::FunctionPointer<void (Debugger::Internal::GdbEngine::*)(int, QProcess::ExitStatus)>::call<QtPrivate::List<int, QProcess::ExitStatus>, void>(void (Debugger::Internal::GdbEngine::*)(int, QProcess::ExitStatus), Debugger::Internal::GdbEngine*, void**) /home/nik/opt/qt-5.9.5/5.9.5/gcc_64/include/QtCore/qobjectdefs_impl.h:169
          #11 0x7f1fa063c488 in QtPrivate::QSlotObject<void (Debugger::Internal::GdbEngine::*)(int, QProcess::ExitStatus), QtPrivate::List<int, QProcess::ExitStatus>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) (/d1/creator/ut/4.8/asan/lib/qtcreator/plugins/libDebugger.so+0x6da488)
          #12 0x7f1fccc866f5 in QMetaObject::activate(QObject*, int, int, void**) (/home/nik/opt/qt-5.9.5/5.9.5/gcc_64/lib/libQt5Core.so.5+0x2a46f5)
          #13 0x7f1fccbdcbde in QProcess::finished(int, QProcess::ExitStatus) (/home/nik/opt/qt-5.9.5/5.9.5/gcc_64/lib/libQt5Core.so.5+0x1fabde) 

      Attachments

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

        Activity

          People

            hjk hjk
            kosjar Nikolai Kosjar
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes