www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10671] New: Stack unwinding is insufficient on Linux x86_64. (-fomit-frame-pointer)


           Summary: Stack unwinding is insufficient on Linux x86_64.
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P2
         Component: druntime
        AssignedTo: nobody puremagic.com
        ReportedBy: Marco.Leise gmx.de

--- Comment #0 from Marco Leise <Marco.Leise gmx.de> 2013-07-19 04:20:32 PDT ---
Here is the catch:

Druntime's stack unwinding code relies on frame pointers.

Optimized gcc code (at any opt. level > 0) doesn't contain frame pointers.
(Unless the architecture requires it for debugging, like x86 or
-fno-omit-frame-pointer is given.)

That means that using any Linux x86-64 libraries that take callbacks into D
results in broken exception handling! Unless the maintainers of a specific
distribution added -fno-omit-frame-pointer. You cannot expect that on Gentoo
for example.

Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 19 2013