[LLVMbugs] [Bug 16662] New: Segmentation fault caused by recursive template instantiations

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jul 19 09:15:13 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=16662

            Bug ID: 16662
           Summary: Segmentation fault caused by recursive template
                    instantiations
           Product: clang
           Version: trunk
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: _ at adityaramesh.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 10901
  --> http://llvm.org/bugs/attachment.cgi?id=10901&action=edit
Source file that causes the error.

Hello everyone,

With a sufficiently large number of recursive template instantiations, clang++
(version 3.4 (trunk 185261), installed using Macports on OS X 10.8.4) crashes
with a segmentation fault, even when the "-ftemplate-depth-N" flag is used with
a large enough value of N.

$ clang++-mp-3.4 -std=c++11 -stdlib=libc++ -ftemplate-depth-10000 bug.cpp

clang: error: unable to execute command: Segmentation fault: 11
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.4 (trunk 185261)
Target: x86_64-apple-darwin12.4.0
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg:
/var/folders/83/tjczqmxn1y9166m642_rxdlw0000gn/T/bug-d09d5f.cpp
clang: note: diagnostic msg:
/var/folders/83/tjczqmxn1y9166m642_rxdlw0000gn/T/bug-d09d5f.sh
clang: note: diagnostic msg: 

********************

-- 
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/20130719/95091223/attachment.html>


More information about the llvm-bugs mailing list