www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - Compilation freezes computer

reply Andrey <saasecondbox yandex.ru> writes:
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)
Dec 11 2020
next sibling parent reply rikki cattermole <rikki cattermole.co.nz> writes:
Have you run that with dmd as well?
Dec 11 2020
parent Andrey <saasecondbox yandex.ru> writes:
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.
Dec 11 2020
prev sibling parent reply Jacob Carlborg <doob me.com> writes:
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
Dec 11 2020
parent Andrey <saasecondbox yandex.ru> writes:
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!
Dec 12 2020