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

Segfault in vector API tests with JITServer #20798

Open
cjjdespres opened this issue Dec 10, 2024 · 9 comments
Open

Segfault in vector API tests with JITServer #20798

cjjdespres opened this issue Dec 10, 2024 · 9 comments
Labels
comp:jitserver Artifacts related to JIT-as-a-Service project test failure

Comments

@cjjdespres
Copy link
Contributor

Failure link

https://hyc-runtimes-jenkins.swg-devops.com/job/Test_openjdk21_j9_sanity.openjdk_x86-64_linux_jit_Personal_testList_1/40/

Fails in jdk_vector_float128_j9_0, jdk_vector_short128_j9_0, jdk_vector_double128_j9_0, jdk_vector_int128_j9_0, jdk_vector_byte128_j9_0.

Optional info

I haven't built the tests to reproduce locally, but a possible cause is #20695.

Failure output (captured from console output)

[2024-12-07T08:57:01.309Z] Type=Segmentation error vmState=0x0005ffff
[2024-12-07T08:57:01.309Z] J9Generic_Signal_Number=00000018 Signal_Number=0000000b Error_Value=00000000 Signal_Code=00000001
[2024-12-07T08:57:01.309Z] Handler1=00007F39BB4C50F0 Handler2=00007F39C0B2D7D0 InaccessibleAddress=00007F41A1FBD168
[2024-12-07T08:57:01.309Z] RDI=00007F39A1FBD280 RSI=0000000000000000 RAX=0000000000000000 RBX=00000000FFFFFFFF
[2024-12-07T08:57:01.309Z] RCX=0000000000000000 RDX=0000000000000050 R8=00000000A1FAE300 R9=0000000000000000
[2024-12-07T08:57:01.309Z] R10=0000000000000000 R11=0000000000000000 R12=00000000000000C0 R13=00007F39A1FBD170
[2024-12-07T08:57:01.309Z] R14=0000000000000022 R15=0000000000000050
[2024-12-07T08:57:01.309Z] RIP=00007F39AD43131E GS=0000 FS=0000 RSP=00007F39A229CB80
[2024-12-07T08:57:01.309Z] EFlags=0000000000010283 CS=0033 RBP=00007F39A1FAE360 ERR=0000000000000004
[2024-12-07T08:57:01.309Z] TRAPNO=000000000000000E OLDMASK=0000000000000000 CR2=00007F41A1FBD168
[2024-12-07T08:57:01.309Z] xmm0=0000000000000000 (f: 0.000000, d: 0.000000e+00)
[2024-12-07T08:57:01.309Z] xmm1=00007f399c00de30 (f: 2617302528.000000, d: 6.911257e-310)
[2024-12-07T08:57:01.309Z] xmm2=00007f399c00de40 (f: 2617302528.000000, d: 6.911257e-310)
[2024-12-07T08:57:01.309Z] xmm3=00007f399c00de18 (f: 2617302528.000000, d: 6.911257e-310)
[2024-12-07T08:57:01.309Z] xmm4=00007f399c00dd90 (f: 2617302528.000000, d: 6.911257e-310)
[2024-12-07T08:57:01.309Z] xmm5=00007f399c00de28 (f: 2617302528.000000, d: 6.911257e-310)
[2024-12-07T08:57:01.309Z] xmm6=00007f399c00de18 (f: 2617302528.000000, d: 6.911257e-310)
[2024-12-07T08:57:01.309Z] xmm7=00007f399c00de40 (f: 2617302528.000000, d: 6.911257e-310)
[2024-12-07T08:57:01.309Z] xmm8=0000000000000000 (f: 0.000000, d: 0.000000e+00)
[2024-12-07T08:57:01.309Z] xmm9=0000000000000000 (f: 0.000000, d: 0.000000e+00)
[2024-12-07T08:57:01.309Z] xmm10=0000000000000000 (f: 0.000000, d: 0.000000e+00)
[2024-12-07T08:57:01.309Z] xmm11=0000000000000000 (f: 0.000000, d: 0.000000e+00)
[2024-12-07T08:57:01.309Z] xmm12=0000000000000000 (f: 0.000000, d: 0.000000e+00)
[2024-12-07T08:57:01.309Z] xmm13=00007fe5a9200060 (f: 2837446656.000000, d: 6.947767e-310)
[2024-12-07T08:57:01.309Z] xmm14=0000000000000000 (f: 0.000000, d: 0.000000e+00)
[2024-12-07T08:57:01.309Z] xmm15=0000000000000000 (f: 0.000000, d: 0.000000e+00)
[2024-12-07T08:57:01.309Z] Module=/home/jenkins/workspace/Test_openjdk21_j9_sanity.openjdk_x86-64_linux_jit_Personal_testList_1/jdkbinary/j2sdk-image/lib/default/libj9jit29.so
[2024-12-07T08:57:01.309Z] Module_base_address=00007F39AD20D000
[2024-12-07T08:57:01.309Z] 
[2024-12-07T08:57:01.310Z] Method_being_compiled=Double128VectorTests.ABSDouble128VectorTests(Ljava/util/function/IntFunction;)V
[2024-12-07T08:57:01.310Z] Target=2_90_20241207_55 (Linux 4.18.0-553.30.1.el8_10.x86_64)
[2024-12-07T08:57:01.310Z] CPU=amd64 (48 logical CPUs) (0x2f123fa000 RAM)
[2024-12-07T08:57:01.310Z] ----------- Stack Backtrace -----------
[2024-12-07T08:57:01.310Z] _ZN2J916KnownObjectTable18getPointerLocationEi+0x1e (0x00007F39AD43131E [libj9jit29.so+0x22431e])
[2024-12-07T08:57:01.310Z] _ZN2J916KnownObjectTable10getPointerEi+0x5f (0x00007F39AD43147F [libj9jit29.so+0x22447f])
[2024-12-07T08:57:01.310Z] _ZL19handleServerMessagePN9JITServer12ClientStreamEP7TR_J9VMRNS_11MessageTypeE+0xd1ca (0x00007F39AD3C4CAA [libj9jit29.so+0x1b7caa])
[2024-12-07T08:57:01.310Z] _Z13remoteCompileP10J9VMThreadPN2TR11CompilationEP17TR_ResolvedMethodP8J9MethodRNS1_24IlGeneratorMethodDetailsEPNS1_28CompilationInfoPerThreadBaseE.localalias+0x13aa (0x00007F39AD3CE87A [libj9jit29.so+0x1c187a])
[2024-12-07T08:57:01.310Z] _ZN2TR28CompilationInfoPerThreadBase7compileEP10J9VMThreadPNS_11CompilationEP17TR_ResolvedMethodR11TR_J9VMBaseP19TR_OptimizationPlanRKNS_16SegmentAllocatorE+0x749 (0x00007F39AD38A789 [libj9jit29.so+0x17d789])
[2024-12-07T08:57:01.310Z] _ZN2TR28CompilationInfoPerThreadBase14wrappedCompileEP13J9PortLibraryPv+0x381 (0x00007F39AD38B531 [libj9jit29.so+0x17e531])
[2024-12-07T08:57:01.310Z] omrsig_protect+0x239 (0x00007F39C0B2E459 [libj9prt29.so+0x2a459])
[2024-12-07T08:57:01.310Z] _ZN2TR28CompilationInfoPerThreadBase7compileEP10J9VMThreadP21TR_MethodToBeCompiledRN2J917J9SegmentProviderE+0x385 (0x00007F39AD389095 [libj9jit29.so+0x17c095])
[2024-12-07T08:57:01.310Z] _ZN2TR24CompilationInfoPerThread12processEntryER21TR_MethodToBeCompiledRN2J917J9SegmentProviderE+0x128 (0x00007F39AD3893B8 [libj9jit29.so+0x17c3b8])
[2024-12-07T08:57:01.310Z] _ZN2TR24CompilationInfoPerThread14processEntriesEv+0x377 (0x00007F39AD3882F7 [libj9jit29.so+0x17b2f7])
[2024-12-07T08:57:01.310Z] _ZN2TR24CompilationInfoPerThread3runEv+0x42 (0x00007F39AD388652 [libj9jit29.so+0x17b652])
[2024-12-07T08:57:01.310Z] _Z30protectedCompilationThreadProcP13J9PortLibraryPN2TR24CompilationInfoPerThreadE+0x82 (0x00007F39AD388702 [libj9jit29.so+0x17b702])
[2024-12-07T08:57:01.310Z] omrsig_protect+0x239 (0x00007F39C0B2E459 [libj9prt29.so+0x2a459])
[2024-12-07T08:57:01.310Z] _Z21compilationThreadProcPv+0x17b (0x00007F39AD388ACB [libj9jit29.so+0x17bacb])
[2024-12-07T08:57:01.310Z] thread_wrapper+0x163 (0x00007F39C0AF63A3 [libj9thr29.so+0xb3a3])
[2024-12-07T08:57:01.310Z] start_thread+0xea (0x00007F39C06411CA [libpthread.so.0+0x81ca])
[2024-12-07T08:57:01.310Z] clone+0x43 (0x00007F39C00988D3 [libc.so.6+0x398d3])
@cjjdespres
Copy link
Contributor Author

