{"record":{"id":"49b838b572a10cd7","repo":"go-delve/delve","slug":"tracebackancestors-is-disabled","errorCode":null,"errorMessage":"tracebackancestors is disabled","messagePattern":"tracebackancestors is disabled","errorType":"exception","errorClass":"errTracebackAncestorsDisabled","httpStatus":null,"severity":"error","filePath":"pkg/proc/variables.go","lineNumber":1049,"sourceCode":"\tif v.Unreadable != nil {\n\t\treturn nil\n\t}\n\treturn v\n}\n\nfunc (v *Variable) fieldVariable(name string) *Variable {\n\tif !v.loaded {\n\t\tpanic(\"fieldVariable called on a variable that wasn't loaded\")\n\t}\n\tfor i := range v.Children {\n\t\tif child := &v.Children[i]; child.Name == name {\n\t\t\treturn child\n\t\t}\n\t}\n\treturn nil\n}\n\nvar errTracebackAncestorsDisabled = errors.New(\"tracebackancestors is disabled\")\n\n// Ancestors returns the list of ancestors for g.\nfunc Ancestors(p *Target, g *G, n int) ([]Ancestor, error) {\n\tscope := globalScope(p, p.BinInfo(), p.BinInfo().Images[0], p.Memory())\n\ttbav, err := scope.EvalExpression(\"runtime.debug.tracebackancestors\", loadSingleValue)\n\tif err == nil && tbav.Unreadable == nil && tbav.Kind == reflect.Int {\n\t\ttba, _ := constant.Int64Val(tbav.Value)\n\t\tif tba == 0 {\n\t\t\treturn nil, errTracebackAncestorsDisabled\n\t\t}\n\t}\n\n\tav, err := g.variable.structField(\"ancestors\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tav = av.maybeDereference()\n\tav.loadValue(LoadConfig{MaxArrayValues: n, MaxVariableRecurse: 1, MaxStructFields: -1})","sourceCodeStart":1031,"sourceCodeEnd":1067,"githubUrl":"https://github.com/go-delve/delve/blob/a23773e6c31361e43246bc43a424ee009679b174/pkg/proc/variables.go#L1031-L1067","documentation":"Error \"tracebackancestors is disabled\" thrown in go-delve/delve.","triggerScenarios":"Thrown at pkg/proc/variables.go:1049 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"}