The cmd cache is insufficient so that the call stack information of the first goroutine can not be seen?

The

program reported an error, and the cmd cache was insufficient so that the call stack information of the first goroutine could not be seen. How to redirect the error to a file, or is there a better way to get the error?

Nov.11,2021

nohup


func main(){
    defer func(){
        fmt.Println("c")
        if err:=recover();err!=nil{
            fmt.Println(err) // errpanic
        }
    }()
    
    // TODO
}
Menu