Slide 15
Slide 15 text
Detailed commit message
runtime: use set_thread_area instead of modify_ldt on linux/386
linux/386 depends on modify_ldt system call, but recent Linux kernels can disable this
system call. Any Go programs built as linux/386 crash with the message 'Trace/
breakpoint trap'.
The kernel config CONFIG_MODIFY_LDT_SYSCALL, which control enable/disable
modify_ldt, is disabled on Amazon Linux 2016.03.
This fixes this problem by using set_thread_area instead of modify_ldt on linux/386.
Fixes #14795.