Open
Bug 1711093
Opened 5 years ago
Updated 4 years ago
Tool Idea: Offsets Database for integration into crash reprorts
Categories
(Developer Infrastructure :: Source Code Analysis, enhancement, P3)
Developer Infrastructure
Source Code Analysis
Tracking
(Not tracked)
NEW
People
(Reporter: mgaudet, Unassigned)
References
(Blocks 1 open bug)
Details
(Filing here as a guess, due to clang plugin suggestion)
High Level Description
A clang-plugin that creates on a per-file basis a list of symbols and offsets, for use in crash investigation.
Example Hypothetical Usage
Looking at a crash signature, I see a whole bunch of crashes at offset 0x38. It's not an unreasonable guess that what's happening is somewhere we're doing p->field, where p is null, and field is at offset 0x38. I know the filename, Foo.cpp so I go look at the table of offsets:
| Filename | Type | Field | Offset |
|---|---|---|---|
| Foo.cpp | Bar | a | 0x0 |
| Foo.cpp | Bar | b | 0x20 |
| Foo.cpp | Bar | c | 0x38 |
| Foo.cpp | Bar | d | 0x42 |
Hmm. This seems like a possible dereference of a Bar pointer, at field c
(IMO this could be a fun project for a student)
Comment 1•5 years ago
|
||
This sounds interesting. The results of such a tool could potentially be used for improvements to Clouseau.
Blocks: 1711487
Updated•4 years ago
|
Severity: -- → S3
Priority: -- → P3
Updated•4 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•