{"record":{"id":"e77008a7f4119504","repo":"go-delve/delve","slug":"could-not-find-moduledata","errorCode":null,"errorMessage":"could not find moduledata","messagePattern":"could not find moduledata","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/proc/bininfo.go","lineNumber":1840,"sourceCode":"\t// \t...\n\t// \trodata uintptr\n\t// \tgofunc uintptr\n\t// \t...\n\t// }\n\t// So do some pointer arithmetic to get the value we need.\n\tgofuncval := binary.LittleEndian.Uint64(moduleData[rodata+(1*ptrsize) : rodata+(2*ptrsize)])\n\treturn gofuncval, nil\n}\n\nfunc parseModuleData(dataSection []byte, tableAddr uint64) ([]byte, error) {\n\tbuf := new(bytes.Buffer)\n\terr := binary.Write(buf, binary.LittleEndian, &tableAddr)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\toff := bytes.Index(dataSection, buf.Bytes()[:4])\n\tif off == -1 {\n\t\treturn nil, errors.New(\"could not find moduledata\")\n\t}\n\treturn dataSection[off : off+0x300], nil\n}\n\n// _STT_FUNC is a code object, see /usr/include/elf.h for a full definition.\nconst _STT_FUNC = 2\n\nfunc (bi *BinaryInfo) loadSymbolName(image *Image, file *elf.File, wg *sync.WaitGroup) {\n\tdefer wg.Done()\n\tif bi.SymNames == nil {\n\t\tbi.SymNames = make(map[uint64]*elf.Symbol)\n\t}\n\tsymSecs, _ := file.Symbols()\n\tfor _, symSec := range symSecs {\n\t\tif symSec.Info == _STT_FUNC { // TODO(chainhelen), need to parse others types.\n\t\t\ts := symSec\n\t\t\tbi.SymNames[symSec.Value+image.StaticBase] = &s\n\t\t}","sourceCodeStart":1822,"sourceCodeEnd":1858,"githubUrl":"https://github.com/go-delve/delve/blob/a23773e6c31361e43246bc43a424ee009679b174/pkg/proc/bininfo.go#L1822-L1858","documentation":"Error \"could not find moduledata\" thrown in go-delve/delve.","triggerScenarios":"Thrown at pkg/proc/bininfo.go:1840 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"}