Thread overview
Compilation freezes computer
Dec 11, 2020
Andrey
Dec 11, 2020
rikki cattermole
Dec 11, 2020
Andrey
Dec 11, 2020
Jacob Carlborg
Dec 12, 2020
Andrey
December 11, 2020
Hello,
The code:
> import std.algorithm.searching;
> import std.stdio;
> import std.meta;
> import std.algorithm.sorting : sort;
> 
> void main()
> {
>     static immutable test = [
> 		"ια"w, "ιά", "ιο", "ιό", "ιε", "ιέ", "ιυ", "ιύ", "ιι", "ιί", "ιω", "ιώ", "ιϊ", "ιΐ", "ιϋ", "ιΰ", "ιη", "ιή", "ιου", "ιού", "ιοι", "ιοί", "ιει", "ιεί", "ιαι", "ιαί", "ιυι", "ιυί",
> 		"ηα", "ηά", "ηο", "ηό", "ηε", "ηέ", "ηυ", "ηύ", "ηι", "ηί", "ηω", "ηώ", "ηϊ", "ηΐ", "ηϋ", "ηΰ", "ηη", "ηή", "ηου", "ηού", "ηοι", "ηοί", "ηει", "ηεί", "ηαι", "ηαί", "ηυι", "ηυί",
> 		"υα", "υά", "υο", "υό", "υε", "υέ", "υυ", "υύ", "υι", "υί", "υω", "υώ", "υϊ", "υΐ", "υϋ", "υΰ", "υη", "υή", "υου", "υού", "υοι", "υοί", "υει", "υεί", "υαι", "υαί", "υυι", "υυί"
> 	].sort!`a.length > b.length`().release();
> 
>     auto qaz = "οιιοιιοιιεεεείί"w.endsWith(aliasSeqOf!test);
> 
>     qaz.writeln;
> }

When I try to build it on Windows 10, LDC begins to eat a lot of memory (load ~ 95 - 100%) and after some time Windows freezes - hard reboot is needed to reset.

On run.dlang.io I get "server error".

My LDC: 1.24.0-beta1 (DMD v2.094.0, LLVM 11.0.0)
December 11, 2020
Have you run that with dmd as well?
December 11, 2020
On Friday, 11 December 2020 at 08:37:04 UTC, rikki cattermole wrote:
> Have you run that with dmd as well?

I don't have DMD on local computer.
But on run.dlang.io with DMD I also get server error.
December 11, 2020
On 2020-12-11 09:34, Andrey wrote:

> When I try to build it on Windows 10, LDC begins to eat a lot of memory (load ~ 95 - 100%) and after some time Windows freezes - hard reboot is needed to reset.
> 
> On run.dlang.io I get "server error".
> 
> My LDC: 1.24.0-beta1 (DMD v2.094.0, LLVM 11.0.0)

I can reproduce this with DMD 2.094.0 on macOS as well. Seems to be a frontend issue. Some infinite recursion. You're probably running out of memory. For me the process is killed after consuming over 22 GB out of my 16 GB :). I've reported the issue here [1].

[1] https://issues.dlang.org/show_bug.cgi?id=21473

-- 
/Jacob Carlborg
December 12, 2020
On Friday, 11 December 2020 at 19:33:36 UTC, Jacob Carlborg wrote:
> On 2020-12-11 09:34, Andrey wrote:
>
>> When I try to build it on Windows 10, LDC begins to eat a lot of memory (load ~ 95 - 100%) and after some time Windows freezes - hard reboot is needed to reset.
>> 
>> On run.dlang.io I get "server error".
>> 
>> My LDC: 1.24.0-beta1 (DMD v2.094.0, LLVM 11.0.0)
>
> I can reproduce this with DMD 2.094.0 on macOS as well. Seems to be a frontend issue. Some infinite recursion. You're probably running out of memory. For me the process is killed after consuming over 22 GB out of my 16 GB :). I've reported the issue here [1].
>
> [1] https://issues.dlang.org/show_bug.cgi?id=21473

Thank you!