Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

xapp-sn-watcher segfaults in g_dbus_proxy_get_name every time Blip (Flatpak) registers its tray icon

オープン
#217 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
20/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
c, linux
領域
desktop

調査の方向性

The crash is in the xapp-sn-watcher binary, inside an async D-Bus callback that calls g_dbus_proxy_get_name; the reporter suspects get_all_properties_callback in sn-item.c, where the item or proxy may be freed before the callback runs. Start by reproducing with a StatusNotifierItem registration (or Blip) under a debug build, then check the object lifetimes around the proxy in that callback. Done means the watcher survives item registration and removal without segfaulting, and other tray icons stay up.

索引モデルが issue の本文から書いたものです。

説明

Distribution: Linux Mint 22.3 (zena), Cinnamon 6.6.9
Packages: libxapp1 / xapps-common 3.2.3+zena, libglib2.0-0t64 2.80.0-6ubuntu3.9
Kernel: 7.0.0-38-generic
Application: Blip 1.2.6 (Flathub, net.blip.Blip, runtime org.freedesktop.Platform 26.08)

Issue
xapp-sn-watcher crashes with SIGSEGV every time Blip registers its StatusNotifierItem. Because the watcher is gone, every other tray icon (e.g. blueman) disappears too. cinnamon-session then stops respawning it ("respawning too quickly"), and Blip quits because it can no longer show its tray icon. Blip's "Launch at Login" therefore never works.

Steps to reproduce

  1. Install Blip from Flathub and enable "Launch at Login" (it starts with --background --delay 5).
  2. Log in, or start Blip manually: flatpak run --command=/app/bin/blip net.blip.Blip --background.
  3. About 2 seconds later, xapp-sn-watcher segfaults. All tray icons disappear and Blip exits.

This is reproducible on every attempt. There were 7 core dumps on 2026-10-16.

When it started
Blip's tray icon worked until the first reboot after the update of 2026-10-14, which took xapps 3.2.2 -> 3.2.3, glib 2.80.0-6ubuntu3.6 -> 3.9 and Cinnamon 6.6.4 -> 6.6.9. Since that reboot, it crashes every time.

Journal

kernel: traps: xapp-sn-watcher[3794] general protection fault ip:7b3a0a11546d sp:7ffdf3bcd9e0 error:0 in libgio-2.0.so.0.8000.0[11e46d,7b3a0a030000+117000]
systemd-coredump: Process 3794 (xapp-sn-watcher) of user 1000 dumped core.
cinnamon-session-binary: WARNING: Application 'xapp-sn-watcher.desktop' killed by signal 11
cinnamon-session-binary: WARNING: App 'xapp-sn-watcher.desktop' respawning too quickly

~/.xsession-errors shows that the item is added and then everything is removed:

JS LOG: [LookingGlass/info] Adding XAppStatusIcon:  (:1.162/org/x/StatusIcon/Icon_1)
WARNING: Application 'xapp-sn-watcher.desktop' killed by signal 11
JS LOG: [LookingGlass/info] Removing XAppStatusIcon: :1.169 (:1.162/org/x/StatusIcon/Icon_1)
JS LOG: [LookingGlass/info] Removing XAppStatusIcon: blueman (:1.162/org/x/StatusIcon/Icon)

Blip's own log at the same moment:

ERROR msg="requesting autostart via portal" err="org.freedesktop.dbus.errors.UnknownMethod: No such interface "org.freedesktop.portal.Background" on object at path /org/freedesktop/portal/desktop"
ERROR msg="preloading sound theme" exception="kotlinx.coroutines.JobCancellationException: Parent job is Cancelling"
	at net.blip.desktop.ui.windowing.LinuxTrayKt$LinuxTray$5$1.invokeSuspend(LinuxTray.kt:70)
Error: The application has experienced an internal error and must quit.

Backtrace (crashing thread)

#0  g_dbus_proxy_get_name (libgio-2.0.so.0 + 0x11e46d)
#1  n/a (xapp-sn-watcher + 0x1036f)
#2  n/a (libgio-2.0.so.0 + 0xb17bb)
#3  n/a (libgio-2.0.so.0 + 0xb5713)
#4  n/a (libgio-2.0.so.0 + 0x10ff72)
#5  n/a (libgio-2.0.so.0 + 0xb17bb)
#6  n/a (libgio-2.0.so.0 + 0xb17f5)
#7  n/a (libglib-2.0.so.0 + 0x5d50e)
#8  n/a (libglib-2.0.so.0 + 0xbcbf7)
#9  g_main_context_iteration (libglib-2.0.so.0 + 0x5cad3)
#10 g_application_run (libgio-2.0.so.0 + 0xe789d)
#11 main (xapp-sn-watcher + 0xa010)

The frame inside xapp-sn-watcher is an async D-Bus callback calling g_dbus_proxy_get_name, which looks like the same crash as the older Fedora reports (get_all_properties_callback in sn-item.c, e.g. https://retrace.fedoraproject.org/faf/reports/1119084). My guess is that the proxy/item is freed before the callback runs. This may be related to #213.

Workaround
Restarting /usr/lib/x86_64-linux-gnu/xapps/xapp-sn-watcher brings the other icons back, but it crashes again the next time Blip starts.

主要言語
C
スター
170
フォーク
50
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

linuxmint/xapp のほかの issue

linuxmint/xapp の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。