According to what I know, there are some cases which will cause fatal
errors instead of panic:
* start a new goroutine by call a nil function value
* out of memory
* unlock of unlocked mutex
* data races in map element access
* stack overflow
On Friday, January 4, 2019 at 10:43:24 AM UTC-5, 伊藤和也 wrote:
>
> I tried to recover a stack overflow but I couldn't.
>
> func main() {
> defer func() {
> src := recover()
> fmt.Println(src)
> }()
> main()
> }
>
>
>
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.