https://bugs.kde.org/show_bug.cgi?id=397476

            Bug ID: 397476
           Summary: Heaptrack doesn't read symbols when callee is invoker
                    via explicit dynamic loader
           Product: Heaptrack
           Version: unspecified
          Platform: Debian testing
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: m...@milianw.de
          Reporter: szuberskidam...@gmail.com
  Target Milestone: ---

Applies to heaptrack 1.0.0 and 1.1.0.

Heaptrack works perfectly well when invoked
$ heaptrack CALLEE

Heaptrack gathers data and produces the report but symbols in the stacktraces
are properly resolved only for shared libraries linked to CALLEE. All memory
allocations of CALLEE itself go into the generic unresolved symbol section
$ heaptrack /lib64/ld-linux-x86-64.so.2 CALLEE

from /usr/bin/heaptrack:
  echo "starting application, this might take some time..."
  LD_PRELOAD=$LIBHEAPTRACK_PRELOAD${LD_PRELOAD:+:$LD_PRELOAD}
DUMP_HEAPTRACK_OUTPUT="$pipe" "$client" "$@"

I'm not sure if there is a way to either (1) inject LD_PRELOAD after dynamic
linker is loaded but before CALLEE is executed (2) somehow "if-out" dynamic
loaders out of heaptrack so they won't interfere with symbol resolution.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to