Bug 305353 - kactivitymanager doesn't respond on SIGTERM when shutdown the system
Summary: kactivitymanager doesn't respond on SIGTERM when shutdown the system
Status: RESOLVED FIXED
Alias: None
Product: kactivitymanagerd
Classification: Plasma
Component: general (show other bugs)
Version: 4.9.0
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: Ivan Čukić
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-17 20:09 UTC by mkkot
Modified: 2013-04-11 16:19 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mkkot 2012-08-17 20:09:18 UTC
After upgrade to KDE 4.9 in Archlinux 64 bit while halting down the system I see "Sending SIGTERM To Processes" [FAILED]. After investigation it occured that it's kactivitymanagerd fault -- I modified the script which performs system shutdown to launch a /bin/bash when a SIGTERM fails and discovered that kactivitymanagerd doesn't respond to 'killall kactivitymanagerd'.
Same issue: https://bbs.archlinux.org/viewtopic.php?pid=1147873

Reproducible: Always

Steps to Reproduce:
1. Have an Archlinux installation first
2. Halt the system
3.
Actual Results:  
Sending SIGTERM To Processes [FAILED]
Sending SIGTERM To Processes [OK]

Expected Results:  
Sending SIGTERM To Processes [OK]
Sending SIGTERM To Processes [OK]

I can help debugging this if you tell me how.
Comment 1 mkkot 2012-08-17 20:11:50 UTC
Sorry, I made a mistake. It should be like this:

Actual Results:
Sending SIGTERM To Processes [FAILED] 
Sending SIGKILL To Processes [OK] 

Expected Results:
Sending SIGTERM To Processes [OK]
Sending SIGKILL To Processes [OK]
Comment 2 Nikoli 2012-12-01 19:23:33 UTC
Confirm, my versions:
Gentoo amd64 stable
KDE-4.9.3
Qt-4.8.2

Bug 291519 is now fixed, but now nepomukserver is replaced with kactivitymanagerd: both logout and killall do not stop it, only killall -9 helps.
Comment 4 mkkot 2012-12-02 22:15:35 UTC
Works for me since moved from initscripts to systemd.
Comment 5 Nikoli 2012-12-04 10:09:33 UTC
mkkot, do you mean there no error during shutdown or there is no kactivitymanagerd running after logout from kde session?
Comment 6 mkkot 2012-12-04 21:07:26 UTC
Shutdown is performed instantly by systemd. However, kactivitymanagerd, which belongs to my user account, stays after logging out of KDE. I guess that's a bad thing.
Comment 7 Ivan Čukić 2012-12-15 11:18:40 UTC
I can not reproduce this.

Whoever compiles kactivities from the source, could you try to comment out the following lines
233     if (!KCmdLineArgs::allArguments().contains("--nofork"))
234         initSignalCatching();
in src/service/Application.cpp
Comment 8 Ivan Čukić 2013-04-10 17:49:18 UTC
The current version has no special sigterm handling, so this issue can not persist
Comment 9 Nikoli 2013-04-11 10:45:00 UTC
What do you mean by "current version"? 4.10.2 or latest git?
Comment 10 Ivan Čukić 2013-04-11 16:19:34 UTC
master