I have a Java application writing to System.out
from time to time. I also have some logging turned on (-XX:+PrintCompilation -verbose:gc
...) which is implemented natively in the VM. Both the native logging and calls to System.out
eventually make a printf
call to stdout
.
However, on Mac OS (and just on this one, not on Linux and Windows) parts of the printed messages of the Java application are missing! Meaning I have a call like System.out.println("Valid run.")
and it just prints Valid ru
and the immediately one of the log messages of the VM. However, the missing n.
is nowhere to be found.
I know the C standard does not specify printf
to be atomic, however I though it is, or at least even if not, the missing n.
must be somewhere else and not completely missing. Any ideas what this might be or how to debug this further?