ptitSeb/box64

Weak symbol

KhanhNguyen9872 opened this issue · 8 comments

can't run HTTPToolKit on Ubuntu 22.04 Jammy ARM64

root@localhost:~# box64 ./httptoolkit
Debug level is 1
 PageSize:4096 Running on unknown aarch64 cpu with 8 Cores                        Will use time-based emulation for rdtsc, even if hardware counter are available
Will use Software counter measured at 1.0 GHz emulating 2.0 GHz                   Params database has 68 entries
Box64 v0.2.7 4f229629 built on Apr 30 2024 16:53:18                               BOX64: Didn't detect 48bits of address space, considering it's 39bits
Counted 15 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/:/bin/:/usr/bin/:/sbin/:/usr/sbin/:/usr/games/:/usr/local/games/:/snap/bin/                                 Looking for ./httptoolkit
Rename process to "httptoolkit"                                                   Redirecting overridden malloc from symtab function for /root/httptoolkit
Using emulated libffmpeg.so                                                       Using native(wrapped) libdl.so.2
Using native(wrapped) libpthread.so.0                                             Using native(wrapped) libgobject-2.0.so.0
Using native(wrapped) libglib-2.0.so.0                                            Using native(wrapped) libgio-2.0.so.0
Using native(wrapped) libgmodule-2.0.so.0                                         Using native(wrapped) libnss3.so                                                  Using native(wrapped) libnssutil3.so
Using native(wrapped) libsmime3.so                                                Using native(wrapped) libnspr4.so
Using native(wrapped) libdbus-1.so.3                                              Using native(wrapped) libatk-1.0.so.0
Using native(wrapped) libatk-bridge-2.0.so.0                                      Using native(wrapped) libSM.so.6
Using native(wrapped) libICE.so.6                                                 Using native(wrapped) libXau.so.6
Using native(wrapped) libxcb.so.1
Using native(wrapped) libXdmcp.so.6
Using native(wrapped) libcups.so.2                                                Using native(wrapped) libdrm.so.2
Using native(wrapped) libgtk-3.so.0
Using native(wrapped) libgdk-3.so.0
Using native(wrapped) libgdk_pixbuf-2.0.so.0                                      Using native(wrapped) libpangocairo-1.0.so.0
Using native(wrapped) libpango-1.0.so.0
Using native(wrapped) libcairo.so.2
Using native(wrapped) libX11.so.6
Using native(wrapped) libXcomposite.so.1
Using native(wrapped) libXdamage.so.1
Using native(wrapped) libXext.so.6
Using native(wrapped) libXfixes.so.3
Using native(wrapped) libXrandr.so.2
Using native(wrapped) libXrender.so.1
Using native(wrapped) libgbm.so.1
Using native(wrapped) libexpat.so.1
Using native(wrapped) libxkbcommon.so.0
Using native(wrapped) libasound.so.2
Using native(wrapped) libatspi.so.0
Using native(wrapped) libm.so.6
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) librt.so.1
Using native(wrapped) libbsd.so.0
Warning: Weak Symbol __gcov_dump not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a41b0 (0xa121f16)
Warning: Weak Symbol __gcov_flush not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a41b8 (0xa121f26)
Warning: Weak Symbol ZSTD_trace_decompress_begin not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4298 (0xa1220e6)
Warning: Weak Symbol ZSTD_trace_decompress_end not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a42a0 (0xa1220f6)
Warning: Weak Symbol _ZTHN2v88internal12trap_handler21g_thread_in_wasm_codeE not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4928 (0xa122e06)
Warning: Weak Symbol _ZTHN2v88internal19RwxMemoryWriteScope31code_space_write_nesting_level_E not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4930 (0xa122e16)
Warning: Weak Symbol OPENSSL_memory_alloc not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b80 (0xa1232b6)
Warning: Weak Symbol OPENSSL_memory_free not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b88 (0xa1232c6)
Warning: Weak Symbol sdallocx not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b90 (0xa1232d6)
Warning: Weak Symbol OPENSSL_memory_get_size not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b98 (0xa1232e6)
free(): invalid pointer
NativeBT: ./httptoolkit() [0x34a0ff9c]
NativeBT: linux-vdso.so.1(__kernel_rt_sigreturn+0) [0x76cb6c58c4]
NativeBT: /lib/aarch64-linux-gnu/libc.so.6(+0x7f200) [0x76cb58f200]
NativeBT: /lib/aarch64-linux-gnu/libc.so.6(raise+0x1c) [0x76cb54a67c]
NativeBT: /lib/aarch64-linux-gnu/libc.so.6(abort+0xe4) [0x76cb537130]
NativeBT: /lib/aarch64-linux-gnu/libc.so.6(+0x73308) [0x76cb583308]
NativeBT: /lib/aarch64-linux-gnu/libc.so.6(+0x8957c) [0x76cb59957c]
NativeBT: /lib/aarch64-linux-gnu/libc.so.6(+0x8b2c4) [0x76cb59b2c4]
NativeBT: /lib/aarch64-linux-gnu/libc.so.6(free+0xb0) [0x76cb59dc84]
NativeBT: ./httptoolkit() [0x350013b8]
NativeBT: ./httptoolkit() [0x349e937c]
NativeBT: ./httptoolkit(my___libc_start_main+0x10c) [0x349fd3fc]
NativeBT: ./httptoolkit() [0x34a40380]
NativeBT: ./httptoolkit() [0x350013b8]
NativeBT: ./httptoolkit() [0x349e60b8]
NativeBT: ./httptoolkit() [0x349e1e3c]
NativeBT: /lib/aarch64-linux-gnu/libc.so.6(+0x273fc) [0x76cb5373fc]
NativeBT: /lib/aarch64-linux-gnu/libc.so.6(__libc_start_main+0x98) [0x76cb5374cc]
NativeBT: ./httptoolkit(_start+0x30) [0x349e1eb0]
EmulatedBT: box64(free+0) [0x100a0]
EmulatedBT: /root/httptoolkit+9e21c2f [0x109e21c2f]
EmulatedBT: /root/httptoolkit+9e21d8f [0x109e21d8f]
EmulatedBT: /root/httptoolkit+9e220a5 [0x109e220a5]
EmulatedBT: /root/httptoolkit(__libc_csu_init+45) [0x102359b65]
EmulatedBT: box64(ExitEmulation+0) [0x10080]
EmulatedBT: /root/httptoolkit(+2a) [0x101fc002a]
26423|SIGABRT @0x76cb58f200 (???(/lib/aarch64-linux-gnu/libc.so.6+0x7f200)) (x64pc=0x100b3/???:"box64/free + 0x13", rsp=0x76cb2cd508), for accessing 0x285400006737 (code=-6)
RAX:0x00000076cb2cd5a1 RCX:0x0000000000000031 RDX:0x0000000000000005 RBX:0x000000010a857da0
RSP:0x00000076cb2cd508 RBP:0x00000076cb2cd600 RSI:0x0000007000210038 RDI:0x0000007000210030
 R8:0x00000076cb2cd540  R9:0x0000000000010000 R10:0x0000000000000000 R11:0x0000000000000020
