From bugzilla-noreply at freebsd.org Fri Aug 15 17:09:51 2014 From: bugzilla-noreply at freebsd.org (bugzilla-noreply at freebsd.org) Date: Fri, 15 Aug 2014 17:09:50 +0000 Subject: [Bug 192686] New: Segfaults using combinations of -pie -pthread -lm(|_p) when profiling Message-ID: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192686 Bug ID: 192686 Summary: Segfaults using combinations of -pie -pthread -lm(|_p) when profiling Product: Base System Version: 11.0-CURRENT Hardware: i386 OS: Any Status: Needs Triage Severity: Affects Many People Priority: --- Component: threads Assignee: freebsd-threads at FreeBSD.org Reporter: riggs at FreeBSD.org Created attachment 145830 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=145830&action=edit Demo code for bug Combinations of -pie, -lm(|_p) and -pthread compile successfully but then segfault. Using attached demo code I get this on FreeBSD 11.0-CURRENT #0 r268981: [1]> clang -pg -pie -pthread -lm profile.c && ./a.out Segmentation fault (core dumped) [2]> clang -pg -pie -pthread -lm_p profile.c && ./a.out Segmentation fault (core dumped) [3]> clang -pg -pthread -lm profile.c && ./a.out Segmentation fault (core dumped) [4]> clang -pg -pthread -lm_p profile.c && ./a.out [SUCCESS] [5]> clang -pg -pthread -lm profile.c && ./a.out Segmentation fault (core dumped) [6]> clang -pg -pie -pthread profile.c && ./a.out Segmentation fault (core dumped) At least 2,4,6 are supposed to work, if not all. On 10-STABLE, e.g. 3+4 work as expected. -- You are receiving this mail because: You are the assignee for the bug.