Skip to content

Cannot found mallinfo2 symbol #3744

@Hydra0xetc

Description

@Hydra0xetc
$ box64 --version
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL SHA1 SHA2 PageSize:4096 Running on Kryo-V2 Falkor-V1/Kryo with 8 Cores
Will use Hardware counter measured at 19.2 MHz emulating 2.4 GHz
Params database has 96 entries
Box64 with Dynarec v0.3.2  built on Mar 10 2025 07:17:31
$ box64 archlinux-x86_64/bin/ld
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL SHA1 SHA2 PageSize:4096 Running on Kryo-V2 Falkor-V1/Kryo with 8 Cores
Will use Hardware counter measured at 19.2 MHz emulating 2.4 GHz
Params database has 96 entries
Box64 with Dynarec v0.3.2  built on Mar 10 2025 07:17:31
BOX64: Didn't detect 48bits of address space, considering it's 39bits
Counted 61 Env var
BOX64 LIB PATH: BOX64 BIN PATH: ./:bin/:/data/data/com.termux/files/usr/lib/jvm/java-21-openjdk/bin/:/data/data/com.termux/files/usr/glibc/bin/:/data/data/com.termux/files/home/.config/yarn/global/node_modules/.bin/:/data/data/com.termux/files/home/.local/bin/:/data/data/com.termux/files/home/opt/disunity/bin/:/data/data/com.termux/files/home/opt/AssetRipper/bin/:/data/data/com.termux/files/home/opt/ocaml/bin/:/data/data/com.termux/files/home/opt/c3c/bin/:/data/data/com.termux/files/home/opt/fmodstudioapi20312linux/bin/:/data/data/com.termux/files/home/opt/jdtls/bin/:/data/data/com.termux/files/usr/bin/
Looking for archlinux-x86_64/bin/ld
Rename process to "ld"
Using emulated ./archlinux-x86_64/lib/libbfd-2.46.so
Using emulated ./archlinux-x86_64/lib/libctf.so.0
Using emulated ./archlinux-x86_64/lib/libjansson.so.4
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux-x86-64.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) libdl.so.2
Using native(wrapped) libutil.so.1
Using native(wrapped) libresolv.so.2
Using native(wrapped) librt.so.1
Using native(wrapped) libbsd.so.0
Using native(wrapped) libzstd.so.1
Using emulated ./archlinux-x86_64/lib/libsframe.so.3
Using native(wrapped) libz.so.1
Error: Global Symbol mallinfo2 not found, cannot apply R_X86_64_GLOB_DAT @0x10017f710 ((nil)) in /data/data/com.termux/files/home/Eksperimen/reverse-engenering/crackme/archlinux-x86_64/usr/bin/ld
12661|Ask to run at NULL, will segfault
12661|BOX64: Warning, calling Signal 11 function handler SIG_DFL
Unhandled signal caught, aborting
NativeBT: archlinux-x86_64/bin/ld() [0x34aeb388]
NativeBT: linux-vdso.so.1(__kernel_rt_sigreturn+0) [0x75d1b68690]
NativeBT: /data/data/com.termux/files/usr/glibc/lib/libc.so.6(+0x8ba54) [0x75d19fba54]
NativeBT: /data/data/com.termux/files/usr/glibc/lib/libc.so.6(gsignal+0x28) [0x75d19a8648]
NativeBT: /data/data/com.termux/files/usr/glibc/lib/libc.so.6(abort+0x28) [0x75d1991e38]
NativeBT: archlinux-x86_64/bin/ld() [0x34ae95a8]
NativeBT: archlinux-x86_64/bin/ld() [0x34ae9d64]
NativeBT: archlinux-x86_64/bin/ld() [0x34aec30c]
NativeBT: archlinux-x86_64/bin/ld() [0x34aec794]
NativeBT: archlinux-x86_64/bin/ld() [0x3534ebfc]
NativeBT: archlinux-x86_64/bin/ld() [0x34abc99c]
NativeBT: archlinux-x86_64/bin/ld(my___libc_start_main+0x298) [0x34ad3b58]
NativeBT: archlinux-x86_64/bin/ld() [0x34b27350]
NativeBT: [0x75d0b80e20]
EmulatedBT: ??? [(nil)]
12661|SIGABRT @0x75d19fba54 (???(/data/data/com.termux/files/usr/glibc/lib/libc.so.6+0x8ba54)) (x64pc=(nil)/"???", rsp=0x75d17fde78, stack=0x75d1000000:0x75d1800000 own=(nil) fp=0x75d17fe910), for accessing 0x2a7600003175 (code=-6/prot=0), db=(nil)((nil):(nil)/(nil):(nil)/???:clean, hash:0/0) handler=(nil)
RSP-0x20:0x0000000000000000 RSP-0x18:0x0000000000000000 RSP-0x10:0x0000000000000000 RSP-0x08:0x0000000000000000
RSP+0x00:0x0000000000000000 RSP+0x08:0x0000000000000000 RSP+0x10:0x0000000000000000 RSP+0x18:0x0000000000000002
RAX:0x0000000000000000 RCX:0x0101010101010101 RDX:0x00000075d17fe860 RBX:0x0000000100180820
RSP:0x00000075d17fde78 RBP:0x00000075d17fe910 RSI:0x00000075d1a5a3e0 RDI:0x00000075d17fe810
 R8:0x0000000000000000  R9:0x0000000030000080 R10:0x0000000000000000 R11:0x0000000000000000
R12:0x0000000000000000 R13:0x0000000000000000 R14:0x0000000000000000 R15:0x0000000000000000
ES:0x002b CS:0x0033 SS:0x002b DS:0x002b FS:0x0043 GS:0x0053
Aborted                    box64 archlinux-x86_64/bin/ld
$ echo $PREFIX
/data/data/com.termux/files/usr
$ nm -D $PREFIX/glibc/lib/libc.so.6 | grep mallinfo2
000000000009d4c0 W mallinfo2@@GLIBC_2.33

why it can't find the mallinfo2 symbol even though it's there when i check with the nm command?

Is this a known issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions