[SUREFIRE-2058] Corrupted STDOUT by directly writing to native stream in forked JVM 1 with UTF-8 console logging (original) (raw)

With 3.0.0-M6 surefire and slf4j + logback, most test runs end up with:

[WARNING] Corrupted channel by directly writing to native stream in forked JVM 1.

This only affects 3.0.0-M6 (3.0.0-M5 version is working fine in test project).

After some digging, there are two different scenarios (most likely caused by the same issue):

Project with reproducible tests (for both scenarios, more in README):
https://github.com/zoltanmeze/surefire-corrupted-channel

One workaround on M6 for now is to use different charset (instead of default UTF-8) or limit message size.