Bug 391588 - memory leak of CollectionExecuteWrapper in Collection::addJob
Summary: memory leak of CollectionExecuteWrapper in Collection::addJob
Status: RESOLVED WORKSFORME
Alias: None
Product: frameworks-threadweaver
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Mirko Boehm
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-08 23:21 UTC by Milian Wolff
Modified: 2022-12-15 05:16 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Milian Wolff 2018-03-08 23:21:56 UTC
I think Collection::aboutToBeQueued_locked could be affected, too. Who is supposed to delete these CollectionExecuteWrapper instances?

Direct leak of 24 byte(s) in 1 object(s) allocated from:
    #0 0x7ff8e766c489 in operator new(unsigned long) /build/gcc/src/gcc/libsanitizer/asan/asan_new_delete.cc:80
    #1 0x7ff8e70ffc6a in ThreadWeaver::Collection::addJob(QSharedPointer<ThreadWeaver::JobInterface>) /home/milian/projects/kf5/src/frameworks/threadweaver/src/collection.cpp:108
    #2 0x7ff8e71004fd in ThreadWeaver::Collection::operator<<(ThreadWeaver::JobInterface*) /home/milian/projects/kf5/src/frameworks/threadweaver/src/collection.cpp:196
    #3 0x5593936b1df8 in operator() /home/milian/projects/src/heaptrack/src/analyze/gui/parser.cpp:615
    #4 0x5593936c591d in run /home/milian/projects/compiled/kf5-dbg/include/KF5/ThreadWeaver/threadweaver/lambda.h:47
    #5 0x7ff8e70fdb5b in ThreadWeaver::Executor::run(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) /home/milian/projects/kf5/src/frameworks/threadweaver/src/executor.cpp:52
    #6 0x7ff8e70fc701 in ThreadWeaver::Private::DefaultExecutor::execute(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) /home/milian/projects/kf5/src/frameworks/threadweaver/src/job_p.cpp:70
    #7 0x7ff8e70fde0f in ThreadWeaver::ExecuteWrapper::executeWrapped(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) /home/milian/projects/kf5/src/frameworks/threadweaver/src/executewrapper.cpp:64
    #8 0x7ff8e70fc64a in ThreadWeaver::Private::DebugExecuteWrapper::execute(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) /home/milian/projects/kf5/src/frameworks/threadweaver/src/job_p.cpp:58
    #9 0x7ff8e70fad0e in ThreadWeaver::Job::execute(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) /home/milian/projects/kf5/src/frameworks/threadweaver/src/job.cpp:83
    #10 0x7ff8e70fa3ec in ThreadWeaver::Thread::run() /home/milian/projects/kf5/src/frameworks/threadweaver/src/thread.cpp:114
    #11 0x7ff8e210db4c  (/usr/lib/libQt5Core.so.5+0xafb4c)
    #12 0x7ff8e6b0e08b in start_thread (/usr/lib/libpthread.so.0+0x708b)
Comment 1 Justin Zobel 2022-11-15 22:58:39 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 2 Bug Janitor Service 2022-11-30 05:16:07 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2022-12-15 05:16:20 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!