[LLVMbugs] [Bug 13368] New: instantiation-depth-defarg.cpp stack overflow

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Jul 15 09:59:46 PDT 2012


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

             Bug #: 13368
           Summary: instantiation-depth-defarg.cpp stack overflow
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: pawel.worach at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 8903
  --> http://llvm.org/bugs/attachment.cgi?id=8903
Valgrind output

On a r160228 self-host build on FreeBSD the instantiation-depth-defarg.cpp test
fails with a stack overflow. This began somewhere between r159808 and r160036
(sorry about the big regression range, the build was broken for some time).

There is also some valgrind output, probably unrelated.

(gdb) run -cc1 -internal-isystem
/data/buildslave/clang-amd64-freebsd-fnt/obj/llvm.2/Release+Asserts/bin/../lib/clang/3.2/include
-fsyntax-only -verify -ftemplate-depth 256 -ftemplate-backtrace-limit 4
/data/buildslave/clang-amd64-freebsd-fnt/src-llvm/tools/clang/test/SemaTemplate/instantiation-depth-defarg.cpp
Starting program:
/data/buildslave/clang-amd64-freebsd-fnt/obj/llvm.2/Release+Asserts/bin/clang
-cc1 -internal-isystem
/data/buildslave/clang-amd64-freebsd-fnt/obj/llvm.2/Release+Asserts/bin/../lib/clang/3.2/include
-fsyntax-only -verify -ftemplate-depth 256 -ftemplate-backtrace-limit 4
/data/buildslave/clang-amd64-freebsd-fnt/src-llvm/tools/clang/test/SemaTemplate/instantiation-depth-defarg.cpp
(no debugging symbols found)...[New LWP 100111]
(no debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...[New Thread 803407400 (LWP
100111/clang)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 803407400 (LWP 100111/clang)]
0x0000000000b03a74 in clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformExpr ()
(gdb) bt
#0  0x0000000000b03a74 in clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformExpr ()
#1  0x0000000000b124db in clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformBinaryOperator ()
#2  0x0000000000b071cf in clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformExpr ()
#3  0x0000000000b0ffad in clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformTemplateArgument ()
#4  0x0000000000b112a3 in clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformTemplateSpecializationType ()
#5  0x0000000000b0daa6 in clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformNestedNameSpecifierLoc ()
#6  0x0000000000b05134 in clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformExpr ()
#7  0x0000000000b133e9 in clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCallExpr ()
#8  0x0000000000b07233 in clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformExpr ()
#9  0x0000000000b03a27 in clang::Sema::SubstExpr ()
#10 0x00000000009bc7a5 in clang::Sema::BuildCXXDefaultArgExpr ()
#11 0x00000000009bd703 in clang::Sema::GatherArgumentsForCall ()
#12 0x00000000009bcee8 in clang::Sema::ConvertArgumentsForCall ()
#13 0x00000000009bea43 in clang::Sema::BuildResolvedCallExpr ()
---Type <return> to continue, or q <return> to quit---
#14 0x00000000009b2394 in clang::Sema::ActOnCallExpr ()
#15 0x0000000000b134be in clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCallExpr ()
#16 0x0000000000b07233 in clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformExpr ()
#17 0x0000000000b03a27 in clang::Sema::SubstExpr ()
#18 0x00000000009bc7a5 in clang::Sema::BuildCXXDefaultArgExpr ()
#19 0x00000000009bd703 in clang::Sema::GatherArgumentsForCall ()
#20 0x00000000009bcee8 in clang::Sema::ConvertArgumentsForCall ()
#21 0x00000000009bea43 in clang::Sema::BuildResolvedCallExpr ()
#22 0x00000000009b2394 in clang::Sema::ActOnCallExpr ()
#23 0x0000000000b134be in clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCallExpr ()
#24 0x0000000000b07233 in clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformExpr ()
#25 0x0000000000b03a27 in clang::Sema::SubstExpr ()
#26 0x00000000009bc7a5 in clang::Sema::BuildCXXDefaultArgExpr ()
#27 0x00000000009bd703 in clang::Sema::GatherArgumentsForCall ()
#28 0x00000000009bcee8 in clang::Sema::ConvertArgumentsForCall ()
#29 0x00000000009bea43 in clang::Sema::BuildResolvedCallExpr ()
#30 0x00000000009b2394 in clang::Sema::ActOnCallExpr ()
#31 0x0000000000b134be in clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCallExpr ()
---Type <return> to continue, or q <return> to quit---
#32 0x0000000000b07233 in clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformExpr ()
#33 0x0000000000b03a27 in clang::Sema::SubstExpr ()
#34 0x00000000009bc7a5 in clang::Sema::BuildCXXDefaultArgExpr ()
#35 0x00000000009bd703 in clang::Sema::GatherArgumentsForCall ()
#36 0x00000000009bcee8 in clang::Sema::ConvertArgumentsForCall ()
#37 0x00000000009bea43 in clang::Sema::BuildResolvedCallExpr ()
#38 0x00000000009b2394 in clang::Sema::ActOnCallExpr ()
#39 0x0000000000b134be in clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCallExpr ()
#40 0x0000000000b07233 in clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformExpr ()
#41 0x0000000000b03a27 in clang::Sema::SubstExpr ()
#42 0x00000000009bc7a5 in clang::Sema::BuildCXXDefaultArgExpr ()
#43 0x00000000009bd703 in clang::Sema::GatherArgumentsForCall ()
#44 0x00000000009bcee8 in clang::Sema::ConvertArgumentsForCall ()
#45 0x00000000009bea43 in clang::Sema::BuildResolvedCallExpr ()
#46 0x00000000009b2394 in clang::Sema::ActOnCallExpr ()
#47 0x0000000000b134be in clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCallExpr ()
#48 0x0000000000b07233 in clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformExpr ()
#49 0x0000000000b03a27 in clang::Sema::SubstExpr ()
...

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list