{"record":{"id":"0537a6016e51f083","repo":"go-delve/delve","slug":"not-supported-ptr-size-d","errorCode":null,"errorMessage":"not supported ptr size %d","messagePattern":"not supported ptr size (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/proc/linutil/dynamic.go","lineNumber":43,"sourceCode":")\n\n// readUintRaw reads an integer of ptrSize bytes, with the specified byte order, from reader.\nfunc readUintRaw(reader io.Reader, order binary.ByteOrder, ptrSize int) (uint64, error) {\n\tswitch ptrSize {\n\tcase 4:\n\t\tvar n uint32\n\t\tif err := binary.Read(reader, order, &n); err != nil {\n\t\t\treturn 0, err\n\t\t}\n\t\treturn uint64(n), nil\n\tcase 8:\n\t\tvar n uint64\n\t\tif err := binary.Read(reader, order, &n); err != nil {\n\t\t\treturn 0, err\n\t\t}\n\t\treturn n, nil\n\t}\n\treturn 0, fmt.Errorf(\"not supported ptr size %d\", ptrSize)\n}\n\n// dynamicSearchDebug searches for the DT_DEBUG entry in the .dynamic section\nfunc dynamicSearchDebug(p proc.Process) (uint64, error) {\n\tbi := p.BinInfo()\n\tmem := p.Memory()\n\n\tdynbuf := make([]byte, bi.ElfDynamicSection.Size)\n\t_, err := mem.ReadMemory(dynbuf, bi.ElfDynamicSection.Addr)\n\tif err != nil {\n\t\treturn 0, err\n\t}\n\n\trd := bytes.NewReader(dynbuf)\n\n\tfor {\n\t\tvar tag, val uint64\n\t\tif tag, err = readUintRaw(rd, binary.LittleEndian, p.BinInfo().Arch.PtrSize()); err != nil {","sourceCodeStart":25,"sourceCodeEnd":61,"githubUrl":"https://github.com/go-delve/delve/blob/a23773e6c31361e43246bc43a424ee009679b174/pkg/proc/linutil/dynamic.go#L25-L61","documentation":"Error \"not supported ptr size %d\" thrown in go-delve/delve.","triggerScenarios":"Thrown at pkg/proc/linutil/dynamic.go:43 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"}