Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing separate debuginfos, use: debuginfo-install glibc-2.17-222.el7.x86_64 #42

Open
dingjingzhen opened this issue Nov 21, 2018 · 2 comments

Comments

@dingjingzhen
Copy link

@agentzh hi,when i use sample-bt-leaks.sxx ,the error is as follows:

[root@Thor stapxx]# ./samples/sample-bt-leaks.sxx -x 13007 --arg time=5 -D STP_NO_OVERLOAD -D MAXMAPENTRIES=10000 > a.bt
Found exact match for libc: /usr/lib64/libc-2.17.so
WARNING: cannot find module /usr/lib64/libc-2.17.so debuginfo: No DWARF information found [man warning::debuginfo]
semantic error: while processing probe process("/usr/lib64/libc-2.17.so").function("malloc").return from: process("/usr/lib64/libc-2.17.so").function("malloc").return

semantic error: type definition 'size_t' not found in '/usr/lib64/libc-2.17.so': operator '@cast' at :57:28
source: p = ptr - &@cast(0, "size_t")[1]
^

Missing separate debuginfos, use: debuginfo-install glibc-2.17-222.el7.x86_64
Pass 2: analysis failed. [man error::pass2]
Number of similar warning messages suppressed: 35.
Rerun with -v to see them.

I have use "rpm -ivh glibc-2.17-222.el7.x86_64.rmp" to install glibc,can you give me some advice?

@agentzh
Copy link
Member

agentzh commented Nov 21, 2018

@dingjingzhen It clearly asks you to run the command "debuginfo-install glibc-2.17-222.el7.x86_64" to install the debuginfo package for that glibc package, not the glibc package itself.

The package name should be something like glibc-debuginfo-2.17-222.el7.x86_64.

@dingjingzhen
Copy link
Author

@agentzh Thank you,i have resolved this question,i intalled a wrong package.
But now there is another quetion ,when i use this tool ,always get a wrong flame graph.when it show WARNING: free misses: 1453,it‘s ok,but at sometime,it not show this warning,and the flame graph obvious wrong.
stapxx/samples/sample-bt-leaks.sxx -x $1 --arg time=60 --skip-badvars -D MAXSKIPPED=10000000 -D MAXMAPENTRIES=400000 -D STP_NO_OVERLOAD > a.bt.
How can i get correct flame graph more stable?
I'm sorry to trouble you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants