RFR: 8268361: Fix the infinite loop in next_line

UncleNine github.com+1964054+unclenine at openjdk.java.net
Tue Jun 8 16:31:20 UTC 2021


On Tue, 8 Jun 2021 08:39:21 GMT, Severin Gehwolf <sgehwolf at openjdk.org> wrote:

> > If the /proc/stat mount point is changed in container environment, the while loop may lead to 100% cpu usage.
> 
> In what way have you observed /proc/stat being changed which manifests in 100% cpu usage?

In my case, it happened in the container environment.
the /proc filesystem of the container is provided by lxcfs, but a lxcfs bug may make the /proc/stat mount point change.
It was caused by a lxcfs-3.1.2 segment fault's exit

-------------

PR: https://git.openjdk.java.net/jdk/pull/4378


More information about the serviceability-dev mailing list