Skip to content

676a600 后 VLESS+REALITY+Vision 服务端 SIGSEGV #7162

Closed

Description

@VariatezzZ

服务端入站 vless-tcp-reality,客户端和服务端相同版本,裸核使用
676a6000以后仅服务端出现SIGSEGV,回退低于676a6000即恢复,配置未动。

核心崩溃堆栈日志:
1.log

问的AI分析的根因:

新 reality(Go1.27 同步)把 Conn.rawInput 由 bytes.Buffer 值改成
*bytes.Buffer 指针池化(另加 smallInput,见 conn.go:113-128,888-973,
空闲还会 Put+置nil 再换新 Buffer)。
而 inbound.go:577-586、outbound.go:278-287 仍用
rawInput = (*bytes.Buffer)(unsafe.Pointer(p+r.Offset)),
偏移处现在只有 8 字节指针,被当成整个 Buffer 结构体解释,
w.rawInput 即为野指针,读即崩。

Activity

  1. t-e-s-tweb commented on Oct 15, 2026

    @t-e-s-tweb

    Same thing. I couldn't get logs but just ping starts CPUs at 100%, ram and swap gets filled up and everything shutdowns. Its after the recent reality merges.

  2. RPRX commented on Oct 16, 2026

    @RPRX
    Member
  3. RPRX commented on Oct 16, 2026

    @RPRX
    Member

    @Fangliding 还是你看下吧,感觉不难修

  4. RPRX commented on Oct 16, 2026

    @RPRX
    Member

    我细看了下,Go 1.27+ 的 Xray 服务端没人报告这问题是 Vison+TLS(非 REALITY)很少吗,另外这个可能把 VLESS Encryption 一起改了更好

  5. RPRX commented on Oct 16, 2026

    @RPRX
    Member

    空闲还会 Put+置nil 再换新 Buffer

    ?这样的话应该要改成存 **bytes.Buffer 了

  6. Fangliding commented on Oct 16, 2026

    @Fangliding
    Member

    要弄兼容

  7. RPRX commented on Oct 16, 2026

    @RPRX
    Member

    兼容啥,Go 1.26- 吗?676a600 后只能用 Go 1.27+ 编译了

  8. RPRX commented on Oct 16, 2026

    @RPRX
    Member

    空闲置换。。只要 Golang TLS 没搞个协程去修改结构体里这个指针指向就行不然还得 reflect 它的 lock,应该不太会这么干吧,我还没看代码

    然后那个 smallInput 是不是新的该被 reflect 出来的东西

  9. Fangliding commented on Oct 16, 2026

    @Fangliding
    Member

    不是 因为utls是旧的 目前的go1.27是旧的 reality 直接拉了最新的commit导致是新的 三个并行的tls库所以需要一些操作
    至于lock应该是不用的 tls库我记得不开协程

  10. RPRX commented on Oct 16, 2026

    @RPRX
    Member

    目前的go1.27是旧的

    怪不得没人开 issue,估计 Vision+TLS(非 REALITY)拿 Go 1.27.3 编译才会出问题

    那就 t.FieldByName("smallInput") 成功的话就认为是新版本吧,我看了下反正这个也得弄出来,然后 VLESS Encryption 就先不改了

  11. Fangliding commented on Oct 16, 2026

    @Fangliding
    Member

    其实 field.Kind() == reflect.Pointer 就行了

  12. RPRX commented on Oct 16, 2026

    @RPRX
    Member
  13. VariatezzZ commented on Oct 16, 2026

    @VariatezzZ
    Author

    15. @VariatezzZ @t-e-s-tweb 测试 #7176

    👌得晚点有空
    @RPRX 确认修复,等待合并

  14. t-e-s-tweb commented on Oct 16, 2026

    @t-e-s-tweb

    @RPRX Its fixed. working fine now!

  15. reopened this on Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions