3 ms·
As a practical example to 4ad's answer, here is the result of NULL-pointer dereference on the C code on my system (Arch Linux 3.9.2-1-ARCH). It does yield a SEG
by exch 13y ago
As a practical example to 4ad's answer, here is the result of NULL-pointer dereference on the C code on my system (Arch Linux 3.9.2-1-ARCH). It does yield a SEGFAULT:
http://play.golang.org/p/uoBKsRIJB7 http://play.golang.org/p/uoBKsRIJB7
- tezza 13y agoThanks exch, that's really decent of you to construct an example. I wonder that if there are multiple threads / goroutines are their callchains also printed ?
- exch 13y agoIt seems it doesn't go into a lot of detail as to the call-chain for each running goroutine, but this example may just not be very suitable to properly test it. Either way, here is the same deal with a bunch of running goroutines. http://play.golang.org/p/GQxdXpWdZD http://play.golang.org/p/GQxdXpWdZD