dotnet/roslyn

csc and vbc don't detect recursive response files

Open

#5.874 geöffnet am 11. Okt. 2015

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C# (4.257 Forks)batch import
Area-CompilersBughelp wanted

Repository-Metriken

Stars
 (20.414 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 6T 17h) (256 gemergte PRs in 30 T)

Beschreibung

As a simple repro, create a minimal response file, test.rs, which just refers to itself:

@test.rs

Now run vbc @test.rs or csc @test.rs and observe what appears to be an infinite loop (1 CPU core spins at 100% and memory usage grows unchecked).
The native compilers (version 4.6.0081.0 on my machine) under Windows\Microsoft.NET\Framework detect when a response file is specified multiple times, recursively or otherwise, and show an error (although the native vbc subsequently crashes).

Contributor Guide