[LLVMbugs] [Bug 21303] New: Assertion failed `cast<ConstantArrayType>(E->getType())->getSize() - 1 == FunctionName.size() && "Computed __func__ length differs from type!"'

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Oct 16 22:34:08 PDT 2014


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

            Bug ID: 21303
           Summary: Assertion failed
                    `cast<ConstantArrayType>(E->getType())->getSize() - 1
                    == FunctionName.size() && "Computed __func__ length
                    differs from type!"'
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: odtihmal at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

This appears in stable and master branch.

clang-3.4: /llvm/tools/clang/lib/CodeGen/CGExpr.cpp:1984:
clang::CodeGen::LValue
clang::CodeGen::CodeGenFunction::EmitPredefinedLValue(const
clang::PredefinedExpr*): Assertion
`cast<ConstantArrayType>(E->getType())->getSize() - 1 == FunctionName.size() &&
"Computed __func__ length differs from type!"' failed.
0  clang-3.4 0x093e655c llvm::sys::PrintStackTrace(_IO_FILE*) + 44
1  clang-3.4 0x093e678f
2  clang-3.4 0x093e6134
3            0x4001e400 __kernel_sigreturn + 0
4            0x4001e424 __kernel_vsyscall + 16
5  libc.so.6 0x401ff661 gsignal + 81
6  libc.so.6 0x40202a92 abort + 386
7  libc.so.6 0x401f8878 __assert_fail + 248
8  clang-3.4 0x0951569b
clang::CodeGen::CodeGenFunction::EmitPredefinedLValue(clang::PredefinedExpr
const*) + 2299
Stack dump:
0.      Program arguments: /usr/local/bin/clang-3.4 -cc1 -triple
i386-pc-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name
ExecutionDepsFix.cpp -mrelocation-model pic -pic-level 2 -mdisable-fp-elim
-fmath-errno -masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu
pentium4 -target-linker-version 2.22 -g -ffunction-sections -fdata-sections
-coverage-file /llvm/lib/CodeGen/Debug+Asserts/ExecutionDepsFix.o -resource-dir
/usr/local/bin/../lib/clang/3.4 -dependency-file
/llvm/lib/CodeGen/Debug+Asserts/ExecutionDepsFix.d.tmp -MP -MT
/llvm/lib/CodeGen/Debug+Asserts/ExecutionDepsFix.o -MT
/llvm/lib/CodeGen/Debug+Asserts/ExecutionDepsFix.d -D _DEBUG -D _GNU_SOURCE -D
__STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS -I
/llvm/include -I /llvm/lib/CodeGen -internal-isystem
/usr/lib/gcc/i486-linux-gnu/4.7/../../../../include/c++/4.7 -internal-isystem
/usr/lib/gcc/i486-linux-gnu/4.7/../../../../include/c++/4.7/i486-linux-gnu
-internal-isystem
/usr/lib/gcc/i486-linux-gnu/4.7/../../../../include/c++/4.7/backward
-internal-isystem
/usr/lib/gcc/i486-linux-gnu/4.7/../../../../include/i486-linux-gnu/c++/4.7
-internal-isystem /usr/local/include -internal-isystem
/usr/local/bin/../lib/clang/3.4/include -internal-externc-isystem
/usr/include/i386-linux-gnu -internal-externc-isystem /include
-internal-externc-isystem /usr/include -Woverloaded-virtual -Wcast-qual
-Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings
-Wcovered-switch-default -Wno-uninitialized -Wno-missing-field-initializers
-pedantic -std=c++11 -fconst-strings -fdeprecated-macro -fdebug-compilation-dir
/llvm/lib/CodeGen -ferror-limit 19 -fmessage-length 126
-fvisibility-inlines-hidden -mstackrealign -fno-rtti -fobjc-runtime=gcc
-fobjc-default-synthesize-properties -fdiagnostics-show-option
-fcolor-diagnostics -vectorize-slp -o
/llvm/lib/CodeGen/Debug+Asserts/ExecutionDepsFix.o -x c++ ExecutionDepsFix.cpp 
1.      <eof> parser at end of file
2.      Per-file LLVM IR generation
3.      /llvm/include/llvm/Support/Allocator.h:375:28: Generating code for
declaration
'llvm::SpecificBumpPtrAllocator<<anonymous>::DomainValue>::DestroyAll()::<anonymous
class>::operator()'
clang-3.4: error: unable to execute command: Aborted
clang-3.4: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.4 (189728)
Target: i386-pc-linux-gnu
Thread model: posix
clang-3.4: 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-3.4: 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/20141017/f84ac91d/attachment.html>


More information about the llvm-bugs mailing list