Skip to content

Code compiled with "bundled" feature still requires libtcmalloc.so #4

@calixteman

Description

@calixteman

A way to reproduce:

cd examples
cargo build --features bundled -vv

and then ldd target/debug/tcmalloc-example:

linux-vdso.so.1 (0x00007ffe404dd000)
libtcmalloc.so.4 => /lib/x86_64-linux-gnu/libtcmalloc.so.4 (0x00007f9600852000)
...

and then readelf -s target/debug/tcmalloc-example | rg 'UND' | rg 'tc_':

    11: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND tc_free
    48: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND tc_memalign
   775: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND tc_free
   902: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND tc_memalign

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