Comments (10)
In case someone want to look :
malt/src/lib/core/SymbolSolver.cpp
Line 280 in 27546ea
from malt.
Seems to have improvement with -j .text
on addr2line
but that does not solve all.
from malt.
That should be due to KASLR, solution might be to inspirate from what is one in : https://github.com/torvalds/linux/blob/master/scripts/faddr2line
from malt.
Solution might be coming from here : https://jvns.ca/blog/2018/01/09/resolving-symbol-addresses/
At least in code on my exemple it works by doing this by hand :
addr2lineCmd << ' ' << (void*)(((size_t)it->first - (size_t)procMapEntry->lower) + (size_t)0x402270);
With 0x402270
coming from readelf -h simple-case-finstr-linked
or objdump (Entry point address or vaddr).
from malt.
This should also fix on other distro which now also enable by default fPIE and ASLR
from malt.
Damn, still get issue on Gentoo, there is a gap with what happen on Centos/Redhat.
On Centos/Redhat, this is OK for the main binary:
addr2lineCmd << ' ' << (void*)(((size_t)it->first - (size_t)procMapEntry->lower));
On Gentoo I need:
addr2lineCmd << ' ' << (void*)(((size_t)it->first - (size_t)procMapEntry->lower + elfVaddr));
Need to find a way to automatically detect case or add an option for last resort.
Possibility:
- OS version checking (not nice)
- Test the two case and check which one return a valid line (also not nice, can return another location on big binaries).
- really understand (would be nice).
from malt.
Also have issue on Ubuntu 19/04
from malt.
Other infos related : https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=860394
from malt.
One can temporarily solve the issue vy --no-pie the compilation of the executables to be profiled. But that's not a real solution for long term.
from malt.
Finally found a solution by looking here : https://stackoverflow.com/questions/55066749/how-to-find-load-relocation-for-a-pie-binary
from malt.
Related Issues (20)
- Document that we can also override Helpers::getFileId(void ) directly in the exec for MPI
- Provide a way to access profile + sources remote via ssh
- Add an option to not instrument some child exe
- Check spinlock usage on others threads while main is solving symboles HOT 2
- Merge the profiles of a singe node
- cannot alloc memory HOT 2
- "own" vs "total" HOT 1
- LD_PRELOAD seg fault HOT 9
- Track cudaHostAlloc and hipHostMalloc HOT 1
- List all allocators .so in the GUI (custom)
- PAGE_SIZE undefined on some system
- Introduce CI in github action to validate patches
- Test distributions HOT 1
- In web GUI, issue with relatives paths HOT 1
- Evaluate portability on MacOSX
- Restore & update packaging scripts
- Possible hang with OpenMP HOT 3
- Add "override" C++ keyword on herited classes
- NULL call site address in timeline HOT 1
- Update README to show how to use unix socket instead of port in webview
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from malt.