Comments (4)
Thanks for reporting this, it may explain some strange reports from before!
hasRichHeader checks, as the name implies, for presence of rich header which MTuner assumes was generated by MSVC. This is not 100% reliable as it is possible to remove rich header from PE, more info here: https://bytepointer.com/articles/the_microsoft_rich_header.htm
So even without seeing your exe, I guess some part of your build process removes rich header from it. I'd be happy to replace this with something more reliable - suggestions welcome! :)
from mtuner.
Would be curious to know what return statement in hasRichheader is triggered with your exe.
from mtuner.
It goes through the whole loop to determine roffset, doesn't find the magic value 0x68636952, and returns 0. https://github.com/milostosic/rdebug/blob/master/src/symbols.cpp#L84
Here's the values it did read:
0x0eba1f0e
0xcd09b400
0x4c01b821
0x685421cd
0x70207369
0x72676f72
0x63206d61
0x6f6e6e61
0x65622074
0x6e757220
0x206e6920
0x20534f44
0x65646f6d
0x0000242e
suggestions welcome! :)
Unfortunately I do not. I've never delved into the internals of the PE file format before. :( But here's what ChatGPT suggested? :) https://chat.openai.com/share/1a419c22-24e9-4312-8ed0-c1e3f92f103d
from mtuner.
The 'rich header' appears to be an artifact of link.exe. Binaries linked with lld-link.exe (despite objects being compiled with msvc) do not seem to possess it.
from mtuner.
Related Issues (20)
- Header only library HOT 1
- Timeline selection is not filtering views HOT 1
- Call Stack Tree search or filter Name or File HOT 1
- Show allocation bytes in Call Stack Tree HOT 1
- How to build on MSYS2 MINGW64? HOT 1
- Memory Usage and Peak Usage in Call Stack Tree HOT 1
- how can I pass the argmuments using graphics interface? HOT 1
- Missing MTuner inject binaries HOT 6
- Release with PDBs HOT 7
- Symbol Paths Not Respected?
- symsrv.dll missing HOT 1
- Failing to load PDB from Symbol Server HOT 3
- Where does it expect pdb to be? HOT 6
- about addToStackTraceTree code HOT 1
- How to run mtuner for android application? HOT 1
- sdk with android has some problem HOT 1
- [Feature request] Rust symbol demangling HOT 3
- Not loading msvc pdb's HOT 3
- Profiling Edge Browser
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 mtuner.