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

updateVpnService -> byDevice.isProvideEnabled is crashing the app

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
go, kotlin
領域
mobile, networking

調査の方向性

Android の updateVpnService パスと、タイトルで言及されている byDevice.isProvideEnabled チェックから始めます。device.go の 251、253、338 行目を通る Go コールバックを、connect/trace.go の 65 行目および提供されたエミュレーターの再現ログと併せて追跡します。完了の条件は、直後またはその後の起動クラッシュなしにプロバイダー検証を完了することです。

索引モデルが 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分
マージ済み PR(30日)
3

環境構築

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

はじめの一歩

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

urnetwork/android のほかの issue

urnetwork/android の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

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

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