{"record":{"id":"f18915a0c6780af1","repo":"go-delve/delve","slug":"offset-v-did-not-match-any-regions","errorCode":null,"errorMessage":"offset %v did not match any regions","messagePattern":"offset (.+?) did not match any regions","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/proc/core/core.go","lineNumber":137,"sourceCode":"\t\t\tpb = pb[:entry.offset+entry.length-addr]\n\t\t}\n\t\tpn, err := entry.reader.ReadMemory(pb, addr)\n\t\tn += pn\n\t\tif err != nil {\n\t\t\treturn n, fmt.Errorf(\"error while reading spliced memory at %#x: %v\", addr, err)\n\t\t}\n\t\tif pn != len(pb) {\n\t\t\treturn n, nil\n\t\t}\n\t\tbuf = buf[pn:]\n\t\taddr += uint64(pn)\n\t\tif len(buf) == 0 {\n\t\t\t// Done, don't bother scanning the rest.\n\t\t\treturn n, nil\n\t\t}\n\t}\n\tif n == 0 {\n\t\treturn 0, fmt.Errorf(\"offset %v did not match any regions\", addr)\n\t}\n\treturn n, nil\n}\n\n// offsetReaderAt wraps a ReaderAt into a MemoryReader, subtracting a fixed\n// offset from the address. This is useful to represent a mapping in an address\n// space. For example, if program text is mapped in at 0x400000, an\n// OffsetReaderAt with offset 0x400000 can be wrapped around file.Open(program)\n// to return the results of a read in that part of the address space.\ntype offsetReaderAt struct {\n\treader io.ReaderAt\n\toffset uint64\n}\n\n// ReadMemory will read the memory at addr-offset.\nfunc (r *offsetReaderAt) ReadMemory(buf []byte, addr uint64) (n int, err error) {\n\treturn r.reader.ReadAt(buf, int64(addr-r.offset))\n}","sourceCodeStart":119,"sourceCodeEnd":155,"githubUrl":"https://github.com/go-delve/delve/blob/a23773e6c31361e43246bc43a424ee009679b174/pkg/proc/core/core.go#L119-L155","documentation":"Error \"offset %v did not match any regions\" thrown in go-delve/delve.","triggerScenarios":"Thrown at pkg/proc/core/core.go:137 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a23773e6c31361e43246bc43a424ee009679b174","analyzedAt":"2026-08-31T15:12:45.221Z","schemaVersion":2},"datasetVersion":"2026-08-31T19:17:28.585Z"}