lxqt-policykit crashes with general protection fault in libgobject-2.0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LXQt |
New
|
Unknown
|
|||
lxqt-policykit (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Focal |
New
|
Undecided
|
Unassigned | ||
Hirsute |
New
|
Undecided
|
Unassigned |
Bug Description
[Impact]
On Lubuntu systems with more than one sudoer, lxqt-policykit prior to version 0.17.0 crashes due to calling g_object_unref twice on the same object.
[Test Plan]
STEPS TO REPRODUCE
==================
1. Boot post-18.04 Lubuntu
2. Use lxqt-admin-user to create a second user (let's call it user2)
3. Use lxqt-admin-user to add user2 to sudo
4. Logout and back in again (yes, this is a requirement to reproduce— if you want, you can first remove user2's sudo and it will work, but then add it back and continue on)
5. User lxqt-admin-user to try to remove user2's membership in the sudo group (fail)
6. Try running pkexec against something. Since synaptic is well set up for it, this is a good example, so install synaptic and run `synaptic-pkexec` (fail)
7. Remove user2's membership in the sudo group for sure with `sudo usermod -G "" user2`
8. Try running the pkexec command again (success)
EXPECTED RESULT
===============
Both the pkexec and the lxqt-admin-user change succeed without crashing.
ACTUAL RESULT
=============
lxqt-policykit crashes, e.g:
[ 764.849494] traps: lxqt-policykit-
[Regression Potential]
It might be possible, that not all sessions are deleted.
Or the patch was not properly updated and introduces new bugs.
[Other info]
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: lxqt-admin 0.14.1-1ubuntu1
ProcVersionSign
Uname: Linux 5.4.0-28-generic x86_64
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: LXQt
Date: Wed Apr 29 12:04:34 2020
InstallationDate: Installed on 2020-04-28 (0 days ago)
InstallationMedia: Lubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
SourcePackage: lxqt-admin
UpgradeStatus: No upgrade log present (probably fresh install)
description: | updated |
Changed in lxqt: | |
status: | Unknown → New |
description: | updated |
description: | updated |
guiverc@ dc7700- lub:~$ strace /usr/bin/ lxqt-admin- user 2>lxqt- admin-user_ rm_pw_admin_ from_sudo. strace
On executing, there is some mouse movement as I drag window to a comfortable position, then I tried to keep movement to a minimum as I selected 'pw_admin' user, properties & tried to remove 'sudo' rights..