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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat May 26 12:23:19 UTC 2018


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

--- Comment #7 from JR <zorael at gmail.com> ---
It hit again on dmd 2.080.0 and ldc 1.9.0. The commit that made it sneak back
in was literally just this:

> -    plugin.setEvent = event;
> +    plugin.currentPeekType = AdminPlugin.PeekType.set;
> +    IRCEvent mutEvent = event;
>      plugin.state.mainThread.send(ThreadMessage.PeekPlugins(),
> -        cast(shared IRCPlugin)plugin);
> +        cast(shared IRCPlugin)plugin, mutEvent);
>  }

Before that it works, after that it segfaults. I'll have to change my CI
scripts so they only test debug mode again.

> zorael at xps ~/src/kameloso [master] $ dub build -b plain
> Performing "plain" build using /usr/bin/dmd for x86_64.
> requests 0.7.4: target for configuration "std" is up to date.
> kameloso 1.0.0-rc.1+commit.13.g9bb032c: building configuration "posix"...
> /usr/bin/dmd failed with exit code -11.

I haven't made a new attempt at reducing it yet, but it's not like I can
produce something that looks like a reduced bug. All I can do is lessen the
number of lines needed to compile and still get it to surface.

Do bounties work? I'd file one for this but not sure if people read those.

--


More information about the Digitalmars-d-bugs mailing list