https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52583
--- Comment #29 from ian at gcc dot gnu.org <ian at gcc dot gnu.org> --- Author: ian Date: Fri Jun 13 13:56:14 2014 New Revision: 211640 URL: https://gcc.gnu.org/viewcvs?rev=211640&root=gcc&view=rev Log: PR go/52583 runtime: Stop backtrace at a few recognized functions. On x86_64 Solaris the makecontext function does not properly indicate that it is at the top of the stack. Attempting to unwind the stack past a call to makecontext tends to crash. This patch changes libgo to look for certain functions that are always found at the top of the stack, and to stop unwinding when it reaches one of those functions. There is never anything interesting past these functions--that is, there is never any code written by the user. Modified: trunk/libgo/runtime/go-callers.c