[LLVMbugs] [Bug 3662] New: crash in clang::CodeGen::CodeGenFunction:: GetAddrOfStaticLocalVar

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Feb 24 12:29:10 PST 2009


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

           Summary: crash in
                    clang::CodeGen::CodeGenFunction::GetAddrOfStaticLocalVar
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: pawel.worach at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=2606)
 --> (http://llvm.org/bugs/attachment.cgi?id=2606)
Pre-processed deps.c

ccc -v -march=nocona -fstack-protector -Wsystem-headers -Werror -Wall
-Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign
-Wformat=2 -Wno-format-extra-args -Werror -c
/usr/src/usr.sbin/pkg_install/lib/deps.c
ccc version 1.0 (http://llvm.org/svn/llvm-project/cfe/trunk)
clang -S -disable-free --relocation-model=static --disable-fp-elim
--nozero-initialized-in-bss --unwind-tables=0 --fmath-errno=1 -v -o
/tmp/tmpTxVRSU.s -x c /usr/src/usr.sbin/pkg_install/lib/deps.c
ignoring nonexistent directory
"/usr/obj/usr/src/usr.sbin/pkg_install/lib/clang/1.0/include"
ignoring nonexistent directory "/System/Library/Frameworks"
ignoring nonexistent directory "/Library/Frameworks"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/include
End of search list.
*** Error code 245

(gdb) bt
#0  0x000000000084bfb9 in
clang::CodeGen::CodeGenFunction::GetAddrOfStaticLocalVar ()
#1  0x0000000000800bef in llvm::IRBuilder<true,
llvm::ConstantFolder>::CreateSub ()
#2  0x0000000000800ffc in clang::CodeGen::CodeGenModule::EmitConstantExpr ()
#3  0x0000000000802a93 in clang::CodeGen::CodeGenModule::EmitConstantExpr ()
#4  0x0000000000803084 in clang::CodeGen::CodeGenModule::EmitConstantExpr ()
#5  0x00000000007ffb04 in llvm::IRBuilder<true,
llvm::ConstantFolder>::CreateSub ()
#6  0x0000000000800e1f in clang::CodeGen::CodeGenModule::EmitConstantExpr ()
#7  0x00000000007e5250 in
clang::CodeGen::CodeGenFunction::GenerateStaticBlockVarDecl ()
#8  0x00000000007e6e01 in
clang::CodeGen::CodeGenFunction::EmitStaticBlockVarDecl ()
#9  0x0000000000840f63 in clang::CodeGen::CodeGenFunction::EmitDeclStmt ()
#10 0x0000000000845c75 in clang::CodeGen::CodeGenFunction::EmitStmt ()
#11 0x0000000000848970 in clang::CodeGen::CodeGenFunction::EmitCompoundStmt ()
#12 0x0000000000848f00 in clang::CodeGen::CodeGenFunction::EmitSimpleStmt ()
#13 0x0000000000845b57 in clang::CodeGen::CodeGenFunction::EmitStmt ()
#14 0x000000000084f2b3 in clang::CodeGen::CodeGenFunction::GenerateCode ()
#15 0x00000000007c6e5e in
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition ()
#16 0x00000000007c763b in clang::CodeGen::CodeGenModule::EmitGlobal ()
---Type <return> to continue, or q <return> to quit---
#17 0x00000000007c7a7c in clang::CodeGen::CodeGenModule::EmitTopLevelDecl ()
#18 0x00000000007c06dd in clang::CreateLLVMCodeGen ()
#19 0x000000000055c94a in llvm::cl::opt<AnalysisConstraints, false,
llvm::cl::parser<AnalysisConstraints> >::handleOccurrence ()
#20 0x00000000009162e9 in clang::ParseAST ()
#21 0x00000000005a2e8e in InitializeGCMode ()
#22 0x00000000005a5eb2 in main ()


-- 
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