D14253: avoid memory leak in slave jobs

Jaime Torres Amate noreply at phabricator.kde.org
Sat Jul 21 10:51:18 BST 2018


jtamate updated this revision to Diff 38163.
jtamate retitled this revision from "avoid memory leak over sftp" to "avoid memory leak in slave jobs".
jtamate edited the summary of this revision.
jtamate added a comment.


  I still don't know how to avoid this leak, but I guess this will be fixed with new syntax for QMetaObject::invokeMethod and similar.
  
    ==26857== 22,638 (216 direct, 22,422 indirect) bytes in 3 blocks are definitely lost in loss record 2,175 of 2,182
    ==26857==    at 0x4C2EB4F: operator new(unsigned long) (vg_replace_malloc.c:334)
    ==26857==    by 0xD7E74CE: QObjectPrivate::connectImpl(QObject const*, int, QObject const*, void**, QtPrivate::QSlotObjectBase*, Qt::ConnectionType, int const*, QMet
    aObject const*) (qobject.cpp:4834)
    ==26857==    by 0xD7E78AC: QObject::connectImpl(QObject const*, void**, QObject const*, void**, QtPrivate::QSlotObjectBase*, Qt::ConnectionType, int const*, QMetaObj
    ect const*) (qobject.cpp:4789)
    ==26857==    by 0x7B9B21B: QMetaObject::Connection QObject::connect<void (KIO::Connection::*)(), void (KIO::Slave::*)()>(QtPrivate::FunctionPointer<void (KIO::Connec
    tion::*)()>::Object const*, void (KIO::Connection::*)(), QtPrivate::FunctionPointer<void (KIO::Slave::*)()>::Object const*, void (KIO::Slave::*)(), Qt::ConnectionTyp
    e) (qobject.h:254)
    ==26857==    by 0x7B98376: KIO::Slave::accept() (slave.cpp:174)
    ==26857==    by 0x7B9C212: QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, void (KIO::Slave::*)()>::call(void (KIO::Slave::*)(), KIO::Slave
    *, void**) (qobjectdefs_impl.h:134)
    ==26857==    by 0x7B9C0F0: void QtPrivate::FunctionPointer<void (KIO::Slave::*)()>::call<QtPrivate::List<>, void>(void (KIO::Slave::*)(), KIO::Slave*, void**) (qobje
    ctdefs_impl.h:167)
    ==26857==    by 0x7B9BD84: QtPrivate::QSlotObject<void (KIO::Slave::*)(), QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) (
    qobjectdefs_impl.h:396)
    ==26857==    by 0xD7E3BAF: QMetaObject::activate(QObject*, int, int, void**) (qobjectdefs_impl.h:376)
    ==26857==    by 0x7C3E176: KIO::ConnectionServer::newConnection() (moc_connectionserver.cpp:127)
    ==26857==    by 0x7C3DF93: KIO::ConnectionServer::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (moc_connectionserver.cpp:72)
    ==26857==    by 0xD7E3A52: QMetaObject::activate(QObject*, int, int, void**) (qobject.cpp:3771)

REPOSITORY
  R241 KIO

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D14253?vs=38147&id=38163

REVISION DETAIL
  https://phabricator.kde.org/D14253

AFFECTED FILES
  src/core/slave.cpp
  src/core/slaveinterface_p.h

To: jtamate, dfaure, #frameworks, ngraham
Cc: anthonyfieroni, apol, kde-frameworks-devel, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180721/483ec301/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list