[Bug 157] using -O{1,2,3} together with -g causes ICE (seg fault)

via D.gnu d.gnu at puremagic.com
Thu Aug 3 23:39:40 PDT 2017


https://bugzilla.gdcproject.org/show_bug.cgi?id=157

--- Comment #12 from Johannes Pfau <johannespfau at gmail.com> ---
> Oh, so if you compile the above test with 2.074 PR you get an ICE?

Not with the test case you posted, but for some reason I also don't get
undefined toChars symbols with that test case.

The test case archive I attached produces a ICE backtrace like the one in the
first post and discussed in this bug report in dwarf2out.c. The same thing
happens when compiling 2.074 std.net.curl with gcc-4.9. I suspect this is the
same bug as the one you posted to the frontend issue tracker. It only happens
with an undefined toChars and is therefore worked around by -femit-templates.

It's a little more complicated to reproduce though: As mentioned the failing
code path in dwarf2out is only triggered when toChars is inlined somewhere.
dwarf2out then tries to generate some debug info for this function, but fails
to finish up the incomplete debug info as we do not emit the function. It then
crashes on the incomplete debug info.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the D.gnu mailing list