[SERVER-3870] improve the output of backtrace Created: 15/Sep/11 Updated: 10/Dec/14 Resolved: 16/Dec/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Internal Code |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Guanqun Lu | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
linux environment |
||
| Participants: |
| Description |
|
The output of backtrace is not friendly to read. e.g. We should demangle this symbol automatically, so the output is human readable. |
| Comments |
| Comment by Matt Kangas [ 16/Dec/13 ] |
|
Dup of |
| Comment by Guanqun Lu [ 16/Sep/11 ] |
|
Yes, this doesn't help release builds. The goal of this improvement is to help developers to grasp what's wrong in the first place without using c++filt or addr2line and other tools to analyse the output. |
| Comment by Eliot Horowitz (Inactive) [ 15/Sep/11 ] |
|
Not sure this makes sense. |
| Comment by Guanqun Lu [ 15/Sep/11 ] |
|
The pull request is here: The commit is here: Demangle C++ symbols so that the output is human readable. The original backtrace looks like this: With the patch, the backtrace looks like: ./perftest(mongo::QueryPlanSet::QueryPlanSet(char const*, std::auto_ptr<mongo::FieldRangeSetPair>, std::auto_ptr<mongo::FieldRangeSetPair>, mongo::BSONObj const&, mongo::BSONObj const&, bool, mongo::BSONElement const*, bool, mongo::BSONObj const&, mongo::BSONObj const&, bool, bool)+0x214) [0x8223464] References: |