Bug 18147 – Debug information limited in size

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2017-12-30T08:30:31Z
Last change time
2020-01-20T07:55:06Z
Keywords
DebugInfo, pull
Assigned to
No Owner
Creator
Richard Cattermole

Comments

Comment #0 by alphaglosined — 2017-12-30T08:30:31Z
Too large of debug information causes: Internal error: ddmd\backend\cgcv.c 213 This can be generated by code along the lines of (the GC struct): https://github.com/Devisualization/bindings/blob/master/source/opengl/devisualization/bindings/opengl/gl.d Removing -debug allows the code to build. For dub this is --build=plain. Disabling debug info would be fine in this case, however I am sure there is a better solution.
Comment #1 by remi.thebault — 2019-01-05T17:27:51Z
Also happens to me with other set of GL bindings. in debtyp_alloc (dmd/backend/dcgcv.d) there is the following assertion assert(len < 4 * 4096 - 100) which doesn't pass. In the case of my GL bindings, len is as high as 75k (vs 16284). Is there any possibility to raise this limit to 200k?
Comment #2 by dlang-bot — 2020-01-18T15:26:28Z
@rainers created dlang/dmd pull request #10733 "fix Issue 18147 - Debug information limited in size" fixing this issue: - fix Issue 18147 - Debug information limited in size create a linked list of LF_FIELDLIST to represent large structs/enums optlink doesn't like this version either, so CV4 records are now cut if too large, but no longer completely removed https://github.com/dlang/dmd/pull/10733
Comment #3 by dlang-bot — 2020-01-20T07:55:06Z
dlang/dmd pull request #10733 "fix Issue 18147 - Debug information limited in size" was merged into master: - d27ef55dd8d8e5fe7e8b37288d33a2a9ac0e017e by Rainer Schuetze: fix Issue 18147 - Debug information limited in size create a linked list of LF_FIELDLIST to represent large structs/enums optlink doesn't like this version either, so CV4 records are now cut if too large, but no longer completely removed https://github.com/dlang/dmd/pull/10733