SagerNet / SagerNet/sing-box

SFM 1.14.0-beta.12 (macOS): NetworkExtension 进程崩溃 (SIGSEGV)

Open
#4,431 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
38.2k
Forks
4.6k
Avg merge
19d 15h
Merged PRs (30d)
1

Description

操作系统

macOS

系统版本

macOS 26.6.1 (25G76)

安装类型

sing-box for macOS 图形客户端程序

如果您使用图形客户端程序,请提供该程序版本。

SFM 1.14.0-beta.12

版本

sing-box 1.14.0-beta.12(来自崩溃报告;图形客户端,NetworkExtension 进程)

描述

SFM(sing-box for macOS)1.14.0-beta.12 在使用过程中 NetworkExtension 进程发生崩溃。

崩溃来源:NetworkExtension

崩溃类型为 SIGSEGV(segmentation violation,SEGV_ACCERR at 0x0,signal arrived during cgo execution)。崩溃为偶发出现,未找到稳定触发条件,未使用自定义配置触发。完整崩溃日志见下方“日志”部分。

重现方式

无法稳定重现,崩溃在使用过程中偶发出现(NetworkExtension 运行中)。由于是图形客户端崩溃,无法使用 sing-box 原始命令行程序在本地重现。当时使用的 naive 出站配置片段如下(敏感信息已隐去):

{
  "password": "<redacted>",
  "server": "<redacted>",
  "server_port": 443,
  "tag": "dmit-us-west",
  "tls": {
    "enabled": true,
    "server_name": "<redacted>"
  },
  "type": "naive",
  "udp_over_tcp": {
    "enabled": true
  },
  "username": "<redacted>"
}
日志

2026-08-14T10-50-15.zip.age.zip

崩溃报告关键信息(完整报告见附件):

SIGSEGV: segmentation violation
PC=0x1066a0b34 m=32 sigcode=2 addr=0x0
signal arrived during cgo execution

goroutine 3111323 gp=0x140bb4a1ef00 m=32 mp=0x140bb4730008 [syscall]:
runtime.cgocall(0x1065f2e9c, 0x140bb59e9de8)
	runtime/cgocall.go:167 +0x44
github.com/sagernet/cronet-go._Cfunc_bidirectional_stream_cancel(0xb099eb650)
	_cgo_gotypes.go:3887 +0x2c
github.com/sagernet/cronet-go.BidirectionalStream.Cancel.func1(...)
github.com/sagernet/cronet-go.BidirectionalStream.Cancel({0x140bb69fdf10?})
github.com/sagernet/cronet-go.(*BidirectionalConn).Close(0x140bb69ab700)
github.com/sagernet/cronet-go.(*naiveConn).Close(0xed60?)
github.com/sagernet/cronet-go.(*trackedNaiveConn).Close(0x140bb46667e0)
github.com/sagernet/sing-box/route.(*ConnectionManager).connectionCopy(...)
github.com/sagernet/sing-box/route.(*ConnectionManager).NewConnection.gowrap1()

-----

Incident Identifier: 9DE6231F-7BF0-4B5B-9C05-1B9528D865BF
Hardware Model:      MacBookPro18,3
Process:         io.nekohasekai.s [2260]
Path:            /Library/SystemExtensions/AE4D6CF5-C49B-442D-8C8C-F80AFDA8DAF1/io.nekohasekai.sfavt.system.systemextension/Contents/MacOS/io.nekohasekai.sfavt.system
Identifier:      io.nekohasekai.sfavt.system
Version:         1.14.0-beta.12 (1)
Code Type:       ARM-64
Parent Process:  launchd [1]

Date/Time:       2026-08-14 10:50:15 +0000
OS Version:      Mac OS X 26.6.1 (25G76)
Report Version:  104

Exception Type:  SIGSEGV
Exception Codes: SEGV_ACCERR at 0x0
Crashed Thread:  33

Thread 33 Crashed:
0   Library                             0x00000001066a0b34 0x104bb0000 + 28248884
1   Library                             0x00000001066a1218 0x104bb0000 + 28250648
2   Library                             0x00000001065f2ec0 0x104bb0000 + 27537088
3   Library                             0x0000000104ef787c 0x104bb0000 + 3438716
支持我们
完整性要求
  • 我保证阅读了文档,了解所有我编写的配置文件项的含义,而不是大量堆砌看似有用的选项或默认值。
  • 我保证提供了可以在本地重现该问题的服务器、客户端配置文件与流程,而不是一个脱敏的复杂客户端配置文件。
  • 我保证提供了可用于重现我报告的错误的最简配置,而不是依赖远程服务器、TUN、图形界面客户端或者其他闭源软件。
  • 我保证提供了完整的配置文件与日志,而不是出于对自身智力的自信而仅提供了部分认为有用的部分。

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the attached crash report and the stack frames involving github.com/sagernet/cronet-go.BidirectionalStream.Cancel, BidirectionalConn.Close, and sing-box route.ConnectionManager.NewConnection. Investigate the intermittent NetworkExtension SIGSEGV during cgo execution; completion would require a confirmed cause and a fix validated against the crash path, though the issue provides no reproducible test.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, macos
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.