R12:0x0000000000000000 R13:0x00000070002010c0 R14:0x00000076cb2cd560 R15:0x000000010a857f38
ES:0x002b CS:0x0033 SS:0x002b DS:0x002b FS:0x0043 GS:0x0053
Aborted

try to use BOX64_MALLOC_HACK=2 env. var. (or in ~/.box64rc

try to use BOX64_MALLOC_HACK=2 env. var. (or in ~/.box64rc

I found this warning, please add it first, i see my os missing something, i will test it and will report to you

Warning: Unsupported libc Syscall 0x1A9 (425)

No, this syscall is not mendatory: it's not the root cause of your issue.

On the log you removed, there was

[0501/022358.308615:FATAL:electron_main_delegate.cc(295)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

This is the cause of the abort. Either don't run as root, or use --no-sandbox as mentionned (I don't think sandbox will work anyway).

No, this syscall is not mendatory: it's not the root cause of your issue.

On the log you removed, there was

[0501/022358.308615:FATAL:electron_main_delegate.cc(295)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

This is the cause of the abort. Either don't run as root, or use --no-sandbox as mentionned (I don't think sandbox will work anyway).

I was try it with no sandbox and malloc_hack here is result:

root@localhost:~# BOX64_MALLOC_HACK=2 BOX64_LOG=info box64 ./httptoolkit --no-sandbox
Debug level is 1
 PageSize:4096 Running on unknown aarch64 cpu with 8 Cores
Will use time-based emulation for rdtsc, even if hardware counter are available
Will use Software counter measured at 1.0 GHz emulating 2.0 GHz                   Params database has 68 entries
Box64 v0.2.7 4f229629 built on Apr 30 2024 16:53:18
BOX64: Didn't detect 48bits of address space, considering it's 39bits
Counted 13 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/:/bin/:/usr/bin/:/sbin/:/usr/sbin/:/usr/games/:/usr/local/games/:/snap/bin/
Looking for ./httptoolkit
argv[1]="--no-sandbox"
Rename process to "httptoolkit"                                                   Redirecting overridden malloc from symtab function for /root/httptoolkit
Using emulated libffmpeg.so                                                       Using native(wrapped) libdl.so.2
Using native(wrapped) libpthread.so.0                                             Using native(wrapped) libgobject-2.0.so.0
Using native(wrapped) libglib-2.0.so.0                                            Using native(wrapped) libgio-2.0.so.0                                             Using native(wrapped) libgmodule-2.0.so.0
Using native(wrapped) libnss3.so                                                  Using native(wrapped) libnssutil3.so
Using native(wrapped) libsmime3.so                                                Using native(wrapped) libnspr4.so
Using native(wrapped) libdbus-1.so.3                                              Using native(wrapped) libatk-1.0.so.0
Using native(wrapped) libatk-bridge-2.0.so.0                                      Using native(wrapped) libSM.so.6
Using native(wrapped) libICE.so.6
Using native(wrapped) libXau.so.6                                                 Using native(wrapped) libxcb.so.1
Using native(wrapped) libXdmcp.so.6                                               Using native(wrapped) libcups.so.2
Using native(wrapped) libdrm.so.2                                                 Using native(wrapped) libgtk-3.so.0
Using native(wrapped) libgdk-3.so.0
Using native(wrapped) libgdk_pixbuf-2.0.so.0
Using native(wrapped) libpangocairo-1.0.so.0
Using native(wrapped) libpango-1.0.so.0
Using native(wrapped) libcairo.so.2
Using native(wrapped) libX11.so.6
Using native(wrapped) libXcomposite.so.1
Using native(wrapped) libXdamage.so.1
Using native(wrapped) libXext.so.6
Using native(wrapped) libXfixes.so.3
Using native(wrapped) libXrandr.so.2
Using native(wrapped) libXrender.so.1
Using native(wrapped) libgbm.so.1
Using native(wrapped) libexpat.so.1
Using native(wrapped) libxkbcommon.so.0
Using native(wrapped) libasound.so.2
Using native(wrapped) libatspi.so.0
Using native(wrapped) libm.so.6
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) librt.so.1
Using native(wrapped) libbsd.so.0
Warning: Weak Symbol __gcov_dump not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a41b0 (0xa121f16)
Warning: Weak Symbol __gcov_flush not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a41b8 (0xa121f26)
Warning: Weak Symbol ZSTD_trace_decompress_begin not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4298 (0xa1220e6)
Warning: Weak Symbol ZSTD_trace_decompress_end not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a42a0 (0xa1220f6)
Warning: Weak Symbol _ZTHN2v88internal12trap_handler21g_thread_in_wasm_codeE not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4928 (0xa122e06)
Warning: Weak Symbol _ZTHN2v88internal19RwxMemoryWriteScope31code_space_write_nesting_level_E not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4930 (0xa122e16)
Warning: Weak Symbol OPENSSL_memory_alloc not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b80 (0xa1232b6)
Warning: Weak Symbol OPENSSL_memory_free not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b88 (0xa1232c6)
Warning: Weak Symbol sdallocx not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b90 (0xa1232d6)
Warning: Weak Symbol OPENSSL_memory_get_size not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b98 (0xa1232e6)
Debug level is 1
 PageSize:4096 Running on unknown aarch64 cpu with 8 Cores
Will use time-based emulation for rdtsc, even if hardware counter are available
Will use Software counter measured at 1.0 GHz emulating 2.0 GHz
Params database has 68 entries
Box64 v0.2.7 4f229629 built on Apr 30 2024 16:53:18
BOX64: Didn't detect 48bits of address space, considering it's 39bits
Counted 14 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/:/bin/:/usr/bin/:/sbin/:/usr/sbin/:/usr/games/:/usr/local/games/:/snap/bin/
Looking for /root/httptoolkit
argv[1]="--type=zygote"
argv[2]="--no-zygote-sandbox"
argv[3]="--no-sandbox"
Rename process to "httptoolkit"
Redirecting overridden malloc from symtab function for /root/httptoolkit
Debug level is 1
 PageSize:4096 Running on unknown aarch64 cpu with 8 Cores
Will use time-based emulation for rdtsc, even if hardware counter are available
Will use Software counter measured at 1.0 GHz emulating 2.0 GHz
Params database has 68 entries
Box64 v0.2.7 4f229629 built on Apr 30 2024 16:53:18
BOX64: Didn't detect 48bits of address space, considering it's 39bits
Counted 14 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/:/bin/:/usr/bin/:/sbin/:/usr/sbin/:/usr/games/:/usr/local/games/:/snap/bin/
Looking for /root/httptoolkit
argv[1]="--type=zygote"
argv[2]="--no-sandbox"
Rename process to "httptoolkit"
Using emulated libffmpeg.so
Using native(wrapped) libdl.so.2
Redirecting overridden malloc from symtab function for /root/httptoolkit
Using native(wrapped) libpthread.so.0
Using native(wrapped) libgobject-2.0.so.0
Using native(wrapped) libglib-2.0.so.0
Using native(wrapped) libgio-2.0.so.0
Using native(wrapped) libgmodule-2.0.so.0
Using native(wrapped) libnss3.so
Using native(wrapped) libnssutil3.so
Using native(wrapped) libsmime3.so
Using native(wrapped) libnspr4.so
Using native(wrapped) libdbus-1.so.3
Using native(wrapped) libatk-1.0.so.0
Using emulated libffmpeg.so
Using native(wrapped) libdl.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) libatk-bridge-2.0.so.0
Using native(wrapped) libSM.so.6
Using native(wrapped) libICE.so.6
Using native(wrapped) libXau.so.6
Using native(wrapped) libxcb.so.1
Using native(wrapped) libXdmcp.so.6
Using native(wrapped) libgobject-2.0.so.0
Using native(wrapped) libglib-2.0.so.0
Using native(wrapped) libgio-2.0.so.0
Using native(wrapped) libgmodule-2.0.so.0
Using native(wrapped) libcups.so.2
Using native(wrapped) libdrm.so.2
Using native(wrapped) libnss3.so
Using native(wrapped) libnssutil3.so
Using native(wrapped) libsmime3.so
Using native(wrapped) libnspr4.so
Using native(wrapped) libdbus-1.so.3
Using native(wrapped) libatk-1.0.so.0
Using native(wrapped) libatk-bridge-2.0.so.0
Using native(wrapped) libSM.so.6
Using native(wrapped) libICE.so.6
Using native(wrapped) libXau.so.6
Using native(wrapped) libxcb.so.1
Using native(wrapped) libXdmcp.so.6
Using native(wrapped) libcups.so.2
Using native(wrapped) libdrm.so.2
Using native(wrapped) libgtk-3.so.0
Using native(wrapped) libgdk-3.so.0
Using native(wrapped) libgdk_pixbuf-2.0.so.0
Using native(wrapped) libpangocairo-1.0.so.0
Using native(wrapped) libpango-1.0.so.0
Using native(wrapped) libcairo.so.2
Using native(wrapped) libX11.so.6
Using native(wrapped) libXcomposite.so.1
Using native(wrapped) libXdamage.so.1
Using native(wrapped) libXext.so.6
Using native(wrapped) libXfixes.so.3
Using native(wrapped) libXrandr.so.2
Using native(wrapped) libXrender.so.1
Using native(wrapped) libgbm.so.1
Using native(wrapped) libexpat.so.1
Using native(wrapped) libxkbcommon.so.0
Using native(wrapped) libasound.so.2
Using native(wrapped) libatspi.so.0
Using native(wrapped) libm.so.6
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) librt.so.1
Using native(wrapped) libbsd.so.0
Using native(wrapped) libgtk-3.so.0
Using native(wrapped) libgdk-3.so.0
Using native(wrapped) libgdk_pixbuf-2.0.so.0
Using native(wrapped) libpangocairo-1.0.so.0
Using native(wrapped) libpango-1.0.so.0
Using native(wrapped) libcairo.so.2
Using native(wrapped) libX11.so.6
Using native(wrapped) libXcomposite.so.1
Using native(wrapped) libXdamage.so.1
Using native(wrapped) libXext.so.6
Using native(wrapped) libXfixes.so.3
Using native(wrapped) libXrandr.so.2
Using native(wrapped) libXrender.so.1
Using native(wrapped) libgbm.so.1
Using native(wrapped) libexpat.so.1
Using native(wrapped) libxkbcommon.so.0
Using native(wrapped) libasound.so.2
Using native(wrapped) libatspi.so.0
Using native(wrapped) libm.so.6
Warning: Weak Symbol __gcov_dump not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a41b0 (0xa121f16)
Warning: Weak Symbol __gcov_flush not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a41b8 (0xa121f26)
Warning: Weak Symbol ZSTD_trace_decompress_begin not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4298 (0xa1220e6)
Warning: Weak Symbol ZSTD_trace_decompress_end not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a42a0 (0xa1220f6)
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) librt.so.1
Using native(wrapped) libbsd.so.0
Warning: Weak Symbol _ZTHN2v88internal12trap_handler21g_thread_in_wasm_codeE not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4928 (0xa122e06)
Warning: Weak Symbol _ZTHN2v88internal19RwxMemoryWriteScope31code_space_write_nesting_level_E not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4930 (0xa122e16)
Warning: Weak Symbol OPENSSL_memory_alloc not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b80 (0xa1232b6)
Warning: Weak Symbol OPENSSL_memory_free not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b88 (0xa1232c6)
Warning: Weak Symbol sdallocx not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b90 (0xa1232d6)
Warning: Weak Symbol OPENSSL_memory_get_size not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b98 (0xa1232e6)
Warning: Weak Symbol __gcov_dump not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a41b0 (0xa121f16)
Warning: Weak Symbol __gcov_flush not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a41b8 (0xa121f26)
Warning: Weak Symbol ZSTD_trace_decompress_begin not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4298 (0xa1220e6)
Warning: Weak Symbol ZSTD_trace_decompress_end not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a42a0 (0xa1220f6)
Warning: Weak Symbol _ZTHN2v88internal12trap_handler21g_thread_in_wasm_codeE not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4928 (0xa122e06)
Warning: Weak Symbol _ZTHN2v88internal19RwxMemoryWriteScope31code_space_write_nesting_level_E not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4930 (0xa122e16)
Warning: Weak Symbol OPENSSL_memory_alloc not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b80 (0xa1232b6)
Warning: Weak Symbol OPENSSL_memory_free not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b88 (0xa1232c6)
Warning: Weak Symbol sdallocx not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b90 (0xa1232d6)
Warning: Weak Symbol OPENSSL_memory_get_size not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b98 (0xa1232e6)
[3775:0501/025134.665146:ERROR:file_path_watcher_inotify.cc(890)] Failed to read /proc/sys/fs/inotify/max_user_watches
[3776:0501/025134.691023:ERROR:file_path_watcher_inotify.cc(890)] Failed to read /proc/sys/fs/inotify/max_user_watches
[3765:0501/025134.699089:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
Warning: Unsupported libc Syscall 0x1A9 (425)
posix_spawn((nil), "/root/chrome_crashpad_handler", (nil), (nil), 0x35cac4d0["/root/chrome_crashpad_handler", "--monitor-self-annotation=ptype=crashpad-handler", ...], 0x79080ed6e0), IsX64=1, IsX86=0 IsScript=0 envp is context->envv
 => posix_spawn((nil), "/usr/local/bin/box64", (nil), (nil), 0x7fea82b2a0 ["/usr/local/bin/box64", "/root/chrome_crashpad_handler", "--monitor-self-annotation=ptype=crashpad-handler"...:13], 0x35c76bf0)
posix_spawn returned 0
Debug level is 1
 PageSize:4096 Running on unknown aarch64 cpu with 8 Cores
Will use time-based emulation for rdtsc, even if hardware counter are available
Will use Software counter measured at 1.0 GHz emulating 2.0 GHz
Params database has 68 entries
Box64 v0.2.7 4f229629 built on Apr 30 2024 16:53:18
BOX64: Didn't detect 48bits of address space, considering it's 39bits
Counted 16 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/:/bin/:/usr/bin/:/sbin/:/usr/sbin/:/usr/games/:/usr/local/games/:/snap/bin/
Looking for /root/chrome_crashpad_handler
argv[1]="--monitor-self-annotation=ptype=crashpad-handler"
argv[2]="--no-rate-limit"
argv[3]="--database=/root/.config/httptoolkit/Crashpad"
argv[4]="--url=https://f.a.k/e"
argv[5]="--annotation=_productName=httptoolkit"
argv[6]="--annotation=_version=1.14.11"
argv[7]="--annotation=lsb-release=Ubuntu 22.04.4 LTS"
argv[8]="--annotation=plat=Linux"
argv[9]="--annotation=prod=Electron"
argv[10]="--annotation=ver=29.1.5"
argv[11]="--initial-client-fd=41"
argv[12]="--shared-client-connection"
Rename process to "chrome_crashpad_handler"
Redirecting overridden malloc from symtab function for /root/chrome_crashpad_handler
Using native(wrapped) libdl.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) libm.so.6
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) librt.so.1
Using native(wrapped) libbsd.so.0
Warning: Weak Symbol OPENSSL_memory_alloc not found, cannot apply R_X86_64_JUMP_SLOT @0x10011e700 (0x114cd6)
Warning: Weak Symbol OPENSSL_memory_free not found, cannot apply R_X86_64_JUMP_SLOT @0x10011e708 (0x114ce6)
Warning: Weak Symbol sdallocx not found, cannot apply R_X86_64_JUMP_SLOT @0x10011e710 (0x114cf6)
3765|SIGSEGV @0x7908411c28 (syscall(/lib/aarch64-linux-gnu/libc.so.6)) (x64pc=0x2a0693/???:"box64/syscall + 0x13", rsp=0xe5b92998), for accessing 0x79068ce338 (code=2)
RAX:0x0000000000000000 RCX:0x000000000000000b RDX:0x0000000000000eb5 RBX:0x00000000e5b92f70
RSP:0x00000000e5b92998 RBP:0x00000000e5b92a60 RSI:0x0000000000000eb5 RDI:0x0000000000000129
 R8:0x00000000e5b92f70  R9:0x0000000000000000 R10:0x0000000000000000 R11:0x0000000000000009
