heaptrack attach question
Milian Wolff
mail at milianw.de
Sat Mar 1 13:50:05 GMT 2025
On Donnerstag, 27. Februar 2025 17:51:12 Mitteleuropäische Normalzeit Mark
Andrews wrote:
> hi there - I just came across heaptrack and it looks most interesting!
Hey there!
> I installed it with "apt install heaptrack" on an Ubuntu 22 system and can
> get stats on a process that i start using heaptrack, but can't attach to
> running:
What version of heaptrack does Ubuntu 22 ship? Probably an older version. Have
you tried the latest one - either handcompiled or via the appimage?
Sounds like you need a newer version which contains the following fix:
https://invent.kde.org/sdk/heaptrack/-/commit/
3234e45468015b04408c03a81076c2664d0bbc26
> root at liveaction:/home/admin# /usr/bin/heaptrack -p $(pidof omnid)
>
> heaptrack output will be written to
> "/home/admin/heaptrack.omnid.1292277.zst"
> /usr/lib/heaptrack/libheaptrack_preload.so
> injecting heaptrack into application via GDB, this might take some time...
> No symbol "__libc_dlopen_mode" in current context.
> No symbol "heaptrack_inject" in current context.
> injection finished
>
> I tried a few things like LD_PRELOAD the heaptrack injection so , but no
> luck -
LD_PRELOAD is explicitly not for runtime injection, but for profiling from the
start.
> Any pointers on how to proceed?
Please ask support questions on public channels, i.e. via the mailing list so
that all others can chime in and the question can be found by others too in
the future.
Thanks
--
Milian Wolff
mail at milianw.de
http://milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/heaptrack/attachments/20250301/cc02aceb/attachment.sig>
More information about the Heaptrack
mailing list