box64 icon indicating copy to clipboard operation
box64 copied to clipboard

can't start the adb server when executing "adb devices"

Open smartcoder888 opened this issue 2 years ago • 3 comments

./box64 ~/Develop/android-tools/android-sdk/platform-tools/adb devices

  • daemon not running; starting now at tcp:5037 ADB server didn't ACK Full server startup log: /tmp/adb.1001.log Server had pid: 10683
  • failed to start daemon adb: failed to check server version: cannot connect to daemon

smartcoder888 avatar Mar 11 '23 06:03 smartcoder888

why not using the aarch64 version of adb?

Appart from that, you need to give me more logs from box64 if you want this to be fixed. Run with BOX64_LOG=1 BOX64_SHOWSEGV=1 BOX64_DLSYM_ERROR=1 ./box64 ~/Develop/android-tools/android-sdk/platform-tools/adb devices to hopefully have more details.

ptitSeb avatar Mar 11 '23 07:03 ptitSeb

the version of adb on Ubunut 22.04 is too low, so want to try the x86-64 version https://dl.google.com/android/repository/platform-tools_r34.0.1-linux.zip

❯ BOX64_LOG=1 BOX64_SHOWSEGV=1 BOX64_DLSYM_ERROR=1 ./box64 ~/Develop/android-tools/android-sdk/platform-tools/adb devices Debug level is 1 Show Segfault signal even if a signal handler is present Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS PageSize:4096 Running on - with 8 Cores Params database has 8 entries Using default BOX64_LD_LIBRARY_PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/ Using default BOX64_PATH: ./:bin/ Counted 82 Env var Looking for /home/linke/Develop/android-tools/android-sdk/platform-tools/adb argv[1]="devices" Rename process to "adb" Using native(wrapped) libdl.so.2 Using native(wrapped) libc.so.6 Using native(wrapped) ld-linux-x86-64.so.2 Using native(wrapped) libpthread.so.0 Using native(wrapped) libutil.so.1 Using native(wrapped) librt.so.1 Using native(wrapped) libm.so.6 Using emulated /lib/x86_64-linux-gnu/libgcc_s.so.1 Warning: Global Symbol OPENSSL_memory_alloc not found, cannot apply R_X86_64_GLOB_DAT @0xffff81f892d8 ((nil)) in /home/linke/Develop/android-tools/android-sdk/platform-tools/adb Warning: Global Symbol OPENSSL_memory_free not found, cannot apply R_X86_64_GLOB_DAT @0xffff81f892e0 ((nil)) in /home/linke/Develop/android-tools/android-sdk/platform-tools/adb Warning: Global Symbol sdallocx not found, cannot apply R_X86_64_GLOB_DAT @0xffff81f892e8 ((nil)) in /home/linke/Develop/android-tools/android-sdk/platform-tools/adb Warning: Global Symbol OPENSSL_memory_get_size not found, cannot apply R_X86_64_GLOB_DAT @0xffff81f892f0 ((nil)) in /home/linke/Develop/android-tools/android-sdk/platform-tools/adb Warning: Global Symbol ZSTD_trace_compress_begin not found, cannot apply R_X86_64_GLOB_DAT @0xffff81f89300 ((nil)) in /home/linke/Develop/android-tools/android-sdk/platform-tools/adb Warning: Global Symbol ZSTD_trace_compress_end not found, cannot apply R_X86_64_GLOB_DAT @0xffff81f89308 ((nil)) in /home/linke/Develop/android-tools/android-sdk/platform-tools/adb Warning: Global Symbol ZSTD_trace_decompress_begin not found, cannot apply R_X86_64_GLOB_DAT @0xffff81f89310 ((nil)) in /home/linke/Develop/android-tools/android-sdk/platform-tools/adb Warning: Global Symbol ZSTD_trace_decompress_end not found, cannot apply R_X86_64_GLOB_DAT @0xffff81f89318 ((nil)) in /home/linke/Develop/android-tools/android-sdk/platform-tools/adb

  • daemon not running; starting now at tcp:5037 Debug level is 1 Show Segfault signal even if a signal handler is present Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS PageSize:4096 Running on - with 8 Cores Params database has 8 entries Using default BOX64_LD_LIBRARY_PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/ Using default BOX64_PATH: ./:bin/ Counted 82 Env var Looking for /home/linke/Develop/android-tools/android-sdk/platform-tools/adb argv[1]="-L" argv[2]="tcp:5037" argv[3]="fork-server" argv[4]="server" argv[5]="--reply-fd" argv[6]="5" Rename process to "adb" Using native(wrapped) libdl.so.2 Using native(wrapped) libc.so.6 Using native(wrapped) ld-linux-x86-64.so.2 Using native(wrapped) libpthread.so.0 Using native(wrapped) libutil.so.1 Using native(wrapped) librt.so.1 Using native(wrapped) libm.so.6 Using emulated /lib/x86_64-linux-gnu/libgcc_s.so.1 Warning: Global Symbol OPENSSL_memory_alloc not found, cannot apply R_X86_64_GLOB_DAT @0xffffa19992d8 ((nil)) in /home/linke/Develop/android-tools/android-sdk/platform-tools/adb Warning: Global Symbol OPENSSL_memory_free not found, cannot apply R_X86_64_GLOB_DAT @0xffffa19992e0 ((nil)) in /home/linke/Develop/android-tools/android-sdk/platform-tools/adb Warning: Global Symbol sdallocx not found, cannot apply R_X86_64_GLOB_DAT @0xffffa19992e8 ((nil)) in /home/linke/Develop/android-tools/android-sdk/platform-tools/adb Warning: Global Symbol OPENSSL_memory_get_size not found, cannot apply R_X86_64_GLOB_DAT @0xffffa19992f0 ((nil)) in /home/linke/Develop/android-tools/android-sdk/platform-tools/adb Warning: Global Symbol ZSTD_trace_compress_begin not found, cannot apply R_X86_64_GLOB_DAT @0xffffa1999300 ((nil)) in /home/linke/Develop/android-tools/android-sdk/platform-tools/adb Warning: Global Symbol ZSTD_trace_compress_end not found, cannot apply R_X86_64_GLOB_DAT @0xffffa1999308 ((nil)) in /home/linke/Develop/android-tools/android-sdk/platform-tools/adb Warning: Global Symbol ZSTD_trace_decompress_begin not found, cannot apply R_X86_64_GLOB_DAT @0xffffa1999310 ((nil)) in /home/linke/Develop/android-tools/android-sdk/platform-tools/adb Warning: Global Symbol ZSTD_trace_decompress_end not found, cannot apply R_X86_64_GLOB_DAT @0xffffa1999318 ((nil)) in /home/linke/Develop/android-tools/android-sdk/platform-tools/adb 24748|SIGSEGV @0xffffa1c9470c (strlen (/usr/lib/libc.so.6)) (x64pc=0xb0533/???:"???", rsp=0x101ffece8, stack=0x101800000:0x102000000 own=(nil) fp=0x101ffeee0), for accessing (nil) (code=1/prot=0), db=(nil)((nil):(nil)/(nil):(nil)/???:clean, hash:0/0) handler=(nil) RSP-0x20:0x0000000000000000 RSP-0x18:0x0000000101ffedb1 RSP-0x10:0x0000ffffa192dc48 RSP-0x08:0x0000000000000003 RSP+0x00:0x0000ffffa18856a4 RSP+0x08:0x0000002ebc950000 RSP+0x10:0x0000ffffa1917c3e RSP+0x18:0x0000000101ffedd0 RAX:0x00000000000060ac RCX:0x0000000101ffedd0 RDX:0x00000000000060ac RBX:0x0000ffffa19d85c8 RSP:0x0000000101ffece8 RBP:0x0000000101ffeee0 RSI:0x00000000350ae0c0 RDI:0x00000000000000ba R8:0x0000000000000000 R9:0x0000000000000000 R10:0x0000000000000001 R11:0x0000000000000000 R12:0x0000000000000000 R13:0x0000000000000000 R14:0x0000000000000000 R15:0x0000ffffa19d8610 ADB server didn't ACK Full server startup log: /tmp/adb.1001.log Server had pid: 24748
  • failed to start daemon adb: failed to check server version: cannot connect to daemon

