dotnet/roslyn

csc and vbc don't detect recursive response files

オープン

#5,874 opened on 2015/10/11

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)C# (4,257 件のフォーク)batch import
Area-CompilersBughelp wanted

Repository metrics

Stars
 (20,414 個のスター)
PR merge metrics
 (平均マージ 6d 17h) (30d で 256 merged PRs)

説明

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).

コントリビューターガイド