[LLVMbugs] [Bug 15883] New: SEGFAULT in clang++

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed May 1 00:37:12 PDT 2013


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

            Bug ID: 15883
           Summary: SEGFAULT in clang++
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: benjamin.redelings at duke.edu
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

The compiler crashed.  The full output was:

libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I../../../master/src -I..
-I../../../master/include -isystem /usr/lib/openmpi/include -isystem
/usr/lib/openmpi/include/openmpi -isystem ../../../master/boost/include
-ffast-math -DNDEBUG -DNDEBUG_DP -funroll-loops -std=c++11 -g -std=c++11 -pipe
-O3 -isystem /usr/lib/openmpi/include -isystem /usr/lib/openmpi/include/openmpi
-pthread -pedantic -I/usr/include/cairo -I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libdrm -Wall
-Wextra -Wno-sign-compare -Woverloaded-virtual -Wstrict-aliasing -MT
computation/builtins/c_pair.lo -MD -MP -MF
computation/builtins/.deps/c_pair.Tpo -c
../../../master/src/computation/builtins/c_pair.C  -fPIC -DPIC -o
computation/builtins/.libs/c_pair.o
../../../master/src/computation/builtins/c_pair.C:7:20: warning: 
      'builtin_function_c_pair' has C-linkage specified, but returns
      user-defined type 'closure' which is incompatible with C
      [-Wreturn-type-c-linkage]
extern "C" closure builtin_function_c_pair(OperationArgs& Args)
                   ^
