www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11870] New: replace dynamic symbol table (--export-dynamic) for backtraces

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11870

           Summary: replace dynamic symbol table (--export-dynamic) for
                    backtraces
           Product: D
           Version: D2
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: nobody puremagic.com
        ReportedBy: code dawg.eu


--- Comment #0 from Martin Nowak <code dawg.eu> 2014-01-05 07:13:13 PST ---
Currently we rely on the dynamic symbol table to generate stack traces.
This only works with exported functions of an executable (i.e.
visibility=default) and requires the -L--export-dynamic argument.

One alternative would be to use DWARF instead. It would also allow to get line
numbers, but is only available in debug builds.

A better compromise might be to provide MiniDebugInfo which is a compressed
symbol table in .gnu_debugdata.
https://sourceware.org/gdb/onlinedocs/gdb/MiniDebugInfo.html

related:

bug 1001 - print stack trace (in debug mode) when program die

C++ DWARF backtrace library https://github.com/bombela/backward-cpp

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 05 2014
parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11870



--- Comment #1 from Martin Nowak <code dawg.eu> 2014-03-27 07:56:36 PDT ---
Forum discussions:
http://forum.dlang.org/thread/eahjyebbtjynlivijqtn forum.dlang.org
http://forum.dlang.org/thread/vwwvhcnhnxbenvtytsxf forum.dlang.org

Backtrace-d library using addr2line:
http://forum.dlang.org/thread/henfsgzwkisvafafslzr forum.dlang.org
http://code.dlang.org/packages/backtrace-d

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 27 2014