go-delve/delve · error
offset %v did not match any regions
Error message
offset %v did not match any regions
What it means
Error "offset %v did not match any regions" thrown in go-delve/delve.
Source
Thrown at pkg/proc/core/core.go:137
pb = pb[:entry.offset+entry.length-addr]
}
pn, err := entry.reader.ReadMemory(pb, addr)
n += pn
if err != nil {
return n, fmt.Errorf("error while reading spliced memory at %#x: %v", addr, err)
}
if pn != len(pb) {
return n, nil
}
buf = buf[pn:]
addr += uint64(pn)
if len(buf) == 0 {
// Done, don't bother scanning the rest.
return n, nil
}
}
if n == 0 {
return 0, fmt.Errorf("offset %v did not match any regions", addr)
}
return n, nil
}
// offsetReaderAt wraps a ReaderAt into a MemoryReader, subtracting a fixed
// offset from the address. This is useful to represent a mapping in an address
// space. For example, if program text is mapped in at 0x400000, an
// OffsetReaderAt with offset 0x400000 can be wrapped around file.Open(program)
// to return the results of a read in that part of the address space.
type offsetReaderAt struct {
reader io.ReaderAt
offset uint64
}
// ReadMemory will read the memory at addr-offset.
func (r *offsetReaderAt) ReadMemory(buf []byte, addr uint64) (n int, err error) {
return r.reader.ReadAt(buf, int64(addr-r.offset))
}View on GitHub (pinned to a23773e6c3)
When it happens
Trigger: Thrown at pkg/proc/core/core.go:137 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of go-delve/delve@a23773e6c3 (2026-08-31).
Data as JSON: /api/errors/f18915a0c6780af1.
Report an issue: GitHub.