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

            Bug ID: 528557
           Summary: drkonqi-coredump-pickup.service idles for its full
                    RuntimeMaxSec and ends failed (result=timeout) at
                    every login when there is nothing to pick up
    Classification: Applications
           Product: drkonqi
      Version First 6.8.2
       Reported In:
          Platform: Arch Linux
                OS: Other
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

SUMMARY

On a normally running system with no pickable crash dumps,
drkonqi-coredump-pickup.service starts at every Plasma login, does nothing for
exactly 30 minutes, then is stopped by RuntimeMaxSec and ends with result
timeout, leaving a failed user unit in the session state at every login.

STEPS TO REPRODUCE

1. Ensure no user crash with a retained core file exists (a healthy machine
qualifies; /var/lib/systemd/coredump empty).
2. Log into Plasma.
3. After 30 minutes, run: systemctl --user status
drkonqi-coredump-pickup.service

OBSERVED RESULT

Nov 09 05:58:22 systemd[2156]: Started Consume pending crashes using DrKonqi.
Nov 09 06:28:22 systemd[2156]: drkonqi-coredump-pickup.service: Service reached
runtime time limit. Stopping.
Nov 09 06:28:22 systemd[2156]: drkonqi-coredump-pickup.service: Failed with
result 'timeout'.
Nothing else appears in the unit's journal between start and stop. The process
sits idle in poll() for the full 30 minutes; CPU usage is negligible.

EXPECTED RESULT

The pickup processor drains the journal, finds nothing to pick up, and exits,
so the unit ends inactive with result success.

CAUSE (verified in source)

In src/coredump/processor/main.cpp (identical in 6.7.5, 6.8.2, and master as of
2026-11-09):
- The only path to quitting is CoredumpWatcher::finished →
QCoreApplication::quit.
- finished is emitted only after a dump is forwarded to the launcher, or when
the launcher socket path does not exist.
- In pickup mode, journal entries whose core file no longer exists are skipped
without emitting finished.
- CoredumpWatcher emits atLogEnd() once the journal is drained, but nothing
connects that signal in pickup mode.
With zero pickable dumps the process therefore never exits on its own;
RuntimeMaxSec is the only thing that ends it, and by systemd semantics a
runtime-limit kill puts the unit in failure state — so a completely healthy
machine shows a failed user unit at every login.

SUGGESTED FIX

Connect atLogEnd to quit in pickup mode only; per-crash invocations keep
current behavior:

if (pickup) {
    QObject::connect(&watcher, &CoredumpWatcher::atLogEnd, &app,
&QCoreApplication::quit, Qt::QueuedConnection);
}

SOFTWARE/OS VERSIONS

Arch Linux · drkonqi 6.8.2-1 · plasma-workspace 6.8.2-1 · kwin 6.8.2-2 ·
systemd 261.3-1 · kernel 7.2.14-arch1-1 · Wayland

ADDITIONAL INFORMATION

Previously reported as bug 527902 https://bugs.kde.org/show_bug.cgi?id=527902
(Plasma 6.7.5, Fedora 44). That report was closed RESOLVED NOT A BUG citing
only the reporting-policy direction "Do not paste LLM output"; the technical
content was not assessed and the reporter did not contest the closure,
mentioning he has a workaround (workaround is explained in his bug report).
This report is from firsthand observation on my machine; I can provide journal
output, unit state, or further testing on request.

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

Reply via email to