-
Bug
-
Resolution: External
-
P4
-
None
-
17, 18, 19
-
aarch64
-
os_x
Test:
import jdk.internal.org.objectweb.asm.*;
import java.nio.file.*;
import java.io.*;
import java.util.zip.*;
class StripDebugJmodWithZip {
public static void main(String[] args) throws Exception {
Path jmodPath;
if (args.length != 0) {
jmodPath = Paths.get(args[0]);
} else {
jmodPath = Paths.get(System.getProperty("java.home"), "jmods",
"jdk.localedata.jmod");
}
System.out.println("parsing jmod " + jmodPath);
try (var zf = new ZipFile(jmodPath.toFile())) {
var entries = zf.entries();
while (entries.hasMoreElements()) {
var ze = entries.nextElement();
if (ze.isDirectory() || !ze.getName().endsWith(".class")) {
continue;
}
System.out.println("parsing class " + ze.getName());
try (var stream = zf.getInputStream(ze)) {
var reader = new ClassReader(stream);
var writer = new ClassWriter(reader, ClassWriter.COMPUTE_MAXS);
reader.accept(writer, ClassReader.SKIP_DEBUG);
} catch (IOException ioExp) {
System.err.println("failed for " + ze.getName());
throw new UncheckedIOException(ioExp);
}
}
}
}
}
The above test fails intermittently on OSX/aarch64.
[~thartmann] reproduced the test failure on OSX/aarch64 (macOS 12.0.1 (build 21A559) with a M1 CPU) with latest and unmodified 19-ea+13-808.
- duplicates
-
JDK-8277160 [macos] tools/jpackage/share/MultiLauncherTwoPhaseTest.java failed with "PackagerException: jlink failed"
- Closed
-
JDK-8281854 tools/jpackage/share/jdk/jpackage/tests/BasicTest.java failed with IllegalArgumentException
- Closed
-
JDK-8282535 Corrupted class files on OSX aarch64
- Closed
-
JDK-8282564 tools/jpackage/share/LicenseTest.java#id0 fails with "ArrayIndexOutOfBoundsException: arraycopy: last source index 9642141 out of bounds for byte[14056]"
- Closed
-
JDK-8284531 tools/jpackage/macosx/DmgContentTest.java failed "DmgContentTest(0, MAC_DMG" subtest
- Closed
-
JDK-8279704 [macos] jpackage test fails: "MainClassTest(modular=n; main-class=b; jar-main-class=b; jlink=y).test; checks=6"
- Closed
-
JDK-8281512 Test tools/jpackage/share/jdk/jpackage/tests/AppVersionTest.java fails - possibly corrupt classfile
- Closed
- relates to
-
JDK-8282535 Corrupted class files on OSX aarch64
- Closed
-
JDK-8277160 [macos] tools/jpackage/share/MultiLauncherTwoPhaseTest.java failed with "PackagerException: jlink failed"
- Closed
-
JDK-8281854 tools/jpackage/share/jdk/jpackage/tests/BasicTest.java failed with IllegalArgumentException
- Closed
-
JDK-8282535 Corrupted class files on OSX aarch64
- Closed
-
JDK-8282564 tools/jpackage/share/LicenseTest.java#id0 fails with "ArrayIndexOutOfBoundsException: arraycopy: last source index 9642141 out of bounds for byte[14056]"
- Closed
-
JDK-8284531 tools/jpackage/macosx/DmgContentTest.java failed "DmgContentTest(0, MAC_DMG" subtest
- Closed
-
JDK-8311147 Occasional class file corruption
- Closed
-
JDK-8279704 [macos] jpackage test fails: "MainClassTest(modular=n; main-class=b; jar-main-class=b; jlink=y).test; checks=6"
- Closed
-
JDK-8281512 Test tools/jpackage/share/jdk/jpackage/tests/AppVersionTest.java fails - possibly corrupt classfile
- Closed