Closed Bug 59136 Opened 25 years ago Closed 25 years ago

make linux stack trace format addr2line-friendly

Categories

(Core :: XPCOM, defect, P3)

x86
Linux
defect

Tracking

()

RESOLVED FIXED
mozilla0.9

People

(Reporter: dbaron, Assigned: dbaron)

Details

Attachments

(1 file)

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.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9
These changes look fine to me.
r=waterson
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.

Attachment

General

Created:
Updated:
Size: