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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Sep 10 01:20:06 UTC 2018


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

--- Comment #18 from JR <zorael at gmail.com> ---
On CircleCI build servers it has started to segfault even in debug mode[1].
Travis is still okay and I cannot reproduce it locally.

> [...]
> Compiling source/kameloso/objmanip.d...
> Compiling source/kameloso/plugins/admin.d...
> Compiling source/kameloso/plugins/automode.d...
> Compiling source/kameloso/plugins/bashquotes.d...
> Compiling source/kameloso/plugins/chanqueries.d...
> Compiling source/kameloso/plugins/chatbot.d...
> Segmentation fault
> dmd failed with exit code 139.
> Exited with code 2

(It has to be built with --mode=singleFile there, or else the process gets
killed due to high memory usage.)

gdb showed it to be TemplateInstance::needsCodegen(), as before.

Modifying dub.json to make it compile with -allinst lets it successfully build,
but it will then instead fail to link. This may be Issue 19123 - -allinst gives
undefined reference linker errors[2].


[1]: https://circleci.com/gh/zorael/kameloso/547
[2]: https://issues.dlang.org/show_bug.cgi?id=19123

--


More information about the Digitalmars-d-bugs mailing list