#743409 google-perftools: Reports strcmp() as __nss_hosts_lookup()

Package:
google-perftools
Source:
google-perftools
Submitter:
Julian Andres Klode
Date:
2023-07-10 17:36:06 UTC
Severity:
normal
Tags:
#743409#5
Date:
2014-04-02 12:35:18 UTC
From:
To:
I compiled the program below and ran it with google-pprof
using
export LD_PRELOAD="/usr/lib/libprofiler.so.0:$LD_PRELOAD"
export CPUPROFILE="/tmp/prof.out"

and then analysed it using

$ google-pprof ./a.out  /tmp/prof.out  --text
Using local file ./a.out.
Using local file /tmp/prof.out.
Removing killpg from all stack traces.
Total: 203 samples
     196  96.6%  96.6%      196  96.6% __nss_hosts_lookup
       7   3.4% 100.0%      203 100.0% main
       0   0.0% 100.0%      203 100.0% __libc_start_main
       0   0.0% 100.0%      203 100.0% _start

#743409#10
Date:
2015-08-16 17:17:36 UTC
From:
To:
Hi.

Upstream maintainer here. I've seen some similar issues myself which
look like something with debug info (pprof is getting function names
from addr2line tool).

I'll investigate further. You can track my progress at matching
upstream bug: https://github.com/gperftools/gperftools/issues/1