{"record":{"id":"347e7a7302bbcaf7","repo":"ruby/rubygems","slug":"unsupported-marshal-version-v-bytes-map-ord-j","errorCode":null,"errorMessage":"Unsupported marshal version #{v.bytes.map(&:ord).join(\".\")}, expected #{Marshal::MAJOR_VERSION}.#{Marshal::MINOR_VERSION}","messagePattern":"Unsupported marshal version #(.+?), expected #(.+?)\\.#(.+?)","errorType":"exception","errorClass":"Gem::SafeMarshal::Reader::UnsupportedVersionError","httpStatus":null,"severity":"error","filePath":"lib/rubygems/safe_marshal/reader.rb","lineNumber":52,"sourceCode":"        @object_links = {}\n        @symbol_links = {}\n      end\n\n      def read!\n        read_header\n        root = read_element\n        raise UnconsumedBytesError, \"expected EOF, got #{@io.read(10).inspect}... after top-level element #{root.class}\" unless @io.eof?\n        root\n      end\n\n      private\n\n      MARSHAL_VERSION = [Marshal::MAJOR_VERSION, Marshal::MINOR_VERSION].map(&:chr).join.freeze\n      private_constant :MARSHAL_VERSION\n\n      def read_header\n        v = @io.read(2)\n        raise UnsupportedVersionError, \"Unsupported marshal version #{v.bytes.map(&:ord).join(\".\")}, expected #{Marshal::MAJOR_VERSION}.#{Marshal::MINOR_VERSION}\" unless v == MARSHAL_VERSION\n      end\n\n      def read_bytes(n)\n        raise NegativeLengthError if n < 0\n        str = @io.read(n)\n        raise EOFError, \"expected #{n} bytes, got EOF\" if str.nil?\n        raise DataTooShortError, \"expected #{n} bytes, got #{str.inspect}\" unless str.bytesize == n\n        str\n      end\n\n      def read_byte\n        @io.getbyte || raise(EOFError, \"Unexpected EOF\")\n      end\n\n      def read_integer\n        b = read_byte\n\n        case b","sourceCodeStart":34,"sourceCodeEnd":70,"githubUrl":"https://github.com/ruby/rubygems/blob/86cbb817a38ce8477b181c17467a703ded3f2be8/lib/rubygems/safe_marshal/reader.rb#L34-L70","documentation":"Error \"Unsupported marshal version #{v.bytes.map(&:ord).join(\".\")}, expected #{Marshal::MAJOR_VERSION}.#{Marshal::MINOR_VERSION}\" thrown in ruby/rubygems.","triggerScenarios":"Thrown at lib/rubygems/safe_marshal/reader.rb:52 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["The data was marshaled by an incompatible Marshal version; regenerate it with a current Ruby","Re-download the file from the source"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"86cbb817a38ce8477b181c17467a703ded3f2be8","analyzedAt":"2026-08-23T06:27:48.159Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}