[LLVMbugs] [Bug 11912] New: Segmentation fault in clang::CFG::buildCFG

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Feb 2 16:23:33 PST 2012


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

             Bug #: 11912
           Summary: Segmentation fault in clang::CFG::buildCFG
           Product: clang
           Version: 3.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: nerijus at users.sourceforge.net
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 7988
  --> http://llvm.org/bugs/attachment.cgi?id=7988
Preprocessed source

Compiling wxWidgets svn head (CC=clang CXX=clang++ ../wxWidgets/configure
--enable-debug --with-gtk; make) segfaults:

0  libLLVM-3.0.so 0xb66c4159
1  libLLVM-3.0.so 0xb66c4814
2                 0xb7782400 __kernel_sigreturn + 0
3  clang          0x088bffe6
4  clang          0x088c0d8b
5  clang          0x088c38d0
6  clang          0x088c16c3
7  clang          0x088c1ea6
8  clang          0x088c390a
9  clang          0x088c16c3
10 clang          0x088c407c clang::CFG::buildCFG(clang::Decl const*,
clang::Stmt*, clang::ASTContext*, clang::CFG::BuildOptions const&) + 700
11 clang          0x088b87ed clang::AnalysisContext::getCFG() + 109
12 clang          0x0875f934
clang::sema::AnalysisBasedWarnings::IssueWarnings(clang::sema::AnalysisBasedWarnings::Policy,
clang::sema::FunctionScopeInfo*, clang::Decl const*, clang::BlockExpr const*) +
1412
13 clang          0x084d94c8
clang::Sema::PopFunctionOrBlockScope(clang::sema::AnalysisBasedWarnings::Policy
const*, clang::Decl const*, clang::BlockExpr const*) + 200
14 clang          0x08557275 clang::Sema::ActOnFinishFunctionBody(clang::Decl*,
clang::Stmt*, bool) + 325
15 clang          0x085577a4 clang::Sema::ActOnFinishFunctionBody(clang::Decl*,
clang::Stmt*) + 52
16 clang          0x08466e07
clang::Parser::ParseFunctionStatementBody(clang::Decl*,
clang::Parser::ParseScope&) + 215
17 clang          0x08483654
clang::Parser::ParseFunctionDefinition(clang::Parser::ParsingDeclarator&,
clang::Parser::ParsedTemplateInfo const&) + 948
18 clang          0x08492f9e
clang::Parser::ParseDeclGroup(clang::Parser::ParsingDeclSpec&, unsigned int,
bool, clang::SourceLocation*, clang::Parser::ForRangeInit*) + 606
19 clang          0x0847e0d9
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&,
clang::AccessSpecifier) + 217
20 clang          0x0847e7c7
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&,
clang::AccessSpecifier) + 615
21 clang          0x08480849
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 2905
22 clang          0x08480ed5
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) +
18123 clang          0x084546fc clang::ParseAST(clang::Sema&, bool) + 300
24 clang          0x082243a8 clang::ASTFrontendAction::ExecuteAction() + 104
25 clang          0x083211e3 clang::CodeGenAction::ExecuteAction() + 67
26 clang          0x08224d83 clang::FrontendAction::Execute() + 275
27 clang          0x08207a25
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 325
28 clang          0x081edcec
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1052
29 clang          0x081e50ae cc1_main(char const**, char const**, char const*,
void*) + 814
30 clang          0x081e2425 main + 693
31 libc.so.6      0x4a1d96b3 __libc_start_main + 243
32 clang          0x081e4c01
Stack dump:
0.    Program arguments: /usr/bin/clang -cc1 -triple i386-redhat-linux-gnu
-emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name
filectrl.cpp -pic-level 2 -mdisable-fp-elim -masm-verbose -mconstructor-aliases
-target-cpu pentium4 -target-linker-version 2.22 -momit-leaf-frame-pointer -g
-coverage-file coredll_filectrl.o -resource-dir /usr/bin/../lib/clang/3.0
-dependency-file coredll_filectrl.d -MT coredll_filectrl.o -D __WXGTK__ -D
WXBUILDING -D WXUSINGDLL -D WXMAKINGDLL_CORE -D wxUSE_BASE=0 -D PIC -D
_FILE_OFFSET_BITS=64 -D WX_PRECOMP -I ./.pch/wxprec_coredll -I
../wxWidgets/src/regex -I
/a/M/wxWindows.29/build.gtk2.clang/lib/wx/include/gtk2-unicode-2.9 -I
../wxWidgets/include -I /usr/include/gtk-2.0 -I /usr/lib/gtk-2.0/include -I
/usr/include/atk-1.0 -I /usr/include/cairo -I /usr/include/gdk-pixbuf-2.0 -I
/usr/include/pango-1.0 -I /usr/include/glib-2.0 -I /usr/lib/glib-2.0/include -I
/usr/include/pixman-1 -I /usr/include/freetype2 -I /usr/include/libpng12 -I
/usr/include/gstreamer-0.10 -I /usr/include/glib-2.0 -I
/usr/lib/glib-2.0/include -I /usr/include/libxml2 -I /usr/include/libsoup-2.4
-I /usr/include/webkit-1.0 -I /usr/include/libgnomeprintui-2.2 -I
/usr/include/libgnomeprint-2.2 -I /usr/include/libgnomecanvas-2.0 -I
/usr/include/libart-2.0 -I /usr/include/glib-2.0 -I /usr/lib/glib-2.0/include
-I /usr/include/libxml2 -I /usr/include/pango-1.0 -I /usr/include/gail-1.0 -I
/usr/include/gtk-2.0 -I /usr/include/freetype2 -I /usr/include/atk-1.0 -I
/usr/lib/gtk-2.0/include -I /usr/include/cairo -I /usr/include/gdk-pixbuf-2.0
-I /usr/include/pixman-1 -I /usr/include/libpng12 -I
/usr/include/gtk-unix-print-2.0 -I /usr/include/gtk-2.0 -I /usr/include/atk-1.0
-I /usr/include/cairo -I /usr/include/gdk-pixbuf-2.0 -I /usr/include/pango-1.0
-I /usr/lib/gtk-2.0/include -I /usr/include/glib-2.0 -I
/usr/lib/glib-2.0/include -I /usr/include/pixman-1 -I /usr/include/freetype2 -I
/usr/include/libpng12 -fmodule-cache-path /var/tmp/clang-module-cache
-internal-isystem
/usr/bin/../lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2
-internal-isystem
/usr/bin/../lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/i686-redhat-linux
-internal-isystem
/usr/bin/../lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/backward
-internal-isystem /usr/local/include -internal-isystem
/usr/bin/../lib/clang/3.0/include -internal-externc-isystem /usr/include -O0
-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy -Woverloaded-virtual
-fdeprecated-macro -ferror-limit 19 -fmessage-length 107 -pthread -fgnu-runtime
-fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
coredll_filectrl.o -x c++ ../wxWidgets/src/gtk/filectrl.cpp 
1.    ../wxWidgets/src/gtk/filectrl.cpp:171:1: current parser token 'void'
2.    ../wxWidgets/src/gtk/filectrl.cpp:111:1: parsing function body
'SetWildcard'
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal 2 (use -v to see
invocation)
clang: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
information.
clang: note: diagnostic msg: Preprocessed source(s) are located at:
clang: note: diagnostic msg: /tmp/filectrl-6cZeXT.ii

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