dotnet/roslyn

csc and vbc don't detect recursive response files

Open

#5.874 aberto em 11 de out. de 2015

Ver no GitHub
 (0 comments) (0 reactions) (0 assignees)C# (4.257 forks)batch import
Area-CompilersBughelp wanted

Métricas do repositório

Stars
 (20.414 stars)
Métricas de merge de PR
 (Mesclagem média 6d 17h) (256 fundiu PRs em 30d)

Description

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

Guia do colaborador