Skip to content

Android app crashing when connecting - only if Rosenpass active #87

@jhf2442

Description

@jhf2442

Title tells it - app starts, at the bottom I see 0/5 peers connected, 1/5, sometimes even 2/5 and then the app crashes
If I deactivate Rosenpass (all other hosts are linux computers with permissive Rosenpass activated), the app connects and is running. Permissive Rosenpass on the Android client plays no role for the crash

Client is v0.1.9

Logfile:

09-22 01:40:57.318 26441 26823 E GoLog   : [DEBG] [peer: acZUdDy0idX1Gmi5VXeKwCpCH+25d3lzGPepKq9PbjY=] client/internal/peer/wg_watcher.go:50 enable WireGuard watcher
09-22 01:40:57.318 26441 26823 E GoLog   : [INFO] [peer: acZUdDy0idX1Gmi5VXeKwCpCH+25d3lzGPepKq9PbjY=] client/internal/peer/wg_watcher.go:90 WireGuard watcher started
09-22 01:40:57.355 26441 26503 E GoLog   : [INFO] [peer: 6jSs6ZRt4D9P9VibhIGhufh+HvvuBGW1f/SM4Hb5FzQ=] client/internal/peer/conn.go:500 start to communicate with peer via relay
09-22 01:40:57.368 26441 26747 E GoLog   : [DEBG] client/internal/rosenpass/manager.go:186 received remote rosenpass key 1cae0cec0679fa92003328f4225c3ea525bcbe26cd38b2ec33430c08c53f2faa, my key 036ca70cf7627eaa08a0c6b740e3778fc9dccfd3853166789e0579a382b18189
09-22 01:40:57.372 26441 26747 I GoLog   : time=2025-09-21T23:40:57.372Z level=DEBUG msg="Skipping handshake due to missing endpoint" pid="s//d4x53F7ixH7oKHCOGLnbKOz01nXyrihG9rwwtvSk="
09-22 01:40:57.374 26441 26747 I GoLog   : time=2025-09-21T23:40:57.374Z level=DEBUG msg="Added peer" pid="s//d4x53F7ixH7oKHCOGLnbKOz01nXyrihG9rwwtvSk="
09-22 01:40:57.376 26441     0 E Go      : panic: runtime error: invalid memory address or nil pointer dereference
09-22 01:40:57.376 26441     0 E Go      : [signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x77fc64cfa0]
09-22 01:40:57.376 26441     0 E Go      : 
09-22 01:40:57.376 26441     0 E Go      : goroutine 402 [running]:
09-22 01:40:57.377 26441     0 E Go      : github.com/netbirdio/netbird/client/internal/rosenpass.(*NetbirdHandler).AddPeer(...)
09-22 01:40:57.377 26441     0 E Go      : 	/home/runner/work/android-client/android-client/netbird/client/internal/rosenpass/netbird_handler.go:44
09-22 01:40:57.377 26441     0 E Go      : github.com/netbirdio/netbird/client/internal/rosenpass.(*Manager).addPeer(0x40000fbd80, {0x4003512000?, 0x77fb8e8457?, 0x2b?}, {0x40007e4d26, 0x6}, {0x4000426560, 0xc}, {0x40007ae540, 0x2c})
09-22 01:40:57.377 26441     0 E Go      : 	/home/runner/work/android-client/android-client/netbird/client/internal/rosenpass/manager.go:86 +0x2b0
09-22 01:40:57.377 26441     0 E Go      : github.com/netbirdio/netbird/client/internal/rosenpass.(*Manager).OnConnected(0x40000fbd80, {0x40007ae540, 0x2c}, {0x4003512000, 0x7ff80, 0x80000}, {0x4000426560, 0xc}, {0x40007e4d26, 0x6})
09-22 01:40:57.377 26441     0 E Go      : 	/home/runner/work/android-client/android-client/netbird/client/internal/rosenpass/manager.go:188 +0x1b0
09-22 01:40:57.377 26441     0 E Go      : github.com/netbirdio/netbird/client/internal/peer.(*Conn).doOnConnected(0x4000144b48, {0x4003512000, 0x7ff80, 0x80000}, {0x40007e4d26, 0x6})
09-22 01:40:57.377 26441     0 E Go      : 	/home/runner/work/android-client/android-client/netbird/client/internal/peer/conn.go:622 +0xa8
09-22 01:40:57.377 26441     0 E Go      : github.com/netbirdio/netbird/client/internal/peer.(*Conn).onRelayConnectionIsReady(0x4000144b48, {{0x77fcb379f0, 0x400092c740}, {0x4003512000, 0x7ff80, 0x80000}, {0x40007e4d26, 0x6}})
09-22 01:40:57.377 26441     0 E Go      : 	/home/runner/work/android-client/android-client/netbird/client/internal/peer/conn.go:501 +0x524
09-22 01:40:57.377 26441     0 E Go      : created by github.com/netbirdio/netbird/client/internal/peer.(*WorkerRelay).OnNewOffer in goroutine 431
09-22 01:40:57.377 26441     0 E Go      : 	/home/runner/work/android-client/android-client/netbird/client/internal/peer/worker_relay.go:89 +0x3fc
09-22 01:40:57.380 26441 26823 F libc    : Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 26823 (Thread-9), pid 26441 (.netbird.client)
09-22 01:40:57.552 26828 26828 I crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdTombstoneProto
09-22 01:40:57.556 26828 26828 I crash_dump64: performing dump of process 26441 (target tid = 26823)
09-22 01:40:58.133 26828 26828 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
09-22 01:40:58.133 26828 26828 F DEBUG   : Build fingerprint: 'google/panther/panther:16/BP3A.250905.014/13873947:user/release-keys'
09-22 01:40:58.133 26828 26828 F DEBUG   : Kernel Release: '6.1.134-android14-11-g66e758f7d0c0-ab13748739'
09-22 01:40:58.133 26828 26828 F DEBUG   : Revision: 'MP1.0'
09-22 01:40:58.133 26828 26828 F DEBUG   : ABI: 'arm64'
09-22 01:40:58.133 26828 26828 F DEBUG   : Timestamp: 2025-09-22 01:40:57.568077611+0200
09-22 01:40:58.133 26828 26828 F DEBUG   : Process uptime: 429s
09-22 01:40:58.133 26828 26828 F DEBUG   : Executable: /system/bin/app_process64
09-22 01:40:58.133 26828 26828 F DEBUG   : Cmdline: io.netbird.client
09-22 01:40:58.133 26828 26828 F DEBUG   : pid: 26441, tid: 26823, name: Thread-9  >>> io.netbird.client <<<
09-22 01:40:58.133 26828 26828 F DEBUG   : uid: 10586
09-22 01:40:58.133 26828 26828 F DEBUG   : tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE)
09-22 01:40:58.133 26828 26828 F DEBUG   : esr: 0000000092000006 (Data Abort Exception 0x24)
09-22 01:40:58.133 26828 26828 F DEBUG   : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
09-22 01:40:58.133 26828 26828 F DEBUG   :     x0  0000000000000000  x1  00000000000068c7  x2  0000000000000006  x3  0000000000000008
09-22 01:40:58.133 26828 26828 F DEBUG   :     x4  0000000000000001  x5  0000000000000001  x6  0000000000000000  x7  000000000000000a
09-22 01:40:58.133 26828 26828 F DEBUG   :     x8  0000000000000083  x9  0000000000000068  x10 000000000000000a  x11 00000077fce46696
09-22 01:40:58.133 26828 26828 F DEBUG   :     x12 0000000000000005  x13 00000077fb9a6e28  x14 000000000000015f  x15 0000000000000160
09-22 01:40:58.133 26828 26828 F DEBUG   :     x16 000000792b660b90  x17 000000792b758040  x18 000000792a914000  x19 0000000000006749
09-22 01:40:58.133 26828 26828 F DEBUG   :     x20 000000792b757ee0  x21 0000004000500e08  x22 000000000000001b  x23 a52e58d4052c4f3b
09-22 01:40:58.133 26828 26828 F DEBUG   :     x24 9ba5ea8ef721fc48  x25 9404eb699e97b0b3  x26 0000000000000000  x27 0000000000000010
09-22 01:40:58.133 26828 26828 F DEBUG   :     x28 0000004000a141c0  x29 00000040009459a8
09-22 01:40:58.133 26828 26828 F DEBUG   :     lr  00000077fbb31da4  sp  00000040009459b0  pc  00000077fbb5a838  pst 0000000080001000
09-22 01:40:58.133 26828 26828 F DEBUG   :     esr 0000000092000006
09-22 01:40:58.133 26828 26828 F DEBUG   : 1 total frames
09-22 01:40:58.133 26828 26828 F DEBUG   : backtrace:
09-22 01:40:58.133 26828 26828 F DEBUG   :       #00 pc 00000000006cc838  /data/app/~~n13lt5ROCw1v7m7VQsgZ7Q==/io.netbird.client-L30xqqu09SGFpnUjxS2UjQ==/split_config.arm64_v8a.apk (offset 0x8000) (runtime.raise.abi0+40)
09-22 01:40:59.574 26855 26855 I Zygote  : Process 26855 crated for io.netbird.client
09-22 01:40:59.575 26855 26855 I .netbird.client: Using CollectorTypeCMC GC.
09-22 01:40:59.582 26855 26855 E .netbird.client: Not starting debugger since process cannot load the jdwp agent.
09-22 01:40:59.585 26855 26855 D nativeloader: Load libframework-connectivity-tiramisu-jni.so using APEX ns com_android_tethering for caller /apex/com.android.tethering/javalib/framework-connectivity-t.jar: ok
09-22 01:40:59.598 26855 26855 D ApplicationLoaders: Returning zygote-cached class loader: /system_ext/framework/androidx.window.extensions.jar
09-22 01:40:59.598 26855 26855 D ApplicationLoaders: Returning zygote-cached class loader: /system_ext/framework/androidx.window.sidecar.jar
09-22 01:40:59.604 26855 26855 W .netbird.client: Failed to find entry 'classes.dex': Entry not found

09-22 01:40:59.604 26855 26855 W .netbird.client: Failed to find entry 'classes.dex': Entry not found

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