Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

updateVpnService -> byDevice.isProvideEnabled is crashing the app

未关闭
#4 5 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
go, kotlin
领域
mobile, networking

调研方向

从 Android 的 updateVpnService 路径以及标题中提到的 byDevice.isProvideEnabled 检查开始。结合 connect/trace.go 第 65 行和提供的模拟器复现日志,跟踪经过 device.go 第 251、253 和 338 行的 Go 回调。完成的标准是完成 provider 验证,且不会立即或随后发生启动崩溃。

由索引模型根据 Issue 内容生成。

描述

Here are the steps I took:

  • Login create, clicked the "become a provider" button.
  • Filled out the form.
  • Submitted the verification.
  • App crashed, and on subsequent launches, crashes immediately.
    This is all tested in the emulator. Tried on both Pixel 7 and Pixel 8.

Some logs:

2024-07-04 17:29:28.907 11797-0     Go                      com.bringyour.network                E  runtime: newstack at runtime.printlock+0x78 sp=0x4000163ac0 stack=[0x4000162000, 0x4000164000]
2024-07-04 17:29:28.907 11797-11839 GoLog                   com.bringyour.network                E  runtime: newstack at runtime.printlock+0x78 sp=0x4000163ac0 stack=[0x4000162000, 0x4000164000]
2024-07-04 17:29:28.907 11797-0     Go                      com.bringyour.network                E  	morebuf={pc:0x70314b6050 sp:0x4000163ac0 lr:0x0}
2024-07-04 17:29:28.907 11797-0     Go                      com.bringyour.network                E  	sched={pc:0x70314eb8e8 sp:0x4000163ac0 lr:0x70314b6050 ctxt:0x0}
2024-07-04 17:29:28.907 11797-0     Go                      com.bringyour.network                E  runtime.callbackUpdateSystemStack(0x4000044008, 0x7fe8a34580, 0x0)
2024-07-04 17:29:28.907 11797-11839 GoLog                   com.bringyour.network                E  	morebuf={pc:0x70314b6050 sp:0x4000163ac0 lr:0x0}
2024-07-04 17:29:28.907 11797-0     Go                      com.bringyour.network                E  	runtime/cgocall.go:241 +0x90 fp=0x4000163b20 sp=0x4000163ac0 pc=0x70314b6050
2024-07-04 17:29:28.907 11797-11839 GoLog                   com.bringyour.network                E  	sched={pc:0x70314eb8e8 sp:0x4000163ac0 lr:0x70314b6050 ctxt:0x0}
2024-07-04 17:29:28.907 11797-0     Go                      com.bringyour.network                E  runtime.cgocallbackg(0x703187cff0, 0x7fe8a34678, 0x0)
2024-07-04 17:29:28.907 11797-11839 GoLog                   com.bringyour.network                E  runtime.callbackUpdateSystemStack(0x4000044008, 0x7fe8a34580, 0x0)
2024-07-04 17:29:28.907 11797-0     Go                      com.bringyour.network                E  	runtime/cgocall.go:306 +0x68 fp=0x4000163ba0 sp=0x4000163b20 pc=0x70314b6218
2024-07-04 17:29:28.907 11797-11839 GoLog                   com.bringyour.network                E  	runtime/cgocall.go:241 +0x90 fp=0x4000163b20 sp=0x4000163ac0 pc=0x70314b6050
2024-07-04 17:29:28.907 11797-11839 GoLog                   com.bringyour.network                E  runtime.cgocallbackg(0x703187cff0, 0x7fe8a34678, 0x0)
2024-07-04 17:29:28.907 11797-0     Go                      com.bringyour.network                E  runtime.cgocallbackg(0x703187cff0, 0x7fe8a34678, 0x0)
2024-07-04 17:29:28.907 11797-11839 GoLog                   com.bringyour.network                E  	runtime/cgocall.go:306 +0x68 fp=0x4000163ba0 sp=0x4000163b20 pc=0x70314b6218
2024-07-04 17:29:28.907 11797-11839 GoLog                   com.bringyour.network                E  runtime.cgocallbackg(0x703187cff0, 0x7fe8a34678, 0x0)
2024-07-04 17:29:28.907 11797-0     Go                      com.bringyour.network                E  	<autogenerated>:1 +0x1c fp=0x4000163bd0 sp=0x4000163ba0 pc=0x7031522d0c
2024-07-04 17:29:28.907 11797-11839 GoLog                   com.bringyour.network                E  	<autogenerated>:1 +0x1c fp=0x4000163bd0 sp=0x4000163ba0 pc=0x7031522d0c
2024-07-04 17:29:28.908 11797-0     Go                      com.bringyour.network                E  runtime.cgocallback(0x4000163c48, 0x7031856460, 0x703189b118)
2024-07-04 17:29:28.908 11797-0     Go                      com.bringyour.network                E  	runtime/asm_arm64.s:1130 +0xb0 fp=0x4000163c00 sp=0x4000163bd0 pc=0x7031521050
2024-07-04 17:29:28.908 11797-0     Go                      com.bringyour.network                E  runtime.systemstack_switch()
2024-07-04 17:29:28.908 11797-0     Go                      com.bringyour.network                E  	runtime/asm_arm64.s:200 +0x8 fp=0x4000163c10 sp=0x4000163c00 pc=0x703151ec18
2024-07-04 17:29:28.908 11797-11839 GoLog                   com.bringyour.network                E  runtime.cgocallback(0x4000163c48, 0x7031856460, 0x703189b118)
2024-07-04 17:29:28.908 11797-0     Go                      com.bringyour.network                E  runtime.cgocall(0x703189b118, 0x4000163c88)
2024-07-04 17:29:28.908 11797-0     Go                      com.bringyour.network                E  	runtime/cgocall.go:175 +0x70 fp=0x4000163c50 sp=0x4000163c10 pc=0x70314b5f60
2024-07-04 17:29:28.908 11797-0     Go                      com.bringyour.network                E  main._Cfunc_cproxyclient_ProvideChangeListener_ProvideChanged(0x2a, 0x0)
2024-07-04 17:29:28.908 11797-0     Go                      com.bringyour.network                E  	_cgo_gotypes.go:550 +0x30 fp=0x4000163c80 sp=0x4000163c50 pc=0x7031856460
2024-07-04 17:29:28.909 11797-11839 GoLog                   com.bringyour.network                E  	runtime/asm_arm64.s:1130 +0xb0 fp=0x4000163c00 sp=0x4000163bd0 pc=0x7031521050
2024-07-04 17:29:28.909 11797-11839 GoLog                   com.bringyour.network                E  runtime.systemstack_switch()
2024-07-04 17:29:28.909 11797-11839 GoLog                   com.bringyour.network                E  	runtime/asm_arm64.s:200 +0x8 fp=0x4000163c10 sp=0x4000163c00 pc=0x703151ec18
2024-07-04 17:29:28.909 11797-11839 GoLog                   com.bringyour.network                E  runtime.cgocall(0x703189b118, 0x4000163c88)
2024-07-04 17:29:28.909 11797-11839 GoLog                   com.bringyour.network                E  	runtime/cgocall.go:175 +0x70 fp=0x4000163c50 sp=0x4000163c10 pc=0x70314b5f60
2024-07-04 17:29:28.909 11797-11839 GoLog                   com.bringyour.network                E  main._Cfunc_cproxyclient_ProvideChangeListener_ProvideChanged(0x2a, 0x0)
2024-07-04 17:29:28.909 11797-11839 GoLog                   com.bringyour.network                E  	_cgo_gotypes.go:550 +0x30 fp=0x4000163c80 sp=0x4000163c50 pc=0x7031856460
2024-07-04 17:29:28.909 11797-0     Go                      com.bringyour.network                E  main.(*proxyclient_ProvideChangeListener).ProvideChanged(0x4000010144, 0x0)
2024-07-04 17:29:28.909 11797-11839 GoLog                   com.bringyour.network                E  main.(*proxyclient_ProvideChangeListener).ProvideChanged(0x4000010144, 0x0)
2024-07-04 17:29:28.909 11797-0     Go                      com.bringyour.network                E  	gobind/gobind/go_clientmain.go:7254 +0x58 fp=0x4000163ca0 sp=0x4000163c80 pc=0x7031875508
2024-07-04 17:29:28.909 11797-11839 GoLog                   com.bringyour.network                E  	gobind/gobind/go_clientmain.go:7254 +0x58 fp=0x4000163ca0 sp=0x4000163c80 pc=0x7031875508
2024-07-04 17:29:28.909 11797-0     Go                      com.bringyour.network                E  bringyour.com/client.(*BringYourDevice).provideChanged.func1()
2024-07-04 17:29:28.909 11797-11839 GoLog                   com.bringyour.network                E  bringyour.com/client.(*BringYourDevice).provideChanged.func1()
2024-07-04 17:29:28.909 11797-0     Go                      com.bringyour.network                E  	bringyour.com/[email protected]/device.go:253 +0xb4 fp=0x4000163cf0 sp=0x4000163ca0 pc=0x7031843804
2024-07-04 17:29:28.909 11797-11839 GoLog                   com.bringyour.network                E  	bringyour.com/[email protected]/device.go:253 +0xb4 fp=0x4000163cf0 sp=0x4000163ca0 pc=0x7031843804
2024-07-04 17:29:28.909 11797-0     Go                      com.bringyour.network                E  bringyour.com/connect.HandleError(0x70313e41e5?, {0x0?, 0x4000020770?, 0x0?})
2024-07-04 17:29:28.909 11797-11839 GoLog                   com.bringyour.network                E  bringyour.com/connect.HandleError(0x70313e41e5?, {0x0?, 0x4000020770?, 0x0?})
2024-07-04 17:29:28.909 11797-0     Go                      com.bringyour.network                E  	bringyour.com/[email protected]/trace.go:65 +0x70 fp=0x4000163d50 sp=0x4000163cf0 pc=0x70318103a0
2024-07-04 17:29:28.909 11797-0     Go                      com.bringyour.network                E  bringyour.com/client.(*BringYourDevice).provideChanged(0x4000000360, 0x0)
2024-07-04 17:29:28.909 11797-11839 GoLog                   com.bringyour.network                E  	bringyour.com/[email protected]/trace.go:65 +0x70 fp=0x4000163d50 sp=0x4000163cf0 pc=0x70318103a0
2024-07-04 17:29:28.909 11797-11839 GoLog                   com.bringyour.network                E  bringyour.com/client.(*BringYourDevice).provideChanged(0x4000000360, 0x0)
2024-07-04 17:29:28.909 11797-0     Go                      com.bringyour.network                E  	bringyour.com/[email protected]/device.go:251 +0xe4 fp=0x4000163dc0 sp=0x4000163d50 pc=0x70318436e4
2024-07-04 17:29:28.909 11797-11839 GoLog                   com.bringyour.network                E  	bringyour.com/[email protected]/device.go:251 +0xe4 fp=0x4000163dc0 sp=0x4000163d50 pc=0x70318436e4
2024-07-04 17:29:28.909 11797-0     Go                      com.bringyour.network                E  bringyour.com/client.(*BringYourDevice).SetProvideMode(0x4000000360, 0x70314b6658?)
2024-07-04 17:29:28.909 11797-11839 GoLog                   com.bringyour.network                E  bringyour.com/client.(*BringYourDevice).SetProvideMode(0x4000000360, 0x70314b6658?)
2024-07-04 17:29:28.909 11797-0     Go                      com.bringyour.network                E  	bringyour.com/[email protected]/device.go:338 +0x40 fp=0x4000163de0 sp=0x4000163dc0 pc=0x7031843e20
2024-07-04 17:29:28.909 11797-11839 GoLog                   com.bringyour.network                E  	bringyour.com/[email protected]/device.go:338 +0x40 fp=0x4000163de0 sp=0x4000163dc0 pc=0x7031843e20
2024-07-04 17:29:28.909 11797-0     Go                      com.bringyour.network                E  main.proxyclient_BringYourDevice_SetProvideMode(0xffffff01?, 0x0)
2024-07-04 17:29:28.909 11797-11839 GoLog                   com.bringyour.network                E  main.proxyclient_BringYourDevice_SetProvideMode(0xffffff01?, 0x0)
2024-07-04 17:29:28.910 11797-0     Go                      com.bringyour.network                E  	gobind/gobind/go_clientmain.go:1610 +0x40 fp=0x4000163e10 sp=0x4000163de0 pc=0x703185dc30
2024-07-04 17:29:28.910 11797-11839 GoLog                   com.bringyour.network                E  	gobind/gobind/go_clientmain.go:1610 +0x40 fp=0x4000163e10 sp=0x4000163de0 pc=0x703185dc30
2024-07-04 17:29:28.910 11797-0     Go                      com.bringyour.network                E  _cgoexp_e7fa622b2ccb_proxyclient_BringYourDevice_SetProvideMode(0x4000163e88?)
2024-07-04 17:29:28.910 11797-11839 GoLog                   com.bringyour.network                E  _cgoexp_e7fa622b2ccb_proxyclient_BringYourDevice_SetProvideMode(0x4000163e88?)
2024-07-04 17:29:28.910 11797-0     Go                      com.bringyour.network                E  	_cgo_gotypes.go:2126 +0x28 fp=0x4000163e30 sp=0x4000163e10 pc=0x703187d378
2024-07-04 17:29:28.910 11797-11839 GoLog                   com.bringyour.network                E  	_cgo_gotypes.go:2126 +0x28 fp=0x4000163e30 sp=0x4000163e10 pc=0x703187d378
2024-07-04 17:29:28.910 11797-0     Go                      com.bringyour.network                E  runtime.cgocallbackg1(0x703187d350, 0x7fe8a38c70, 0x0)
2024-07-04 17:29:28.910 11797-11839 GoLog                   com.bringyour.network                E  runtime.cgocallbackg1(0x703187d350, 0x7fe8a38c70, 0x0)
2024-07-04 17:29:28.910 11797-0     Go                      com.bringyour.network                E  	runtime/cgocall.go:420 +0x228 fp=0x4000163f00 sp=0x4000163e30 pc=0x70314b6598
2024-07-04 17:29:28.910 11797-11839 GoLog                   com.bringyour.network                E  	runtime/cgocall.go:420 +0x228 fp=0x4000163f00 sp=0x4000163e30 pc=0x70314b6598
2024-07-04 17:29:28.910 11797-0     Go                      com.bringyour.network                E  runtime.cgocallbackg(0x703187d350, 0x7fe8a38c70, 0x0)
2024-07-04 17:29:28.910 11797-11839 GoLog                   com.bringyour.network                E  runtime.cgocallbackg(0x703187d350, 0x7fe8a38c70, 0x0)
2024-07-04 17:29:28.910 11797-0     Go                      com.bringyour.network                E  	runtime/cgocall.go:339 +0x10c fp=0x4000163f80 sp=0x4000163f00 pc=0x70314b62bc
2024-07-04 17:29:28.910 11797-11839 GoLog                   com.bringyour.network                E  	runtime/cgocall.go:339 +0x10c fp=0x4000163f80 sp=0x4000163f00 pc=0x70314b62bc
2024-07-04 17:29:28.910 11797-0     Go                      com.bringyour.network                E  runtime.cgocallbackg(0x703187d350, 0x7fe8a38c70, 0x0)
2024-07-04 17:29:28.910 11797-11839 GoLog                   com.bringyour.network                E  runtime.cgocallbackg(0x703187d350, 0x7fe8a38c70, 0x0)
2024-07-04 17:29:28.910 11797-0     Go                      com.bringyour.network                E  	<autogenerated>:1 +0x1c fp=0x4000163fb0 sp=0x4000163f80 pc=0x7031522d0c
2024-07-04 17:29:28.910 11797-0     Go                      com.bringyour.network                E  runtime.cgocallback(0x0, 0x0, 0x0)
2024-07-04 17:29:28.910 11797-0     Go                      com.bringyour.network                E  	runtime/asm_arm64.s:1130 +0xb0 fp=0x4000163fe0 sp=0x4000163fb0 pc=0x7031521050
2024-07-04 17:29:28.910 11797-0     Go                      com.bringyour.network                E  runtime.goexit({})
2024-07-04 17:29:28.910 11797-11839 GoLog                   com.bringyour.network                E  	<autogenerated>:1 +0x1c fp=0x4000163fb0 sp=0x4000163f80 pc=0x7031522d0c
2024-07-04 17:29:28.910 11797-11839 GoLog                   com.bringyour.network                E  runtime.cgocallback(0x0, 0x0, 0x0)
2024-07-04 17:29:28.910 11797-11839 GoLog                   com.bringyour.network                E  	runtime/asm_arm64.s:1130 +0xb0 fp=0x4000163fe0 sp=0x4000163fb0 pc=0x7031521050
2024-07-04 17:29:28.911 11797-11839 GoLog                   com.bringyour.network                E  runtime.goexit({})
2024-07-04 17:29:28.911 11797-11839 GoLog                   com.bringyour.network                E  	runtime/asm_arm64.s:1222 +0x4 fp=0x4000163fe0 sp=0x4000163fe0 pc=0x7031521144
2024-07-04 17:29:28.911 11797-0     Go                      com.bringyour.network                E  	runtime/asm_arm64.s:1222 +0x4 fp=0x4000163fe0 sp=0x4000163fe0 pc=0x7031521144
2024-07-04 17:29:28.911 11797-0     Go                      com.bringyour.network                E  fatal error: runtime: stack split at bad time
2024-07-04 17:29:28.911 11797-11839 GoLog                   com.bringyour.network                E  fatal error: runtime: stack split at bad time

It looks to be crashing on this line https://github.com/bringyour/android/blob/main/app/app/src/main/java/com/bringyour/network/MainApplication.kt#L301.

主要语言
Kotlin
星标
218
派生
13
平均合并
53 分钟
30 天内合并 PR
3

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

urnetwork/android 的其他 Issue

查看 urnetwork/android 的全部 Issue

相似的 Issue

更多 Kotlin Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。