koute / bytehound

A memory profiler for Linux.
Other
4.49k stars 193 forks source link

Segmentation fault #124

Open chrisburr opened 4 months ago

chrisburr commented 4 months ago

I've seen a segfault in a larger application which I've managed to simplify down to this reproducer:

$ LD_PRELOAD=$PWD/target/release/libbytehound.so ldd /usr/bin/bash
/usr/bin/ldd: line 98: 444613 Segmentation fault      (core dumped) ( output=$(eval $add_env '"$@"' 2>&1; rc=$?; printf 'x'; exit $rc); rc=$?; printf '%s' "${output%x}"; return $rc )
fish: Job 1, 'LD_PRELOAD=$PWD/target/release/…' terminated by signal SIGSEGV (Address boundary error)

The use of /usr/bin/bash doesn't matter, passing anything here has a similar effect.