[Issue 1230] New: std.math.poly asm segfaults

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat May 12 12:59:03 PDT 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1230

           Summary: std.math.poly asm segfaults
           Product: DGCC aka GDC
           Version: 0.23
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: dvdfrdmn at users.sf.net
        ReportedBy: larsivar at igesund.net


The std.math.poly function segfaults on Linux. Can be tested by running the
unittests for that module. The unittest passes if the asm block is disabled.

The asm works fine with DMD (no segfaults), but Don Clugston says: 
"It's clear that the asm code for poly() is buggy - it assumes a frame pointer
in EBP, but the ABI spec does not mandate the use of frame pointers."

Tested with GDC 0.23 and latest svn.

The issue has a corresponding ticket for Tango,
http://www.dsource.org/projects/tango/ticket/467


-- 



More information about the D.gnu mailing list