V2ray-Android
V2ray-Android copied to clipboard
FDSAN Error during v2ray connection
Problem description We are encountering an FDSAN error when using v2ray protocol in our Android project on jetpack-compose. The error occurs during connection phase, when connection was esteblished. It may occurred randomly - right after connection or in 5-6 hours. When FDSAN fails to validate certain file operations, causing a crash.
Environment: -- Operating System: android api 31+ -- v2ray version 8.1823 from Aug 4 2024 -- compileSdk 34, minSdk 26
Logs/Stack Trace:
GoLog package E fdsan: attempted to close file descriptor 176, expected to be unowned, actually owned by unique_fd 0x759002164c
libc package A fdsan: attempted to close file descriptor 176, expected to be unowned, actually owned by unique_fd 0x759002164c
chromium linker64 E [1219/215141.982326:ERROR:elf_dynamic_array_reader.h(64)] tag not found
GoLog package E [1219/215141.982326:ERROR:elf_dynamic_array_reader.h(64)] tag not found
chromium linker64 E [1219/215142.001647:ERROR:process_memory_range.cc(75)] read out of range
GoLog package E [1219/215142.001647:ERROR:process_memory_range.cc(75)] read out of range
libc package A Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 11709 (ged-swd), pid 11281 (package)
WifiVendorHal system_server E getWifiLinkLayerStats_1_5_Internal(l.1198) failed {.code = ERROR_UNKNOWN, .description = unknown}
system_server system_server E Unknown name for ifindex 1024 with more than 127536 bytes of traffic
system_server system_server E Unknown name for ifindex 1024 with more than 127536 bytes of traffic
system_server system_server E Unknown name for ifindex 1024 with more than 127536 bytes of traffic
system_server system_server E Unknown name for ifindex 1024 with more than 127536 bytes of traffic
DEBUG crash_dump64 E failed to read /proc/uptime: Permission denied
WifiVendorHal system_server E getWifiLinkLayerStats_1_5_Internal(l.1198) failed {.code = ERROR_UNKNOWN, .description = unknown}
system_server system_server E Unknown name for ifindex 1024 with more than 127536 bytes of traffic
system_server system_server E Unknown name for ifindex 1024 with more than 127536 bytes of traffic
system_server system_server E Unknown name for ifindex 1024 with more than 127536 bytes of traffic
system_server system_server E Unknown name for ifindex 1024 with more than 127536 bytes of traffic
DEBUG crash_dump64 A *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
DEBUG crash_dump64 A Build fingerprint: 'Redmi/merlinnfc_eea/merlinnfc:12/SP1A.210812.016/V13.0.3.0.SJOEUXM:user/release-keys'
DEBUG crash_dump64 A Revision: '0'
DEBUG crash_dump64 A ABI: 'arm64'
DEBUG crash_dump64 A Timestamp: 2024-12-19 21:51:42.569342967+0200
DEBUG crash_dump64 A Process uptime: 0s
DEBUG crash_dump64 A Cmdline: package
DEBUG crash_dump64 A pid: 11281, tid: 11709, name: ged-swd >>> package <<<
DEBUG crash_dump64 A uid: 10876
DEBUG crash_dump64 A signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
DEBUG crash_dump64 A Abort message: 'fdsan: attempted to close file descriptor 176, expected to be unowned, actually owned by unique_fd 0x759002164c'
DEBUG crash_dump64 A x0 0000000000000000 x1 0000000000002dbd x2 0000000000000006 x3 00000074ce717a80
DEBUG crash_dump64 A x4 0000000000000080 x5 0000000000000080 x6 0000000000000080 x7 8080808080808080
DEBUG crash_dump64 A x8 00000000000000f0 x9 ba5ffb1adf203b0d x10 0000000000000001 x11 0000000000000000
DEBUG crash_dump64 A x12 0101010101010101 x13 000000006764794c x14 0014163c222fec60 x15 0000000000000040
DEBUG crash_dump64 A x16 000000762c335d20 x17 000000762c30fe20 x18 00000074cc738000 x19 0000000000002c11
DEBUG crash_dump64 A x20 0000000000002dbd x21 00000074ce718000 x22 0000000000000003 x23 00000074ce717878
DEBUG crash_dump64 A x24 00000074ce717b70 x25 00000074ce7177f0 x26 00000074ce7177b0 x27 ffffff80ffffffc8
DEBUG crash_dump64 A x28 00000000000fc000 x29 00000074ce717b10
DEBUG crash_dump64 A lr 000000762c2c56d0 sp 00000074ce717730 pc 000000762c2c56f4 pst 0000000000001000
DEBUG crash_dump64 A backtrace:
DEBUG crash_dump64 A #00 pc 000000000008d6f4 /apex/com.android.runtime/lib64/bionic/libc.so (fdsan_error(char const*, ...)+564) (BuildId: 8607e22d19978fe368fdf8f39b0835df)
DEBUG crash_dump64 A #01 pc 000000000008d3f8 /apex/com.android.runtime/lib64/bionic/libc.so (android_fdsan_close_with_tag+752) (BuildId: 8607e22d19978fe368fdf8f39b0835df)
DEBUG crash_dump64 A #02 pc 000000000008db78 /apex/com.android.runtime/lib64/bionic/libc.so (close+16) (BuildId: 8607e22d19978fe368fdf8f39b0835df)
DEBUG crash_dump64 A #03 pc 0000000000007fd8 /vendor/lib64/libged.so (ged_worker_thread+160) (BuildId: 4d118dda329626b45bd79c263497f0de)
DEBUG crash_dump64 A #04 pc 00000000000ecb58 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+264) (BuildId: 8607e22d19978fe368fdf8f39b0835df)
DEBUG crash_dump64 A #05 pc 000000000008ae88 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 8607e22d19978fe368fdf8f39b0835df)
AEE_AED pid-18605 E Skipped - do not care third party apk
AEE_AED pid-18605 E handle_request: return status is fail
crash_dump64 crash_dump64 E crash_mini_dump_notify: writing 'start dumping' fail: Broken pipe
crash_dump64 crash_dump64 E cannot open libmiuindbg.so: No such file or directory
tombstoned tombstoned E Tombstone written to: tombstone_27
earchbox:searc com....android.googlequicksearchbox E Not starting debugger since process cannot load the jdwp agent.
I have a similar problem