R12:0x00000000357fcc48 R13:0x00000000e5b92a78 R14:0x000000000000000b R15:0x0000000000000eb5
ES:0x002b CS:0x0033 SS:0x002b DS:0x002b FS:0x0043 GS:0x0053
Segmentation fault

No, this syscall is not mendatory: it's not the root cause of your issue.
On the log you removed, there was

[0501/022358.308615:FATAL:electron_main_delegate.cc(295)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

This is the cause of the abort. Either don't run as root, or use --no-sandbox as mentionned (I don't think sandbox will work anyway).

I was try it with no sandbox and malloc_hack here is result:

root@localhost:~# BOX64_MALLOC_HACK=2 BOX64_LOG=info box64 ./httptoolkit --no-sandbox
Debug level is 1
 PageSize:4096 Running on unknown aarch64 cpu with 8 Cores
Will use time-based emulation for rdtsc, even if hardware counter are available
Will use Software counter measured at 1.0 GHz emulating 2.0 GHz                   Params database has 68 entries
Box64 v0.2.7 4f229629 built on Apr 30 2024 16:53:18
BOX64: Didn't detect 48bits of address space, considering it's 39bits
Counted 13 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/:/bin/:/usr/bin/:/sbin/:/usr/sbin/:/usr/games/:/usr/local/games/:/snap/bin/
Looking for ./httptoolkit
argv[1]="--no-sandbox"
Rename process to "httptoolkit"                                                   Redirecting overridden malloc from symtab function for /root/httptoolkit
Using emulated libffmpeg.so                                                       Using native(wrapped) libdl.so.2
Using native(wrapped) libpthread.so.0                                             Using native(wrapped) libgobject-2.0.so.0
Using native(wrapped) libglib-2.0.so.0                                            Using native(wrapped) libgio-2.0.so.0                                             Using native(wrapped) libgmodule-2.0.so.0
Using native(wrapped) libnss3.so                                                  Using native(wrapped) libnssutil3.so
Using native(wrapped) libsmime3.so                                                Using native(wrapped) libnspr4.so
Using native(wrapped) libdbus-1.so.3                                              Using native(wrapped) libatk-1.0.so.0
Using native(wrapped) libatk-bridge-2.0.so.0                                      Using native(wrapped) libSM.so.6
Using native(wrapped) libICE.so.6
Using native(wrapped) libXau.so.6                                                 Using native(wrapped) libxcb.so.1
Using native(wrapped) libXdmcp.so.6                                               Using native(wrapped) libcups.so.2
Using native(wrapped) libdrm.so.2                                                 Using native(wrapped) libgtk-3.so.0
Using native(wrapped) libgdk-3.so.0
Using native(wrapped) libgdk_pixbuf-2.0.so.0
Using native(wrapped) libpangocairo-1.0.so.0
Using native(wrapped) libpango-1.0.so.0
Using native(wrapped) libcairo.so.2
Using native(wrapped) libX11.so.6
Using native(wrapped) libXcomposite.so.1
Using native(wrapped) libXdamage.so.1
Using native(wrapped) libXext.so.6
Using native(wrapped) libXfixes.so.3
Using native(wrapped) libXrandr.so.2
Using native(wrapped) libXrender.so.1
Using native(wrapped) libgbm.so.1
Using native(wrapped) libexpat.so.1
Using native(wrapped) libxkbcommon.so.0
Using native(wrapped) libasound.so.2
Using native(wrapped) libatspi.so.0
Using native(wrapped) libm.so.6
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) librt.so.1
Using native(wrapped) libbsd.so.0
Warning: Weak Symbol __gcov_dump not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a41b0 (0xa121f16)
Warning: Weak Symbol __gcov_flush not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a41b8 (0xa121f26)
Warning: Weak Symbol ZSTD_trace_decompress_begin not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4298 (0xa1220e6)
Warning: Weak Symbol ZSTD_trace_decompress_end not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a42a0 (0xa1220f6)
Warning: Weak Symbol _ZTHN2v88internal12trap_handler21g_thread_in_wasm_codeE not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4928 (0xa122e06)
Warning: Weak Symbol _ZTHN2v88internal19RwxMemoryWriteScope31code_space_write_nesting_level_E not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4930 (0xa122e16)
Warning: Weak Symbol OPENSSL_memory_alloc not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b80 (0xa1232b6)
Warning: Weak Symbol OPENSSL_memory_free not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b88 (0xa1232c6)
Warning: Weak Symbol sdallocx not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b90 (0xa1232d6)
Warning: Weak Symbol OPENSSL_memory_get_size not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b98 (0xa1232e6)
Debug level is 1
 PageSize:4096 Running on unknown aarch64 cpu with 8 Cores
