{"record":{"id":"ae75daf3d9ecc1c4","repo":"oracle/graal","slug":"invalid-replay-symbolic-method-index","errorCode":null,"errorMessage":"Invalid replay symbolic method index ","messagePattern":"Invalid replay symbolic method index ","errorType":"exception","errorClass":"IOException","httpStatus":null,"severity":"error","filePath":"compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/hotspot/replaycomp/BinaryReplayCodec.java","lineNumber":266,"sourceCode":"        }\n\n        private String stringAt(int index) throws IOException {\n            if (index < 0 || index >= stringTable.size()) {\n                throw new IOException(\"Invalid replay string table index \" + index);\n            }\n            return stringTable.get(index);\n        }\n\n        private void defineString(int index, String value) throws IOException {\n            if (index != stringTable.size()) {\n                throw new IOException(\"Invalid replay string definition index \" + index);\n            }\n            stringTable.add(value);\n        }\n\n        private CompilationProxy.SymbolicMethod methodAt(int index) throws IOException {\n            if (index < 0 || index >= methodTable.size()) {\n                throw new IOException(\"Invalid replay symbolic method index \" + index);\n            }\n            return methodTable.get(index);\n        }\n\n        private void defineMethod(int index, CompilationProxy.SymbolicMethod method) throws IOException {\n            if (index != methodTable.size()) {\n                throw new IOException(\"Invalid replay symbolic method definition index \" + index);\n            }\n            methodTable.add(method);\n        }\n\n        private CompilerInterfaceDeclarations.Registration registrationAt(int index) throws IOException {\n            if (index < 0 || index >= registrations.length) {\n                throw new IOException(\"Invalid replay registration index \" + index);\n            }\n            return registrations[index];\n        }\n","sourceCodeStart":248,"sourceCodeEnd":284,"githubUrl":"https://github.com/oracle/graal/blob/a66e9ccd1d7bf2552883939aa0788dfd0e294aab/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/hotspot/replaycomp/BinaryReplayCodec.java#L248-L284","documentation":"IOException thrown by BinaryReplayCodec.ReadState.methodAt when a replay stream references a symbolic-method table index outside [0, methodTable.size()). Like the string table, methods are resolved by dense index into a table populated during decoding; an out-of-range reference indicates a corrupt, truncated, or version-mismatched stream.","triggerScenarios":"A replay record refers to a SymbolicMethod index never defined (or beyond table end) — typical when the reader and writer builds order method definitions differently or bytes were lost.","commonSituations":"Cross-version replay of compilation profiles; interrupted profile capture; moving replay files between environments with different compiler builds.","solutions":["Regenerate replay data with the current compiler build.","Verify integrity (file size/checksum) of the replay artifact.","Avoid mixing replay artifacts across Graal versions."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":"try {\n    replayCodec.decode(input);\n} catch (IOException e) {\n    if (e.getMessage().startsWith(\"Invalid replay symbolic method index\")) {\n        // regenerate replay data on this build\n    }\n    throw e;\n}","preventionTips":["Keep replay artifacts pinned to the producing compiler revision.","Automate re-capture when the compiler version changes in CI."],"tags":["graalvm","replay","io","serialization"],"backgroundTag":null,"analyzedSha":"a66e9ccd1d7bf2552883939aa0788dfd0e294aab","analyzedAt":"2026-08-14T13:58:47.161Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}