[Bug Report] GUI: opensnitch-ui segmentation fault

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

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

評価

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

調査の方向性

Start by reproducing the crash with opensnitch-ui --debug on the reported Ubuntu setup. Read opensnitch/dialogs/prompt/__init__.py around _timeout_worker, promptUser, and on_connection_prompt_triggered, then inspect opensnitch/dialogs/prompt/_details.py around render; the thread dump identifies these as the active prompt path. Done means the GUI no longer segfaults when the connection prompt appears.

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

説明

bug
Describe the bug:

Include the following information:

  • OpenSnitch version: 1.8.0
  • OS: Ubuntu
  • OS version: 24.04
  • Window Manager: GNOME Shell
  • Kernel version: 6.14.0-35-generic
To Reproduce:

Steps to reproduce the behavior:
Launch opensnitch, wait around 10 seconds, UI pops up for a few seconds then crashes.
Run command opensnitch-ui --debug to check errors.

Error logs:
opensnitch-ui --debug

Themes not available. Install qt-material if you want to change GUI's appearance: pip3 install qt-material.
Loaded network aliases from /usr/lib/python3/dist-packages/opensnitch/utils/network_aliases/network_aliases.json
	 ~ OpenSnitch GUI - 1.8.0 ~
	protobuf: 4.21.12 - grpc: 1.51.1
-------------------------------------------------- 

QT_AUTO_SCREEN_SCALE_FACTOR: True
gRPC Max Message Length: 4MiB
                  Bytes: 4194304
[server] addr: unix:///tmp/osui.sock
is new file, or IN MEMORY, setting initial schema version
setting schema version to: 3
setting schema version to: 3
Setting journal_mode:  OFF
Setting DB memory optimizations
schema version: 3
db schema is up to date
actions.__init__ exception: [Errno 17] File exists: '/home/andrewk/.config//opensnitch/actions/'
actions.__init__ exception: [Errno 17] File exists: '/home/andrewk/.config//opensnitch/actions/'
Loading translations: /usr/lib/python3/dist-packages/opensnitch/utils/../i18n locale: en_AU
using IPASN DB: /usr/lib/python3/dist-packages/data/ipasn_20140513_v12.dat.gz
actions.__init__ exception: [Errno 17] File exists: '/home/andrewk/.config//opensnitch/actions/'
[server] using address: unix:///tmp/osui.sock auth type: simple
2026-09-29 08:51:32.874269 [Subscribe] unix:
Setting daemon DefaultAction to: allow
2026-09-29 08:51:32.880248 [Notifications] channel started: unix:

new node connected, listening for client responses... /local
[Nodes]:   reply notification not in the list: 0
Fatal Python error: Segmentation fault

Thread 0x000079000effd6c0 (most recent call first):
  File "/usr/lib/python3/dist-packages/opensnitch/dialogs/prompt/__init__.py", line 323 in _timeout_worker
  File "/usr/lib/python3.12/threading.py", line 1010 in run
  File "/usr/lib/python3.12/threading.py", line 1073 in _bootstrap_inner
  File "/usr/lib/python3.12/threading.py", line 1030 in _bootstrap

Thread 0x000079000ffff6c0 (most recent call first):
  File "/usr/lib/python3.12/threading.py", line 355 in wait
  File "/usr/lib/python3/dist-packages/grpc/_server.py", line 382 in _next
  File "/usr/lib/python3/dist-packages/grpc/_server.py", line 391 in __next__
  File "/usr/lib/python3/dist-packages/opensnitch/service.py", line 1021 in new_node_message
  File "/usr/lib/python3.12/threading.py", line 1010 in run
  File "/usr/lib/python3.12/threading.py", line 1073 in _bootstrap_inner
  File "/usr/lib/python3.12/threading.py", line 1030 in _bootstrap

