[LLVMbugs] [Bug 12353] New: Crash while building p11-kit

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Mar 26 00:25:01 PDT 2012


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

             Bug #: 12353
           Summary: Crash while building p11-kit
           Product: clang
           Version: 3.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: stefw at gnome.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


p11-kit is available here: http://p11-glue.freedesktop.org/p11-kit.html

It has no dependencies outside of the standard stuff like libc and libdl, so
its easy to build.

Building with Fedora's packaged clang:

[stef at stef-desktop p11-kit]$ clang --version
clang version 3.0 (tags/RELEASE_30/final)
Target: x86_64-redhat-linux-gnu
Thread model: posix

Building it like this: CC=clang sh autogen.sh --prefix=/data/build
--libdir=/data/build/lib64 --disable-strict --enable-gtk-doc

The crash:

[stef at stef-desktop p11-kit]$ make
make  all-recursive
make[1]: Entering directory `/data/projects/p11-kit'
Making all in p11-kit
make[2]: Entering directory `/data/projects/p11-kit/p11-kit'
  CC     util.lo
  CC     compat.lo
  CC     conf.lo
0  libLLVM-3.0.so  0x00007ff0da2a979f
1  libLLVM-3.0.so  0x00007ff0da2a9c09
2  libpthread.so.0 0x0000003a1ac0efe0
3  clang           0x0000000000c5db02
4  clang           0x0000000000c5e587
5  clang           0x0000000000c6037d
clang::runUninitializedVariablesAnalysis(clang::DeclContext const&, clang::CFG
const&, clang::AnalysisContext&, clang::UninitVariablesHandler&,
clang::UninitVariablesAnalysisStats&) + 1597
6  clang           0x0000000000af075a
clang::sema::AnalysisBasedWarnings::IssueWarnings(clang::sema::AnalysisBasedWarnings::Policy,
clang::sema::FunctionScopeInfo*, clang::Decl const*, clang::BlockExpr const*) +
970
7  clang           0x00000000008a338c
clang::Sema::PopFunctionOrBlockScope(clang::sema::AnalysisBasedWarnings::Policy
const*, clang::Decl const*, clang::BlockExpr const*) + 172
8  clang           0x00000000009209ee
clang::Sema::ActOnFinishFunctionBody(clang::Decl*, clang::Stmt*, bool) + 334
9  clang           0x00000000008481e0
clang::Parser::ParseFunctionStatementBody(clang::Decl*,
clang::Parser::ParseScope&) + 192
10 clang           0x0000000000859564
clang::Parser::ParseFunctionDefinition(clang::Parser::ParsingDeclarator&,
clang::Parser::ParsedTemplateInfo const&) + 964
11 clang           0x000000000086e7d7
clang::Parser::ParseDeclGroup(clang::Parser::ParsingDeclSpec&, unsigned int,
bool, clang::SourceLocation*, clang::Parser::ForRangeInit*) + 807
12 clang           0x00000000008532e5
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&,
clang::AccessSpecifier) + 149
13 clang           0x0000000000853765
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&,
clang::AccessSpecifier) + 565
14 clang           0x000000000085718d
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 2157
15 clang           0x00000000008574c0
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 144
16 clang           0x0000000000830c0d clang::ParseAST(clang::Sema&, bool) + 269
17 clang           0x00000000007196f3 clang::CodeGenAction::ExecuteAction() +
51
18 clang           0x000000000060f5b3
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 307
19 clang           0x00000000005f9524
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 980
20 clang           0x00000000005f1204 cc1_main(char const**, char const**, char
const*, void*) + 740
21 clang           0x00000000005f00b8 main + 7096
22 libc.so.6       0x0000003a1a821735 __libc_start_main + 245
23 clang           0x00000000005f0d61
Stack dump:
0.    Program arguments: /usr/bin/clang -cc1 -triple x86_64-redhat-linux-gnu
-emit-obj -disable-free -disable-llvm-verifier -main-file-name conf.c
-pic-level 2 -mdisable-fp-elim -masm-verbose -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -target-linker-version 2.22.52.0.1
-momit-leaf-frame-pointer -g -coverage-file .libs/conf.o -resource-dir
/usr/bin/../lib/clang/3.0 -dependency-file .deps/conf.Tpo -sys-header-deps -MP
-MT conf.lo -D HAVE_CONFIG_H -D P11_KIT_FUTURE_UNSTABLE_API -D
P11_SYSTEM_CONFIG_FILE="/data/build/etc/pkcs11/pkcs11.conf" -D
P11_SYSTEM_CONFIG_MODULES="/data/build/etc/pkcs11/modules" -D
P11_USER_CONFIG_FILE="~/.pkcs11/pkcs11.conf" -D
P11_USER_CONFIG_MODULES="~/.pkcs11/modules" -D
P11_MODULE_PATH="/data/build/lib64/pkcs11" -D PIC -I . -I .. -I ..
-fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem
/usr/local/include -internal-isystem /usr/bin/../lib/clang/3.0/include
-internal-externc-isystem /usr/include -O2 -Wall -Wstrict-prototypes
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith
-Wdeclaration-after-statement -Wformat=2 -Winit-self -Waggregate-return
-Wno-missing-format-attribute -Wmissing-include-dirs -Wundef -ferror-limit 19
-fmessage-length 80 -fgnu-runtime -fobjc-runtime-has-arc
-fobjc-runtime-has-weak -fobjc-fragile-abi -fdiagnostics-show-option
-fcolor-diagnostics -o .libs/conf.o -x c conf.c 
1.    conf.c:100:1: current parser token 'static'
2.    conf.c:92:1: parsing function body 'stretrim'
clang: error: unable to execute command: Segmentation fault (core dumped)
[err_drv_command_failure]
clang: error: clang frontend command failed due to signal 2 (use -v to see
invocation) [err_drv_command_signalled]
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/conf-W7qYKi.i
make[2]: *** [conf.lo] Error 1
make[2]: Leaving directory `/data/projects/p11-kit/p11-kit'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/data/projects/p11-kit'
make: *** [all] Error 2

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