0  libLLVM-3.3.so.1 0x00007f1872c78852 _ZN4llvm3sys15PrintStackTraceEP8_IO_FILE
+ 34
1  libLLVM-3.3.so.1 0x00007f1872c786a9
2  libpthread.so.0  0x00007f18719c7210
3  clang            0x0000000000f4f3a9
_ZNK5clang10ASTContext15getTypeInfoImplEPKNS_4TypeE + 25
4  clang            0x0000000000f4bf82
_ZNK5clang10ASTContext11getTypeInfoEPKNS_4TypeE + 194
5  clang            0x0000000000f4f622
_ZNK5clang10ASTContext15getTypeInfoImplEPKNS_4TypeE + 658
6  clang            0x0000000000f4bf82
_ZNK5clang10ASTContext11getTypeInfoEPKNS_4TypeE + 194
7  clang            0x000000000078de37
_ZN5clang7CodeGen11CGDebugInfo10CreateTypeEPKNS_9ArrayTypeEN4llvm6DIFileE + 103
8  clang            0x000000000078c58d
_ZN5clang7CodeGen11CGDebugInfo14CreateTypeNodeENS_8QualTypeEN4llvm6DIFileE +
349
9  clang            0x000000000078c6de
_ZN5clang7CodeGen11CGDebugInfo15getOrCreateTypeENS_8QualTypeEN4llvm6DIFileE +
190
10 clang            0x000000000078f6d0
_ZN5clang7CodeGen11CGDebugInfo21CollectTemplateParamsEPKNS_21TemplateParameterListERKNS_20TemplateArgumentListEN4llvm6DIFileE
+ 176
11 clang            0x000000000078fbef
_ZN5clang7CodeGen11CGDebugInfo29CollectFunctionTemplateParamsEPKNS_12FunctionDeclEN4llvm6DIFileE
+ 143
12 clang            0x00000000007907a3
_ZN5clang7CodeGen11CGDebugInfo23CreateCXXMemberFunctionEPKNS_13CXXMethodDeclEN4llvm6DIFileENS5_6DITypeE
+ 595
13 clang            0x0000000000790c1d
_ZN5clang7CodeGen11CGDebugInfo25CollectCXXMemberFunctionsEPKNS_13CXXRecordDeclEN4llvm6DIFileERNS5_15SmallVectorImplIPNS5_5ValueEEENS5_6DITypeE
+ 221
14 clang            0x000000000078c090
_ZN5clang7CodeGen11CGDebugInfo10CreateTypeEPKNS_10RecordTypeE + 1040
15 clang            0x000000000078c54b
_ZN5clang7CodeGen11CGDebugInfo14CreateTypeNodeENS_8QualTypeEN4llvm6DIFileE +
283
16 clang            0x000000000078c6de
_ZN5clang7CodeGen11CGDebugInfo15getOrCreateTypeENS_8QualTypeEN4llvm6DIFileE +
190
17 clang            0x000000000078f379
_ZN5clang7CodeGen11CGDebugInfo21getOrCreateRecordTypeENS_8QualTypeENS_14SourceLocationE
+ 41
18 clang            0x000000000077a79b
_ZN5clang7CodeGen15CodeGenFunction22EmitCXXConstructorCallEPKNS_18CXXConstructorDeclENS_11CXXCtorTypeEbbPN4llvm5ValueENS_17ConstExprIteratorES9_
+ 491
19 clang            0x00000000007c8a03
_ZN5clang7CodeGen15CodeGenFunction20EmitCXXConstructExprEPKNS_16CXXConstructExprENS0_12AggValueSlotE
+ 851
20 clang            0x00000000007c6bd7
21 clang            0x00000000007c34ab
22 clang            0x00000000007c34e6
23 clang            0x00000000007c7f84
24 clang            0x00000000007c32b2
25 clang            0x00000000007c3ab9
_ZN5clang7CodeGen15CodeGenFunction11EmitAggExprEPKNS_4ExprENS0_12AggValueSlotE
+ 185
26 clang            0x00000000007adc55
_ZN5clang7CodeGen15CodeGenFunction11EmitAnyExprEPKNS_4ExprENS0_12AggValueSlotEb
+ 245
27 clang            0x00000000007b90a7
28 clang            0x00000000007b98ff
_ZN5clang7CodeGen15CodeGenFunction26EmitReferenceBindingToExprEPKNS_4ExprEPKNS_9NamedDeclE
+ 111
29 clang            0x00000000007720fd
_ZN5clang7CodeGen15CodeGenFunction11EmitCallArgERNS0_11CallArgListEPKNS_4ExprENS_8QualTypeE
+ 1133
30 clang            0x00000000007d12e2
_ZN5clang7CodeGen15CodeGenFunction17EmitCXXMemberCallEPKNS_13CXXMethodDeclENS_14SourceLocationEPN4llvm5ValueENS0_15ReturnValueSlotES8_S8_NS_8QualTypeENS_17ConstExprIteratorESB_
+ 530
31 clang            0x0000000000739a0d
32 clang            0x000000000077a6f3
_ZN5clang7CodeGen15CodeGenFunction22EmitCXXConstructorCallEPKNS_18CXXConstructorDeclENS_11CXXCtorTypeEbbPN4llvm5ValueENS_17ConstExprIteratorES9_
+ 323
33 clang            0x00000000007c8a03
_ZN5clang7CodeGen15CodeGenFunction20EmitCXXConstructExprEPKNS_16CXXConstructExprENS0_12AggValueSlotE
+ 851
34 clang            0x00000000007c6bd7
35 clang            0x00000000007c34ab
36 clang            0x00000000007c7f84
37 clang            0x00000000007c3252
38 clang            0x00000000007c34e6
39 clang            0x00000000007c2fa7
40 clang            0x00000000007c3ab9
_ZN5clang7CodeGen15CodeGenFunction11EmitAggExprEPKNS_4ExprENS0_12AggValueSlotE
+ 185
41 clang            0x00000000007c8a39
_ZN5clang7CodeGen15CodeGenFunction20EmitCXXConstructExprEPKNS_16CXXConstructExprENS0_12AggValueSlotE
+ 905
42 clang            0x00000000007c6bd7
43 clang            0x00000000007c34ab
44 clang            0x00000000007c3ab9
_ZN5clang7CodeGen15CodeGenFunction11EmitAggExprEPKNS_4ExprENS0_12AggValueSlotE
+ 185
45 clang            0x0000000000843e6b
_ZN5clang7CodeGen15CodeGenFunction14EmitReturnStmtERKNS_10ReturnStmtE + 1755
46 clang            0x0000000000847f0b
_ZN5clang7CodeGen15CodeGenFunction8EmitStmtEPKNS_4StmtE + 507
47 clang            0x000000000084a36f
_ZN5clang7CodeGen15CodeGenFunction28EmitCompoundStmtWithoutScopeERKNS_12CompoundStmtEbNS0_12AggValueSlotE
+ 79
48 clang            0x0000000000712948
_ZN5clang7CodeGen15CodeGenFunction16EmitFunctionBodyERNS0_15FunctionArgListE +
120
49 clang            0x000000000071725d
_ZN5clang7CodeGen15CodeGenFunction12GenerateCodeENS_10GlobalDeclEPN4llvm8FunctionERKNS0_14CGFunctionInfoE
+ 493
50 clang            0x0000000000727245
_ZN5clang7CodeGen13CodeGenModule28EmitGlobalFunctionDefinitionENS_10GlobalDeclE
+ 341
51 clang            0x000000000072883b
_ZN5clang7CodeGen13CodeGenModule20EmitGlobalDefinitionENS_10GlobalDeclE + 315
52 clang            0x0000000000728f4d
_ZN5clang7CodeGen13CodeGenModule10EmitGlobalENS_10GlobalDeclE + 1597
53 clang            0x00000000007297eb
54 clang            0x0000000000729f67
_ZN5clang7CodeGen13CodeGenModule15EmitLinkageSpecEPKNS_15LinkageSpecDeclE + 87
55 clang            0x000000000072989d
56 clang            0x0000000000706fcc
57 clang            0x00000000007067e6
58 clang            0x0000000000863385 _ZN5clang8ParseASTERNS_4SemaEbb + 293
59 clang            0x00000000005b4619 _ZN5clang14FrontendAction7ExecuteEv +
185
60 clang            0x0000000000597d6a
_ZN5clang16CompilerInstance13ExecuteActionERNS_14FrontendActionE + 282
61 clang            0x000000000058249a
_ZN5clang25ExecuteCompilerInvocationEPNS_16CompilerInstanceE + 1514
62 clang            0x000000000057a8b0 _Z8cc1_mainPPKcS1_S0_Pv + 1104
63 clang            0x0000000000581451 main + 7297
64 libc.so.6        0x00007f18707f7a55 __libc_start_main + 245
65 clang            0x000000000057a2b9
Stack dump:
0.    Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu
-emit-obj -disable-free -disable-llvm-verifier -main-file-name c_pair.C
-mrelocation-model pic -pic-level 2 -menable-no-infs -menable-no-nans
-menable-unsafe-fp-math -ffp-contract=fast -ffast-math -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64
-target-linker-version 2.22 -momit-leaf-frame-pointer -g -coverage-file
/home/bredelings/Devel/bali-phy/build/clang-3.3/src/computation/builtins/.libs/c_pair.o
-resource-dir /usr/bin/../lib/clang/3.3 -dependency-file
computation/builtins/.deps/c_pair.Tpo -sys-header-deps -MP -MT
computation/builtins/c_pair.lo -isystem /usr/lib/openmpi/include -isystem
/usr/lib/openmpi/include/openmpi -isystem ../../../master/boost/include
-isystem /usr/lib/openmpi/include -isystem /usr/lib/openmpi/include/openmpi -D
HAVE_CONFIG_H -D NDEBUG -D NDEBUG_DP -D PIC -I . -I ../../../master/src -I ..
-I ../../../master/include -I /usr/include/cairo -I /usr/include/glib-2.0 -I
/usr/lib/x86_64-linux-gnu/glib-2.0/include -I /usr/include/pixman-1 -I
/usr/include/freetype2 -I /usr/include/libpng12 -I /usr/include/libdrm
-internal-isystem /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/x86_64-linux-gnu
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/backward
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/x86_64-linux-gnu/c++/4.8
-internal-isystem /usr/local/include -internal-isystem
/usr/bin/../lib/clang/3.3/include -internal-isystem
/usr/include/clang/3.3/include/ -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem /usr/include -O3 -Wall
-Wextra -Wno-sign-compare -Woverloaded-virtual -Wstrict-aliasing -pedantic
-std=c++11 -fdeprecated-macro -fdebug-compilation-dir
/home/bredelings/Devel/bali-phy/build/clang-3.3/src -ferror-limit 19
-fmessage-length 80 -funroll-loops -pthread -mstackrealign -fobjc-runtime=gcc
-fobjc-default-synthesize-properties -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -backend-option -vectorize-loops
-o computation/builtins/.libs/c_pair.o -x c++
../../../master/src/computation/builtins/c_pair.C 
1.    <eof> parser at end of file
2.    ../../../master/src/computation/builtins/c_pair.C:7:8: LLVM IR generation
of declaration
3.    ../../../master/src/computation/builtins/c_pair.C:7:20: Generating code
for declaration 'builtin_function_c_pair'
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
Debian clang version 3.3-1~exp1 (trunk) (based on LLVM 3.3)
Target: x86_64-pc-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://bugs.debian.org/ and include the crash backtrace, preprocessed source,
and associated run script.
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/c_pair-4xkLjZ.cpp
clang: note: diagnostic msg: /tmp/c_pair-4xkLjZ.sh
clang: 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/20130501/6489675f/attachment.html>


More information about the llvm-bugs mailing list