Created attachment 148031 [details] the patch to gdb 7.8_3 This patch solve an issue, using strcpy; now strncpy is used using moreover the right size (Thanks to James Muchow) Adding the signal trampoline detection via the new sysctl. If the new sysctl is not available, gdb still uses the old sysctl. Removing also some gcc specific warning options, causing tons of unuseful warnings.
A commit references this bug: Author: tijl Date: Tue Oct 7 10:25:44 UTC 2014 New revision: 370292 URL: https://svnweb.freebsd.org/changeset/ports/370292 Log: - Fix a buffer overflow when copying a string - Use sysctl KERN_PROC_SIGTRAMP to retrieve the signal trampoline location for the native amd64 ABI. This fixes unwinding over the signal frame after trampoline was moved to the shared page. (https://svnweb.freebsd.org/changeset/base/258663) - Remove some gcc specific warning flags PR: 194190 Submitted by: luca.pizzamiglio@gmail.com (maintainer) Changes: head/devel/gdb/Makefile head/devel/gdb/files/fbsd-threads.c head/devel/gdb/files/patch-gdb-amd64fbsd-nat.c head/devel/gdb/files/patch-gdb-configure