[llvm-bugs] [Bug 25435] New: Seg fault with gprof and optimization turned on.

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Nov 6 12:33:39 PST 2015


https://llvm.org/bugs/show_bug.cgi?id=25435

            Bug ID: 25435
           Summary: Seg fault with gprof and optimization turned on.
           Product: clang
           Version: 3.7
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: burkett at rice.edu
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 15236
  --> https://llvm.org/bugs/attachment.cgi?id=15236&action=edit
six files in one.  file name preceeds content.  Not sure how to attach more
than one file.

Program compiles with[out] optimization -O1 and executes.  Compiled with
profiling without optimization, executes.  Compiled with profiling and
optimization, seg faults with call to mcount() (from /lib64/libc.so.6 as
determined from dynamic library build).

obtained clang-3.7.0 from: http://llvm.org/releases/download.html

clang/llvm built from scratch on rhel6.5 using:
glibc.i686     2.12-1.166.el6_7.3               @rhel-x86_64-server-6
glibc.x86_64   2.12-1.166.el6_7.3               @rhel-x86_64-server-6
devtoolset-3.x86_64        3.1-12.el6           @rhel-x86_64-server-6-rhscl-1
  gcc (GCC) 4.9.2 20150212 (Red Hat 4.9.2-6)

Clang build consisted of llvm, cfe, compiler-rt tools.  I'll continue to build
and incorporate the additional llvm tools and libraries.  Poked a lot at this
and will appreciate all help that can be rendered.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151106/4ac24f9c/attachment.html>


More information about the llvm-bugs mailing list