Comments (4)
The symbolization code in pprof currently only supports ELF binaries (Linux).
It should be easy to update it to work on Mac OS. The main issue is examining the binary to identify any adjustments (if any) that need to be applied to stack addresses before passing them to a symbolization tool (eg addr2line or llvm-symbolize).
I do not have cycles to work on this on the immediate term, but patches are welcome.
from pprof.
This should be fixed, or at least improved at the current head. Please try it out and reopen if appropriate.
from pprof.
I'm hitting similar issue on OS X El Capitan 10.11.6:
Local symbolization failed for libsystem_kernel.dylib: unrecognized binary: /usr/lib/system/libsystem_kernel.dylib
Local symbolization failed for libc++.1.dylib: unrecognized binary: /usr/lib/libc++.1.dylib
Local symbolization failed for libsystem_pthread.dylib: unrecognized binary: /usr/lib/system/libsystem_pthread.dylib
Local symbolization failed for libsystem_platform.dylib: unrecognized binary: /usr/lib/system/libsystem_platform.dylib
Local symbolization failed for libsystem_malloc.dylib: unrecognized binary: /usr/lib/system/libsystem_malloc.dylib
Local symbolization failed for libdyld.dylib: unrecognized binary: /usr/lib/system/libdyld.dylib
Local symbolization failed for libsystem_c.dylib: unrecognized binary: /usr/lib/system/libsystem_c.dylib
Local symbolization failed for libsystem_m.dylib: unrecognized binary: /usr/lib/system/libsystem_m.dylib
After a quick change in pprof code I can see the error that's being thrown when trying to open by macho:
Local symbolization failed for libsystem_kernel.dylib: Parsing /usr/lib/system/libsystem_kernel.dylib: invalid magic number in record at byte 0x0
Local symbolization failed for libc++.1.dylib: Parsing /usr/lib/libc++.1.dylib: invalid magic number in record at byte 0x0
Local symbolization failed for libsystem_pthread.dylib: Parsing /usr/lib/system/libsystem_pthread.dylib: invalid magic number in record at byte 0x0
Local symbolization failed for libsystem_platform.dylib: Parsing /usr/lib/system/libsystem_platform.dylib: invalid magic number in record at byte 0x0
Local symbolization failed for libsystem_malloc.dylib: Parsing /usr/lib/system/libsystem_malloc.dylib: invalid magic number in record at byte 0x0
Local symbolization failed for libdyld.dylib: Parsing /usr/lib/system/libdyld.dylib: invalid magic number in record at byte 0x0
Local symbolization failed for libsystem_c.dylib: Parsing /usr/lib/system/libsystem_c.dylib: invalid magic number in record at byte 0x0
Local symbolization failed for libsystem_m.dylib: Parsing /usr/lib/system/libsystem_m.dylib: invalid magic number in record at byte 0x0
from pprof.
- Reproduced on recent master of gperftools + Go pprof on C++ binary.
- Can't get main executable's symbols in the profile either, both with
-g
or with-ggdb
.
from pprof.
Related Issues (20)
- Patch CVE for d3-color HOT 1
- make sources/sinks a different color HOT 2
- Canvas size related to initial size of a graph, should use the full space
- New flamegraph: 'hover shows details on the top' from old flame-graph missing HOT 2
- Nice to have: 'grab' cursor when dragging the graph HOT 2
- How to load debug symbols from separately installed `-dbgsym` packages? HOT 7
- don't need profile after convert HOT 1
- Pprof does not resolve symbols HOT 2
- [Help Needed] How to Accelerate `pprof -top` Command Execution for Profiling Data? HOT 2
- extended dependencies because of browser test HOT 4
- panics if profile is not found HOT 1
- The calling relationship of CPU profile results is wrong HOT 3
- New flamegraph cannot copy strings
- Unknown heap traces HOT 1
- list [-e] [-f format] [-json] [build flags] HOT 1
- list [-e] [-f format] [-json] [build flags] ...
- How to efficiently compress pprof files? HOT 1
- Add release tag HOT 1
- Symbolization seems to fail with buildID mismatch error when a profiling target application is run by invoking a linker directly HOT 1
- How to implement `/pprof/symbol` API for RelWithDebInfo ELF . HOT 3
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 pprof.