[LLVMbugs] [Bug 19953] New: clang crashes on MemorySanitizer pass when building Chrome

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jun 5 09:12:43 PDT 2014


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

            Bug ID: 19953
           Summary: clang crashes on MemorySanitizer pass when building
                    Chrome
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: ASSIGNED
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: eugeni.stepanov at gmail.com
          Reporter: earthdok at google.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 12609
  --> http://llvm.org/bugs/attachment.cgi?id=12609&action=edit
cpp

clang at r210267

FAILED: clang++ -MMD -MF obj/media/base/simd/media_mmx.filter_yuv_mmx.o.d
-DV8_DEPRECATION_WARNINGS -DBLINK_SCALE_FILTERS_AT_RECORD_TIME
-D_FILE_OFFSET_BITS=64 -DNO_TCMALLOC -DCHROMIUM_BUILD
-DCR_CLANG_REVISION=209387 -DTOOLKIT_VIEWS=1 -DUI_COMPOSITOR_IMAGE_TRANSPORT
-DUSE_AURA=1 -DUSE_ASH=1 -DUSE_CAIRO=1 -DUSE_GLIB=1
-DUSE_DEFAULT_RENDER_THEME=1 -DUSE_LIBJPEG_TURBO=1 -DUSE_X11=1
-DUSE_CLIPBOARD_AURAX11=1 -DENABLE_ONE_CLICK_SIGNIN -DUSE_XI2_MT=2
-DENABLE_REMOTING=1 -DENABLE_WEBRTC=1 -DENABLE_PEPPER_CDMS
-DENABLE_CONFIGURATION_POLICY -DENABLE_NOTIFICATIONS -DUSE_UDEV
-DENABLE_EGLIMAGE=1 -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=1
-DENABLE_PLUGINS=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1
-DENABLE_AUTOFILL_DIALOG=1 -DENABLE_BACKGROUND=1 -DENABLE_GOOGLE_NOW=1
-DCLD_VERSION=2 -DENABLE_FULL_PRINTING=1 -DENABLE_PRINTING=1
-DENABLE_SPELLCHECK=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1
-DENABLE_SETTINGS_APP=1 -DENABLE_MANAGED_USERS=1 -DENABLE_MDNS=1
-DENABLE_SERVICE_DISCOVERY=1 -DMEDIA_IMPLEMENTATION -DUSE_NSS=1
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
-DMEMORY_TOOL_REPLACES_ALLOCATOR -DMEMORY_SANITIZER -DNDEBUG -DNVALGRIND
-DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../..
'-I../../third_party/libc++/trunk/include'
'-I../../third_party/libc++abi/trunk/include' -fstack-protector
--param=ssp-buffer-size=4 -Werror -pthread -fno-exceptions -fno-strict-aliasing
-Wall -Wno-unused-parameter -Wno-missing-field-initializers -fvisibility=hidden
-pipe -fPIC -Wheader-hygiene -Wno-char-subscripts
-Wno-unneeded-internal-declaration -Wno-covered-switch-default
-Wstring-conversion -Wno-c++11-narrowing -Wno-reserved-user-defined-literal
-Wno-deprecated-register -fcolor-diagnostics
-B/mnt/ssd/chromium/src/third_party/binutils/Linux_x64/Release/bin -mmmx -m64
-march=x86-64 -fno-omit-frame-pointer -gline-tables-only -fsanitize=memory
-fsanitize-memory-track-origins -fPIC
-fsanitize-blacklist=../../tools/msan/blacklist.txt -O2 -fdata-sections
-ffunction-sections -funwind-tables -fno-rtti -fno-threadsafe-statics
-fvisibility-inlines-hidden -Wsign-compare -std=gnu++11 -nostdinc++  -c
../../media/base/simd/filter_yuv_mmx.cc -o
obj/media/base/simd/media_mmx.filter_yuv_mmx.o
clang-3.5:
/usr/local/google/home/earthdok/san/llvm/lib/IR/Instructions.cpp:281: void
llvm::CallInst::init(llvm::Value*, llvm::ArrayRef<llvm::Value*>, const
llvm::Twine&): Assertion `(i >= FTy->getNumParams() || FTy->getParamType(i) ==
Args[i]->getType()) && "Calling a function with a bad signature!"' failed.
0  clang-3.5       0x00000000010edb22 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1  clang-3.5       0x00000000010ed744
2  libpthread.so.0 0x00007ff4abfd5cb0
3  libc.so.6       0x00007ff4ab211425 gsignal + 53
4  libc.so.6       0x00007ff4ab214b8b abort + 379
5  libc.so.6       0x00007ff4ab20a0ee
6  libc.so.6       0x00007ff4ab20a192
7  clang-3.5       0x0000000000e4b439 llvm::CallInst::init(llvm::Value*,
llvm::ArrayRef<llvm::Value*>, llvm::Twine const&) + 313
8  clang-3.5       0x0000000000f4fc0b
9  clang-3.5       0x00000000018bea85
10 clang-3.5       0x00000000018c2652
11 clang-3.5       0x0000000000e68d5f
llvm::FPPassManager::runOnFunction(llvm::Function&) + 655
12 clang-3.5       0x0000000000e6923b
llvm::FPPassManager::runOnModule(llvm::Module&) + 43
13 clang-3.5       0x0000000000e6957d
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 797
14 clang-3.5       0x0000000001708ac8
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) +
3032
15 clang-3.5       0x0000000001702abf
16 clang-3.5       0x0000000001b5d5b3 clang::ParseAST(clang::Sema&, bool, bool)
+ 483
17 clang-3.5       0x0000000001702e8b clang::CodeGenAction::ExecuteAction() +
59
18 clang-3.5       0x0000000001249906 clang::FrontendAction::Execute() + 118
19 clang-3.5       0x000000000122ba60
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 304
20 clang-3.5       0x00000000012c7ba2
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2034
21 clang-3.5       0x00000000006d55b8 cc1_main(char const**, char const**, char
const*, void*) + 1208
22 clang-3.5       0x00000000006afcb0 main + 4928
23 libc.so.6       0x00007ff4ab1fc76d __libc_start_main + 237
24 clang-3.5       0x00000000006d1eb9
Stack dump:
0.    Program arguments: /mnt/ssd/san/build/bin/clang-3.5 -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name
filter_yuv_mmx.cc -mrelocation-model pic -pic-level 2 -mdisable-fp-elim
-relaxed-aliasing -fmath-errno -masm-verbose -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -target-feature +mmx
-momit-leaf-frame-pointer -gline-tables-only -ffunction-sections
-fdata-sections -coverage-file
/mnt/ssd/chromium/src/out_msan/Release/obj/media/base/simd/media_mmx.filter_yuv_mmx.o
-nostdinc++ -resource-dir /mnt/ssd/san/build/bin/../lib/clang/3.5.0
-dependency-file obj/media/base/simd/media_mmx.filter_yuv_mmx.o.d -MT
obj/media/base/simd/media_mmx.filter_yuv_mmx.o -D V8_DEPRECATION_WARNINGS -D
BLINK_SCALE_FILTERS_AT_RECORD_TIME -D _FILE_OFFSET_BITS=64 -D NO_TCMALLOC -D
CHROMIUM_BUILD -D CR_CLANG_REVISION=209387 -D TOOLKIT_VIEWS=1 -D
UI_COMPOSITOR_IMAGE_TRANSPORT -D USE_AURA=1 -D USE_ASH=1 -D USE_CAIRO=1 -D
USE_GLIB=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 USE_XI2_MT=2 -D
ENABLE_REMOTING=1 -D ENABLE_WEBRTC=1 -D ENABLE_PEPPER_CDMS -D
ENABLE_CONFIGURATION_POLICY -D ENABLE_NOTIFICATIONS -D USE_UDEV -D
ENABLE_EGLIMAGE=1 -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_FULL_PRINTING=1 -D ENABLE_PRINTING=1 -D
ENABLE_SPELLCHECK=1 -D ENABLE_CAPTIVE_PORTAL_DETECTION=1 -D ENABLE_APP_LIST=1
-D ENABLE_SETTINGS_APP=1 -D ENABLE_MANAGED_USERS=1 -D ENABLE_MDNS=1 -D
ENABLE_SERVICE_DISCOVERY=1 -D MEDIA_IMPLEMENTATION -D USE_NSS=1 -D
__STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D
MEMORY_TOOL_REPLACES_ALLOCATOR -D MEMORY_SANITIZER -D NDEBUG -D NVALGRIND -D
DYNAMIC_ANNOTATIONS_ENABLED=0 -I ../.. -I
../../third_party/libc++/trunk/include -I
../../third_party/libc++abi/trunk/include -internal-isystem /usr/local/include
-internal-isystem /mnt/ssd/san/build/bin/../lib/clang/3.5.0/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O2
-Werror -Wall -Wno-unused-parameter -Wno-missing-field-initializers
-Wheader-hygiene -Wno-char-subscripts -Wno-unneeded-internal-declaration
-Wno-covered-switch-default -Wstring-conversion -Wno-c++11-narrowing
-Wno-reserved-user-defined-literal -Wno-deprecated-register -Wsign-compare
-std=gnu++11 -fdeprecated-macro -fdebug-compilation-dir
/mnt/ssd/chromium/src/out_msan/Release -ferror-limit 19 -fmessage-length 0
-fvisibility hidden -fvisibility-inlines-hidden -fsanitize=memory
-fsanitize-blacklist=../../tools/msan/blacklist.txt
-fsanitize-memory-track-origins=1 -fno-assume-sane-operator-new -pthread
-stack-protector 1 -stack-protector-buffer-size 4 -mstackrealign -fno-rtti
-fno-threadsafe-statics -fobjc-runtime=gcc -fdiagnostics-show-option
-fcolor-diagnostics -vectorize-loops -vectorize-slp -o
obj/media/base/simd/media_mmx.filter_yuv_mmx.o -x c++
../../media/base/simd/filter_yuv_mmx.cc 
1.    <eof> parser at end of file
2.    Per-module optimization passes
3.    Running pass 'Function Pass Manager' on module
'../../media/base/simd/filter_yuv_mmx.cc'.
4.    Running pass 'MemorySanitizer' on function
'@_ZN5media17FilterYUVRows_MMXEPhPKhS2_ii'
clang-3.5: error: unable to execute command: Aborted (core dumped)
clang-3.5: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.5.0 
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang-3.5: 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-3.5: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-3.5: note: diagnostic msg: /tmp/filter_yuv_mmx-fa851b.cpp
clang-3.5: note: diagnostic msg: /tmp/filter_yuv_mmx-fa851b.sh
clang-3.5: note: diagnostic msg: 

********************
ninja: build stopped: subcommand failed.
PATH="/usr/local/google/home/earthdok/san/build/bin:/usr/local/google/home/earthdok/tools/google-cloud-sdk/bin:/usr/local/google/home/earthdok/tools/google-cloud-sdk/bin:/usr/lib/lightdm/lightdm:/usr/local/google/home/earthdok/tools/arcanist/arcanist/bin:/usr/local/google/home/earthdok/tools/depot_tools:/usr/local/google/home/earthdok/tools/cmake-2.8.8-Linux-i386/bin:/usr/local/google/home/earthdok/san/build/bin/:/usr/local/google/home/earthdok/tools/arcanist/arcanist/bin:/usr/local/google/home/earthdok/tools/depot_tools:/usr/local/google/home/earthdok/tools/cmake-2.8.8-Linux-i386/bin:/usr/local/google/home/earthdok/san/build/bin/:/usr/lib/google-golang/bin:/usr/local/buildtools/java/jdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
LD_LIBRARY_PATH="/usr/local/google/home/earthdok/san/gcc/lib64" ninja -j32 -C
out_msan/Release browser_tests

-- 
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/20140605/b2149718/attachment.html>


More information about the llvm-bugs mailing list