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

xdg-permission-store: Crash on add_permissions #1648

Open
A6GibKm opened this issue Feb 21, 2025 · 0 comments
Open

xdg-permission-store: Crash on add_permissions #1648

A6GibKm opened this issue Feb 21, 2025 · 0 comments
Labels

Comments

@A6GibKm
Copy link
Contributor

A6GibKm commented Feb 21, 2025

Operating System

Debian 12

XDG Desktop Portal version

1.16

XDG Desktop Portal version (Other)

No response

Desktop Environment

GNOME

Desktop Environment (Other)

No response

Expected Behavior

The daemon does not crash.

Current Behavior

The daemon can crash.

Steps to Reproduce

Unknown. Happened while trying to save a file with thunderbird (interestingly the crash says firefox).

Anything else we should know?

Backtrace bellow.

[Current thread is 1 (Thread 0x7b66bc3f6d40 (LWP 5629))]
(gdb) bt
#0  __strcmp_evex () at ../sysdeps/x86_64/multiarch/strcmp-evex.S:295
#1  0x0000601d7a52f6ed in add_permissions (app_permissions=app_permissions@entry=0x601d922fb380, permissions=0x601d9230cc40) at ../document-portal/permission-db.c:1158
#2  0x0000601d7a5316f6 in permission_db_entry_set_app_permissions (entry=entry@entry=0x601d922fd040, app=app@entry=0x601d923087e0 "org.mozilla.firefox", permissions=permissions@entry=0x601d92308460) at ../document-portal/permission-db.c:1254
#3  0x0000601d7a52a256 in handle_set_permission (object=0x601d922894b0, invocation=0x7b66a8009cf0, table_name=0x601d9230c890 "notifications", create=1, id=0x601d9230bba0 "notification", app=0x601d923087e0 "org.mozilla.firefox", permissions=0x601d92308460)
    at ../document-portal/xdg-permission-store.c:452
#4  0x00007b66bc6e5f7a in ffi_call_unix64 () at ../src/x86/unix64.S:104
#5  0x00007b66bc6e540e in ffi_call_int (cif=cif@entry=0x7ffc628a4f50, fn=fn@entry=0x601d7a52a200 <handle_set_permission>, rvalue=<optimized out>, rvalue@entry=0x7ffc628a4ed0, avalue=<optimized out>, closure=closure@entry=0x0) at ../src/x86/ffi64.c:673
#6  0x00007b66bc6e5b0d in ffi_call (cif=cif@entry=0x7ffc628a4f50, fn=fn@entry=0x601d7a52a200 <handle_set_permission>, rvalue=rvalue@entry=0x7ffc628a4ed0, avalue=avalue@entry=0x7ffc628a4e30) at ../src/x86/ffi64.c:710
#7  0x00007b66bcc11b5c in g_cclosure_marshal_generic (closure=0x601d92292ce0, return_gvalue=0x7ffc628a50f0, n_param_values=<optimized out>, param_values=<optimized out>, invocation_hint=<optimized out>, marshal_data=<optimized out>) at ../../../gobject/gclosure.c:1536
#8  0x00007b66bcc113b0 in g_closure_invoke (closure=0x601d92292ce0, return_value=return_value@entry=0x7ffc628a50f0, n_param_values=7, param_values=param_values@entry=0x601d9230d2f0, invocation_hint=invocation_hint@entry=0x7ffc628a50d0) at ../../../gobject/gclosure.c:832
#9  0x00007b66bcc24076 in signal_emit_unlocked_R (node=<optimized out>, detail=detail@entry=0, instance=0x601d922894b0, emission_return=emission_return@entry=0x7ffc628a5180, instance_and_params=0x601d9230d2f0) at ../../../gobject/gsignal.c:3796
#10 0x00007b66bcc29c1b in g_signal_emitv (instance_and_params=instance_and_params@entry=0x601d9230d2f0, signal_id=signal_id@entry=14, detail=detail@entry=0, return_value=return_value@entry=0x7ffc628a5180) at ../../../gobject/gsignal.c:3268
#11 0x0000601d7a528f2b in _xdg_permission_store_skeleton_handle_method_call (connection=<optimized out>, sender=<optimized out>, object_path=<optimized out>, interface_name=0x7b66a800bcb0 "org.freedesktop.impl.portal.PermissionStore", 
    method_name=0x7b66a8017d90 "SetPermission", parameters=<optimized out>, invocation=0x7b66a8009cf0, user_data=0x601d922894b0) at document-portal/permission-store-dbus.c:2715
#12 0x00007b66bcd7ca65 in g_dbus_interface_method_dispatch_helper (interface=<optimized out>, method_call_func=0x601d7a528d60 <_xdg_permission_store_skeleton_handle_method_call>, invocation=0x7b66a8009cf0) at ../../../gio/gdbusinterfaceskeleton.c:618
#13 0x00007b66bcd62a88 in call_in_idle_cb (user_data=0x7b66a8009cf0) at ../../../gio/gdbusconnection.c:5433
#14 0x00007b66bce8e67f in g_main_dispatch (context=0x601d9227e480) at ../../../glib/gmain.c:3454
#15 g_main_context_dispatch (context=context@entry=0x601d9227e480) at ../../../glib/gmain.c:4172
#16 0x00007b66bce8ea38 in g_main_context_iterate (context=0x601d9227e480, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4248
#17 0x00007b66bce8ecef in g_main_loop_run (loop=0x601d9228eb30) at ../../../glib/gmain.c:4448
#18 0x0000601d7a526792 in main (argc=<optimized out>, argv=<optimized out>) at ../document-portal/permission-store.c:135
@A6GibKm A6GibKm added the bug label Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant