[LLVMbugs] [Bug 21927] New: Clang 3.6.0 crash: unable to execute command: Aborted (core dumped)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Dec 16 04:50:01 PST 2014


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

            Bug ID: 21927
           Summary: Clang 3.6.0 crash: unable to execute command: Aborted
                    (core dumped)
           Product: clang
           Version: 3.5
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: phoglund at google.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Hehe, my broken code broke clang!

To repro (will take time and requires a powerful machine):
- Check out Chrome at 560d48f40a669bfaf06a830d0cefb926628b0ed1 (commit pos
refs/heads/master@{#308331})
- Apply patch set #2 of https://codereview.chromium.org/799983002/ with git
apply
- Build Chrome

This compiler crash repros 100% for me.

clang: /work/chromium/src/third_party/llvm/include/llvm/Support/Casting.h:237:
typename cast_retty<X, Y *>::ret_type llvm::cast(Y *) [X = clang::CallExpr, Y =
clang::Expr]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible
type!"' failed.
0  clang     0x000000000141c848 llvm::sys::PrintStackTrace(_IO_FILE*) + 40
1  clang     0x000000000141de0b
2  libc.so.6 0x00007f4a66d64c30
3  libc.so.6 0x00007f4a66d64bb9 gsignal + 57
4  libc.so.6 0x00007f4a66d67fc8 abort + 328
5  libc.so.6 0x00007f4a66d5da76
6  libc.so.6 0x00007f4a66d5db22
7  clang     0x00000000021f098d
8  clang     0x00000000021d7b3d
9  clang     0x00000000021bba6d
clang::Sema::CorrectDelayedTyposInExpr(clang::Expr*,
llvm::function_ref<clang::ActionResult<clang::Expr*, true> (clang::Expr*)>) +
621
10 clang     0x000000000204ac49 clang::Sema::AddInitializerToDecl(clang::Decl*,
clang::Expr*, bool, bool) + 4873
11 clang     0x0000000001debf70
clang::Parser::ParseDeclarationAfterDeclaratorAndAttributes(clang::Declarator&,
clang::Parser::ParsedTemplateInfo const&, clang::Parser::ForRangeInit*) + 4624
12 clang     0x0000000001de9b06
clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, unsigned int, bool,
clang::SourceLocation*, clang::Parser::ForRangeInit*) + 2918
13 clang     0x0000000001de5419 clang::Parser::ParseSimpleDeclaration(unsigned
int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&, bool,
clang::Parser::ForRangeInit*) + 729
14 clang     0x0000000001de5082 clang::Parser::ParseDeclaration(unsigned int,
clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 898
15 clang     0x0000000001e4e81a
clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&)
+ 3402
16 clang     0x0000000001e4da3f
clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*) + 143
17 clang     0x0000000001e5511f clang::Parser::ParseCompoundStatementBody(bool)
+ 1839
18 clang     0x0000000001e55a33
clang::Parser::ParseFunctionStatementBody(clang::Decl*,
clang::Parser::ParseScope&) + 195
19 clang     0x0000000001dd7b7b
clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&,
clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*) +
1867
20 clang     0x0000000001de9973
clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, unsigned int, bool,
clang::SourceLocation*, clang::Parser::ForRangeInit*) + 2515
21 clang     0x0000000001dd71ac
clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec&, clang::AccessSpecifier) + 796
22 clang     0x0000000001dd6b8c
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*, clang::AccessSpecifier) + 412
23 clang     0x0000000001dd5e42
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 2930
24 clang     0x0000000001dd519f
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 463
25 clang     0x0000000001dd0f16 clang::ParseAST(clang::Sema&, bool, bool) + 422
26 clang     0x00000000015bb91e clang::FrontendAction::Execute() + 62
27 clang     0x000000000158d35c
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 892
28 clang     0x000000000163e7ea
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3114
29 clang     0x00000000006d1b5c cc1_main(llvm::ArrayRef<char const*>, char
const*, void*) + 684
30 clang     0x00000000006d0589 main + 12089
31 libc.so.6 0x00007f4a66d4fec5 __libc_start_main + 245
32 clang     0x00000000006cd52d
Stack dump:
0.    Program arguments:
/usr/local/google/home/phoglund/dev/chrome/src/third_party/llvm-build/Release+Asserts/bin/clang
-cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free
-main-file-name chrome_webrtc_audio_quality_browsertest.cc -mrelocation-model
pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -relaxed-aliasing
-fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables
-fuse-init-array -target-cpu x86-64 -gdwarf-4 -dwarf-column-info -g
-backend-option -split-dwarf=Enable -coverage-file
/usr/local/google/home/phoglund/dev/chrome/src/out/Debug/obj/chrome/browser/media/browser_tests.chrome_webrtc_audio_quality_browsertest.o
-resource-dir
/usr/local/google/home/phoglund/dev/chrome/src/third_party/llvm-build/Release+Asserts/bin/../lib/clang/3.6.0
-dependency-file
obj/chrome/browser/media/browser_tests.chrome_webrtc_audio_quality_browsertest.o.d
-MT
obj/chrome/browser/media/browser_tests.chrome_webrtc_audio_quality_browsertest.o
-D V8_DEPRECATION_WARNINGS -D _FILE_OFFSET_BITS=64 -D CHROMIUM_BUILD -D
CR_CLANG_REVISION=223109 -D TOOLKIT_VIEWS=1 -D UI_COMPOSITOR_IMAGE_TRANSPORT -D
USE_AURA=1 -D USE_ASH=1 -D USE_PANGO=1 -D USE_CAIRO=1 -D
USE_DEFAULT_RENDER_THEME=1 -D USE_LIBJPEG_TURBO=1 -D USE_X11=1 -D
USE_CLIPBOARD_AURAX11=1 -D ENABLE_ONE_CLICK_SIGNIN -D ENABLE_PRE_SYNC_BACKUP -D
ENABLE_REMOTING=1 -D ENABLE_WEBRTC=1 -D ENABLE_PEPPER_CDMS -D
ENABLE_CONFIGURATION_POLICY -D ENABLE_NOTIFICATIONS -D USE_UDEV -D
DONT_EMBED_BUILD_METADATA -D ENABLE_TASK_MANAGER=1 -D ENABLE_EXTENSIONS=1 -D
ENABLE_PLUGINS=1 -D ENABLE_SESSION_SERVICE=1 -D ENABLE_THEMES=1 -D
ENABLE_AUTOFILL_DIALOG=1 -D ENABLE_BACKGROUND=1 -D ENABLE_GOOGLE_NOW=1 -D
CLD_VERSION=2 -D ENABLE_PRINTING=1 -D ENABLE_BASIC_PRINTING=1 -D
ENABLE_PRINT_PREVIEW=1 -D ENABLE_SPELLCHECK=1 -D
ENABLE_CAPTIVE_PORTAL_DETECTION=1 -D ENABLE_APP_LIST=1 -D ENABLE_SETTINGS_APP=1
-D ENABLE_SUPERVISED_USERS=1 -D ENABLE_MDNS=1 -D ENABLE_SERVICE_DISCOVERY=1 -D
V8_USE_EXTERNAL_STARTUP_DATA -D HAS_OUT_OF_PROC_TEST_RUNNER -D
FULL_SAFE_BROWSING -D GL_GLEXT_PROTOTYPES -D MOJO_USE_SYSTEM_IMPL -D
LIBPEERCONNECTION_LIB=1 -D GTEST_HAS_POSIX_RE=0 -D GTEST_LANG_CXX11=0 -D
NACL_WINDOWS=0 -D NACL_LINUX=1 -D NACL_OSX=0 -D NACL_ANDROID=0 -D
NACL_BUILD_SUBARCH=64 -D NACL_BUILD_ARCH=x86 -D AUTOFILL_ENABLE_SYNC -D
CHROME_PNG_WRITE_SUPPORT -D PNG_USER_CONFIG -D PROTOBUF_USE_DLLS -D
GOOGLE_PROTOBUF_NO_RTTI -D GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -D
SK_ENABLE_INST_COUNT=0 -D SK_SUPPORT_GPU=1 -D
GR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h" -D
SK_ENABLE_LEGACY_API_ALIASING=1 -D SK_ATTR_DEPRECATED=SK_NOTHING_ARG1 -D
GR_GL_IGNORE_ES3_MSAA=0 -D SK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT -D
SK_SUPPORT_LEGACY_TEXTRENDERMODE -D SK_IGNORE_GPU_LAYER_HOISTING -D
SK_SUPPORT_LEGACY_NewRasterPMColor -D SK_LEGACY_ENCODE_BITMAP -D
SK_USE_POSIX_THREADS -D UNIT_TEST -D GTEST_HAS_RTTI=0 -D
U_USING_ICU_NAMESPACE=0 -D U_ENABLE_DYLOAD=0 -D U_STATIC_IMPLEMENTATION -D
I18N_ADDRESS_VALIDATION_DATA_URL="https://i18napis.appspot.com/ssl-aggregate-address/"
-D I18N_ADDRESSINPUT_USE_BASICTYPES_OVERRIDE=1 -D FEATURE_ENABLE_SSL -D
FEATURE_ENABLE_VOICEMAIL -D EXPAT_RELATIVE_PATH -D GTEST_RELATIVE_PATH -D
NO_MAIN_THREAD_WRAPPING -D NO_SOUND_SYSTEM -D LINUX -D WEBRTC_LINUX -D POSIX -D
WEBRTC_POSIX -D USE_LIBPCI=1 -D USE_GLIB=1 -D USE_NSS=1 -D
__STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D DYNAMIC_ANNOTATIONS_ENABLED=1
-D WTF_USE_DYNAMIC_ANNOTATIONS=1 -D _DEBUG -D _GLIBCXX_DEBUG=1 -I gen -I ../..
-I ../../skia/config -I ../../third_party/khronos -I ../../gpu -I
../../third_party/WebKit/Source -I gen/angle -I ../../third_party/WebKit -I
gen/chrome -I ../../third_party/WebKit -I ../../third_party/npapi -I
../../third_party/npapi/bindings -I ../../third_party/libpng -I
../../third_party/zlib -I ../../third_party/libwebp -I
../../third_party/ots/include -I ../../third_party/qcms/src -I
../../third_party/iccjpeg -I ../../third_party/libjpeg_turbo -I gen/policy -I
gen/protoc_out -I obj/chrome/browser_tests.gen -I ../../third_party/protobuf -I
../../third_party/protobuf/src -I gen/components -I gen/components/strings -I
../../sdch/open-vcdiff/src -I ../../third_party/skia/src/core -I
../../third_party/skia/include/core -I ../../third_party/skia/include/effects
-I ../../third_party/skia/include/pdf -I ../../third_party/skia/include/gpu -I
../../third_party/skia/include/lazy -I ../../third_party/skia/include/pathops
-I ../../third_party/skia/include/pipe -I ../../third_party/skia/include/ports
-I ../../third_party/skia/include/utils -I ../../skia/ext -I
../../testing/gmock/include -I ../../testing/gtest/include -I
../../third_party/cacheinvalidation/overrides -I
../../third_party/cacheinvalidation/src -I ../../third_party/icu/source/i18n -I
../../third_party/icu/source/common -I
../../third_party/leveldatabase/src/include -I
../../third_party/leveldatabase/src -I ../../third_party/leveldatabase -I
../../third_party/libaddressinput/chromium/override -I
../../third_party/libaddressinput/src/cpp/include -I
gen/third_party/libaddressinput/ -I ../../third_party/webrtc/overrides -I
../../third_party/libjingle/overrides -I ../../third_party/libjingle/source -I
../../third_party -I gen/ui/resources -I ../../v8/include -I
../../net/third_party/nss/ssl -I /usr/include/glib-2.0 -I
/usr/lib/x86_64-linux-gnu/glib-2.0/include -I /usr/include/gtk-2.0 -I
/usr/lib/x86_64-linux-gnu/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/gio-unix-2.0/ -I /usr/include/freetype2 -I /usr/include/pixman-1
-I /usr/include/libpng12 -I /usr/include/harfbuzz -I /usr/include/freetype2 -I
/usr/include/glib-2.0 -I /usr/lib/x86_64-linux-gnu/glib-2.0/include -I
/usr/include/nss -I /usr/include/nspr -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/x86_64-linux-gnu/c++/4.8
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/x86_64-linux-gnu/c++/4.8
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/backward
-internal-isystem /usr/local/include -internal-isystem
/usr/local/google/home/phoglund/dev/chrome/src/third_party/llvm-build/Release+Asserts/bin/../lib/clang/3.6.0/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O0
-Werror -Wall -Wno-unused-parameter -Wno-missing-field-initializers
-Wno-reserved-user-defined-literal -Wheader-hygiene -Wno-char-subscripts
-Wno-unneeded-internal-declaration -Wno-covered-switch-default
-Wstring-conversion -Wno-c++11-narrowing -Wno-deprecated-register
-Wno-inconsistent-missing-override -Wno-header-guard
-Wno-undefined-bool-conversion -Wno-tautological-undefined-compare
-Wsign-compare -std=gnu++11 -fdeprecated-macro -fdebug-compilation-dir
/usr/local/google/home/phoglund/dev/chrome/src/out/Debug -ferror-limit 19
-fmessage-length 0 -fvisibility hidden -fvisibility-inlines-hidden -pthread
-stack-protector 1 -stack-protector-buffer-size 4 -mstackrealign -fno-rtti
-fno-threadsafe-statics -fobjc-runtime=gcc -fdiagnostics-show-option
-fcolor-diagnostics -load
/usr/local/google/home/phoglund/dev/chrome/src/third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so
-add-plugin find-bad-constructs -o
obj/chrome/browser/media/browser_tests.chrome_webrtc_audio_quality_browsertest.o
-x c++ ../../chrome/browser/media/chrome_webrtc_audio_quality_browsertest.cc
-split-dwarf-file
obj/chrome/browser/media/browser_tests.chrome_webrtc_audio_quality_browsertest.dwo 
1.   
../../chrome/browser/media/chrome_webrtc_audio_quality_browsertest.cc:598:51:
current parser token ';'
2.   
../../chrome/browser/media/chrome_webrtc_audio_quality_browsertest.cc:545:78:
parsing function body 'RunTestOnMainThread'
3.   
../../chrome/browser/media/chrome_webrtc_audio_quality_browsertest.cc:545:78:
in compound statement ('{}')
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.6.0 (trunk 223109)
Target: x86_64-unknown-linux-gnu
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/chrome_webrtc_audio_quality_browsertest-65f275.cpp
clang: note: diagnostic msg:
/tmp/chrome_webrtc_audio_quality_browsertest-65f275.sh
clang: note: diagnostic msg: 

********************
ninja: build stopped: subcommand failed

-- 
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/20141216/f1a5766a/attachment.html>


More information about the llvm-bugs mailing list