Skip to content

NullPointerException String.indexOf() #23035

@pshipton

Description

@pshipton

https://openj9-jenkins.osuosl.org/job/Test_openjdk25_j9_extended.functional_x86-64_linux_Nightly_testList_0/74
cmdLineTester_modularityddrtests17_0 -Xjit -Xgcpolicy:gencon -Xnocompressedrefs

https://openj9-artifactory.osuosl.org/artifactory/ci-openj9/Test/Test_openjdk25_j9_extended.functional_x86-64_linux_Nightly_testList_0/74/functional_test_output.tar.gz

01:57:47  Testing: Run !dumpmodule with too many arguments
01:57:47  Test start time: 2025/11/27 01:57:42 Eastern Standard Time
01:57:47  Running command: /home/jenkins/workspace/Test_openjdk25_j9_extended.functional_x86-64_linux_Nightly_testList_0/jdkbinary/j2sdk-image/bin/jdmpview -core j9core.dmp
...
01:57:47   [ERR] Exception in thread "main" java.lang.ExceptionInInitializerError
01:57:47   [ERR] 	at java.base/java.lang.J9VMInternals.recordInitializationFailure(J9VMInternals.java:189)
01:57:47   [ERR] 	at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized0(Native Method)
01:57:47   [ERR] 	at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized(Unsafe.java:1455)
01:57:47   [ERR] 	at java.base/jdk.internal.reflect.MethodHandleAccessorFactory.ensureClassInitialized(MethodHandleAccessorFactory.java:341)
01:57:47   [ERR] 	at java.base/jdk.internal.reflect.MethodHandleAccessorFactory.newMethodAccessor(MethodHandleAccessorFactory.java:72)
01:57:47   [ERR] 	at java.base/jdk.internal.reflect.ReflectionFactory.newMethodAccessor(ReflectionFactory.java:119)
01:57:47   [ERR] 	at java.base/java.lang.reflect.Method.acquireMethodAccessor(Method.java:717)
01:57:47   [ERR] 	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
01:57:47   [ERR] 	at openj9.dtfj/com.ibm.j9ddr.VMDataFactory.getVMData(VMDataFactory.java:225)
01:57:47   [ERR] 	at openj9.dtfj/com.ibm.j9ddr.VMDataFactory.getAllVMData(VMDataFactory.java:141)
01:57:47   [ERR] 	at openj9.dtfj/com.ibm.j9ddr.VMDataFactory.getVMData(VMDataFactory.java:101)
01:57:47   [ERR] 	at openj9.dtfj/com.ibm.j9ddr.view.dtfj.image.J9RASImageDataFactory.getRasData(J9RASImageDataFactory.java:106)
01:57:47   [ERR] 	at openj9.dtfj/com.ibm.j9ddr.view.dtfj.image.J9RASImageDataFactory.getProcessData(J9RASImageDataFactory.java:53)
01:57:47   [ERR] 	at openj9.dtfj/com.ibm.j9ddr.view.dtfj.image.J9DDRImageProcess.checkFailureInfo(J9DDRImageProcess.java:119)
01:57:47   [ERR] 	at openj9.dtfj/com.ibm.j9ddr.view.dtfj.image.J9DDRImageProcess.getEnvironment(J9DDRImageProcess.java:195)
01:57:47   [ERR] 	at openj9.dtfj/com.ibm.j9ddr.view.dtfj.image.J9DDRImageProcess.getCommandLine(J9DDRImageProcess.java:96)
01:57:47   [ERR] 	at openj9.dtfj/com.ibm.j9ddr.view.dtfj.image.J9DDRImageProcess.getExecutablePath(J9DDRImageProcess.java:262)
01:57:47   [ERR] 	at openj9.dtfj/com.ibm.j9ddr.view.dtfj.image.J9DDRImage.passBackExecutablePath(J9DDRImage.java:92)
01:57:47   [ERR] 	at openj9.dtfj/com.ibm.j9ddr.view.dtfj.image.J9DDRImage.<init>(J9DDRImage.java:72)
01:57:47   [ERR] 	at openj9.dtfj/com.ibm.j9ddr.view.dtfj.image.J9DDRImageFactory.getImage(J9DDRImageFactory.java:132)
01:57:47   [ERR] 	at openj9.dtfj/com.ibm.dtfj.image.j9.ImageFactory.foundImage(ImageFactory.java:416)
01:57:47   [ERR] 	at openj9.dtfj/com.ibm.dtfj.image.j9.ImageFactory.getImage(ImageFactory.java:246)
01:57:47   [ERR] 	at openj9.dtfjview/com.ibm.jvm.dtfjview.commands.OpenCommand.imagesFromCommandLine(OpenCommand.java:115)
01:57:47   [ERR] 	at openj9.dtfjview/com.ibm.jvm.dtfjview.commands.OpenCommand.run(OpenCommand.java:83)
01:57:47   [ERR] 	at openj9.dtfj/com.ibm.java.diagnostics.utils.Context.tryCommand(Context.java:141)
01:57:47   [ERR] 	at openj9.dtfj/com.ibm.java.diagnostics.utils.Context.execute(Context.java:97)
01:57:47   [ERR] 	at openj9.dtfjview/com.ibm.jvm.dtfjview.CombinedContext.execute(CombinedContext.java:173)
01:57:47   [ERR] 	at openj9.dtfjview/com.ibm.jvm.dtfjview.CombinedContext.execute(CombinedContext.java:157)
01:57:47   [ERR] 	at openj9.dtfjview/com.ibm.jvm.dtfjview.Session.imageFromCommandLine(Session.java:610)
01:57:47   [ERR] 	at openj9.dtfjview/com.ibm.jvm.dtfjview.Session.sessionInit(Session.java:226)
01:57:47   [ERR] 	at openj9.dtfjview/com.ibm.jvm.dtfjview.Session.<init>(Session.java:175)
01:57:47   [ERR] 	at openj9.dtfjview/com.ibm.jvm.dtfjview.Session.getInstance(Session.java:171)
01:57:47   [ERR] 	at openj9.dtfjview/com.ibm.jvm.dtfjview.DTFJView.launch(DTFJView.java:51)
01:57:47   [ERR] 	at openj9.dtfjview/com.ibm.jvm.dtfjview.DTFJView.main(DTFJView.java:46)
01:57:47   [ERR] Caused by: java.lang.NullPointerException
01:57:47   [ERR] 	at java.base/java.lang.String.indexOf(String.java)
01:57:47   [ERR] 	at openj9.dtfj/com.ibm.j9ddr.PointerHelper.getTargetType(BytecodeGenerator.java:312)
01:57:47   [ERR] 	at openj9.dtfj/com.ibm.j9ddr.PointerHelper.doStructurePointerMethod(BytecodeGenerator.java:1601)
01:57:47   [ERR] 	at openj9.dtfj/com.ibm.j9ddr.PointerHelper.doAccessorMethods(BytecodeGenerator.java:444)
01:57:47   [ERR] 	at openj9.dtfj/com.ibm.j9ddr.PointerHelper.lambda$generate$0(BytecodeGenerator.java:1637)
01:57:47   [ERR] 	at java.base/jdk.internal.classfile.impl.ClassFileImpl.build(ClassFileImpl.java:144)
01:57:47   [ERR] 	at java.base/java.lang.classfile.ClassFile.build(ClassFile.java:558)
01:57:47   [ERR] 	at openj9.dtfj/com.ibm.j9ddr.PointerHelper.generate(BytecodeGenerator.java:1640)
01:57:47   [ERR] 	at openj9.dtfj/com.ibm.j9ddr.PointerHelper.getClassBytes(BytecodeGenerator.java:294)
01:57:47   [ERR] 	at openj9.dtfj/com.ibm.j9ddr.BytecodeGenerator.getPointerClassBytes(BytecodeGenerator.java:139)
01:57:47   [ERR] 	at openj9.dtfj/com.ibm.j9ddr.StructureReader.getPointerClassBytes(StructureReader.java:1152)
01:57:47   [ERR] 	at openj9.dtfj/com.ibm.j9ddr.J9DDRClassLoader.getPointerClass(J9DDRClassLoader.java:227)
01:57:47   [ERR] 	at openj9.dtfj/com.ibm.j9ddr.J9DDRClassLoader.findClass(J9DDRClassLoader.java:129)
01:57:47   [ERR] 	at openj9.dtfj/com.ibm.j9ddr.J9DDRClassLoader.loadClass(J9DDRClassLoader.java:206)
01:57:47   [ERR] 	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:1043)
01:57:47   [ERR] 	at com.ibm.j9ddr.vm29.pointer.AbstractPointer.<clinit>(AbstractPointer.java:57)
01:57:47   [ERR] 	... 33 more

The command the test is running is !dumpmodule too many options, although I'm not sure it got that far.
The NPE isn't readily repeatable from running jdmpview -core j9core.dmp, this is likely JIT.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions