Closed
Bug 59136
Opened 25 years ago
Closed 25 years ago
make linux stack trace format addr2line-friendly
Categories
(Core :: XPCOM, defect, P3)
Tracking
()
RESOLVED
FIXED
mozilla0.9
People
(Reporter: dbaron, Assigned: dbaron)
Details
Attachments
(1 file)
|
902 bytes,
patch
|
Details | Diff | Splinter Review |
I'd like to make the linux stack-trace format generated by
nsTraceRefcnt::WalkTheStack have a little more information so that one can get
line-numbers out of it using addr2line (and possibly post-process the whole
trace with a program that uses addr2line, like leaksoup does).
I'll attach a patch that adds [library_name +offset] to the end of each line in
the stack trace. You can then use the command `addr2line -C -f -e library_name
+offset` to get the correct function (including statics!) and the line number.
The patch also fixes a printf warning from gcc in UNKNOWN printing that I
introduced a while back, so that nsTraceRefcnt compiles without warnings.
cc:ing folks who I know have some interest in the stack trace format to get
feedback on this change.
| Assignee | ||
Comment 1•25 years ago
|
||
| Assignee | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9
Comment 2•25 years ago
|
||
These changes look fine to me.
Comment 3•25 years ago
|
||
r=waterson
Comment 4•25 years ago
|
||
| Assignee | ||
Comment 5•25 years ago
|
||
Fix checked in 2000-12-02 08:10 -0800.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•