Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 601878 - sys-auth/consolekit-1.1.0-r1 trap int3 in ck-remove-directory during shutdown
Summary: sys-auth/consolekit-1.1.0-r1 trap int3 in ck-remove-directory during shutdown
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Jason Zaman
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2016-12-07 05:55 UTC by Oliver Schwabedissen
Modified: 2020-10-04 14:39 UTC (History)
9 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info output (emerge-info.txt,6.52 KB, text/plain)
2016-12-07 05:55 UTC, Oliver Schwabedissen
Details
Patch for consolekit 1.1.0-r1 (ConsoleKit2-1.1.0-r1-ck-remove-directory-trap.patch,2.53 KB, patch)
2016-12-07 05:57 UTC, Oliver Schwabedissen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Schwabedissen 2016-12-07 05:55:36 UTC
Created attachment 455316 [details]
emerge --info  output

Since updating ConsoleKit to v1.1.0 I found infos about int3 traps in ck-remove-directory during system shutdown in kernel.log.

These traps still occur in v1.1.0-r1:

Mar 28 22:15:07 frodo kernel: traps: ck-remove-direc[21384] trap int3 ip:7f33db9b74b0 sp:7fff69ce83e0 error:0
Mar 29 08:32:01 frodo kernel: traps: ck-remove-direc[9499] trap int3 ip:7f579c6c44b0 sp:7fff3bf2b760 error:0
...
Dec  4 22:25:50 frodo kernel: traps: ck-remove-direc[10841] trap int3 ip:7f66455d0590 sp:7fff2fcd3180 error:0
Dec  5 08:33:06 frodo kernel: traps: ck-remove-direc[25500] trap int3 ip:7f4b63e71590 sp:7ffdf1aefd80 error:0
Dec  5 21:36:27 frodo kernel: traps: ck-remove-direc[6867] trap int3 ip:7fabc94ed590 sp:7ffeee4390e0 error:0

I emerged v1.1.0 on March 27th and 1.1.0-r1 on November 21st.

     Sun Mar 27 10:03:43 2016 >>> sys-auth/consolekit-1.1.0
     Mon Nov 21 07:06:28 2016 >>> sys-auth/consolekit-1.1.0-r1
     Tue Dec  6 06:55:07 2016 >>> sys-auth/consolekit-1.1.0-r1

Searching the internet for these traps I found a description and a solution on https://www.bountysource.com/issues/33234185-ck-remove-directory-remove-dest-dir-as-real-user

I adjusted the described patch for v1.1.0-r1 and it immediately fixed the problem. No int3 traps anymore during shutdown.

I attached emerge --info output and the patch in case somebody wants to try it.
Comment 1 Oliver Schwabedissen 2016-12-07 05:57:53 UTC
Created attachment 455318 [details, diff]
Patch for consolekit 1.1.0-r1

Patch attached
Comment 2 Stefano 2017-03-16 15:35:08 UTC
(In reply to Oliver Schwabedissen from comment #0)

> Since updating ConsoleKit to v1.1.0 I found infos about int3 traps in
> ck-remove-directory during system shutdown in kernel.log.

Same here.
Comment 3 Sergiy Borodych 2017-03-29 08:36:43 UTC
The same issue. And have my DE frozen after this :(
Comment 4 Attila Tóth 2017-07-02 16:29:22 UTC
I'm using consolekit-1.1.2 with elogind. I can see int3 trap messages related to this bug in the logs, although the proposed patch is included in this version. However the messages seems to be benign, since I'm not experiencing any loss of functionality...
Comment 5 Michael Palimaka (kensington) gentoo-dev 2017-07-03 12:45:49 UTC
(In reply to Attila Tóth from comment #4)
> I'm using consolekit-1.1.2 with elogind. I can see int3 trap messages
> related to this bug in the logs, although the proposed patch is included in
> this version. However the messages seems to be benign, since I'm not
> experiencing any loss of functionality...

I'd recommend to only use one session tracker a time, Bad Things™ might happen trying to run both elogind and consolekit at the same time.
Comment 6 Attila Tóth 2017-07-04 07:48:43 UTC
(In reply to Michael Palimaka (kensington) from comment #5)
> (In reply to Attila Tóth from comment #4)
> > I'm using consolekit-1.1.2 with elogind. I can see int3 trap messages
> > related to this bug in the logs, although the proposed patch is included in
> > this version. However the messages seems to be benign, since I'm not
> > experiencing any loss of functionality...
> 
> I'd recommend to only use one session tracker a time, Bad Things™ might
> happen trying to run both elogind and consolekit at the same time.

Thanks for highlighting this controversy!
Comment 7 Larry the Git Cow gentoo-dev 2020-10-04 14:39:13 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39ece3ff2467f0c1a3dc946767f3896d31055198

commit 39ece3ff2467f0c1a3dc946767f3896d31055198
Author:     Mikle Kolyada <zlogene@gentoo.org>
AuthorDate: 2020-10-04 14:33:57 +0000
Commit:     Mikle Kolyada <zlogene@gentoo.org>
CommitDate: 2020-10-04 14:39:06 +0000

    sys-auth/consolekit: remove last-rited pkg
    
    Bug: https://bugs.gentoo.org/727730
    Closes: https://bugs.gentoo.org/644550
    Closes: https://bugs.gentoo.org/667912
    Closes: https://bugs.gentoo.org/644548
    Closes: https://bugs.gentoo.org/601878
    Closes: https://bugs.gentoo.org/699592
    Closes: https://bugs.gentoo.org/651788
    Closes: https://bugs.gentoo.org/614658
    Closes: https://bugs.gentoo.org/593306
    
    Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>

 sys-auth/consolekit/Manifest                       |   6 -
 sys-auth/consolekit/consolekit-0.4.6.ebuild        | 125 -------------------
 sys-auth/consolekit/consolekit-1.1.0-r1.ebuild     | 120 -------------------
 sys-auth/consolekit/consolekit-1.1.2.ebuild        | 131 --------------------
 sys-auth/consolekit/consolekit-1.2.0.ebuild        | 132 ---------------------
 sys-auth/consolekit/consolekit-1.2.1.ebuild        | 132 ---------------------
 sys-auth/consolekit/consolekit-9999.ebuild         | 128 --------------------
 sys-auth/consolekit/files/90-consolekit-3          |  32 -----
 sys-auth/consolekit/files/consolekit-0.2.rc        |  25 ----
 .../files/consolekit-0.4.5-polkit-automagic.patch  |  30 -----
 sys-auth/consolekit/files/consolekit-1.0.0.initd   |  16 ---
 ...ove-the-root-restriction-for-runtime-dirs.patch |  57 ---------
 .../files/consolekit-cleanup_console_tags.patch    |  67 -----------
 ...nsolekit-shutdown-reboot-without-policies.patch |  26 ----
 .../files/consolekit-udev-acl-install_to_usr.patch |  28 -----
 sys-auth/consolekit/files/pam-foreground-compat.ck |  17 ---
 sys-auth/consolekit/metadata.xml                   |  22 ----
 17 files changed, 1094 deletions(-)