eclipse-openj9 / openj9

Eclipse OpenJ9: A Java Virtual Machine for OpenJDK that's optimized for small footprint, fast start-up, and high throughput. Builds on Eclipse OMR (https://github.com/eclipse/omr) and combines with the Extensions for OpenJDK for OpenJ9 repo.
Other
3.28k stars 721 forks source link

Crash from JVM with JLink on Java 19 #16870

Closed FireMasterK closed 1 year ago

FireMasterK commented 1 year ago

Java -version output

openjdk version "19.0.2-internal" 2023-01-17 OpenJDK Runtime Environment (build 19.0.2-internal-adhoc..openj9-openjdk-jdk) Eclipse OpenJ9 VM (build master-b9c0de5dc, JRE 19 Linux amd64-64-Bit Compressed References 20230309_000000 (JIT enabled, AOT enabled) OpenJ9 - b9c0de5dc OMR - 9c27dc211 JCL - 9d52294be based on jdk-19.0.2+7)

Summary of problem

I've compiled OpenJ9 from source, since there aren't any pre-built builds for Java 19.

When I create a JRE with JLink, it crashes on startup.

I'm doing this on a Docker image.

Diagnostic files

piped_1     | ** ASSERTION FAILED ** j9scar.209 at /jdk/openj9-openjdk-jdk/openj9/runtime/j9vm/javanextvmi.cpp:224 Assert_SC_true((!"JVM_LoadZipLibrary unimplemented"))
piped_1     | Unhandled exception
piped_1     | Type=Segmentation error vmState=0x00000000
piped_1     | J9Generic_Signal_Number=00000018 Signal_Number=0000000b Error_Value=00000000 Signal_Code=00000001
piped_1     | Handler1=00007F1E2E5ED410 Handler2=00007F1E2E55A660 InaccessibleAddress=000000000000043B
piped_1     | RDI=00007F1E2C026031 RSI=000000000000009B RAX=000000000000043B RBX=00000000EB439526
piped_1     | RCX=00007F1E2C026041 RDX=0000000000000000 R8=0000000000000000 R9=0000000000000000
piped_1     | R10=00007F1E2ED803E0 R11=0000000000000293 R12=00007F1E2C026031 R13=0000000000000000
piped_1     | R14=00007F1E2C026031 R15=00007F1E2EBB4A90
piped_1     | RIP=00007F1E2EE1617A GS=0000 FS=0000 RSP=00007F1E2EBB4690
piped_1     | EFlags=0000000000010246 CS=0033 RBP=00007F1E2EBB4788 ERR=0000000000000004
piped_1     | TRAPNO=000000000000000E OLDMASK=0000000000000000 CR2=000000000000043B
piped_1     | xmm0 0000000000000000 (f: 0.000000, d: 0.000000e+00)
piped_1     | xmm1 0000003000000010 (f: 16.000000, d: 1.018558e-312)
piped_1     | xmm2 00000000b7654321 (f: 3076866816.000000, d: 1.520174e-314)
piped_1     | xmm3 00007f1e2d32b890 (f: 758298752.000000, d: 6.905436e-310)
piped_1     | xmm4 0000000000000030 (f: 48.000000, d: 2.371515e-322)
piped_1     | xmm5 0000003000000020 (f: 32.000000, d: 1.018558e-312)
piped_1     | xmm6 00007f1e2d32b890 (f: 758298752.000000, d: 6.905436e-310)
piped_1     | xmm7 00007f1e2d338310 (f: 758350592.000000, d: 6.905436e-310)
piped_1     | xmm8 000000000000ff00 (f: 65280.000000, d: 3.225261e-319)
piped_1     | xmm9 7575757575757527 (f: 1970631936.000000, d: 6.444099e+257)
piped_1     | xmm10 a8a8a8a8a8a87517 (f: 2829612288.000000, d: -8.010580e-113)
piped_1     | xmm11 0000015200000151 (f: 337.000000, d: 7.172346e-312)
piped_1     | xmm12 0000013d00000140 (f: 320.000000, d: 6.72[67](https://github.com/TeamPiped/Piped-Backend/actions/runs/4375078383/jobs/7655320130#step:10:68)27e-312)
piped_1     | xmm13 000001380000013f (f: 319.000000, d: 6.620627e-312)
piped_1     | xmm14 0000000008001800 (f: 134223872.000000, d: 6.631540e-316)
piped_1     | xmm15 000001420000013b (f: 315.000000, d: 6.832826e-312)
piped_1     | Module=/lib64/ld-linux-x86-64.so.2
piped_1     | Module_base_address=00007F1E2EE07000
piped_1     | Target=2_90_20230309_000000 (Linux 5.15.0-1034-azure)
piped_1     | CPU=amd64 (2 logical CPUs) (0x1b1ff8000 RAM)
piped_1     | ----------- Stack Backtrace -----------
piped_1     | _dl_lookup_symbol_x+0xaa (0x00007F1E2EE1617A [ld-linux-x86-64.so.2+0xf17a])
piped_1     | do_sym+0x6d (0x00007F1E2ED657CD [libc.so.6+0x1967cd])
piped_1     | dlsym_doit+0x18 (0x00007F1E2EC6A968 [libc.so.6+0x9b968])
piped_1     | _dl_catch_exception+0x88 (0x00007F1E2ED64F08 [libc.so.6+0x195f08])
piped_1     | _dl_catch_error+0x33 (0x00007F1E2ED64FD3 [libc.so.6+0x195fd3])
piped_1     | _dlerror_run+0x8e (0x00007F1E2EC6A33E [libc.so.6+0x9b33e])
piped_1     | dlsym+0x88 (0x00007F1E2EC6A9F8 [libc.so.6+0x9b9f8])
piped_1     | _ZN17ImageDecompressor23image_decompressor_initEv.part.0+0x21 (0x00007F1E2C012971 [libjimage.so+0x3971])
piped_1     | _ZN17ImageDecompressor16get_decompressorEPKc+0x85 (0x00007F1E2C012AC5 [libjimage.so+0x3ac5])
piped_1     | _ZN17ImageDecompressor19decompress_resourceEPhS0_yPK12ImageStringsP6Endian+0xf4 (0x00007F1E2C012C04 [libjimage.so+0x3c04])
piped_1     | _ZNK15ImageFileReader12get_resourceER13ImageLocationPh+0x6e (0x00007F1E2C013FAE [libjimage.so+0x4fae])
piped_1     | _ZNK15ImageFileReader12get_resourceEjPh+0x51 (0x00007F1E2C014211 [libjimage.so+0x5211])
piped_1     | JIMAGE_GetResource+0x12 (0x00007F1E2C0143A2 [libjimage.so+0x53a2])
piped_1     | jimageGetResource+0x58 (0x00007F1E2E72F6F8 [libj9vm29.so+0x1806f8])
piped_1     | searchClassInCPEntry+0x809 (0x00007F1E2E72E5C9 [libj9vm29.so+0x17f5c9])
piped_1     | searchClassInModule+0x160 (0x00007F1E2E72E920 [libj9vm29.so+0x17f920])
piped_1     | findLocallyDefinedClass+0x245 (0x00007F1E2E72EC25 [libj9vm29.so+0x17fc25])
piped_1     | attemptDynamicClassLoad+0x40f (0x00007F1E2E5D48EF [libj9vm29.so+0x258ef])
piped_1     | internalFindClassInModule+0x10b2 (0x00007F1E2E5D5EC2 [libj9vm29.so+0x26ec2])
piped_1     | internalFindKnownClass+0x1a5 (0x00007F1E2E5D4B55 [libj9vm29.so+0x25b55])
piped_1     | initializeRequiredClasses+0x287 (0x00007F1E2D1F8C77 [libjclse29.so+0x1dc77])
piped_1     | standardInit+0x62a (0x00007F1E2D21941A [libjclse29.so+0x3e41a])
piped_1     | scarInit+0xa2 (0x00007F1E2D2271A2 [libjclse29.so+0x4c1a2])
piped_1     | J9VMDllMain+0x13d (0x00007F1E2D2278CD [libjclse29.so+0x4c8cd])
piped_1     | runJ9VMDllMain+0xc9 (0x00007F1E2E6013F9 [libj9vm29.so+0x523f9])
piped_1     | pool_do+0x75 (0x00007F1E2E7137E5 [libj9vm29.so+0x1647e5])
piped_1     | runInitializationStage+0x8e (0x00007F1E2E603FDE [libj9vm29.so+0x54fde])
piped_1     | protectedInitializeJavaVM+0x2444 (0x00007F1E2E60D5C4 [libj9vm29.so+0x5e5c4])
piped_1     | omrsig_protect+0x23d (0x00007F1E2E55B2ED [libj9prt29.so+0x282ed])
piped_1     | initializeJavaVM+0x3be (0x00007F1E2E6058FE [libj9vm29.so+0x568fe])
piped_1     | J9_CreateJavaVM+0x72 (0x00007F1E2E5F8A12 [libj9vm29.so+0x49a12])
piped_1     | JNI_CreateJavaVM_impl+0x8fd (0x00007F1E2EB05E0D [libjvm.so+0x17e0d])
piped_1     | JNI_CreateJavaVM+0x677 (0x00007F1E2EBC4567 [libjvm.so+0xc567])
piped_1     | JavaMain+0x8b (0x00007F1E2EDDB96B [libjli.so+0x396b])
piped_1     | ThreadJavaMain+0x9 (0x00007F1E2EDDFA39 [libjli.so+0x7a39])
piped_1     | start_thread+0x2d2 (0x00007F1E2EC6E802 [libc.so.6+0x9f802])
piped_1     | clone+0x44 (0x00007F1E2EC0E314 [libc.so.6+0x3f314])
piped_1     | ---------------------------------------
piped_1     | JVMDUMP039I Processing dump event "gpf", detail "" at 2023/03/09 13:47:38 - please wait.
piped_1     | JVMDUMP032I JVM requested System dump using '/app/core.20230309.134738.1.0001.dmp' in response to an event
piped_1     | JVMPORT030W /proc/sys/kernel/core_pattern setting "|/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" specifies that the core dump is to be piped to an external program.  Attempting to rename either core or core.20.  Review the manual for the external program to find where the core dump is written and ensure the program does not truncate it.
piped_1     | 
piped_1     | JVMPORT049I The core file created by child process with pid = 20 was not found. Review the documentation for the /proc/sys/kernel/core_pattern program "|/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" to find where the core file is written and ensure that program does not truncate it.
piped_1     | 
piped_1     | JVMDUMP012E Error in System dump: /app/core.20230309.134738.1.0001.dmp
piped_1     | JVMDUMP032I JVM requested Java dump using '/app/javacore.20230309.134738.1.0002.txt' in response to an event
piped_1     | JVMDUMP010I Java dump written to /app/javacore.20230309.134738.1.0002.txt
piped_1     | JVMDUMP032I JVM requested Snap dump using '/app/Snap.20230309.134738.1.0003.trc' in response to an event
piped_1     | JVMDUMP010I Snap dump written to /app/Snap.20230309.134738.1.0003.trc
piped_1     | JVMDUMP032I JVM requested JIT dump using '/app/jitdump.20230309.134738.1.0004.dmp' in response to an event
piped_1     | JVMDUMP051I JIT dump occurred in '(unnamed thread)' thread 0x0000000000015200
piped_1     | JVMDUMP010I JIT dump written to /app/jitdump.20230309.134738.1.0004.dmp
piped_1     | JVMDUMP013I Processed dump event "gpf", detail "".
piped_1     | ** ASSERTION FAILED ** j9scar.209 at /jdk/openj9-openjdk-jdk/openj9/runtime/j9vm/javanextvmi.cpp:224 Assert_SC_true((!"JVM_LoadZipLibrary unimplemented"))
piped_1     | Unhandled exception
piped_1     | Type=Segmentation error vmState=0x00000000
piped_1     | J9Generic_Signal_Number=00000018 Signal_Number=0000000b Error_Value=00000000 Signal_Code=00000001
piped_1     | Handler1=00007F190E2A2410 Handler2=00007F190E20F660 InaccessibleAddress=000000000000043B
piped_1     | RDI=00007F190CA07031 RSI=000000000000009B RAX=000000000000043B RBX=00000000EB439526
piped_1     | RCX=00007F190CA07041 RDX=0000000000000000 R8=0000000000000000 R9=0000000000000000
piped_1     | R10=00007F190EA353E0 R11=0000000000000293 R12=00007F190CA07031 R13=0000000000000000
piped_1     | R14=00007F190CA07031 R15=00007F190E869A90
piped_1     | RIP=00007F190EACB17A GS=0000 FS=0000 RSP=00007F190E869690
piped_1     | EFlags=0000000000010246 CS=0033 RBP=00007F190E869788 ERR=0000000000000004
piped_1     | TRAPNO=000000000000000E OLDMASK=0000000000000000 CR2=000000000000043B
piped_1     | xmm0 0000000000000000 (f: 0.000000, d: 0.000000e+00)
piped_1     | xmm1 0000003000000010 (f: 16.000000, d: 1.018558e-312)
piped_1     | xmm2 00000000b7654321 (f: 307[68](https://github.com/TeamPiped/Piped-Backend/actions/runs/4375078383/jobs/7655320130#step:10:69)66816.000000, d: 1.520174e-314)
piped_1     | xmm3 00007f190cfe0890 (f: 217974928.000000, d: 6.904348e-310)
piped_1     | xmm4 0000000000000030 (f: 48.000000, d: 2.371515e-322)
piped_1     | xmm5 0000003000000020 (f: 32.000000, d: 1.018558e-312)
piped_1     | xmm6 00007f190cfe0890 (f: 217974928.000000, d: 6.904348e-310)
piped_1     | xmm7 00007f190cfed310 (f: 218026768.000000, d: 6.904348e-310)
piped_1     | xmm8 000000000000ff00 (f: 65280.000000, d: 3.225261e-319)
piped_1     | xmm9 7575757575757527 (f: 1970631936.000000, d: 6.444099e+257)
piped_1     | xmm10 a8a8a8a8a8a87517 (f: 2829612288.000000, d: -8.010580e-113)
piped_1     | xmm11 0000015200000151 (f: 337.000000, d: 7.172346e-312)
piped_1     | xmm12 0000013d00000140 (f: 320.000000, d: 6.726727e-312)
piped_1     | xmm13 000001380000013f (f: 319.000000, d: 6.620627e-312)
piped_1     | xmm14 0000000008001800 (f: 134223872.000000, d: 6.631540e-316)
piped_1     | xmm15 000001420000013b (f: 315.000000, d: 6.832826e-312)
piped_1     | Module=/lib64/ld-linux-x86-64.so.2
piped_1     | Module_base_address=00007F190EABC000
piped_1     | Target=2_90_20230309_000000 (Linux 5.15.0-1034-azure)
piped_1     | CPU=amd64 (2 logical CPUs) (0x1b1ff8000 RAM)
piped_1     | ----------- Stack Backtrace -----------
piped_1     | _dl_lookup_symbol_x+0xaa (0x00007F190EACB17A [ld-linux-x86-64.so.2+0xf17a])
piped_1     | do_sym+0x6d (0x00007F190EA1A7CD [libc.so.6+0x1967cd])
piped_1     | dlsym_doit+0x18 (0x00007F190E91F968 [libc.so.6+0x9b968])
piped_1     | _dl_catch_exception+0x88 (0x00007F190EA19F08 [libc.so.6+0x195f08])
piped_1     | _dl_catch_error+0x33 (0x00007F190EA19FD3 [libc.so.6+0x195fd3])
piped_1     | _dlerror_run+0x8e (0x00007F190E91F33E [libc.so.6+0x9b33e])
piped_1     | dlsym+0x88 (0x00007F190E91F9F8 [libc.so.6+0x9b9f8])
piped_1     | _ZN17ImageDecompressor23image_decompressor_initEv.part.0+0x21 (0x00007F190C9F3971 [libjimage.so+0x3971])
piped_1     | _ZN17ImageDecompressor16get_decompressorEPKc+0x85 (0x00007F190C9F3AC5 [libjimage.so+0x3ac5])
piped_1     | _ZN17ImageDecompressor19decompress_resourceEPhS0_yPK12ImageStringsP6Endian+0xf4 (0x00007F190C9F3C04 [libjimage.so+0x3c04])
piped_1     | _ZNK15ImageFileReader12get_resourceER13ImageLocationPh+0x6e (0x00007F190C9F4FAE [libjimage.so+0x4fae])
piped_1     | _ZNK15ImageFileReader12get_resourceEjPh+0x51 (0x00007F190C9F5211 [libjimage.so+0x5211])
piped_1     | JIMAGE_GetResource+0x12 (0x00007F190C9F53A2 [libjimage.so+0x53a2])
piped_1     | jimageGetResource+0x58 (0x00007F190E3E46F8 [libj9vm29.so+0x1806f8])
piped_1     | searchClassInCPEntry+0x809 (0x00007F190E3E35C9 [libj9vm29.so+0x17f5c9])
piped_1     | searchClassInModule+0x160 (0x00007F190E3E3920 [libj9vm29.so+0x17f920])
piped_1     | findLocallyDefinedClass+0x245 (0x00007F190E3E3C25 [libj9vm29.so+0x17fc25])
piped_1     | attemptDynamicClassLoad+0x40f (0x00007F190E2898EF [libj9vm29.so+0x258ef])
piped_1     | internalFindClassInModule+0x10b2 (0x00007F190E28AEC2 [libj9vm29.so+0x26ec2])
piped_1     | internalFindKnownClass+0x1a5 (0x00007F190E289B55 [libj9vm29.so+0x25b55])
piped_1     | initializeRequiredClasses+0x287 (0x00007F190CEADC77 [libjclse29.so+0x1dc77])
piped_1     | standardInit+0x62a (0x00007F190CECE41A [libjclse29.so+0x3e41a])
piped_1     | scarInit+0xa2 (0x00007F190CEDC1A2 [libjclse29.so+0x4c1a2])
piped_1     | J9VMDllMain+0x13d (0x00007F190CEDC8CD [libjclse29.so+0x4c8cd])
piped_1     | runJ9VMDllMain+0xc9 (0x00007F190E2B63F9 [libj9vm29.so+0x523f9])
piped_1     | pool_do+0x75 (0x00007F190E3C87E5 [libj9vm29.so+0x1647e5])
piped_1     | runInitializationStage+0x8e (0x00007F190E2B8FDE [libj9vm29.so+0x54fde])
piped_1     | protectedInitializeJavaVM+0x2444 (0x00007F190E2C25C4 [libj9vm29.so+0x5e5c4])
piped_1     | omrsig_protect+0x23d (0x00007F190E2102ED [libj9prt29.so+0x282ed])
piped_1     | initializeJavaVM+0x3be (0x00007F190E2BA8FE [libj9vm29.so+0x568fe])
piped_1     | J9_CreateJavaVM+0x72 (0x00007F190E2ADA12 [libj9vm29.so+0x49a12])
piped_1     | JNI_CreateJavaVM_impl+0x8fd (0x00007F190E7BAE0D [libjvm.so+0x17e0d])
piped_1     | JNI_CreateJavaVM+0x677 (0x00007F190E879567 [libjvm.so+0xc567])
piped_1     | JavaMain+0x8b (0x00007F190EA9096B [libjli.so+0x396b])
piped_1     | ThreadJavaMain+0x9 (0x00007F190EA94A39 [libjli.so+0x7a39])
piped_1     | start_thread+0x2d2 (0x00007F190E923802 [libc.so.6+0x9f802])
piped_1     | clone+0x44 (0x00007F190E8C3314 [libc.so.6+0x3f314])
piped_1     | ---------------------------------------
piped_1     | JVMDUMP039I Processing dump event "gpf", detail "" at 2023/03/09 13:47:44 - please wait.
piped_1     | JVMDUMP032I JVM requested System dump using '/app/core.20230309.134744.1.0001.dmp' in response to an event
piped_1     | JVMPORT030W /proc/sys/kernel/core_pattern setting "|/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" specifies that the core dump is to be piped to an external program.  Attempting to rename either core or core.19.  Review the manual for the external program to find where the core dump is written and ensure the program does not truncate it.
piped_1     | 
piped_1     | JVMPORT049I The core file created by child process with pid = 19 was not found. Review the documentation for the /proc/sys/kernel/core_pattern program "|/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" to find where the core file is written and ensure that program does not truncate it.
piped_1     | 
piped_1     | JVMDUMP012E Error in System dump: /app/core.20230309.134744.1.0001.dmp
piped_1     | JVMDUMP032I JVM requested Java dump using '/app/javacore.20230309.134744.1.0002.txt' in response to an event
piped_1     | JVMDUMP010I Java dump written to /app/javacore.20230309.134744.1.0002.txt
piped_1     | JVMDUMP032I JVM requested Snap dump using '/app/Snap.20230309.134744.1.0003.trc' in response to an event
piped_1     | JVMDUMP010I Snap dump written to /app/Snap.20230309.134744.1.0003.trc
piped_1     | JVMDUMP032I JVM requested JIT dump using '/app/jitdump.20230309.134744.1.0004.dmp' in response to an event
piped_1     | JVMDUMP051I JIT dump occurred in '(unnamed thread)' thread 0x0000000000015200
piped_1     | JVMDUMP010I JIT dump written to /app/jitdump.20230309.134744.1.0004.dmp
piped_1     | JVMDUMP013I Processed dump event "gpf", detail "".
piped_1     | ** ASSERTION FAILED ** j9scar.209 at /jdk/openj9-openjdk-jdk/openj9/runtime/j9vm/javanextvmi.cpp:224 Assert_SC_true((!"JVM_LoadZipLibrary unimplemented"))
piped_1     | Unhandled exception
piped_1     | Type=Segmentation error vmState=0x00000000
piped_1     | J9Generic_Signal_Number=00000018 Signal_Number=0000000b Error_Value=00000000 Signal_Code=00000001
piped_1     | Handler1=00007F4E33BFE410 Handler2=00007F4E33B73660 InaccessibleAddress=000000000000043B
piped_1     | RDI=00007F4E38023031 RSI=000000000000009B RAX=000000000000043B RBX=00000000EB439526
piped_1     | RCX=00007F4E38023041 RDX=0000000000000000 R8=0000000000000000 R9=0000000000000000
piped_1     | R10=00007F4E383FA3E0 R11=0000000000000293 R12=00007F4E38023031 R13=0000000000000000
piped_1     | R14=00007F4E38023031 R15=00007F4E3822EA90
piped_1     | RIP=00007F4E3849017A GS=0000 FS=0000 RSP=00007F4E3822E[69](https://github.com/TeamPiped/Piped-Backend/actions/runs/4375078383/jobs/7655320130#step:10:70)0
piped_1     | EFlags=0000000000010246 CS=0033 RBP=00007F4E3822E788 ERR=0000000000000004
piped_1     | TRAPNO=000000000000000E OLDMASK=0000000000000000 CR2=000000000000043B
piped_1     | xmm0 0000000000000000 (f: 0.000000, d: 0.000000e+00)
piped_1     | xmm1 0000003000000010 (f: 16.000000, d: 1.018558e-312)
piped_1     | xmm2 00000000b7654321 (f: 3076866816.000000, d: 1.520174e-314)
piped_1     | xmm3 00007f4e32974890 (f: 848775296.000000, d: 6.915626e-310)
piped_1     | xmm4 0000000000000030 (f: 48.000000, d: 2.371515e-322)
piped_1     | xmm5 0000003000000020 (f: 32.000000, d: 1.018558e-312)
piped_1     | xmm6 00007f4e32974890 (f: 848775296.000000, d: 6.915626e-310)
piped_1     | xmm7 00007f4e32981310 (f: 848827136.000000, d: 6.915626e-310)
piped_1     | xmm8 000000000000ff00 (f: 65280.000000, d: 3.225261e-319)
piped_1     | xmm9 7575757575757527 (f: 1970631936.000000, d: 6.444099e+257)
piped_1     | xmm10 a8a8a8a8a8a87517 (f: 2829612288.000000, d: -8.010580e-113)
piped_1     | xmm11 0000015200000151 (f: 337.000000, d: 7.172346e-312)
piped_1     | xmm12 0000013d00000140 (f: 320.000000, d: 6.726727e-312)
piped_1     | xmm13 000001380000013f (f: 319.000000, d: 6.620627e-312)
piped_1     | xmm14 0000000008001800 (f: 134223872.000000, d: 6.631540e-316)
piped_1     | xmm15 000001420000013b (f: 315.000000, d: 6.832826e-312)
piped_1     | Module=/lib64/ld-linux-x86-64.so.2
piped_1     | Module_base_address=00007F4E38481000
piped_1     | Target=2_90_20230309_000000 (Linux 5.15.0-1034-azure)
piped_1     | CPU=amd64 (2 logical CPUs) (0x1b1ff8000 RAM)
piped_1     | ----------- Stack Backtrace -----------
piped_1     | _dl_lookup_symbol_x+0xaa (0x00007F4E3849017A [ld-linux-x86-64.so.2+0xf17a])
piped_1     | do_sym+0x6d (0x00007F4E383DF7CD [libc.so.6+0x1967cd])
piped_1     | dlsym_doit+0x18 (0x00007F4E382E4968 [libc.so.6+0x9b968])
piped_1     | _dl_catch_exception+0x88 (0x00007F4E383DEF08 [libc.so.6+0x195f08])
piped_1     | _dl_catch_error+0x33 (0x00007F4E383DEFD3 [libc.so.6+0x195fd3])
piped_1     | _dlerror_run+0x8e (0x00007F4E382E433E [libc.so.6+0x9b33e])
piped_1     | dlsym+0x88 (0x00007F4E382E49F8 [libc.so.6+0x9b9f8])
piped_1     | _ZN17ImageDecompressor23image_decompressor_initEv.part.0+0x21 (0x00007F4E3800F971 [libjimage.so+0x3971])
piped_1     | _ZN17ImageDecompressor16get_decompressorEPKc+0x85 (0x00007F4E3800FAC5 [libjimage.so+0x3ac5])
piped_1     | _ZN17ImageDecompressor19decompress_resourceEPhS0_yPK12ImageStringsP6Endian+0xf4 (0x00007F4E3800FC04 [libjimage.so+0x3c04])
piped_1     | _ZNK15ImageFileReader12get_resourceER13ImageLocationPh+0x6e (0x00007F4E38010FAE [libjimage.so+0x4fae])
piped_1     | _ZNK15ImageFileReader12get_resourceEjPh+0x51 (0x00007F4E38011211 [libjimage.so+0x5211])
piped_1     | JIMAGE_GetResource+0x12 (0x00007F4E380113A2 [libjimage.so+0x53a2])
piped_1     | jimageGetResource+0x58 (0x00007F4E33D406F8 [libj9vm29.so+0x1806f8])
piped_1     | searchClassInCPEntry+0x809 (0x00007F4E33D3F5C9 [libj9vm29.so+0x17f5c9])
piped_1     | searchClassInModule+0x160 (0x00007F4E33D3F920 [libj9vm29.so+0x17f920])
piped_1     | findLocallyDefinedClass+0x245 (0x00007F4E33D3FC25 [libj9vm29.so+0x17fc25])
piped_1     | attemptDynamicClassLoad+0x40f (0x00007F4E33BE58EF [libj9vm29.so+0x258ef])
piped_1     | internalFindClassInModule+0x10b2 (0x00007F4E33BE6EC2 [libj9vm29.so+0x26ec2])
piped_1     | internalFindKnownClass+0x1a5 (0x00007F4E33BE5B55 [libj9vm29.so+0x25b55])
piped_1     | initializeRequiredClasses+0x287 (0x00007F4E32841C77 [libjclse29.so+0x1dc77])
piped_1     | standardInit+0x62a (0x00007F4E3286241A [libjclse29.so+0x3e41a])
piped_1     | scarInit+0xa2 (0x00007F4E328701A2 [libjclse29.so+0x4c1a2])
piped_1     | J9VMDllMain+0x13d (0x00007F4E328708CD [libjclse29.so+0x4c8cd])
piped_1     | runJ9VMDllMain+0xc9 (0x00007F4E33C123F9 [libj9vm29.so+0x523f9])
piped_1     | pool_do+0x75 (0x00007F4E33D247E5 [libj9vm29.so+0x1647e5])
piped_1     | runInitializationStage+0x8e (0x00007F4E33C14FDE [libj9vm29.so+0x54fde])
piped_1     | protectedInitializeJavaVM+0x2444 (0x00007F4E33C1E5C4 [libj9vm29.so+0x5e5c4])
piped_1     | omrsig_protect+0x23d (0x00007F4E33B742ED [libj9prt29.so+0x282ed])
piped_1     | initializeJavaVM+0x3be (0x00007F4E33C168FE [libj9vm29.so+0x568fe])
piped_1     | J9_CreateJavaVM+0x72 (0x00007F4E33C09A12 [libj9vm29.so+0x49a12])
piped_1     | JNI_CreateJavaVM_impl+0x8fd (0x00007F4E3817FE0D [libjvm.so+0x17e0d])
piped_1     | JNI_CreateJavaVM+0x677 (0x00007F4E3823E567 [libjvm.so+0xc567])
piped_1     | JavaMain+0x8b (0x00007F4E3845596B [libjli.so+0x396b])
piped_1     | ThreadJavaMain+0x9 (0x00007F4E38459A39 [libjli.so+0x7a39])
piped_1     | start_thread+0x2d2 (0x00007F4E382E8802 [libc.so.6+0x9f802])
piped_1     | clone+0x44 (0x00007F4E38288314 [libc.so.6+0x3f314])
piped_1     | ---------------------------------------
piped_1     | JVMDUMP039I Processing dump event "gpf", detail "" at 2023/03/09 13:47:51 - please wait.
piped_1     | JVMDUMP032I JVM requested System dump using '/app/core.20230309.134751.1.0001.dmp' in response to an event
piped_1     | JVMPORT030W /proc/sys/kernel/core_pattern setting "|/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" specifies that the core dump is to be piped to an external program.  Attempting to rename either core or core.19.  Review the manual for the external program to find where the core dump is written and ensure the program does not truncate it.
piped_1     | 
piped_1     | JVMPORT049I The core file created by child process with pid = 19 was not found. Review the documentation for the /proc/sys/kernel/core_pattern program "|/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" to find where the core file is written and ensure that program does not truncate it.
piped_1     | 
piped_1     | JVMDUMP012E Error in System dump: /app/core.20230309.134751.1.0001.dmp
piped_1     | JVMDUMP032I JVM requested Java dump using '/app/javacore.20230309.134751.1.0002.txt' in response to an event
piped_1     | JVMDUMP010I Java dump written to /app/javacore.20230309.134751.1.0002.txt
piped_1     | JVMDUMP032I JVM requested Snap dump using '/app/Snap.20230309.134751.1.0003.trc' in response to an event
piped_1     | JVMDUMP010I Snap dump written to /app/Snap.20230309.134751.1.0003.trc
piped_1     | JVMDUMP032I JVM requested JIT dump using '/app/jitdump.20230309.134751.1.0004.dmp' in response to an event
piped_1     | JVMDUMP051I JIT dump occurred in '(unnamed thread)' thread 0x0000000000015200
piped_1     | JVMDUMP010I JIT dump written to /app/jitdump.20230309.134751.1.0004.dmp
piped_1     | JVMDUMP013I Processed dump event "gpf", detail "".
piped_1     | ** ASSERTION FAILED ** j9scar.209 at /jdk/openj9-openjdk-jdk/openj9/runtime/j9vm/javanextvmi.cpp:224 Assert_SC_true((!"JVM_LoadZipLibrary unimplemented"))
piped_1     | Unhandled exception
piped_1     | Type=Segmentation error vmState=0x00000000
piped_1     | J9Generic_Signal_Number=00000018 Signal_Number=0000000b Error_Value=00000000 Signal_Code=00000001
piped_1     | Handler1=00007F2D7FB23410 Handler2=00007F2D84055660 InaccessibleAddress=000000000000043B
piped_1     | RDI=00007F2D7D321031 RSI=000000000000009B RAX=000000000000043B RBX=00000000EB439526
piped_1     | RCX=00007F2D7D321041 RDX=0000000000000000 R8=0000000000000000 R9=0000000000000000
piped_1     | R10=00007F2D843603E0 R11=0000000000000293 R12=00007F2D7D321031 R13=0000000000000000
piped_1     | R14=00007F2D7D321031 R15=00007F2D84194A90
piped_1     | RIP=00007F2D843F617A GS=0000 FS=0000 RSP=00007F2D84194690
piped_1     | EFlags=0000000000010246 CS=0033 RBP=00007F2D84194788 ERR=0000000000000004
piped_1     | TRAPNO=000000000000000E OLDMASK=0000000000000000 CR2=000000000000043B
piped_1     | xmm0 0000000000000000 (f: 0.000000, d: 0.000000e+00)
piped_1     | xmm1 0000003000000010 (f: 16.000000, d: 1.018558e-312)
piped_1     | xmm2 00000000b7654321 (f: 3076866816.000000, d: 1.520174e-314)
piped_1     | xmm3 00007f2d7e8f6890 (f: 2123327616.000000, d: 6.908687e-310)
piped_1     | xmm4 0000000000000030 (f: 48.000000, d: 2.371515e-322)
piped_1     | xmm5 0000003000000020 (f: 32.000000, d: 1.018558e-312)
piped_1     | xmm6 00007f2d7e8f6890 (f: 2123327616.000000, d: 6.908687e-310)
piped_1     | xmm7 00007f2d7e903310 (f: 2123379456.000000, d: 6.908687e-310)
piped_1     | xmm8 000000000000ff00 (f: 65280.000000, d: 3.225261e-319)
piped_1     | xmm9 7575757575757527 (f: 19[70](https://github.com/TeamPiped/Piped-Backend/actions/runs/4375078383/jobs/7655320130#step:10:71)631936.000000, d: 6.444099e+257)
piped_1     | xmm10 a8a8a8a8a8a87517 (f: 2829612288.000000, d: -8.010580e-113)
piped_1     | xmm11 0000015200000151 (f: 337.000000, d: 7.172346e-312)
piped_1     | xmm12 0000013d00000140 (f: 320.000000, d: 6.726727e-312)
piped_1     | xmm13 000001380000013f (f: 319.000000, d: 6.620627e-312)
piped_1     | xmm14 0000000008001800 (f: 134223872.000000, d: 6.631540e-316)
piped_1     | xmm15 000001420000013b (f: 315.000000, d: 6.832826e-312)
piped_1     | Module=/lib64/ld-linux-x86-64.so.2
piped_1     | Module_base_address=00007F2D843E7000
piped_1     | Target=2_90_20230309_000000 (Linux 5.15.0-1034-azure)
piped_1     | CPU=amd64 (2 logical CPUs) (0x1b1ff8000 RAM)
piped_1     | ----------- Stack Backtrace -----------
piped_1     | _dl_lookup_symbol_x+0xaa (0x00007F2D843F617A [ld-linux-x86-64.so.2+0xf17a])
piped_1     | do_sym+0x6d (0x00007F2D843457CD [libc.so.6+0x1967cd])
piped_1     | dlsym_doit+0x18 (0x00007F2D8424A968 [libc.so.6+0x9b968])
piped_1     | _dl_catch_exception+0x88 (0x00007F2D84344F08 [libc.so.6+0x195f08])
piped_1     | _dl_catch_error+0x33 (0x00007F2D84344FD3 [libc.so.6+0x195fd3])
piped_1     | _dlerror_run+0x8e (0x00007F2D8424A33E [libc.so.6+0x9b33e])
piped_1     | dlsym+0x88 (0x00007F2D8424A9F8 [libc.so.6+0x9b9f8])
piped_1     | _ZN17ImageDecompressor23image_decompressor_initEv.part.0+0x21 (0x00007F2D7D30D9[71](https://github.com/TeamPiped/Piped-Backend/actions/runs/4375078383/jobs/7655320130#step:10:72) [libjimage.so+0x3971])
piped_1     | _ZN17ImageDecompressor16get_decompressorEPKc+0x85 (0x00007F2D7D30DAC5 [libjimage.so+0x3ac5])
piped_1     | _ZN17ImageDecompressor19decompress_resourceEPhS0_yPK12ImageStringsP6Endian+0xf4 (0x00007F2D7D30DC04 [libjimage.so+0x3c04])
piped_1     | _ZNK15ImageFileReader12get_resourceER13ImageLocationPh+0x6e (0x00007F2D7D30EFAE [libjimage.so+0x4fae])
piped_1     | _ZNK15ImageFileReader12get_resourceEjPh+0x51 (0x00007F2D7D30F211 [libjimage.so+0x5211])
piped_1     | JIMAGE_GetResource+0x12 (0x00007F2D7D30F3A2 [libjimage.so+0x53a2])
piped_1     | jimageGetResource+0x58 (0x00007F2D7FC656F8 [libj9vm29.so+0x1806f8])
piped_1     | searchClassInCPEntry+0x809 (0x00007F2D7FC645C9 [libj9vm29.so+0x17f5c9])
piped_1     | searchClassInModule+0x160 (0x00007F2D7FC64920 [libj9vm29.so+0x17f920])
piped_1     | findLocallyDefinedClass+0x245 (0x00007F2D7FC64C25 [libj9vm29.so+0x17fc25])
piped_1     | attemptDynamicClassLoad+0x40f (0x00007F2D7FB0A8EF [libj9vm29.so+0x258ef])
piped_1     | internalFindClassInModule+0x10b2 (0x00007F2D7FB0BEC2 [libj9vm29.so+0x26ec2])
piped_1     | internalFindKnownClass+0x1a5 (0x00007F2D7FB0AB55 [libj9vm29.so+0x25b55])
piped_1     | initializeRequiredClasses+0x287 (0x00007F2D7E7C3C77 [libjclse29.so+0x1dc77])
piped_1     | standardInit+0x62a (0x00007F2D7E7E441A [libjclse29.so+0x3e41a])
piped_1     | scarInit+0xa2 (0x00007F2D7E7F21A2 [libjclse29.so+0x4c1a2])
piped_1     | J9VMDllMain+0x13d (0x00007F2D7E7F28CD [libjclse29.so+0x4c8cd])
piped_1     | runJ9VMDllMain+0xc9 (0x00007F2D7FB373F9 [libj9vm29.so+0x523f9])
piped_1     | pool_do+0x75 (0x00007F2D7FC497E5 [libj9vm29.so+0x1647e5])
piped_1     | runInitializationStage+0x8e (0x00007F2D7FB39FDE [libj9vm29.so+0x54fde])
piped_1     | protectedInitializeJavaVM+0x2444 (0x00007F2D7FB435C4 [libj9vm29.so+0x5e5c4])
piped_1     | omrsig_protect+0x23d (0x00007F2D840562ED [libj9prt29.so+0x282ed])
piped_1     | initializeJavaVM+0x3be (0x00007F2D7FB3B8FE [libj9vm29.so+0x568fe])
piped_1     | J9_CreateJavaVM+0x[72](https://github.com/TeamPiped/Piped-Backend/actions/runs/4375078383/jobs/7655320130#step:10:73) (0x00007F2D7FB2EA12 [libj9vm29.so+0x49a12])
piped_1     | JNI_CreateJavaVM_impl+0x8fd (0x00007F2D840E5E0D [libjvm.so+0x17e0d])
piped_1     | JNI_CreateJavaVM+0x677 (0x00007F2D841A4567 [libjvm.so+0xc567])
piped_1     | JavaMain+0x8b (0x00007F2D843BB96B [libjli.so+0x396b])
piped_1     | ThreadJavaMain+0x9 (0x00007F2D843BFA39 [libjli.so+0x7a39])
piped_1     | start_thread+0x2d2 (0x00007F2D8424E802 [libc.so.6+0x9f802])
piped_1     | clone+0x44 (0x00007F2D841EE314 [libc.so.6+0x3f314])
piped_1     | ---------------------------------------
piped_1     | JVMDUMP039I Processing dump event "gpf", detail "" at 2023/03/09 13:47:57 - please wait.
piped_1     | JVMDUMP032I JVM requested System dump using '/app/core.20230309.134[75](https://github.com/TeamPiped/Piped-Backend/actions/runs/4375078383/jobs/7655320130#step:10:76)7.1.0001.dmp' in response to an event
piped_1     | JVMPORT030W /proc/sys/kernel/core_pattern setting "|/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" specifies that the core dump is to be piped to an external program.  Attempting to rename either core or core.19.  Review the manual for the external program to find where the core dump is written and ensure the program does not truncate it.
pshipton commented 1 year ago

You don't need to build from scratch, there are nightly builds https://openj9-jenkins.osuosl.org/job/Pipeline-Build-Test-JDK19/

Using the latest nightly, I tried bin/jlink --output base --add-modules java.base and then running base/bin/java -version starts up fine.

openjdk version "19.0.2-internal" 2023-01-17
OpenJDK Runtime Environment (build 19.0.2-internal-adhoc.jenkins.BuildJDK19x86-64linuxNightly)
Eclipse OpenJ9 VM (build master-fe0bec4e63a, JRE 19 Linux amd64-64-Bit Compressed References 20230310_198 (JIT enabled, AOT enabled)
OpenJ9   - fe0bec4e63a
OMR      - c7687f45fb4
JCL      - faa8bad83ac based on jdk-19.0.2+7)