{"record":{"id":"08b795d38d375559","repo":"go-delve/delve","slug":"internal-debugger-error-callinjectioncomplete2-ca","errorCode":null,"errorMessage":"internal debugger error: CallInjectionComplete2 called when there still are addresses to pin","messagePattern":"internal debugger error: CallInjectionComplete2 called when there still are addresses to pin","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/proc/eval.go","lineNumber":1275,"sourceCode":"\t\tif actualArg.Name == \"\" {\n\t\t\tactualArg.Name = astutil.ExprToString(op.ArgExpr)\n\t\t}\n\t\tstack.err = funcCallCopyOneArg(scope, fncall, actualArg, &fncall.formalArgs[op.ArgNum], curthread)\n\n\tcase *evalop.CallInjectionComplete:\n\t\tfncall := stack.fncallPeek()\n\t\tfncall.doPinning = op.DoPinning\n\t\tif op.DoPinning {\n\t\t\tfncall.undoInjection.doComplete2 = true\n\t\t} else {\n\t\t\tfncall.undoInjection = nil\n\t\t}\n\t\tstack.callInjectionContinue = true\n\n\tcase *evalop.CallInjectionComplete2:\n\t\tfncall := stack.fncallPeek()\n\t\tif len(fncall.addrsToPin) != 0 {\n\t\t\tstack.err = fmt.Errorf(\"internal debugger error: CallInjectionComplete2 called when there still are addresses to pin\")\n\t\t}\n\t\tfncall.undoInjection = nil\n\t\tregs, err := curthread.Registers()\n\t\tif err == nil {\n\t\t\tcallInjectionComplete2(scope, scope.BinInfo, fncall, regs, curthread)\n\t\t\tstack.callInjectionContinue = true\n\t\t} else {\n\t\t\tstack.err = err\n\t\t}\n\n\tcase *evalop.CallInjectionStartSpecial:\n\t\tstack.callInjectionContinue = scope.callInjectionStartSpecial(stack, op, curthread)\n\n\tcase *evalop.ConvertAllocToString:\n\t\tscope.convertAllocToString(stack)\n\n\tcase *evalop.SetValue:\n\t\tlhv := stack.pop()","sourceCodeStart":1257,"sourceCodeEnd":1293,"githubUrl":"https://github.com/go-delve/delve/blob/a23773e6c31361e43246bc43a424ee009679b174/pkg/proc/eval.go#L1257-L1293","documentation":"Error \"internal debugger error: CallInjectionComplete2 called when there still are addresses to pin\" thrown in go-delve/delve.","triggerScenarios":"Thrown at pkg/proc/eval.go:1275 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"}