Will use time-based emulation for rdtsc, even if hardware counter are available
Will use Software counter measured at 1.0 GHz emulating 2.0 GHz
Params database has 68 entries
Box64 v0.2.7 4f229629 built on Apr 30 2024 16:53:18
BOX64: Didn't detect 48bits of address space, considering it's 39bits
Counted 14 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/:/bin/:/usr/bin/:/sbin/:/usr/sbin/:/usr/games/:/usr/local/games/:/snap/bin/
Looking for /root/httptoolkit
argv[1]="--type=zygote"
argv[2]="--no-zygote-sandbox"
argv[3]="--no-sandbox"
Rename process to "httptoolkit"
Redirecting overridden malloc from symtab function for /root/httptoolkit
Debug level is 1
 PageSize:4096 Running on unknown aarch64 cpu with 8 Cores
Will use time-based emulation for rdtsc, even if hardware counter are available
Will use Software counter measured at 1.0 GHz emulating 2.0 GHz
Params database has 68 entries
Box64 v0.2.7 4f229629 built on Apr 30 2024 16:53:18
BOX64: Didn't detect 48bits of address space, considering it's 39bits
Counted 14 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/:/bin/:/usr/bin/:/sbin/:/usr/sbin/:/usr/games/:/usr/local/games/:/snap/bin/
Looking for /root/httptoolkit
argv[1]="--type=zygote"
argv[2]="--no-sandbox"
Rename process to "httptoolkit"
Using emulated libffmpeg.so
Using native(wrapped) libdl.so.2
Redirecting overridden malloc from symtab function for /root/httptoolkit
Using native(wrapped) libpthread.so.0
Using native(wrapped) libgobject-2.0.so.0
Using native(wrapped) libglib-2.0.so.0
Using native(wrapped) libgio-2.0.so.0
Using native(wrapped) libgmodule-2.0.so.0
Using native(wrapped) libnss3.so
Using native(wrapped) libnssutil3.so
Using native(wrapped) libsmime3.so
Using native(wrapped) libnspr4.so
Using native(wrapped) libdbus-1.so.3
Using native(wrapped) libatk-1.0.so.0
Using emulated libffmpeg.so
Using native(wrapped) libdl.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) libatk-bridge-2.0.so.0
Using native(wrapped) libSM.so.6
Using native(wrapped) libICE.so.6
Using native(wrapped) libXau.so.6
Using native(wrapped) libxcb.so.1
Using native(wrapped) libXdmcp.so.6
Using native(wrapped) libgobject-2.0.so.0
Using native(wrapped) libglib-2.0.so.0
Using native(wrapped) libgio-2.0.so.0
Using native(wrapped) libgmodule-2.0.so.0
Using native(wrapped) libcups.so.2
Using native(wrapped) libdrm.so.2
Using native(wrapped) libnss3.so
Using native(wrapped) libnssutil3.so
Using native(wrapped) libsmime3.so
Using native(wrapped) libnspr4.so
Using native(wrapped) libdbus-1.so.3
Using native(wrapped) libatk-1.0.so.0
Using native(wrapped) libatk-bridge-2.0.so.0
Using native(wrapped) libSM.so.6
Using native(wrapped) libICE.so.6
Using native(wrapped) libXau.so.6
Using native(wrapped) libxcb.so.1
Using native(wrapped) libXdmcp.so.6
Using native(wrapped) libcups.so.2
Using native(wrapped) libdrm.so.2
Using native(wrapped) libgtk-3.so.0
Using native(wrapped) libgdk-3.so.0
Using native(wrapped) libgdk_pixbuf-2.0.so.0
Using native(wrapped) libpangocairo-1.0.so.0
Using native(wrapped) libpango-1.0.so.0
Using native(wrapped) libcairo.so.2
Using native(wrapped) libX11.so.6
Using native(wrapped) libXcomposite.so.1
Using native(wrapped) libXdamage.so.1
Using native(wrapped) libXext.so.6
Using native(wrapped) libXfixes.so.3
Using native(wrapped) libXrandr.so.2
Using native(wrapped) libXrender.so.1
Using native(wrapped) libgbm.so.1
Using native(wrapped) libexpat.so.1
Using native(wrapped) libxkbcommon.so.0
Using native(wrapped) libasound.so.2
Using native(wrapped) libatspi.so.0
Using native(wrapped) libm.so.6
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) librt.so.1
Using native(wrapped) libbsd.so.0
Using native(wrapped) libgtk-3.so.0
Using native(wrapped) libgdk-3.so.0
Using native(wrapped) libgdk_pixbuf-2.0.so.0
Using native(wrapped) libpangocairo-1.0.so.0
Using native(wrapped) libpango-1.0.so.0
Using native(wrapped) libcairo.so.2
Using native(wrapped) libX11.so.6
Using native(wrapped) libXcomposite.so.1
Using native(wrapped) libXdamage.so.1
Using native(wrapped) libXext.so.6
Using native(wrapped) libXfixes.so.3
Using native(wrapped) libXrandr.so.2
Using native(wrapped) libXrender.so.1
Using native(wrapped) libgbm.so.1
Using native(wrapped) libexpat.so.1
Using native(wrapped) libxkbcommon.so.0
Using native(wrapped) libasound.so.2
Using native(wrapped) libatspi.so.0
Using native(wrapped) libm.so.6
Warning: Weak Symbol __gcov_dump not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a41b0 (0xa121f16)
Warning: Weak Symbol __gcov_flush not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a41b8 (0xa121f26)
Warning: Weak Symbol ZSTD_trace_decompress_begin not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4298 (0xa1220e6)
Warning: Weak Symbol ZSTD_trace_decompress_end not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a42a0 (0xa1220f6)
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) librt.so.1
Using native(wrapped) libbsd.so.0
Warning: Weak Symbol _ZTHN2v88internal12trap_handler21g_thread_in_wasm_codeE not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4928 (0xa122e06)
Warning: Weak Symbol _ZTHN2v88internal19RwxMemoryWriteScope31code_space_write_nesting_level_E not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4930 (0xa122e16)
Warning: Weak Symbol OPENSSL_memory_alloc not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b80 (0xa1232b6)
Warning: Weak Symbol OPENSSL_memory_free not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b88 (0xa1232c6)
Warning: Weak Symbol sdallocx not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b90 (0xa1232d6)
Warning: Weak Symbol OPENSSL_memory_get_size not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b98 (0xa1232e6)
Warning: Weak Symbol __gcov_dump not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a41b0 (0xa121f16)
Warning: Weak Symbol __gcov_flush not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a41b8 (0xa121f26)
Warning: Weak Symbol ZSTD_trace_decompress_begin not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4298 (0xa1220e6)
Warning: Weak Symbol ZSTD_trace_decompress_end not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a42a0 (0xa1220f6)
Warning: Weak Symbol _ZTHN2v88internal12trap_handler21g_thread_in_wasm_codeE not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4928 (0xa122e06)
Warning: Weak Symbol _ZTHN2v88internal19RwxMemoryWriteScope31code_space_write_nesting_level_E not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4930 (0xa122e16)
Warning: Weak Symbol OPENSSL_memory_alloc not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b80 (0xa1232b6)
Warning: Weak Symbol OPENSSL_memory_free not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b88 (0xa1232c6)
Warning: Weak Symbol sdallocx not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b90 (0xa1232d6)
Warning: Weak Symbol OPENSSL_memory_get_size not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b98 (0xa1232e6)
[3775:0501/025134.665146:ERROR:file_path_watcher_inotify.cc(890)] Failed to read /proc/sys/fs/inotify/max_user_watches
[3776:0501/025134.691023:ERROR:file_path_watcher_inotify.cc(890)] Failed to read /proc/sys/fs/inotify/max_user_watches
[3765:0501/025134.699089:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
Warning: Unsupported libc Syscall 0x1A9 (425)
posix_spawn((nil), "/root/chrome_crashpad_handler", (nil), (nil), 0x35cac4d0["/root/chrome_crashpad_handler", "--monitor-self-annotation=ptype=crashpad-handler", ...], 0x79080ed6e0), IsX64=1, IsX86=0 IsScript=0 envp is context->envv
 => posix_spawn((nil), "/usr/local/bin/box64", (nil), (nil), 0x7fea82b2a0 ["/usr/local/bin/box64", "/root/chrome_crashpad_handler", "--monitor-self-annotation=ptype=crashpad-handler"...:13], 0x35c76bf0)
posix_spawn returned 0
Debug level is 1
 PageSize:4096 Running on unknown aarch64 cpu with 8 Cores
Will use time-based emulation for rdtsc, even if hardware counter are available
Will use Software counter measured at 1.0 GHz emulating 2.0 GHz
Params database has 68 entries
Box64 v0.2.7 4f229629 built on Apr 30 2024 16:53:18
BOX64: Didn't detect 48bits of address space, considering it's 39bits
Counted 16 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/:/bin/:/usr/bin/:/sbin/:/usr/sbin/:/usr/games/:/usr/local/games/:/snap/bin/
Looking for /root/chrome_crashpad_handler
argv[1]="--monitor-self-annotation=ptype=crashpad-handler"
argv[2]="--no-rate-limit"
argv[3]="--database=/root/.config/httptoolkit/Crashpad"
argv[4]="--url=https://f.a.k/e"
argv[5]="--annotation=_productName=httptoolkit"
argv[6]="--annotation=_version=1.14.11"
argv[7]="--annotation=lsb-release=Ubuntu 22.04.4 LTS"
argv[8]="--annotation=plat=Linux"
argv[9]="--annotation=prod=Electron"
argv[10]="--annotation=ver=29.1.5"
argv[11]="--initial-client-fd=41"
argv[12]="--shared-client-connection"
Rename process to "chrome_crashpad_handler"
Redirecting overridden malloc from symtab function for /root/chrome_crashpad_handler
Using native(wrapped) libdl.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) libm.so.6
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) librt.so.1
Using native(wrapped) libbsd.so.0
Warning: Weak Symbol OPENSSL_memory_alloc not found, cannot apply R_X86_64_JUMP_SLOT @0x10011e700 (0x114cd6)
Warning: Weak Symbol OPENSSL_memory_free not found, cannot apply R_X86_64_JUMP_SLOT @0x10011e708 (0x114ce6)
Warning: Weak Symbol sdallocx not found, cannot apply R_X86_64_JUMP_SLOT @0x10011e710 (0x114cf6)
3765|SIGSEGV @0x7908411c28 (syscall(/lib/aarch64-linux-gnu/libc.so.6)) (x64pc=0x2a0693/???:"box64/syscall + 0x13", rsp=0xe5b92998), for accessing 0x79068ce338 (code=2)
RAX:0x0000000000000000 RCX:0x000000000000000b RDX:0x0000000000000eb5 RBX:0x00000000e5b92f70
RSP:0x00000000e5b92998 RBP:0x00000000e5b92a60 RSI:0x0000000000000eb5 RDI:0x0000000000000129
 R8:0x00000000e5b92f70  R9:0x0000000000000000 R10:0x0000000000000000 R11:0x0000000000000009
