Public bug reported:

[Title]
goa-identity-service crashes with SIGSEGV in g_main_loop_run() after SSSD/VPN 
reconnect

Package version: gnome-online-accounts 3.50.4-0ubuntu2

==============================================================================

[Description]
On Ubuntu 24.04 systems joined to Active Directory via SSSD, 
`/usr/libexec/goa-identity-service` crashes with `SIGSEGV` (`reading unknown 
VMA`) shortly after user login or VPN reconnection.

When a VPN client brings up a tunnel, it flushes `systemd-resolved` DNS
caches and updates routes; after which `sssd_be` transitions back online
and `goa-daemon` invokes `EnsureCredentials()` on the Kerberos identity.
Seconds later, a scheduled GLib main loop callback inside `goa-identity-
service` dereferences an unmapped/invalidated pointer and segfaults,
triggering repeated Apport/whoopsie crash dialogs on enterprise
desktops.

Upstream tracking issue:
https://gitlab.gnome.org/GNOME/gnome-online-accounts/-/issues/403

==============================================================================

[Crash details]
* DistroRelease: Ubuntu 24.04
* Package: gnome-online-accounts 3.50.4-0ubuntu2
* Architecture: amd64
* ExecutablePath: /usr/libexec/goa-identity-service
* Signal: 11 (SIGSEGV)
* SegvReason: reading unknown VMA
* Title: goa-identity-service crashed with SIGSEGV in g_main_loop_run()
* StacktraceAddressSignature: 
/usr/libexec/goa-identity-service:11:/usr/libexec/goa-identity-service+b843:/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.8000.0+405a2:/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.8000.0+3f50e:/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.8000.0+9ebf7:/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.8000.0+3fff7:/usr/libexec/goa-identity-service+2c4b:/usr/lib/x86_64-linux-gnu/libc.so.6+21ca:/usr/lib/x86_64-linux-gnu/libc.so.6+228b:/usr/libexec/goa-identity-service+2cb5

==============================================================================

[Timeline]
1. User logs into GNOME session; `goa-daemon` activates `org.gnome.Identity` 
(`/usr/libexec/goa-identity-service`).
2. VPN tunnel initializes, flushes `systemd-resolved` caches, and updates 
routes.
3. `sssd_be` logs `Backend is online`.
4. `goa-daemon` logs: `/org/gnome/OnlineAccounts/Accounts/account_<id>: Setting 
AttentionNeeded to FALSE because EnsureCredentials() succeded`
5. ~1 second later, `goa-identity-service` terminates with `SIGSEGV` inside 
`g_main_loop_run()` (offset `+0xb843`).

==============================================================================

[Steps to reproduce]
1. Provision an Ubuntu 24.04 Desktop workstation joined to any identity service 
with Kerberos authentication enabled.
2. Log into a GNOME desktop session and establish/reconnect a VPN tunnel that 
triggers DNS cache flushes and route reconfiguration.
3. Observe `goa-daemon` calling `EnsureCredentials()` once `sssd_be` comes 
online.
4. Before the fix: `/usr/libexec/goa-identity-service` segfaults (`SIGSEGV`) 
within seconds and writes `_usr_libexec_goa-identity-service.<uid>.crash` in 
`/var/crash/`.

==============================================================================

[workaround]
Because SSSD already manages AD Kerberos authentication and TGT renewal 
directly, disable D-Bus activation of `org.gnome.Identity` by placing an 
override at `/usr/local/share/dbus-1/services/org.gnome.Identity.service` with 
`Exec=/bin/true`.

** Affects: gnome-online-accounts (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: segfault sts

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2180163

Title:
  goa-identity-service crashed with SIGSEGV in g_main_loop_run()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-online-accounts/+bug/2180163/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to