Comments (8)
The error reported comes from scroll:
ElfError {
source: Some(
Scroll(
TooBig {
size: 577023735145496576,
len: 12039064,
},
),
),
},
The error comes straight from the call to the elf parser:
symbolic/symbolic-debuginfo/src/elf.rs
Lines 73 to 78 in 98e1b7a
My hunch is that this is a bug in goblin.
from symbolic.
A reloc section is failing to parse:
https://github.com/m4b/goblin/blob/15e99d00407f8d9e184a7d03cb1ed4f89a5eeecf/src/elf/mod.rs#L285-L286
[src/elf/mod.rs:286] dyn_info.jmprel = 0
[src/elf/mod.rs:286] dyn_info.pltrelsz = 577023735145496576
Evidently pltrelsz
seems wrong. I wonder if goblin reads it wrong or if the values are bad. Generally this is a stupid case because if the file is bad the parser currently assumes that the entire file is trash where in reality just a part of it is :(
from symbolic.
Note that this started happening only recently, it might have been triggered by a change Fedora's tooling. The ELF file could be buggy for all I know, but most likely it's using some new fancy stuff; I've already see it happen with GNU DWARF extensions and the like in the past.
from symbolic.
A very brief look into this would indicate that the file itself is bad but we should do some more digging. That said I think this should be filed against goblin.
@jan-auer didn't we already have similar cases before where parts of the file were bad but we kept on processing the file to some degree?
from symbolic.
Yes, we had that, but if we fail to parse the header we always had to bail out. We could argue that goblin
shouldn't parse relocations eagerly, but in the past I've just tried to fix the issue upstream.
from symbolic.
I tried reproducing this, and it looks like time and dependency updates solved this problem.
Running object_debug
gives me this:
Inspecting .../libc-2.32.9000.so.debug
File format: elf
Objects:
- x86_64: 1298b619-35bf-d301-854f-be7bbb08c80d
code id: 19b69812bf3501d3854fbe7bbb08c80d1ce8c9dc
object kind: debug companion
load address: 0x0
symbol table: false
debug info: true
unwind info: false
is malformed: true
And symcache_debug
:
SymCache {
version: 8,
debug_id: DebugId {
uuid: "1298b619-35bf-d301-854f-be7bbb08c80d",
appendix: 0,
},
arch: Amd64,
files: 1504,
functions: 3747,
source_locations: 132139,
ranges: 129035,
string_bytes: 73231,
}
So by now we process this just fine 🎉
from symbolic.
Oh wait a second… It says is malformed: true
, though I can still construct a symcache from it 🤔
from symbolic.
The is malformed
check was introduced in #434, the purpose of which is to be as lenient as possible when parsing ELF files, which I guess proves the entire point of that PR :-)
The original goal of being able to process the file into a SymCache works, so all is good.
from symbolic.
Related Issues (20)
- Consider changing `DebugSession::source_by_path()` to `&mut self` HOT 2
- Git release 11.0.0 was not merged back into master HOT 1
- Unable to apply DIF to events from MacOS HOT 2
- Bad line record addresses in Breakpad sym files can cause problems HOT 2
- Corrupted dwarf debug data when include_sources=true HOT 8
- Embedded symbols/sources not found HOT 9
- Portable PDB reader row-size broken for MAUI HOT 3
- How to deal with HiddenSequencePoints in PortablePDB
- Incorrect uuid dependency in symbolic-ppdb HOT 2
- RUSTSEC-2021-0153: `encoding` is unmaintained HOT 1
- How to build linux python package on macos? HOT 1
- Symbolic cannot find unwind information HOT 5
- Flutter web symbolication uses `scope` instead of `name` but the `name` in some cases if not all is better HOT 1
- How to get list of all objective C classes from symcache of an ios app
- How to use `symbolic` to symbolicate a stack trace? HOT 7
- Demangle stack trace in Python
- Add SourceLink support to SourceBundles HOT 1
- Symbolicate runtime types for Flutter web events HOT 3
- Deduplicate PDB function entries
- symbolic-debuginfo assumes that PDB names in codeview debug information are as long as the array holding them
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 symbolic.