R12:0x00000000357fcc48 R13:0x00000000e5b92a78 R14:0x000000000000000b R15:0x0000000000000eb5
ES:0x002b CS:0x0033 SS:0x002b DS:0x002b FS:0x0043 GS:0x0053
Segmentation fault

fixed read this but log like above, only removed this 3 line

[3775:0501/025134.665146:ERROR:file_path_watcher_inotify.cc(890)] Failed to read /proc/sys/fs/inotify/max_user_watches
[3776:0501/025134.691023:ERROR:file_path_watcher_inotify.cc(890)] Failed to read /proc/sys/fs/inotify/max_user_watches
[3765:0501/025134.699089:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory

No, this syscall is not mendatory: it's not the root cause of your issue.

On the log you removed, there was

[0501/022358.308615:FATAL:electron_main_delegate.cc(295)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

This is the cause of the abort. Either don't run as root, or use --no-sandbox as mentionned (I don't think sandbox will work anyway).

i was downgrade to Ubuntu 20.04 and fixed all error from HTTPToolkit, but i can't launch this app, got Segmentation fault, here is error log (INFO with MALLOC_HACK = 2)

khanhnguyen9872@localhost:~/http$ ./httptoolkit --no-sandbox
Debug level is 1
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS SHA1 SHA2 PageSize:4096 Running on unknown aarch64 cpu with 8 Cores
Will use Hardware counter measured at 19.2 MHz emulating 2.4 GHz
Params database has 68 entries
Box64 with Dynarec v0.2.7 8d77e39f built on May  1 2024 22:55:50
BOX64: Didn't detect 48bits of address space, considering it's 39bits
Counted 21 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/:/usr/games/:/usr/local/games/:/snap/bin/
Looking for ./httptoolkit                                                               argv[1]="--no-sandbox"
Rename process to "httptoolkit"
Redirecting overridden malloc from symtab function for /home/khanhnguyen9872/http/httptoolkit
Using emulated libffmpeg.so
Using native(wrapped) libdl.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) libgobject-2.0.so.0
Using native(wrapped) libglib-2.0.so.0
Using native(wrapped) libgio-2.0.so.0
Using native(wrapped) libgmodule-2.0.so.0                                               Using native(wrapped) libnss3.so
Using native(wrapped) libnssutil3.so                                                    Using native(wrapped) libsmime3.so
Using native(wrapped) libnspr4.so                                                       Using native(wrapped) libdbus-1.so.3
Using native(wrapped) libatk-1.0.so.0                                                   Using native(wrapped) libatk-bridge-2.0.so.0                                            Using native(wrapped) libSM.so.6                                                        Using native(wrapped) libICE.so.6
Using native(wrapped) libXau.so.6                                                       Using native(wrapped) libxcb.so.1
Using native(wrapped) libXdmcp.so.6                                                     Using native(wrapped) libcups.so.2
Using native(wrapped) libdrm.so.2                                                       Using native(wrapped) libgtk-3.so.0
Using native(wrapped) libgdk-3.so.0                                                     Using native(wrapped) libgdk_pixbuf-2.0.so.0
Using native(wrapped) libpangocairo-1.0.so.0                                            Using native(wrapped) libpango-1.0.so.0
Using native(wrapped) libcairo.so.2                                                     Using native(wrapped) libX11.so.6
Using native(wrapped) libXcomposite.so.1
Using native(wrapped) libXdamage.so.1
Using native(wrapped) libXext.so.6
Using native(wrapped) libXfixes.so.3
Using native(wrapped) libXrandr.so.2
Using native(wrapped) libXrender.so.1
Using native(wrapped) libgbm.so.1
Using native(wrapped) libexpat.so.1
Using native(wrapped) libxkbcommon.so.0
Using native(wrapped) libasound.so.2
Using native(wrapped) libatspi.so.0
Using native(wrapped) libm.so.6
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) librt.so.1
Using native(wrapped) libbsd.so.0
Warning: Weak Symbol __gcov_dump not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a41b0 (0xa121f16)
Warning: Weak Symbol __gcov_flush not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a41b8 (0xa121f26)
Warning: Weak Symbol ZSTD_trace_decompress_begin not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4298 (0xa1220e6)
Warning: Weak Symbol ZSTD_trace_decompress_end not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a42a0 (0xa1220f6)
Warning: Weak Symbol _ZTHN2v88internal12trap_handler21g_thread_in_wasm_codeE not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4928 (0xa122e06)
Warning: Weak Symbol _ZTHN2v88internal19RwxMemoryWriteScope31code_space_write_nesting_level_E not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4930 (0xa122e16)
Warning: Weak Symbol OPENSSL_memory_alloc not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b80 (0xa1232b6)
Warning: Weak Symbol OPENSSL_memory_free not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b88 (0xa1232c6)
Warning: Weak Symbol sdallocx not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b90 (0xa1232d6)
Warning: Weak Symbol OPENSSL_memory_get_size not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b98 (0xa1232e6)
Debug level is 1
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS SHA1 SHA2 PageSize:4096 Running on unknown aarch64 cpu with 8 Cores
Will use Hardware counter measured at 19.2 MHz emulating 2.4 GHz
Params database has 68 entries
Box64 with Dynarec v0.2.7 8d77e39f built on May  1 2024 22:55:50
BOX64: Didn't detect 48bits of address space, considering it's 39bits
Counted 22 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/:/usr/games/:/usr/local/games/:/snap/bin/
Looking for /home/khanhnguyen9872/http/httptoolkit
argv[1]="--type=zygote"
argv[2]="--no-zygote-sandbox"
argv[3]="--no-sandbox"
Rename process to "httptoolkit"
Redirecting overridden malloc from symtab function for /home/khanhnguyen9872/http/httptoolkit
Debug level is 1
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS SHA1 SHA2 PageSize:4096 Running on unknown aarch64 cpu with 8 Cores
Will use Hardware counter measured at 19.2 MHz emulating 2.4 GHz
Params database has 68 entries
Box64 with Dynarec v0.2.7 8d77e39f built on May  1 2024 22:55:50
BOX64: Didn't detect 48bits of address space, considering it's 39bits
Counted 22 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/:/usr/games/:/usr/local/games/:/snap/bin/
Looking for /home/khanhnguyen9872/http/httptoolkit
argv[1]="--type=zygote"
argv[2]="--no-sandbox"
Using emulated libffmpeg.so
Using native(wrapped) libdl.so.2
Rename process to "httptoolkit"
Using native(wrapped) libpthread.so.0
Using native(wrapped) libgobject-2.0.so.0
Using native(wrapped) libglib-2.0.so.0
Redirecting overridden malloc from symtab function for /home/khanhnguyen9872/http/httptoolkit
Using native(wrapped) libgio-2.0.so.0
Using native(wrapped) libgmodule-2.0.so.0
Using native(wrapped) libnss3.so
Using native(wrapped) libnssutil3.so
Using native(wrapped) libsmime3.so
Using native(wrapped) libnspr4.so
Using native(wrapped) libdbus-1.so.3
Using native(wrapped) libatk-1.0.so.0
Using emulated libffmpeg.so
Using native(wrapped) libatk-bridge-2.0.so.0
Using native(wrapped) libSM.so.6
Using native(wrapped) libICE.so.6
Using native(wrapped) libdl.so.2
Using native(wrapped) libXau.so.6
Using native(wrapped) libpthread.so.0
Using native(wrapped) libxcb.so.1
Using native(wrapped) libXdmcp.so.6
Using native(wrapped) libgobject-2.0.so.0
Using native(wrapped) libglib-2.0.so.0
Using native(wrapped) libgio-2.0.so.0
Using native(wrapped) libgmodule-2.0.so.0
Using native(wrapped) libnss3.so
Using native(wrapped) libcups.so.2
Using native(wrapped) libnssutil3.so
Using native(wrapped) libdrm.so.2
Using native(wrapped) libsmime3.so
Using native(wrapped) libnspr4.so
Using native(wrapped) libdbus-1.so.3
Using native(wrapped) libatk-1.0.so.0
Using native(wrapped) libatk-bridge-2.0.so.0
Using native(wrapped) libSM.so.6
Using native(wrapped) libICE.so.6
Using native(wrapped) libXau.so.6
Using native(wrapped) libxcb.so.1
Using native(wrapped) libXdmcp.so.6
Using native(wrapped) libcups.so.2
Using native(wrapped) libdrm.so.2
Using native(wrapped) libgtk-3.so.0
Using native(wrapped) libgdk-3.so.0
Using native(wrapped) libgdk_pixbuf-2.0.so.0
Using native(wrapped) libpangocairo-1.0.so.0
Using native(wrapped) libpango-1.0.so.0
Using native(wrapped) libcairo.so.2
Using native(wrapped) libX11.so.6
Using native(wrapped) libXcomposite.so.1
Using native(wrapped) libXdamage.so.1
Using native(wrapped) libXext.so.6
Using native(wrapped) libXfixes.so.3
Using native(wrapped) libXrandr.so.2
Using native(wrapped) libXrender.so.1
Using native(wrapped) libgbm.so.1
Using native(wrapped) libexpat.so.1
Using native(wrapped) libxkbcommon.so.0
Using native(wrapped) libasound.so.2
Using native(wrapped) libatspi.so.0
Using native(wrapped) libm.so.6
Using native(wrapped) libgtk-3.so.0
Using native(wrapped) libgdk-3.so.0
Using native(wrapped) libgdk_pixbuf-2.0.so.0
Using emulated /lib/x86_64-linux-gnu/libgcc_s.so.1
Using native(wrapped) libpangocairo-1.0.so.0
Using native(wrapped) libpango-1.0.so.0
Using native(wrapped) libc.so.6
Using native(wrapped) libcairo.so.2
Using native(wrapped) ld-linux-x86-64.so.2
Using native(wrapped) libutil.so.1
Using native(wrapped) libX11.so.6
Using native(wrapped) librt.so.1
Using native(wrapped) libXcomposite.so.1
Using native(wrapped) libbsd.so.0
Using native(wrapped) libXdamage.so.1
Using native(wrapped) libXext.so.6
Using native(wrapped) libXfixes.so.3
Using native(wrapped) libXrandr.so.2
Using native(wrapped) libXrender.so.1
Using native(wrapped) libgbm.so.1
Using native(wrapped) libexpat.so.1
Using native(wrapped) libxkbcommon.so.0
Using native(wrapped) libasound.so.2
Using native(wrapped) libatspi.so.0
Using native(wrapped) libm.so.6
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) librt.so.1
Using native(wrapped) libbsd.so.0
Warning: Weak Symbol __gcov_dump not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a41b0 (0xa121f16)
Warning: Weak Symbol __gcov_flush not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a41b8 (0xa121f26)
Warning: Weak Symbol ZSTD_trace_decompress_begin not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4298 (0xa1220e6)
Warning: Weak Symbol ZSTD_trace_decompress_end not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a42a0 (0xa1220f6)
Warning: Weak Symbol _ZTHN2v88internal12trap_handler21g_thread_in_wasm_codeE not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4928 (0xa122e06)
Warning: Weak Symbol _ZTHN2v88internal19RwxMemoryWriteScope31code_space_write_nesting_level_E not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4930 (0xa122e16)
Warning: Weak Symbol OPENSSL_memory_alloc not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b80 (0xa1232b6)
Warning: Weak Symbol OPENSSL_memory_free not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b88 (0xa1232c6)
Warning: Weak Symbol sdallocx not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b90 (0xa1232d6)
Warning: Weak Symbol OPENSSL_memory_get_size not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b98 (0xa1232e6)
Warning: Weak Symbol __gcov_dump not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a41b0 (0xa121f16)
Warning: Weak Symbol __gcov_flush not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a41b8 (0xa121f26)
Warning: Weak Symbol ZSTD_trace_decompress_begin not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4298 (0xa1220e6)
Warning: Weak Symbol ZSTD_trace_decompress_end not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a42a0 (0xa1220f6)
Warning: Weak Symbol _ZTHN2v88internal12trap_handler21g_thread_in_wasm_codeE not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4928 (0xa122e06)
Warning: Weak Symbol _ZTHN2v88internal19RwxMemoryWriteScope31code_space_write_nesting_level_E not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4930 (0xa122e16)
Warning: Weak Symbol OPENSSL_memory_alloc not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b80 (0xa1232b6)
Warning: Weak Symbol OPENSSL_memory_free not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b88 (0xa1232c6)
Warning: Weak Symbol sdallocx not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b90 (0xa1232d6)
Warning: Weak Symbol OPENSSL_memory_get_size not found, cannot apply R_X86_64_JUMP_SLOT @0x10a6a4b98 (0xa1232e6)
Warning: Unsupported libc Syscall 0x1A9 (425)
posix_spawn((nil), "/home/khanhnguyen9872/http/chrome_crashpad_handler", (nil), (nil), 0x36a7f0f0["/home/khanhnguyen9872/http/chrome_crashpad_handler", "--monitor-self-annotation=ptype=crashpad-handler", ...], 0x7f285c15e0), IsX64=1, IsX86=0 IsScript=0 envp is context->envv
 => posix_spawn((nil), "/usr/local/bin/box64", (nil), (nil), 0x7fc5764330 ["/usr/local/bin/box64", "/home/khanhnguyen9872/http/chrome_crashpad_handler", "--monitor-self-annotation=ptype=crashpad-handler"...:13], 0x36e988f0)
