[Issue 18026] Stack overflow in ddmd/dtemplate.d:6241, TemplateInstance::needsCodegen()

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 7 15:34:32 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=18026

--- Comment #19 from JR <zorael at gmail.com> ---
Small update.

I no longer experience this with the dmd and ldc from the Arch/Manjaro
repository, even when checking out the old `overflow` branch used in the
original report.

I do experience it when I build dmd myself (with Digger). It is not possible
for me to build and use my own dmd.

> [...]
> #58123 0x00000000006344e2 in TemplateInstance::needsCodegen() (this=0x7fff5d89b910) at src/dmd/dtemplate.d:6265
> #58124 0x00000000006344e2 in TemplateInstance::needsCodegen() (this=0x7fff5d89c2b0) at src/dmd/dtemplate.d:6265
> #58125 0x00000000006347ca in TemplateInstance::needsCodegen() (this=0x7ffff2acf3b0) at src/dmd/dtemplate.d:6352
> #58126 0x000000000078be89 in toObjFile::ToObjFile::visit(TemplateInstance*) (this=0x7fffffffa838, ti=0x7ffff2acf3b0) at src/dmd/toobj.d:829
> #58127 0x00000000006377ba in TemplateInstance::accept(Visitor*) (this=0x7ffff2acf3b0, v=0x7fffffffa838) at src/dmd/dtemplate.d:7488
> #58128 0x000000000078ac13 in toObjFile(Dsymbol*, bool) (ds=0x7ffff2acf3b0, multiobj=false) at src/dmd/toobj.d:1027
> #58129 0x0000000000777352 in genObjFile(Module*, bool) (m=0x7ffff7b331f0, multiobj=false) at src/dmd/glue.d:420
> #58130 0x00000000006d85aa in dmd.mars.tryMain(ulong, const(char)**, ref dmd.globals.Param) (params=..., argv=0x7fffffffcef8, argc=112) at src/dmd/mars.d:696
> #58131 0x00000000006d9571 in D main (_param_0=...) at src/dmd/mars.d:972

Has there been any changes since last? Having a compiler that does work is
comforting, but also discomforting to know it may break when it feels like it.

--


More information about the Digitalmars-d-bugs mailing list