[konsole] [Bug 439555] New: Memory leak in SSH manager.

Martin Sandsmark bugzilla_noreply at kde.org
Tue Jul 6 13:35:09 BST 2021


https://bugs.kde.org/show_bug.cgi?id=439555

            Bug ID: 439555
           Summary: Memory leak in SSH manager.
           Product: konsole
           Version: master
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: konsole-devel at kde.org
          Reporter: martin.sandsmark at kde.org
  Target Milestone: ---

Just build Konsole with -DECM_ENABLE_SANITIZERS=address, and then run and exit
Konsole to reproduce.


Indirect leak of 112 byte(s) in 1 object(s) allocated from:
    #0 0x7f516ac71ca1 in operator new(unsigned long)
/build/gcc/src/gcc/libsanitizer/asan/asan_new_delete.cpp:99
    #1 0x7f5168713f64 in
QRegularExpressionValidator::QRegularExpressionValidator(QObject*)
(/usr/lib/libQt5Gui.so.5+0x4a3f64)
    #2 0x7ffc806d906f  ([stack]+0x1e06f)

Indirect leak of 96 byte(s) in 1 object(s) allocated from:
    #0 0x7f516ac71ca1 in operator new(unsigned long)
/build/gcc/src/gcc/libsanitizer/asan/asan_new_delete.cpp:99
    #1 0x7f5168713525 in QValidator::QValidator(QObject*)
(/usr/lib/libQt5Gui.so.5+0x4a3525)
    #2 0x7f516009c8ec in
SSHManagerPlugin::createWidgetsForMainWindow(Konsole::MainWindow*)
../src/plugins/SSHManager/sshmanagerplugin.cpp:47
    #3 0x7f516ab17629 in
Konsole::IKonsolePlugin::addMainWindow(Konsole::MainWindow*)
../src/pluginsystem/IKonsolePlugin.cpp:40
    #4 0x7f516ab19ab7 in
Konsole::PluginManager::registerMainWindow(Konsole::MainWindow*)
../src/pluginsystem/PluginManager.cpp:57
    #5 0x7f516aaa8208 in Konsole::Application::newMainWindow()
../src/Application.cpp:170
    #6 0x7f516aaae2c5 in Konsole::Application::processWindowArgs(bool&)
../src/Application.cpp:428
    #7 0x7f516aaa91e4 in Konsole::Application::newInstance()
../src/Application.cpp:214
    #8 0x564b716a75d2 in main ../src/main.cpp:204
    #9 0x7f5167752b24 in __libc_start_main (/usr/lib/libc.so.6+0x27b24)

Indirect leak of 48 byte(s) in 1 object(s) allocated from:
    #0 0x7f516ac71ca1 in operator new(unsigned long)
/build/gcc/src/gcc/libsanitizer/asan/asan_new_delete.cpp:99
    #1 0x7f5167dd8dc6 in QRegularExpression::QRegularExpression(QString const&,
QFlags<QRegularExpression::PatternOption>) (/usr/lib/libQt5Core.so.5+0x16cdc6)

Indirect leak of 48 byte(s) in 1 object(s) allocated from:
    #0 0x7f516ac71ca1 in operator new(unsigned long)
/build/gcc/src/gcc/libsanitizer/asan/asan_new_delete.cpp:99
    #1 0x7f5167ddd157  (/usr/lib/libQt5Core.so.5+0x171157)

Indirect leak of 24 byte(s) in 1 object(s) allocated from:
    #0 0x7f516ac71ca1 in operator new(unsigned long)
/build/gcc/src/gcc/libsanitizer/asan/asan_new_delete.cpp:99
    #1 0x7f51600a4da3 in SSHManagerTreeWidget::SSHManagerTreeWidget(QWidget*)
../src/plugins/SSHManager/sshmanagerpluginwidget.cpp:57
    #2 0x7f516009c8ec in
SSHManagerPlugin::createWidgetsForMainWindow(Konsole::MainWindow*)
../src/plugins/SSHManager/sshmanagerplugin.cpp:47
    #3 0x7f516ab17629 in
Konsole::IKonsolePlugin::addMainWindow(Konsole::MainWindow*)
../src/pluginsystem/IKonsolePlugin.cpp:40
    #4 0x7f516ab19ab7 in
Konsole::PluginManager::registerMainWindow(Konsole::MainWindow*)
../src/pluginsystem/PluginManager.cpp:57
    #5 0x7f516aaa8208 in Konsole::Application::newMainWindow()
../src/Application.cpp:170
    #6 0x7f516aaae2c5 in Konsole::Application::processWindowArgs(bool&)
../src/Application.cpp:428
    #7 0x7f516aaa91e4 in Konsole::Application::newInstance()
../src/Application.cpp:214
    #8 0x564b716a75d2 in main ../src/main.cpp:204
    #9 0x7f5167752b24 in __libc_start_main (/usr/lib/libc.so.6+0x27b24)

Indirect leak of 16 byte(s) in 1 object(s) allocated from:
    #0 0x7f516ac71ca1 in operator new(unsigned long)
/build/gcc/src/gcc/libsanitizer/asan/asan_new_delete.cpp:99
    #1 0x7f51600a4d29 in SSHManagerTreeWidget::SSHManagerTreeWidget(QWidget*)
../src/plugins/SSHManager/sshmanagerpluginwidget.cpp:54
    #2 0x7f516009c8ec in
SSHManagerPlugin::createWidgetsForMainWindow(Konsole::MainWindow*)
../src/plugins/SSHManager/sshmanagerplugin.cpp:47
    #3 0x7f516ab17629 in
Konsole::IKonsolePlugin::addMainWindow(Konsole::MainWindow*)
../src/pluginsystem/IKonsolePlugin.cpp:40
    #4 0x7f516ab19ab7 in
Konsole::PluginManager::registerMainWindow(Konsole::MainWindow*)
../src/pluginsystem/PluginManager.cpp:57
    #5 0x7f516aaa8208 in Konsole::Application::newMainWindow()
../src/Application.cpp:170
    #6 0x7f516aaae2c5 in Konsole::Application::processWindowArgs(bool&)
../src/Application.cpp:428
    #7 0x7f516aaa91e4 in Konsole::Application::newInstance()
../src/Application.cpp:214
    #8 0x564b716a75d2 in main ../src/main.cpp:204
    #9 0x7f5167752b24 in __libc_start_main (/usr/lib/libc.so.6+0x27b24)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list