[llvm-bugs] [Bug 39942] New: Clang crash when building with coverage options for Chromium/android

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Dec 10 15:23:42 PST 2018


https://bugs.llvm.org/show_bug.cgi?id=39942

            Bug ID: 39942
           Summary: Clang crash when building  with coverage options for
                    Chromium/android
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: manojgupta at google.com
                CC: htmldeveloper at gmail.com, inferno at chromium.org,
                    llozano at chromium.org, llvm-bugs at lists.llvm.org,
                    manojgupta at google.com, mmoroz at google.com,
                    neeilans at live.com, nicolasweber at gmx.de,
                    richard-llvm at metafoo.co.uk

https://bugs.chromium.org/p/chromium/issues/detail?id=843356


The stack trace below is using the clang from chromium/Linux.

$ clang++ -cc1 -triple thumbv7-unknown-linux-android -emit-obj -disable-free
-main-file-name android_image_reader_compat.cc -mrelocation-model pic
-pic-level 2 -mthread-model posix -fmerge-all-constants -relaxed-aliasing
-masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array
-target-cpu generic -target-feature +soft-float-abi -target-feature -fp-only-sp
-target-feature -d16 -target-feature +vfp3 -target-feature -fp16
-target-feature -vfp4 -target-feature -fp-armv8 -target-feature +neon
-target-feature -crypto -target-abi aapcs-linux -mfloat-abi soft
-fallow-half-arguments-and-returns -fdebug-info-for-profiling
-dwarf-column-info -debug-info-kind=line-tables-only -dwarf-version=3
-debugger-tuning=gdb -ffunction-sections -fdata-sections -fcoverage-mapping
-nostdinc++ -D V8_DEPRECATION_WARNINGS -D NO_TCMALLOC -D CLANG_COVERAGE -D
SAFE_BROWSING_DB_REMOTE -D CHROMIUM_BUILD -D FIELDTRIAL_TESTING_ENABLED -D
_GNU_SOURCE -D ANDROID -D HAVE_SYS_UIO_H -D ANDROID_NDK_VERSION_ROLL=r16_1 -D
CR_CLANG_REVISION="346388-5" -D __STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS
-D _FORTIFY_SOURCE=2 -D __GNU_SOURCE=1 -D CHROMIUM_CXX_TWEAK_INLINES -D NDEBUG
-D NVALGRIND -D DYNAMIC_ANNOTATIONS_ENABLED=0 -D BASE_IMPLEMENTATION -D
__DATE__= -D __TIME__= -D __TIMESTAMP__= -D __ANDROID_API__=16 -D
HAVE_PTHREAD_COND_TIMEDWAIT_MONOTONIC=1 -O2 -Wno-builtin-macro-redefined -Wall
-Werror -Wextra -Wimplicit-fallthrough -Wthread-safety
-Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing
-Wno-unneeded-internal-declaration -Wno-undefined-var-template
-Wno-null-pointer-arithmetic -Wno-ignored-pragma-optimize -Wheader-hygiene
-Wstring-conversion -Wtautological-overlap-compare -Wno-char-subscripts
-Wglobal-constructors -Wexit-time-destructors -Wshadow -Wexit-time-destructors
-std=c++14 -fdeprecated-macro -ferror-limit 19 -fmessage-length 0 -fvisibility
hidden -fvisibility-inlines-hidden -stack-protector 1
-stack-protector-buffer-size 4 -fno-rtti -fno-signed-char -fno-use-cxa-atexit
-fobjc-runtime=gcc -Qn -fdiagnostics-show-option -fcolor-diagnostics
-vectorize-loops -vectorize-slp -mllvm -instcombine-lower-dbg-declare=0 -mllvm
-limited-coverage-experimental=true -x c++
android_image_reader_compat-178d5e.cpp -faddrsig 
1.      <eof> parser at end of file
2.      Per-file LLVM IR generation
#0 0x00000000021cabf4
(../../third_party/llvm-build/Release+Asserts/bin/clang+++0x21cabf4)
#1 0x00000000021c8a8e llvm::sys::RunSignalHandlers()
(../../third_party/llvm-build/Release+Asserts/bin/clang+++0x21c8a8e)
#2 0x00000000021cadb8
(../../third_party/llvm-build/Release+Asserts/bin/clang+++0x21cadb8)
#3 0x00007fb2459690c0 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x110c0)
#4 0x00007fb244724fcf gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x32fcf)
#5 0x00007fb2447263fa abort (/lib/x86_64-linux-gnu/libc.so.6+0x343fa)
#6 0x00007fb24471de37 (/lib/x86_64-linux-gnu/libc.so.6+0x2be37)
#7 0x00007fb24471dee2 (/lib/x86_64-linux-gnu/libc.so.6+0x2bee2)
#8 0x0000000001b8a540 llvm::ConstantExpr::getAddrSpaceCast(llvm::Constant*,
llvm::Type*, bool)
(../../third_party/llvm-build/Release+Asserts/bin/clang+++0x1b8a540)
#9 0x00000000024a0c5f
clang::CodeGen::CoverageMappingModuleGen::addFunctionMappingRecord(llvm::GlobalVariable*,
llvm::StringRef, unsigned long, std::string const&, bool)
(../../third_party/llvm-build/Release+Asserts/bin/clang+++0x24a0c5f)
#10 0x0000000002481850
clang::CodeGen::CodeGenPGO::emitEmptyCounterMapping(clang::Decl const*,
llvm::StringRef, llvm::GlobalValue::LinkageTypes)
(../../third_party/llvm-build/Release+Asserts/bin/clang+++0x2481850)
#11 0x0000000002436a2f
clang::CodeGen::CodeGenModule::EmitDeferredUnusedCoverageMappings()
(../../third_party/llvm-build/Release+Asserts/bin/clang+++0x2436a2f)
#12 0x0000000002434bc0 clang::CodeGen::CodeGenModule::Release()
(../../third_party/llvm-build/Release+Asserts/bin/clang+++0x2434bc0)
#13 0x0000000002c05f04
(../../third_party/llvm-build/Release+Asserts/bin/clang+++0x2c05f04)
#14 0x0000000002c030c7
(../../third_party/llvm-build/Release+Asserts/bin/clang+++0x2c030c7)
#15 0x000000000341bb53 clang::ParseAST(clang::Sema&, bool, bool)
(../../third_party/llvm-build/Release+Asserts/bin/clang+++0x341bb53)
#16 0x0000000002866b70 clang::FrontendAction::Execute()
(../../third_party/llvm-build/Release+Asserts/bin/clang+++0x2866b70)
#17 0x000000000280e051
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(../../third_party/llvm-build/Release+Asserts/bin/clang+++0x280e051)
#18 0x0000000002906fbd
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(../../third_party/llvm-build/Release+Asserts/bin/clang+++0x2906fbd)
#19 0x00000000008f6818 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x8f6818)
#20 0x00000000008f3ff5 main
(../../third_party/llvm-build/Release+Asserts/bin/clang+++0x8f3ff5)
#21 0x00007fb2447122b1 __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x202b1)
#22 0x00000000008f0fed _start
(../../third_party/llvm-build/Release+Asserts/bin/clang+++0x8f0fed)
Aborted

-- 
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/20181210/29a00e9f/attachment.html>


More information about the llvm-bugs mailing list