[frameworks-kded] [Bug 521935] kded6 crashes in QtPrivate::QExplicitlySharedDataPointerV2 upon login after reboot

"Marco Martin" <[email protected]>
Newsgroups gmane.comp.kde.devel.bugs
Message-ID <[email protected]/>
https://bugs.kde.org/show_bug.cgi?id=521935

Marco Martin <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |RESOLVED
      Latest Commit|                            |https://invent.kde.org/plas
                   |                            |ma/plasma-nm/-/commit/fcc3a
                   |                            |dc536096cf993d740872fffa6c3
                   |                            |1d6dac79
         Resolution|---                         |FIXED

--- Comment #3 from Marco Martin <[email protected]> ---
Git commit fcc3adc536096cf993d740872fffa6c31d6dac79 by Marco Martin, on behalf
of Mickaël Thomas.
Committed on 10/08/2026 at 10:48.
Pushed by mart into branch 'master'.

secretagent: fix crash with multiple requests

The QKeyChain `finished` handlers capture a QList item by reference
This is unsafe and causes a crash if a new request is created before the
job finishes, because QList will move the item to a new location and
the captured reference becomes dangling.

Instead, we store QSharedPointer<SecretsRequest> into the list
The QKeyChain callbacks capture a weak reference to the shared pointer
and check the pointer is still valid before use.

M  +105  -90   kded/secretagent.cpp
M  +7    -4    kded/secretagent.h

https://invent.kde.org/plasma/plasma-nm/-/commit/fcc3adc536096cf993d740872fffa6c31d6dac79

-- 
You are receiving this mail because:
You are watching all bug changes.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.