errgo: function to get stackframe info