Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Randomly reproducible crash in xdg-permission-store #934

Closed
rredford opened this issue Dec 18, 2022 · 5 comments
Closed

Randomly reproducible crash in xdg-permission-store #934

rredford opened this issue Dec 18, 2022 · 5 comments
Labels
bug need more info needs diagnosis Root cause of the issue needs to be diagnosed permissions Issues and feature requests related to permissions

Comments

@rredford
Copy link

Once a while somehow it causes notification access denied error, then it causes kernel to crash and reboot system. I'm not sure how to fix this.

Dec 17 15:10:22 rolfmint kernel: [337217.141086] xdg-permission-[313081]: segfault at 10000 ip 00007f13b621462d sp 00007ffd3ed060d0 error 4 in libglib-2.0.so.0.6400.6[7f13b61c0000+84000]
Dec 17 15:10:22 rolfmint kernel: [337217.141098] Code: 04 4c 8b 3b 8d 48 ff 48 89 c5 49 89 ce 49 c1 e6 04 4d 01 f7 4d 8b 27 4d 85 e4 0f 84 cd 00 00 00 49 8b 44 24 08 48 85 c0 74 43 <48> 8b 10 49 89 54 24 08 49 89 c4 49 8b 47 08 48 85 c0 74 08 48 83
Dec 17 15:10:22 rolfmint systemd[1]: Started Process Core Dump (PID 316965/UID 0).
Dec 17 15:10:22 rolfmint systemd[1471]: xdg-permission-store.service: Main process exited, code=dumped, status=11/SEGV
Dec 17 15:10:22 rolfmint systemd[1471]: xdg-permission-store.service: Failed with result 'core-dump'.
Dec 17 15:10:22 rolfmint xdg-desktop-por[2211]: Unable to retrieve info for 'x-scheme-handler/https' in the desktop-used-apps table of the permission store: Message recipient disconnected from message bus without replying
Dec 17 15:10:22 rolfmint systemd-coredump[316966]: Process 313081 (xdg-permission-) of user 1000 dumped core.#12#012Stack trace of thread 313081:#12#0 0x00007f13b621462d g_slice_alloc (libglib-2.0.so.0 + 0x7062d)#12#1 0x00007f13b621551a g_slist_prepend (libglib-2.0.so.0 + 0x7151a)#12#2 0x00007f13b62e669c n/a (libgobject-2.0.so.0 + 0x1969c)#12#3 0x00007f13b62e76b8 n/a (libgobject-2.0.so.0 + 0x1a6b8)#12#4 0x00007f13b62e9378 g_object_new_valist (libgobject-2.0.so.0 + 0x1c378)#12#5 0x00007f13b63aabee g_initable_new_valist (libgio-2.0.so.0 + 0x7dbee)#12#6 0x00007f13b63aacbd g_initable_new (libgio-2.0.so.0 + 0x7dcbd)#12#7 0x0000557f0c0bf2b8 n/a (xdg-permission-store + 0x102b8)#12#8 0x0000557f0c0bd5b7 n/a (xdg-permission-store + 0xe5b7)#12#9 0x0000557f0c0bd7d3 n/a (xdg-permission-store + 0xe7d3)#12#10 0x00007f13b5eb6ff5 n/a (libffi.so.7 + 0x6ff5)#12#11 0x00007f13b5eb640a n/a (libffi.so.7 + 0x640a)#12#12 0x00007f13b62e230d g_cclosure_marshal_generic (libgobject-2.0.so.0 + 0x1530d)#12#13 0x00007f13b62e1802 g_closure_invoke (libgobject-2.0.so.0 + 0x14802)#12#14 0x00007f13b62f5814 n/a (libgobject-2.0.so.0 + 0x28814)#12#15 0x00007f13b62ffa57 g_signal_emitv (libgobject-2.0.so.0 + 0x32a57)#12#16 0x0000557f0c0c432c n/a (xdg-permission-store + 0x1532c)#12#17 0x00007f13b645509a n/a (libgio-2.0.so.0 + 0x12809a)#12#18 0x00007f13b643ba24 n/a (libgio-2.0.so.0 + 0x10ea24)#12#19 0x00007f13b61f604e g_main_context_dispatch (libglib-2.0.so.0 + 0x5204e)#12#20 0x00007f13b61f6400 n/a (libglib-2.0.so.0 + 0x52400)#12#21 0x00007f13b61f66f3 g_main_loop_run (libglib-2.0.so.0 + 0x526f3)#12#22 0x0000557f0c0b9b2f n/a (xdg-permission-store + 0xab2f)#12#23 0x00007f13b5fb3083 __libc_start_main (libc.so.6 + 0x24083)#12#24 0x0000557f0c0b9bfe n/a (xdg-permission-store + 0xabfe)#12#012Stack trace of thread 313082:#12#0 0x00007f13b60a199f __GI___poll (libc.so.6 + 0x11299f)#12#1 0x00007f13b61f636e n/a (libglib-2.0.so.0 + 0x5236e)#12#2 0x00007f13b61f64a3 g_main_context_iteration (libglib-2.0.so.0 + 0x524a3)#12#3 0x00007f13b61f64f1 n/a (libglib-2.0.so.0 + 0x524f1)#12#4 0x00007f13b621fad1 n/a (libglib-2.0.so.0 + 0x7bad1)#12#5 0x00007f13b6189609 start_thread (libpthread.so.0 + 0x8609)#12#6 0x00007f13b60ae133 __clone (libc.so.6 + 0x11f133)#12#012Stack trace of thread 313084:#12#0 0x00007f13b60a199f __GI___poll (libc.so.6 + 0x11299f)#12#1 0x00007f13b61f636e n/a (libglib-2.0.so.0 + 0x5236e)#12#2 0x00007f13b61f66f3 g_main_loop_run (libglib-2.0.so.0 + 0x526f3)#12#3 0x00007f13b644bf8a n/a (libgio-2.0.so.0 + 0x11ef8a)#12#4 0x00007f13b621fad1 n/a (libglib-2.0.so.0 + 0x7bad1)#12#5 0x00007f13b6189609 start_thread (libpthread.so.0 + 0x8609)#12#6 0x00007f13b60ae133 __clone (libc.so.6 + 0x11f133)
Dec 17 15:10:22 rolfmint systemd[1]: [email protected]: Succeeded.

