The method of Filechanely.map() would cause the JVM crash

Alan Bateman Alan.Bateman at oracle.com
Mon Aug 12 09:59:02 UTC 2019


On 12/08/2019 10:49, 邮件 wrote:
> Hi, all
> When using OpenJDK 1.8 8u92, we found that the method of 
> Filechanely.map() would cause the JVM crash.
> And then we found a solution in 
> :https://bugs.openjdk.java.net/browse/JDK-8168628.
> To verify the correctness of the solution,we had some tests besed in 
> OpenJDK8 8u202.Unfortunately,
> the problem was not well solved,the JVM crash still 
> happened(Attachment1.rar).And then,
> we tested it again in OpenJDK11,the JVM crash still happened too,this 
> is the crash log:Attachment2.rar.
> So,the solution in: https://bugs.openjdk.java.net/browse/JDK-8168628
> and related can not solve this problem thoroughly until now.
> Here is the test case we provided:crash-demo.rar

There were several issues and side effects with JDK-8168628 so the 
changes had to be backed out. The underlying issue was the lack of 
memory guards on bulk operations and this has been fixed for JDK 14 via 
JDK-8191278. I realize you are testing with jdk8u builds but I think it 
would be useful if you could try the latest JDK 14 EA build to makes 
sure that the issues you are seeing no longer exist.

-Alan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20190812/4ecdaed2/attachment.html>


More information about the nio-dev mailing list