Attn @mpirvu.

Copy link

Issue Number: 20798
Status: Open
Recommended Components: comp:jitserver, comp:jit, comp:vm

@mpirvu
Copy link
Contributor

mpirvu commented Dec 10, 2024

@luke-li-2003 Could you please look into this crash? I don't have reasons to believe that #20767 is going to fix it. Thanks

@mpirvu mpirvu added the comp:jitserver Artifacts related to JIT-as-a-Service project label Dec 10, 2024
@luke-li-2003
Copy link
Contributor

This is odd. This looks like the error I fixed with #20698, which got reverted by #20685.

@mpirvu
Copy link
Contributor

mpirvu commented Dec 10, 2024

@luke-li-2003 If your fix got reverted, please talk the the author to make sure it was a mistake and not something intentional.

@mpirvu
Copy link
Contributor

mpirvu commented Dec 10, 2024

That's a big commit. Let's make sure that some of your other changes were not removed my mistake

@mpirvu
Copy link
Contributor

mpirvu commented Dec 10, 2024

This method:

TR_OpaqueClassBlock *
TR_VectorAPIExpansion::getArrayClassFromDataType(TR::Compilation *comp, TR::DataType type, bool booleanClass)

will not work with JITServer.

@mpirvu
Copy link
Contributor

mpirvu commented Dec 10, 2024

Also a new
TR::VMAccessCriticalSection getClassFromSignature(fej9);
in
TR_VectorAPIExpansion::boxChild(TR::TreeTop *treeTop, TR::Node *node, uint32_t i, bool checkBoxing)

@knn-k
Copy link
Contributor

knn-k commented Dec 11, 2024

@gita-omr FYI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:jitserver Artifacts related to JIT-as-a-Service project test failure
Projects
Status: To do
Development

No branches or pull requests

4 participants