@smcv
Copy link
Collaborator

smcv commented Dec 19, 2022

Dec 17 15:10:22 rolfmint kernel: [337217.141086] xdg-permission-[313081]: segfault at 10000 ip 00007f13b621462d sp 00007ffd3ed060d0 error 4 in libglib-2.0.so.0.6400.6[7f13b61c0000+84000]

This is the kernel reporting a crash (a bug) in xdg-permission-store, part of xdg-desktop-portal. From the hostname and the GLib version there, I suspect this is an older version of x-d-p as packaged by Linux Mint, so please report this crash to them: it's possible that it is already fixed in upstream x-d-p.

The rest of the text you quoted is various system components recording and reporting more information about this crash.

then it causes kernel to crash and reboot system

The kernel should not allow xdg-desktop-portal to do this, even if we wanted it to, so that would be a kernel bug.

@rredford
Copy link
Author

rredford commented Dec 21, 2022

It is, I updated kernel from 5.4 to 5.15 and it happened again, though much rarer now. Though permissions issue is flatpak side bug. Basically it is 2 bugs interacting that causes os to reboot. I reported it here so you guys can fix your side. :)

I'm not sure how to report the kernel side though.

@GeorgesStavracas GeorgesStavracas moved this to Needs Triage in Triage Oct 2, 2023
@GeorgesStavracas
Copy link
Member

@rredford is this still reproducible on your end? Which version of xdg-desktop-portal are you running? Is this issue reproducible with the main branch?

@GeorgesStavracas GeorgesStavracas added bug need more info needs diagnosis Root cause of the issue needs to be diagnosed permissions Issues and feature requests related to permissions labels Oct 3, 2023
@GeorgesStavracas GeorgesStavracas changed the title Notification permission denial causes linux system to reboot Randomly reproducible crash in xdg-permission-store Oct 3, 2023
@GeorgesStavracas GeorgesStavracas moved this from Needs Triage to Triaged in Triage Oct 3, 2023
@rredford
Copy link
Author

rredford commented Oct 3, 2023

Don't know. I removed flatpak since then. System was lot more stable and faster, and reboots was much fewer but still happened till it stopped last month. Reboots cause is still unknown, but removing flatpak made it happen much fewer times.

@GeorgesStavracas
Copy link
Member

Okay. Reboots now happening "fewer times" instead of "not at all" is outstanding evidence this was not a Flatpak or portal issue. Going to this close this then.

@GeorgesStavracas GeorgesStavracas closed this as not planned Won't fix, can't repro, duplicate, stale Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug need more info needs diagnosis Root cause of the issue needs to be diagnosed permissions Issues and feature requests related to permissions
Projects
Status: Triaged
Development

No branches or pull requests

3 participants