Thread 0x000079002cff96c0 (most recent call first):
  File "/usr/lib/python3.12/threading.py", line 355 in wait
  File "/usr/lib/python3.12/queue.py", line 171 in get
  File "/usr/lib/python3/dist-packages/opensnitch/service.py", line 1045 in Notifications
  File "/usr/lib/python3/dist-packages/grpc/_server.py", line 462 in _take_response_from_response_iterator
  File "/usr/lib/python3/dist-packages/grpc/_server.py", line 615 in _send_message_callback_to_blocking_iterator_adapter
  File "/usr/lib/python3/dist-packages/grpc/_server.py", line 601 in _stream_response_in_pool
  File "/usr/lib/python3.12/concurrent/futures/thread.py", line 58 in run
  File "/usr/lib/python3.12/concurrent/futures/thread.py", line 92 in _worker
  File "/usr/lib/python3.12/threading.py", line 1010 in run
  File "/usr/lib/python3.12/threading.py", line 1073 in _bootstrap_inner
  File "/usr/lib/python3.12/threading.py", line 1030 in _bootstrap

Thread 0x000079002d7fa6c0 (most recent call first):
  File "/usr/lib/python3.12/threading.py", line 355 in wait
  File "/usr/lib/python3.12/threading.py", line 655 in wait
  File "/usr/lib/python3/dist-packages/opensnitch/dialogs/prompt/__init__.py", line 304 in promptUser
  File "/usr/lib/python3/dist-packages/opensnitch/service.py", line 884 in AskRule
  File "/usr/lib/python3/dist-packages/grpc/_server.py", line 444 in _call_behavior
  File "/usr/lib/python3/dist-packages/grpc/_server.py", line 561 in _unary_response_in_pool
  File "/usr/lib/python3.12/concurrent/futures/thread.py", line 58 in run
  File "/usr/lib/python3.12/concurrent/futures/thread.py", line 92 in _worker
  File "/usr/lib/python3.12/threading.py", line 1010 in run
  File "/usr/lib/python3.12/threading.py", line 1073 in _bootstrap_inner
  File "/usr/lib/python3.12/threading.py", line 1030 in _bootstrap

Thread 0x000079002dffb6c0 (most recent call first):
  File "/usr/lib/python3/dist-packages/grpc/_server.py", line 880 in _serve
  File "/usr/lib/python3.12/threading.py", line 1010 in run
  File "/usr/lib/python3.12/threading.py", line 1073 in _bootstrap_inner
  File "/usr/lib/python3.12/threading.py", line 1030 in _bootstrap

Thread 0x000079006bfff6c0 (most recent call first):
  File "/usr/lib/python3/dist-packages/pyinotify.py", line 1194 in check_events
  File "/usr/lib/python3/dist-packages/pyinotify.py", line 1381 in loop
  File "/usr/lib/python3/dist-packages/opensnitch/desktop_parser.py", line 202 in run
  File "/usr/lib/python3.12/threading.py", line 1073 in _bootstrap_inner
  File "/usr/lib/python3.12/threading.py", line 1030 in _bootstrap

Thread 0x0000790081b806c0 (most recent call first):
  File "/usr/lib/python3/dist-packages/pyinotify.py", line 1194 in check_events
  File "/usr/lib/python3/dist-packages/pyinotify.py", line 1381 in loop
  File "/usr/lib/python3/dist-packages/opensnitch/desktop_parser.py", line 202 in run
  File "/usr/lib/python3.12/threading.py", line 1073 in _bootstrap_inner
  File "/usr/lib/python3.12/threading.py", line 1030 in _bootstrap

Current thread 0x00007900a489b080 (most recent call first):
  File "/usr/lib/python3/dist-packages/opensnitch/dialogs/prompt/_details.py", line 50 in render
  File "/usr/lib/python3/dist-packages/opensnitch/dialogs/prompt/__init__.py", line 337 in on_connection_prompt_triggered
  File "/usr/bin/opensnitch-ui", line 301 in <module>

Extension modules: PyQt6.QtCore, PyQt6.QtGui, PyQt6.QtWidgets, PyQt6.QtNetwork, grpc._cython.cygrpc, PyQt6.QtSql, google.protobuf.pyext._message, _dbus_bindings, _dbus_glib_bindings, pyasn.pyasn_radix (total: 10)
Segmentation fault (core dumped)
主要言語
Python
スター
14.3k
フォーク
689
PR マージ指標
30日以内にマージされた PR はありません

環境構築

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

はじめの一歩

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

evilsocket/opensnitch のほかの issue

evilsocket/opensnitch の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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