posix_spawn returned 0
Debug level is 1
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS SHA1 SHA2 PageSize:4096 Running on unknown aarch64 cpu with 8 Cores
Will use Hardware counter measured at 19.2 MHz emulating 2.4 GHz
Params database has 68 entries
Box64 with Dynarec v0.2.7 8d77e39f built on May  1 2024 22:55:50
BOX64: Didn't detect 48bits of address space, considering it's 39bits
Counted 24 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/:/usr/games/:/usr/local/games/:/snap/bin/
Looking for /home/khanhnguyen9872/http/chrome_crashpad_handler
argv[1]="--monitor-self-annotation=ptype=crashpad-handler"
argv[2]="--no-rate-limit"
argv[3]="--database=/home/khanhnguyen9872/.config/httptoolkit/Crashpad"
argv[4]="--url=https://f.a.k/e"
argv[5]="--annotation=_productName=httptoolkit"
argv[6]="--annotation=_version=1.14.11"
argv[7]="--annotation=lsb-release=Ubuntu 20.04.6 LTS"
argv[8]="--annotation=plat=Linux"
argv[9]="--annotation=prod=Electron"
argv[10]="--annotation=ver=29.1.5"
argv[11]="--initial-client-fd=43"
argv[12]="--shared-client-connection"
Rename process to "chrome_crashpad_handler"
Redirecting overridden malloc from symtab function for /home/khanhnguyen9872/http/chrome_crashpad_handler
Using native(wrapped) libdl.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) libm.so.6
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) librt.so.1
Using native(wrapped) libbsd.so.0
Warning: Weak Symbol OPENSSL_memory_alloc not found, cannot apply R_X86_64_JUMP_SLOT @0x10011e700 (0x114cd6)
Warning: Weak Symbol OPENSSL_memory_free not found, cannot apply R_X86_64_JUMP_SLOT @0x10011e708 (0x114ce6)
Warning: Weak Symbol sdallocx not found, cannot apply R_X86_64_JUMP_SLOT @0x10011e710 (0x114cf6)
16683|SIGSEGV @0x7f28958a54 (syscall(/lib/aarch64-linux-gnu/libc.so.6)) (x64pc=0x2a06b3/???:"???", rsp=0xe5b92998, stack=0x7f27dc2000:0x7f285c2000 own=(nil) fp=0xe5b92a60), for accessing 0x7f26f94228 (code=2/prot=0), db=(nil)((nil):(nil)/(nil):(nil)/???:clean, hash:0/0) handler=(nil)
RSP-0x20:0x00000000e5b92a30 RSP-0x18:0x00000000e5b929d8 RSP-0x10:0x00000000e5b92a78 RSP-0x08:0x00000000e5b92a10
RSP+0x00:0x0000000106c9a583 RSP+0x08:0x00000000e5b92a00 RSP+0x10:0x0000000000000000 RSP+0x18:0x0000000000000000
RAX:0x0000000000000000 RCX:0x000000000000000b RDX:0x000000000000412b RBX:0x00000000e5b92f70
RSP:0x00000000e5b92998 RBP:0x00000000e5b92a60 RSI:0x000000000000412b RDI:0x0000000000000129
 R8:0x00000000e5b92f70  R9:0x0000000000000000 R10:0x0000000000000000 R11:0x0000000000000008
R12:0x0000000036a4fa28 R13:0x00000000e5b92a78 R14:0x000000000000000b R15:0x000000000000412b
ES:0x002b CS:0x0033 SS:0x002b DS:0x002b FS:0x0043 GS:0x0053
Segmentation fault

I'll have to check on my side if I can reproduce the issue.

I'll have to check on my side if I can reproduce the issue.

Closed! i has fixed and now can run HTTPToolKit