Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenJDK Package/PackageFromManifest UncheckedIOException NoSuchFileException omrvmem_ #20782

Open
pshipton opened this issue Dec 9, 2024 · 9 comments

Comments

@pshipton
Copy link
Member

pshipton commented Dec 9, 2024

https://openj9-jenkins.osuosl.org/job/Test_openjdk21_j9_sanity.openjdk_aarch64_linux_OMR_testList_0/192
jdk_lang_0
java/lang/Package/PackageFromManifest.java

20:21:08  java.io.UncheckedIOException: java.nio.file.NoSuchFileException: ./omrvmem_002594318_Ej4ECJ
20:21:08  	at java.base/java.nio.file.FileTreeIterator.fetchNextIfNeeded(FileTreeIterator.java:87)
20:21:08  	at java.base/java.nio.file.FileTreeIterator.hasNext(FileTreeIterator.java:103)
20:21:08  	at java.base/java.util.Iterator.forEachRemaining(Iterator.java:132)
20:21:08  	at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1939)
20:21:08  	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:522)
20:21:08  	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:512)
20:21:08  	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
20:21:08  	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:239)
20:21:08  	at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
20:21:08  	at jdk.test.lib.compiler.CompilerUtils.compile(CompilerUtils.java:110)
20:21:08  	at jdk.test.lib.compiler.CompilerUtils.compile(CompilerUtils.java:69)
20:21:08  	at PackageFromManifest.createTestClass(PackageFromManifest.java:149)
20:21:08  	at PackageFromManifest.setup(PackageFromManifest.java:264)
20:21:08  	at PackageFromManifest.main(PackageFromManifest.java:120)
20:21:08  	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
20:21:08  	at java.base/java.lang.reflect.Method.invoke(Method.java:586)
20:21:08  	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
20:21:08  	at java.base/java.lang.Thread.run(Thread.java:1595)
20:21:08  Caused by: java.nio.file.NoSuchFileException: ./omrvmem_002594318_Ej4ECJ
20:21:08  	at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
20:21:08  	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
20:21:08  	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
20:21:08  	at java.base/sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)
20:21:08  	at java.base/sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:171)
20:21:08  	at java.base/sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99)
20:21:08  	at java.base/java.nio.file.Files.readAttributes(Files.java:1854)
20:21:08  	at java.base/java.nio.file.FileTreeWalker.getAttributes(FileTreeWalker.java:220)
20:21:08  	at java.base/java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:277)
20:21:08  	at java.base/java.nio.file.FileTreeWalker.next(FileTreeWalker.java:374)
20:21:08  	at java.base/java.nio.file.FileTreeIterator.fetchNextIfNeeded(FileTreeIterator.java:83)
20:21:08  	... 17 more
Copy link

github-actions bot commented Dec 9, 2024

Issue Number: 20782
Status: Open
Recommended Components: comp:jit, comp:test, comp:vm

@pshipton
Copy link
Member Author

pshipton commented Feb 11, 2025

https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_aarch64_linux_Nightly_testList_0/396 - cent9-aarch64-4
jdk_lang_0
java/lang/Package/PackageFromManifest.java
Caused by: java.nio.file.NoSuchFileException: ./omrvmem_003871063_KBIHTZ

@pshipton
Copy link
Member Author

@mpirvu does this file seem familiar to you?

@mpirvu
Copy link
Contributor

mpirvu commented Feb 11, 2025

These look similar to the hidden files used as a backing for data structures that we want to disclaim. However, java code should not ask about them.

@pshipton
Copy link
Member Author

pshipton commented Feb 11, 2025

If it's a hidden file on Linux, I think it needs to start with ..
i.e. .omrvmem_003871063_KBIHTZ

@mpirvu
Copy link
Contributor

mpirvu commented Feb 11, 2025

On my system those backing files appear as
/opt/IBM/OL-24.0.0.2/liberty/usr/servers/acmeairee8/omrvmem_000219066_Ig4oyo (deleted)

@pshipton
Copy link
Member Author

I guess sometimes they get created in an unexpected place?

@mpirvu
Copy link
Contributor

mpirvu commented Feb 13, 2025

50x grinder of the failing test on the same machine: https://openj9-jenkins.osuosl.org/job/Grinder/4101/
All tests have passed.

@pshipton
Copy link
Member Author

https://openj9-jenkins.osuosl.org/job/Test_openjdk11_j9_sanity.openjdk_aarch64_linux_OMR_testList_2/228 - cent9-aarch64-3
jdk_lang_j9_1
java/lang/Package/PackageFromManifest.java
java.nio.file.NoSuchFileException: ./omrvmem_002333373_NKTUOu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants