Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clang 3.4 crashes while building libdwfl #18575

Closed
berolinux opened this issue Dec 10, 2013 · 6 comments
Closed

clang 3.4 crashes while building libdwfl #18575

berolinux opened this issue Dec 10, 2013 · 6 comments
Labels
bugzilla Issues migrated from bugzilla clang Clang issues not falling into any other category

Comments

@berolinux
Copy link

Bugzilla Link 18201
Resolution FIXED
Resolved on Oct 16, 2015 02:28
Version trunk
OS Linux
Attachments dwfl_begin-4c0b55.c, dwfl_begin-4c0b55.sh
CC @dwblaikie,@echristo,@isanbard,@rengolin

Extended Description

Compiling elfutils' libdwfl with clang (3.4 branch from a few days ago) results in:

/mnt/bero/linaro-builds/flo-master/prebuilts/gcc/linux-x86/arm/llvm-toolchain/bin/clang -target arm-linux-androideabi -fno-short-enums -mfloat-abi=softfp -fPIC -D__ARM_FEATURE_DSP=1 -I external/elfutils/0.153/libdwfl/.. -I external/elfutils/0.153/libdwfl/../lib -I external/elfutils/0.153/libdwfl/../libdwfl -I external/elfutils/0.153/libdwfl/../libebl -I external/elfutils/0.153/libdwfl/../libdw -I external/elfutils/0.153/libdwfl/../libelf -I external/elfutils/0.153/libdwfl/../bionic-fixup -I external/elfutils/0.153/libdwfl -I out/target/product/flo/obj/STATIC_LIBRARIES/libdwfl_intermediates -I libnativehelper/include/nativehelper -isystem system/core/include -isystem hardware/libhardware/include -isystem hardware/libhardware_legacy/include -isystem hardware/ril/include -isystem libnativehelper/include -isystem frameworks/native/include -isystem frameworks/native/opengl/include -isystem frameworks/av/include -isystem frameworks/base/include -isystem external/skia/include -isystem out/target/product/flo/obj/include -isystem device/asus/flo/kernel-headers -isystem hardware/qcom/msm8960/kernel-headers -isystem bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem bionic/libstdc++/include -isystem bionic/libc/kernel/common -isystem bionic/libc/kernel/arch-arm -isystem bionic/libc/kernel/uapi -isystem bionic/libm/include -isystem bionic/libm/include/arm -isystem bionic/libthread_db/include -c -fno-exceptions -Wno-multichar -msoft-float -fpic -fPIE -ffunction-sections -fdata-sections -funwind-tables -fstack-protector -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -mcpu=cortex-a15 -mfloat-abi=softfp -mfpu=neon -include build/core/combo/include/arch/linux-arm/AndroidConfig.h -I build/core/combo/include/arch/linux-arm/ -Wno-unused-const-variable -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -DNDEBUG -g -Wstrict-aliasing -DNDEBUG -UDEBUG -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -include external/elfutils/0.153/libdwfl/../bionic-fixup/AndroidFixup.h -DHAVE_CONFIG_H -std=gnu99 -Werror -Wno-pointer-arith -MD -MF out/target/product/flo/obj/STATIC_LIBRARIES/libdwfl_intermediates/dwfl_begin.d -o out/target/product/flo/obj/STATIC_LIBRARIES/libdwfl_intermediates/dwfl_begin.o external/elfutils/0.153/libdwfl/dwfl_begin.c -Wno-error=unknown-warning-option -Wno-error=unused-parameter -Wno-error=gnu-static-float-init -Wno-error=unused-private-field -Wno-error=mismatched-tags -Wno-error=ignored-attributes -Wno-error=gnu-designator -Wno-error=gnu -Wno-error=duplicate-decl-specifier -Wno-error=tautological-constant-out-of-range-compare -Wno-error=unsequenced -Wno-error=return-type-c-linkage -Wno-error=unused-function -Wno-error=unused-const-variable -Wno-error=deprecated-register -Wno-error=compare-distinct-pointer-types -Wno-error=unknown-warning-option -Wno-error=unknown-pragmas
clang: DebugInfo.cpp:637: void VerifySubsetOf(const llvm::MDNode*, const llvm::MDNode*): Assertion `found && "Losing a member during member list replacement"' failed.
0 libLLVM-3.4.so 0x00007feb9c7ea242 llvm::sys::PrintStackTrace(_IO_FILE*) + 34
1 libLLVM-3.4.so 0x00007feb9c7e9629
2 libpthread.so.0 0x00000038e120f710
3 libc.so.6 0x00000038e0a36067 gsignal + 55
4 libc.so.6 0x00000038e0a37828 abort + 328
5 libc.so.6 0x00000038e0a2ee03
6 libc.so.6 0x00000038e0a2eeb2
7 libLLVM-3.4.so 0x00007feb9beef9f7 llvm::DICompositeType::setTypeArray(llvm::DIArray, llvm::DIArray) + 759
8 clang 0x0000000000789c4d clang::CodeGen::CGDebugInfo::CreateTypeDefinition(clang::RecordType const*) + 1005
9 clang 0x0000000000789f86 clang::CodeGen::CGDebugInfo::CreateType(clang::RecordType const*) + 246
10 clang 0x0000000000781801 clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType, llvm::DIFile) + 673
11 clang 0x00000000007820d6 clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile) + 166
12 clang 0x000000000078149e clang::CodeGen::CGDebugInfo::CreateType(clang::TypedefType const*, llvm::DIFile) + 78
13 clang 0x00000000007818c8 clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType, llvm::DIFile) + 872
14 clang 0x00000000007820d6 clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile) + 166
15 clang 0x0000000000788f55 clang::CodeGen::CGDebugInfo::createFieldType(llvm::StringRef, clang::QualType, unsigned long, clang::SourceLocation, clang::AccessSpecifier, unsigned long, llvm::DIFile, llvm::DIScope) + 85
16 clang 0x000000000078915d clang::CodeGen::CGDebugInfo::CollectRecordNormalField(clang::FieldDecl const*, unsigned long, llvm::DIFile, llvm::SmallVectorImplllvm::Value*&, llvm::DIType) + 189
17 clang 0x0000000000789779 clang::CodeGen::CGDebugInfo::CollectRecordFields(clang::RecordDecl const*, llvm::DIFile, llvm::SmallVectorImplllvm::Value*&, llvm::DICompositeType) + 441
18 clang 0x0000000000789e55 clang::CodeGen::CGDebugInfo::CreateTypeDefinition(clang::RecordType const*) + 1525
19 clang 0x0000000000789f86 clang::CodeGen::CGDebugInfo::CreateType(clang::RecordType const*) + 246
20 clang 0x0000000000781801 clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType, llvm::DIFile) + 673
21 clang 0x00000000007820d6 clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile) + 166
22 clang 0x000000000078149e clang::CodeGen::CGDebugInfo::CreateType(clang::TypedefType const*, llvm::DIFile) + 78
23 clang 0x00000000007818c8 clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType, llvm::DIFile) + 872
24 clang 0x00000000007820d6 clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile) + 166
25 clang 0x000000000078b29d clang::CodeGen::CGDebugInfo::CreatePointerLikeType(unsigned int, clang::Type const*, clang::QualType, llvm::DIFile) + 205
26 clang 0x000000000078b428 clang::CodeGen::CGDebugInfo::CreateType(clang::PointerType const*, llvm::DIFile) + 24
27 clang 0x000000000078187f clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType, llvm::DIFile) + 799
28 clang 0x00000000007820d6 clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile) + 166
29 clang 0x0000000000788f55 clang::CodeGen::CGDebugInfo::createFieldType(llvm::StringRef, clang::QualType, unsigned long, clang::SourceLocation, clang::AccessSpecifier, unsigned long, llvm::DIFile, llvm::DIScope) + 85
30 clang 0x000000000078915d clang::CodeGen::CGDebugInfo::CollectRecordNormalField(clang::FieldDecl const*, unsigned long, llvm::DIFile, llvm::SmallVectorImplllvm::Value*&, llvm::DIType) + 189
31 clang 0x0000000000789779 clang::CodeGen::CGDebugInfo::CollectRecordFields(clang::RecordDecl const*, llvm::DIFile, llvm::SmallVectorImplllvm::Value*&, llvm::DICompositeType) + 441
32 clang 0x0000000000789e55 clang::CodeGen::CGDebugInfo::CreateTypeDefinition(clang::RecordType const*) + 1525
33 clang 0x0000000000789f86 clang::CodeGen::CGDebugInfo::CreateType(clang::RecordType const*) + 246
34 clang 0x0000000000781801 clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType, llvm::DIFile) + 673
35 clang 0x00000000007820d6 clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile) + 166
36 clang 0x000000000078149e clang::CodeGen::CGDebugInfo::CreateType(clang::TypedefType const*, llvm::DIFile) + 78
37 clang 0x00000000007818c8 clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType, llvm::DIFile) + 872
38 clang 0x00000000007820d6 clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile) + 166
39 clang 0x000000000078b29d clang::CodeGen::CGDebugInfo::CreatePointerLikeType(unsigned int, clang::Type const*, clang::QualType, llvm::DIFile) + 205
40 clang 0x000000000078b428 clang::CodeGen::CGDebugInfo::CreateType(clang::PointerType const*, llvm::DIFile) + 24
41 clang 0x000000000078187f clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType, llvm::DIFile) + 799
42 clang 0x00000000007820d6 clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile) + 166
43 clang 0x000000000078b15a clang::CodeGen::CGDebugInfo::CreateType(clang::FunctionType const*, llvm::DIFile) + 298
44 clang 0x0000000000781af7 clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType, llvm::DIFile) + 1431
45 clang 0x00000000007820d6 clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile) + 166
46 clang 0x000000000078b29d clang::CodeGen::CGDebugInfo::CreatePointerLikeType(unsigned int, clang::Type const*, clang::QualType, llvm::DIFile) + 205
47 clang 0x000000000078b428 clang::CodeGen::CGDebugInfo::CreateType(clang::PointerType const*, llvm::DIFile) + 24
48 clang 0x000000000078187f clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType, llvm::DIFile) + 799
49 clang 0x00000000007820d6 clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile) + 166
50 clang 0x0000000000788f55 clang::CodeGen::CGDebugInfo::createFieldType(llvm::StringRef, clang::QualType, unsigned long, clang::SourceLocation, clang::AccessSpecifier, unsigned long, llvm::DIFile, llvm::DIScope) + 85
51 clang 0x000000000078915d clang::CodeGen::CGDebugInfo::CollectRecordNormalField(clang::FieldDecl const*, unsigned long, llvm::DIFile, llvm::SmallVectorImplllvm::Value*&, llvm::DIType) + 189
52 clang 0x0000000000789779 clang::CodeGen::CGDebugInfo::CollectRecordFields(clang::RecordDecl const*, llvm::DIFile, llvm::SmallVectorImplllvm::Value*&, llvm::DICompositeType) + 441
53 clang 0x0000000000789e55 clang::CodeGen::CGDebugInfo::CreateTypeDefinition(clang::RecordType const*) + 1525
54 clang 0x0000000000789f86 clang::CodeGen::CGDebugInfo::CreateType(clang::RecordType const*) + 246
55 clang 0x0000000000781801 clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType, llvm::DIFile) + 673
56 clang 0x00000000007820d6 clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile) + 166
57 clang 0x000000000078149e clang::CodeGen::CGDebugInfo::CreateType(clang::TypedefType const*, llvm::DIFile) + 78
58 clang 0x00000000007818c8 clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType, llvm::DIFile) + 872
59 clang 0x00000000007820d6 clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile) + 166
60 clang 0x000000000078b632 clang::CodeGen::CGDebugInfo::CreateQualifiedType(clang::QualType, llvm::DIFile) + 114
61 clang 0x0000000000781599 clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType, llvm::DIFile) + 57
62 clang 0x00000000007820d6 clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile) + 166
63 clang 0x000000000078b29d clang::CodeGen::CGDebugInfo::CreatePointerLikeType(unsigned int, clang::Type const*, clang::QualType, llvm::DIFile) + 205
64 clang 0x000000000078b428 clang::CodeGen::CGDebugInfo::CreateType(clang::PointerType const*, llvm::DIFile) + 24
65 clang 0x000000000078187f clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType, llvm::DIFile) + 799
66 clang 0x00000000007820d6 clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile) + 166
67 clang 0x0000000000788f55 clang::CodeGen::CGDebugInfo::createFieldType(llvm::StringRef, clang::QualType, unsigned long, clang::SourceLocation, clang::AccessSpecifier, unsigned long, llvm::DIFile, llvm::DIScope) + 85
68 clang 0x000000000078915d clang::CodeGen::CGDebugInfo::CollectRecordNormalField(clang::FieldDecl const*, unsigned long, llvm::DIFile, llvm::SmallVectorImplllvm::Value*&, llvm::DIType) + 189
69 clang 0x0000000000789779 clang::CodeGen::CGDebugInfo::CollectRecordFields(clang::RecordDecl const*, llvm::DIFile, llvm::SmallVectorImplllvm::Value*&, llvm::DICompositeType) + 441
70 clang 0x0000000000789e55 clang::CodeGen::CGDebugInfo::CreateTypeDefinition(clang::RecordType const*) + 1525
71 clang 0x0000000000789f86 clang::CodeGen::CGDebugInfo::CreateType(clang::RecordType const*) + 246
72 clang 0x0000000000781801 clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType, llvm::DIFile) + 673
73 clang 0x00000000007820d6 clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile) + 166
74 clang 0x000000000078149e clang::CodeGen::CGDebugInfo::CreateType(clang::TypedefType const*, llvm::DIFile) + 78
75 clang 0x00000000007818c8 clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType, llvm::DIFile) + 872
76 clang 0x00000000007820d6 clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile) + 166
77 clang 0x000000000078b29d clang::CodeGen::CGDebugInfo::CreatePointerLikeType(unsigned int, clang::Type const*, clang::QualType, llvm::DIFile) + 205
78 clang 0x000000000078b428 clang::CodeGen::CGDebugInfo::CreateType(clang::PointerType const*, llvm::DIFile) + 24
79 clang 0x000000000078187f clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType, llvm::DIFile) + 799
80 clang 0x00000000007820d6 clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile) + 166
81 clang 0x000000000078b087 clang::CodeGen::CGDebugInfo::CreateType(clang::FunctionType const*, llvm::DIFile) + 87
82 clang 0x0000000000781af7 clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType, llvm::DIFile) + 1431
83 clang 0x00000000007820d6 clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile) + 166
84 clang 0x0000000000788a58 clang::CodeGen::CGDebugInfo::getOrCreateFunctionType(clang::Decl const*, clang::QualType, llvm::DIFile) + 712
85 clang 0x000000000078dced clang::CodeGen::CGDebugInfo::EmitFunctionStart(clang::GlobalDecl, clang::QualType, llvm::Function*, llvm::IRBuilder<true, llvm::ConstantFolder, llvm::IRBuilderDefaultInserter >&) + 717
86 clang 0x00000000007c2977 clang::CodeGen::CodeGenFunction::StartFunction(clang::GlobalDecl, clang::QualType, llvm::Function*, clang::CodeGen::CGFunctionInfo const&, clang::CodeGen::FunctionArgList const&, clang::SourceLocation) + 1223
87 clang 0x00000000007c31b3 clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 515
88 clang 0x00000000007e515e clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl) + 654
89 clang 0x00000000007e554b clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 395
90 clang 0x00000000007e59ed clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 781
91 clang 0x00000000007e5dcb
92 clang 0x00000000007779b3
93 clang 0x0000000000777057
94 clang 0x0000000000926d08 clang::ParseAST(clang::Sema&, bool, bool) + 520
95 clang 0x00000000005e68aa clang::FrontendAction::Execute() + 282
96 clang 0x00000000005c8b40 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 352
97 clang 0x00000000005ae59d clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1693
98 clang 0x00000000005a7860 cc1_main(char const**, char const**, char const*, void*) + 1232
99 clang 0x00000000005a5cb9 main + 665
100 libc.so.6 0x00000038e0a21dc5 __libc_start_main + 245
101 clang 0x00000000005a7221
Stack dump:
0. Program arguments: /mnt/bero/linaro-builds/flo-master/prebuilts/gcc/linux-x86/arm/llvm-toolchain/bin/clang -cc1 -triple thumbv7--linux-androideabi -S -disable-free -main-file-name dwfl_begin.c -mrelocation-model pic -pic-level 2 -pie-level 2 -relaxed-aliasing -fmath-errno -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu cortex-a15 -target-feature +soft-float-abi -target-feature +neon -target-abi aapcs-linux -mfloat-abi soft -target-linker-version 2.22 -g -ffunction-sections -fdata-sections -coverage-file /tmp/dwfl_begin-15fb90.s -resource-dir /mnt/bero/linaro-builds/flo-master/prebuilts/gcc/linux-x86/arm/llvm-toolchain/bin/../lib/clang/3.4 -dependency-file out/target/product/flo/obj/STATIC_LIBRARIES/libdwfl_intermediates/dwfl_begin.d -MT out/target/product/flo/obj/STATIC_LIBRARIES/libdwfl_intermediates/dwfl_begin.o -sys-header-deps -isystem system/core/include -isystem hardware/libhardware/include -isystem hardware/libhardware_legacy/include -isystem hardware/ril/include -isystem libnativehelper/include -isystem frameworks/native/include -isystem frameworks/native/opengl/include -isystem frameworks/av/include -isystem frameworks/base/include -isystem external/skia/include -isystem out/target/product/flo/obj/include -isystem device/asus/flo/kernel-headers -isystem hardware/qcom/msm8960/kernel-headers -isystem bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem bionic/libstdc++/include -isystem bionic/libc/kernel/common -isystem bionic/libc/kernel/arch-arm -isystem bionic/libc/kernel/uapi -isystem bionic/libm/include -isystem bionic/libm/include/arm -isystem bionic/libthread_db/include -include build/core/combo/include/arch/linux-arm/AndroidConfig.h -include external/elfutils/0.153/libdwfl/../bionic-fixup/AndroidFixup.h -D __ARM_FEATURE_DSP=1 -D _FORTIFY_SOURCE=2 -D ANDROID -D NDEBUG -D NDEBUG -U DEBUG -D HAVE_CONFIG_H -I external/elfutils/0.153/libdwfl/.. -I external/elfutils/0.153/libdwfl/../lib -I external/elfutils/0.153/libdwfl/../libdwfl -I external/elfutils/0.153/libdwfl/../libebl -I external/elfutils/0.153/libdwfl/../libdw -I external/elfutils/0.153/libdwfl/../libelf -I external/elfutils/0.153/libdwfl/../bionic-fixup -I external/elfutils/0.153/libdwfl -I out/target/product/flo/obj/STATIC_LIBRARIES/libdwfl_intermediates -I libnativehelper/include/nativehelper -I build/core/combo/include/arch/linux-arm/ -internal-isystem /usr/local/include -internal-isystem /mnt/bero/linaro-builds/flo-master/prebuilts/gcc/linux-x86/arm/llvm-toolchain/bin/../lib/clang/3.4/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -Os -Wno-multichar -Werror=format-security -Wno-unused-const-variable -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wstrict-aliasing -Werror -Wno-pointer-arith -Wno-error=unknown-warning-option -Wno-error=unused-parameter -Wno-error=gnu-static-float-init -Wno-error=unused-private-field -Wno-error=mismatched-tags -Wno-error=ignored-attributes -Wno-error=gnu-designator -Wno-error=gnu -Wno-error=duplicate-decl-specifier -Wno-error=tautological-constant-out-of-range-compare -Wno-error=unsequenced -Wno-error=return-type-c-linkage -Wno-error=unused-function -Wno-error=unused-const-variable -Wno-error=deprecated-register -Wno-error=compare-distinct-pointer-types -Wno-error=unknown-warning-option -Wno-error=unknown-pragmas -std=gnu99 -fno-dwarf-directory-asm -fdebug-compilation-dir /mnt/bero/linaro-builds/flo-master -ferror-limit 19 -fmessage-length 0 -stack-protector 1 -mstackrealign -fno-signed-char -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o /tmp/dwfl_begin-15fb90.s -x c external/elfutils/0.153/libdwfl/dwfl_begin.c

  1.  <eof> parser at end of file
    
  2.  external/elfutils/0.153/libdwfl/dwfl_begin.c:53:1: LLVM IR generation of declaration 'dwfl_begin'
    
  3.  external/elfutils/0.153/libdwfl/dwfl_begin.c:53:1: Generating code for declaration 'dwfl_begin'
    

clang: error: unable to execute command: Aborted (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 3.4 (branches/release_34 196387)
Target: arm--linux-androideabi
Thread model: posix
clang: 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: 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/dwfl_begin-4c0b55.c
clang: note: diagnostic msg: /tmp/dwfl_begin-4c0b55.sh
clang: note: diagnostic msg:


@rengolin
Copy link
Member

Hi Bero,

Thanks for reporting this bug.

Looks like it got lost during a recursive type emission. I can't reduce the test using CReduce, and from the stack trace is seems that it's lost while trying to find the Dwfl structure definition, which there isn't one.

clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile) + 166
clang::CodeGen::CGDebugInfo::CreateType(clang::FunctionType const*, llvm::DIFile) clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType, llvm::DIFile) + 546
clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile) + 166
clang::CodeGen::CGDebugInfo::getOrCreateFunctionType(clang::Decl const*, clang::QualType, llvm::DIFile) + 689
clang::CodeGen::CGDebugInfo::EmitFunctionStart(clang::GlobalDecl, clang::QualType, llvm::Function*, llvm::IRBuilder<true, llvm::ConstantFolder, llvm::IRBuilderDefaultInserter >&) + 901

The function is:

Dwfl *
dwfl_begin (const Dwfl_Callbacks *callbacks)

and the type is incomplete:

typedef struct Dwfl Dwfl;

Eric, any ideas?

Regardless of this bug, Bero, I think you shouldn't compile with -g. Let's keep the debug issues for later and focus on the architecture problems. ;)

@isanbard
Copy link
Contributor

It's possible that there was a messed up merge into 3.4. Eric and Manman, you asked me to merge some patches, but some of them didn't work. Can you look to see if things are okay there?

@llvmbot
Copy link
Collaborator

llvmbot commented Dec 11, 2013

This should not be related to the patches I asked you to pull to release 3.4. You pulled in two patches, and I pulled the rest :)

Is this a regression from an earlier version of 3.4 branch?

@isanbard
Copy link
Contributor

This should not be related to the patches I asked you to pull to release
3.4. You pulled in two patches, and I pulled the rest :)

Ah! good. Thanks for pulling those in. :-)

@isanbard
Copy link
Contributor

Is this a regression from an earlier version of 3.4 branch?

This is failing in 3.4 and ToT. I don't know if it's a regression from previous 3.4 release candidates... This seems pretty bad...

@rengolin
Copy link
Member

Bero,

Can you try a reproduce with the release candidate 1?

http://llvm.org/pre-releases/3.4/rc1/

The x86 binaries should have all cross-compilation requirements already enabled.

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 9, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla clang Clang issues not falling into any other category
Projects
None yet
Development

No branches or pull requests

4 participants