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

            Bug ID: 527573
           Summary: SIGSEGV in KirigamiAppDefaults::load() causes by a
                    dangling reference
    Classification: Frameworks and Libraries
           Product: kirigami-addons
      Version First 1.15.0
       Reported In:
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

The effecting code:
https://invent.kde.org/libraries/kirigami-addons/-/blob/902c8d07d8e7332e6306bba2ac96e951921eef53/src/app/kirigamiappdefaults.cpp#L119-124

The string list `qmlErrors` is freed after `KirigamiAppDefaults::load()`
returns but the lambda referencing the string list is still alive after that
point. Any warning emitted by `QQmlApplicationEngine` will crash the
application due to a dangling reference.

Perhaps storing a `QMetaObject::Connection` to disconnecting later just before
returning is best.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to