smartcoder888 avatar Mar 11 '23 09:03 smartcoder888

I have the same problem. Using RPi Zero 2 W with DietPi OS.

Dynarec for ARM64, with extension: ASIMD CRC32 PageSize:4096 Running on Cortex-A53 with 4 Cores
Will use Hardware counter measured at 19.2 MHz emulating 2.4 GHz
Params database has 80 entries
Box64 with Dynarec v0.3.0 nogit built on Aug  1 2024 14:07:37
BOX64: Didn't detect 48bits of address space, considering it's 39bits
Counted 18 Env var
BOX64 LIB PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/:/lib/x86_64-linux-gnu/:/usr/lib/x86_64-linux-gnu/
BOX64 BIN PATH: ./:bin/:/usr/local/sbin/:/usr/local/bin/:/usr/sbin/:/usr/bin/:/sbin/:/bin/
Looking for ./adb
argv[1]="devices"
Rename process to "adb"
Using native(wrapped) libdl.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) libm.so.6
Using native(wrapped) librt.so.1
Using emulated /lib/x86_64-linux-gnu/libgcc_s.so.1
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux-x86-64.so.2
Using native(wrapped) libutil.so.1
Using native(wrapped) libbsd.so.0
Warning: Weak Symbol __gmon_start__ not found, cannot apply R_X86_64_JUMP_SLOT @0x100637418 (0x615e76)
Warning: Weak Symbol OPENSSL_memory_alloc not found, cannot apply R_X86_64_JUMP_SLOT @0x1006379b0 (0x6169a6)
Warning: Weak Symbol OPENSSL_memory_free not found, cannot apply R_X86_64_JUMP_SLOT @0x1006379b8 (0x6169b6)
Warning: Weak Symbol sdallocx not found, cannot apply R_X86_64_JUMP_SLOT @0x1006379c0 (0x6169c6)
Warning: Weak Symbol OPENSSL_memory_get_size not found, cannot apply R_X86_64_JUMP_SLOT @0x1006379c8 (0x6169d6)
Error: Symbol nftw not found, cannot apply R_X86_64_JUMP_SLOT @0x100637b08 (0x616c56) in /root/platform-tools/adb
Warning: Weak Symbol ZSTD_trace_compress_begin not found, cannot apply R_X86_64_JUMP_SLOT @0x100637b68 (0x616d16)
Warning: Weak Symbol ZSTD_trace_compress_end not found, cannot apply R_X86_64_JUMP_SLOT @0x100637b70 (0x616d26)
Warning: Weak Symbol ZSTD_trace_decompress_begin not found, cannot apply R_X86_64_JUMP_SLOT @0x100637b78 (0x616d36)
Warning: Weak Symbol ZSTD_trace_decompress_end not found, cannot apply R_X86_64_JUMP_SLOT @0x100637b80 (0x616d46)
* daemon not running; starting now at tcp:5037
Dynarec for ARM64, with extension: ASIMD CRC32 PageSize:4096 Running on Cortex-A53 with 4 Cores
Will use Hardware counter measured at 19.2 MHz emulating 2.4 GHz
Params database has 80 entries
Box64 with Dynarec v0.3.0 nogit built on Aug  1 2024 14:07:37
BOX64: Didn't detect 48bits of address space, considering it's 39bits
Counted 18 Env var
BOX64 LIB PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/:/lib/x86_64-linux-gnu/:/usr/lib/x86_64-linux-gnu/
BOX64 BIN PATH: ./:bin/:/usr/local/sbin/:/usr/local/bin/:/usr/sbin/:/usr/bin/:/sbin/:/bin/
Looking for /root/platform-tools/adb
argv[1]="-L"
argv[2]="tcp:5037"
argv[3]="fork-server"
argv[4]="server"
argv[5]="--reply-fd"
argv[6]="4"
Rename process to "adb"
Using native(wrapped) libdl.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) libm.so.6
Using native(wrapped) librt.so.1
Using emulated /lib/x86_64-linux-gnu/libgcc_s.so.1
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux-x86-64.so.2
Using native(wrapped) libutil.so.1
Using native(wrapped) libbsd.so.0
Warning: Weak Symbol __gmon_start__ not found, cannot apply R_X86_64_JUMP_SLOT @0x100637418 (0x615e76)
Warning: Weak Symbol OPENSSL_memory_alloc not found, cannot apply R_X86_64_JUMP_SLOT @0x1006379b0 (0x6169a6)
Warning: Weak Symbol OPENSSL_memory_free not found, cannot apply R_X86_64_JUMP_SLOT @0x1006379b8 (0x6169b6)
Warning: Weak Symbol sdallocx not found, cannot apply R_X86_64_JUMP_SLOT @0x1006379c0 (0x6169c6)
Warning: Weak Symbol OPENSSL_memory_get_size not found, cannot apply R_X86_64_JUMP_SLOT @0x1006379c8 (0x6169d6)
Error: Symbol nftw not found, cannot apply R_X86_64_JUMP_SLOT @0x100637b08 (0x616c56) in /root/platform-tools/adb
Warning: Weak Symbol ZSTD_trace_compress_begin not found, cannot apply R_X86_64_JUMP_SLOT @0x100637b68 (0x616d16)
Warning: Weak Symbol ZSTD_trace_compress_end not found, cannot apply R_X86_64_JUMP_SLOT @0x100637b70 (0x616d26)
Warning: Weak Symbol ZSTD_trace_decompress_begin not found, cannot apply R_X86_64_JUMP_SLOT @0x100637b78 (0x616d36)
Warning: Weak Symbol ZSTD_trace_decompress_end not found, cannot apply R_X86_64_JUMP_SLOT @0x100637b80 (0x616d46)
52918|SIGSEGV @0x7f8bf3b750 (???(/lib/aarch64-linux-gnu/libc.so.6+0x9b750)) (x64pc=0x61273/???:"???", rsp=0x7f8bcbb0a8, stack=0x7f8b4bc000:0x7f8bcbc000 own=(nil) fp=0x7), for accessing 0x1 (code=1/prot=0), db=(nil)((nil):(nil)/(nil):(nil)/???:clean, hash:0/0) handler=(nil)
RSP-0x20:0x0000000000000000 RSP-0x18:0x0000000000000003 RSP-0x10:0x00000001005ca6c8 RSP-0x08:0x0000007f8bcbb171
RSP+0x00:0x000000010052b42e RSP+0x08:0x0000000000000000 RSP+0x10:0x0000007f8bcbb190 RSP+0x18:0x0000000000000000
RAX:0x000000000000ceb6 RCX:0x0000007f8bcbb190 RDX:0x000000000000ceb6 RBX:0x0000000100676fa0 
RSP:0x0000007f8bcbb0a8 RBP:0x0000000000000007 RSI:0x0000007f8bf21e94 RDI:0x00000000000000ba 
 R8:0x000000007ed83203  R9:0x0000000057888915 R10:0x000000006f3d2401 R11:0x0000000000000000 
R12:0x0000000100676fa8 R13:0x0000000000000000 R14:0x0000000000000000 R15:0x0000000100676fd0 
ES:0x002b CS:0x0033 SS:0x002b DS:0x002b FS:0x0043 GS:0x0053 
ADB server didn't ACK
Full server startup log: /tmp/adb.0.log
Server had pid: 52918
* failed to start daemon
adb: failed to check server version: cannot connect to daemon

Pitel avatar Aug 01 '24 13:08 Pitel

@smartcoder888 @Pitel is this still an issue with the latest version of Box64?

LukeShortCloud avatar Jul 20 '25 15:07 LukeShortCloud

@LukeShortCloud I tried with 0.3.8 : same failure except but the ntfw error doesn't show up anymore.

jmarcgit avatar Nov 10 '25 21:11 jmarcgit

@jmarcgit Thanks for following up! Could you open a new GitHub Issue with the latest Box64 error log?

LukeShortCloud avatar Nov 10 '25 22:11 LukeShortCloud