Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Aug 2014 17:09:50 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-threads@FreeBSD.org
Subject:   [Bug 192686] New: Segfaults using combinations of -pie -pthread -lm(|_p) when profiling
Message-ID:  <bug-192686-16@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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@FreeBSD.org
          Reporter: riggs@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-192686-16>