如何查看 policy-kit 服务生成的核心转储?

如何查看 policy-kit 服务生成的核心转储?

我似乎对 policy-kit 有疑问。输出systemctl status --full --lines=100 polkit.service

Feb 12 18:35:46 flu-T430 systemd[1]: polkit.service: Changed failed -> start
Feb 12 18:35:46 flu-T430 systemd[1]: Starting Authorization Manager...
Feb 12 18:35:46 flu-T430 systemd[9219]: polkit.service: Executing: /usr/libexec/polkitd --no-debug
Feb 12 18:35:46 flu-T430 polkitd[9219]: started daemon version 0.105 using authority implementation `local' version `0.105'
Feb 12 18:35:46 flu-T430 systemd[1]: polkit.service: D-Bus name org.freedesktop.PolicyKit1 now owned by :1.140
Feb 12 18:35:46 flu-T430 systemd[1]: polkit.service: Changed start -> running
Feb 12 18:35:46 flu-T430 systemd[1]: polkit.service: Job 3133 polkit.service/start finished, result=done
Feb 12 18:35:46 flu-T430 systemd[1]: Started Authorization Manager.
Feb 12 18:35:46 flu-T430 polkitd(authority=local)[9219]: Registered Authentication Agent for unix-session:2 (system bus name :1.83 [/usr/bin/gnome-shell], object path /o>
Feb 12 18:35:46 flu-T430 systemd[1]: polkit.service: Child 9219 belongs to polkit.service.
Feb 12 18:35:46 flu-T430 systemd[1]: polkit.service: Main process exited, code=dumped, status=11/SEGV**
Feb 12 18:35:46 flu-T430 systemd[1]: polkit.service: Failed with result 'core-dump'.
Feb 12 18:35:46 flu-T430 systemd[1]: polkit.service: Service will not restart (restart setting)
Feb 12 18:35:46 flu-T430 systemd[1]: polkit.service: Changed running -> failed
Feb 12 18:35:46 flu-T430 systemd[1]: polkit.service: Unit entered failed state.
Feb 12 18:35:46 flu-T430 systemd[1]: polkit.service: Consumed 119ms CPU time.
Feb 12 18:35:46 flu-T430 systemd[1]: polkit.service: Control group is empty.
Feb 12 18:35:46 flu-T430 systemd[1]: polkit.service: D-Bus name org.freedesktop.PolicyKit1 now not owned by anyone.

特别是,有一行写着Failed with result 'core-dump'。如何获取此核心转储?

我在使用 Ubuntu 22.04.1 LTS,coredumpctl目前尚未安装。

注意:我找到了一个文件/var/crash/_usr_libexec_polkitd.0.crash,但其内容无法被人类阅读。

解决方案:运行后,sudo apt install systemd-coredump我可以通过运行查看 coredumpsudo coredumpctl dump --output=/path/to/file

相关内容