[llvm-bugs] [Bug 24659] New: Crash.

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Sep 1 12:50:00 PDT 2015


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

            Bug ID: 24659
           Summary: Crash.
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: bnc at chromium.org
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
    Classification: Unclassified

bnc at bnc:~/chromium/chromium/src$ ninja -j 100 -C out/gn chrome net_unittests
ninja: Entering directory `out/gn'
[67/86] CXX obj/net/net_unittests/spdy_priority_tree_test.o
FAILED: ~/chromium/goma/gomacc
../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF
obj/net/net_unittests/spdy_priority_tree_test.o.d -DUSE_KERBEROS
-DV8_DEPRECATION_WARNINGS -DCLD_VERSION=2 -DENABLE_MDNS=1
-DENABLE_NOTIFICATIONS -DENABLE_PEPPER_CDMS -DENABLE_PLUGINS=1 -DENABLE_PDF=1
-DENABLE_PRINTING=1 -DENABLE_BASIC_PRINTING=1 -DENABLE_PRINT_PREVIEW=1
-DENABLE_SPELLCHECK=1 -DDONT_EMBED_BUILD_METADATA -DUSE_UDEV
-DUI_COMPOSITOR_IMAGE_TRANSPORT -DUSE_ASH=1 -DUSE_AURA=1 -DUSE_PANGO=1
-DUSE_CAIRO=1 -DUSE_CLIPBOARD_AURAX11=1 -DUSE_DEFAULT_RENDER_THEME=1
-DUSE_GLIB=1 -DUSE_OPENSSL=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DENABLE_WEBRTC=1
-DENABLE_EXTENSIONS=1 -DENABLE_CONFIGURATION_POLICY -DENABLE_TASK_MANAGER=1
-DENABLE_THEMES=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1
-DENABLE_SESSION_SERVICE=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1
-DENABLE_SUPERVISED_USERS=1 -DENABLE_SERVICE_DISCOVERY=1
-DENABLE_AUTOFILL_DIALOG=1 -DENABLE_GOOGLE_NOW=1 -DENABLE_ONE_CLICK_SIGNIN
-DENABLE_HIDPI=1 -DENABLE_TOPCHROME_MD=1 -DV8_USE_EXTERNAL_STARTUP_DATA
-DENABLE_BACKGROUND=1 -DENABLE_PRE_SYNC_BACKUP -DFULL_SAFE_BROWSING
-DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DSAFE_BROWSING_SERVICE
-DCHROMIUM_BUILD -DENABLE_MEDIA_ROUTER=1 -DFIELDTRIAL_TESTING_ENABLED
-DCR_CLANG_REVISION=245965-1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_DEBUG
-DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1
-D_GLIBCXX_DEBUG=1 -DGOOGLE_PROTOBUF_NO_RTTI
-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DGTEST_HAS_POSIX_RE=0
-DGTEST_LANG_CXX11=0 -DGTEST_HAS_RTTI=0 -DU_USING_ICU_NAMESPACE=0
-DU_ENABLE_DYLOAD=0 -DU_STATIC_IMPLEMENTATION -DUNIT_TEST
-DMOJO_USE_SYSTEM_IMPL -I../.. -Igen -I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I../../third_party/protobuf/src
-Igen/protoc_out -I../../third_party/protobuf/src -I../../third_party/protobuf
-I/usr/include/nss -I/usr/include/nspr
-I../../third_party/boringssl/src/include -I../../testing/gtest/include
-I../../third_party/icu/source/common -I../../third_party/icu/source/i18n
-I../../testing/gmock/include -I../../v8/include -I../../third_party/zlib
-I../../third_party/mojo/src -Igen/third_party/mojo/src -fno-strict-aliasing
--param=ssp-buffer-size=4 -fstack-protector -m64 -march=x86-64 -funwind-tables
-fPIC -pipe -pthread -B../../third_party/binutils/Linux_x64/Release/bin
-fcolor-diagnostics -Wall -Wsign-compare -Wendif-labels -Werror
-Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing
-Wno-char-subscripts -Wno-covered-switch-default -Wno-deprecated-register
-Wno-unneeded-internal-declaration -Wno-reserved-user-defined-literal
-Wno-inconsistent-missing-override -Wno-shift-negative-value
-fvisibility=hidden -Xclang -load -Xclang
../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so
-Xclang -plugin-arg-find-bad-constructs -Xclang check-templates -Xclang
-add-plugin -Xclang find-bad-constructs -Wheader-hygiene -Wstring-conversion
-O0 -g2 -gsplit-dwarf -Wno-header-guard -Wthread-safety -fno-threadsafe-statics
-fvisibility-inlines-hidden -Wno-undefined-bool-conversion
-Wno-tautological-undefined-compare -std=gnu++11 -fno-rtti -fno-exceptions -c
../../net/spdy/spdy_priority_tree_test.cc -o
obj/net/net_unittests/spdy_priority_tree_test.o
In file included from ../../net/spdy/spdy_priority_tree_test.cc:5:
../../net/spdy/spdy_priority_tree.h:145:11: error: unknown type name
'hash_map'; did you mean '__gnu_cxx::hash_map'?
  typedef hash_map<NodeId, Node> NodeMap;
          ^~~~~~~~
          __gnu_cxx::hash_map
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/ext/hash_map:83:11:
note: '__gnu_cxx::hash_map' declared here
    class hash_map
          ^
In file included from ../../net/spdy/spdy_priority_tree_test.cc:5:
../../net/spdy/spdy_priority_tree.h:145:19: error: expected member name or ';'
after declaration specifiers
  typedef hash_map<NodeId, Node> NodeMap;
  ~~~~~~~~~~~~~~~~^
clang:
/home/thakis/chrome-src/third_party/llvm/tools/clang/lib/Sema/SemaExprCXX.cpp:2446:
const clang::CXXNewExpr *(anonymous
namespace)::MismatchingNewDeleteDetector::getNewExprFromInitListOrExpr(const
clang::Expr *): Assertion `E != nullptr && "Expected a valid initializer
expression"' failed.
0  clang     0x00000000016b241d llvm::sys::PrintStackTrace(llvm::raw_ostream&)
+ 45
1  clang     0x00000000016b1aa6 llvm::sys::RunSignalHandlers() + 54
2  clang     0x00000000016b387a
3  libc.so.6 0x00007f6aec56fd40
4  libc.so.6 0x00007f6aec56fcc9 gsignal + 57
5  libc.so.6 0x00007f6aec5730d8 abort + 328
6  libc.so.6 0x00007f6aec568b86
7  libc.so.6 0x00007f6aec568c32
8  clang     0x0000000002477fd2
9  clang     0x0000000002465c38
10 clang     0x0000000002465219
clang::Sema::AnalyzeDeleteExprMismatch(clang::CXXDeleteExpr const*) + 345
11 clang     0x00000000024660b6
clang::Sema::ActOnCXXDelete(clang::SourceLocation, bool, bool, clang::Expr*) +
726
12 clang     0x000000000267a2e7
13 clang     0x0000000002691fa0
14 clang     0x000000000267a25c clang::Sema::SubstStmt(clang::Stmt*,
clang::MultiLevelTemplateArgumentList const&) + 60
15 clang     0x00000000026aba2c
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 2812
16 clang     0x00000000026a65b0 clang::Sema::PerformPendingInstantiations(bool)
+ 592
17 clang     0x00000000026abc1d
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 3309
18 clang     0x00000000026a65b0 clang::Sema::PerformPendingInstantiations(bool)
+ 592
19 clang     0x00000000026abc1d
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 3309
20 clang     0x00000000026a65b0 clang::Sema::PerformPendingInstantiations(bool)
+ 592
21 clang     0x00000000026abc1d
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 3309
22 clang     0x00000000026a65b0 clang::Sema::PerformPendingInstantiations(bool)
+ 592
23 clang     0x00000000026abc1d
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 3309
24 clang     0x00000000026a65b0 clang::Sema::PerformPendingInstantiations(bool)
+ 592
25 clang     0x00000000026abc1d
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 3309
26 clang     0x00000000026a65b0 clang::Sema::PerformPendingInstantiations(bool)
+ 592
27 clang     0x0000000002243ae7 clang::Sema::ActOnEndOfTranslationUnit() + 247
28 clang     0x000000000205a460
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 720
29 clang     0x0000000002055f26 clang::ParseAST(clang::Sema&, bool, bool) + 518
30 clang     0x0000000001a7ecb5 clang::FrontendAction::Execute() + 69
31 clang     0x0000000001a4df0c
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 812
32 clang     0x0000000001af891b
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3243
33 clang     0x0000000000716745 cc1_main(llvm::ArrayRef<char const*>, char
const*, void*) + 1173
34 clang     0x000000000071541c main + 13212
35 libc.so.6 0x00007f6aec55aec5 __libc_start_main + 245
36 clang     0x0000000000711f59
Stack dump:
0.      Program arguments:
/usr/local/google/home/bnc/chromium/chromium/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 spdy_priority_tree_test.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 -g -dwarf-column-info -g -backend-option -split-dwarf=Enable
-coverage-file
/usr/local/google/home/bnc/chromium/chromium/src/out/gn/obj/net/net_unittests/spdy_priority_tree_test.o
-resource-dir
/usr/local/google/home/bnc/chromium/chromium/src/third_party/llvm-build/Release+Asserts/bin/../lib/clang/3.8.0
-dependency-file obj/net/net_unittests/spdy_priority_tree_test.o.d -MT
obj/net/net_unittests/spdy_priority_tree_test.o -D USE_KERBEROS -D
V8_DEPRECATION_WARNINGS -D CLD_VERSION=2 -D ENABLE_MDNS=1 -D
ENABLE_NOTIFICATIONS -D ENABLE_PEPPER_CDMS -D ENABLE_PLUGINS=1 -D ENABLE_PDF=1
-D ENABLE_PRINTING=1 -D ENABLE_BASIC_PRINTING=1 -D ENABLE_PRINT_PREVIEW=1 -D
ENABLE_SPELLCHECK=1 -D DONT_EMBED_BUILD_METADATA -D USE_UDEV -D
UI_COMPOSITOR_IMAGE_TRANSPORT -D USE_ASH=1 -D USE_AURA=1 -D USE_PANGO=1 -D
USE_CAIRO=1 -D USE_CLIPBOARD_AURAX11=1 -D USE_DEFAULT_RENDER_THEME=1 -D
USE_GLIB=1 -D USE_OPENSSL=1 -D USE_NSS_CERTS=1 -D USE_X11=1 -D ENABLE_WEBRTC=1
-D ENABLE_EXTENSIONS=1 -D ENABLE_CONFIGURATION_POLICY -D ENABLE_TASK_MANAGER=1
-D ENABLE_THEMES=1 -D ENABLE_CAPTIVE_PORTAL_DETECTION=1 -D
ENABLE_SESSION_SERVICE=1 -D ENABLE_APP_LIST=1 -D ENABLE_SETTINGS_APP=1 -D
ENABLE_SUPERVISED_USERS=1 -D ENABLE_SERVICE_DISCOVERY=1 -D
ENABLE_AUTOFILL_DIALOG=1 -D ENABLE_GOOGLE_NOW=1 -D ENABLE_ONE_CLICK_SIGNIN -D
ENABLE_HIDPI=1 -D ENABLE_TOPCHROME_MD=1 -D V8_USE_EXTERNAL_STARTUP_DATA -D
ENABLE_BACKGROUND=1 -D ENABLE_PRE_SYNC_BACKUP -D FULL_SAFE_BROWSING -D
SAFE_BROWSING_CSD -D SAFE_BROWSING_DB_LOCAL -D SAFE_BROWSING_SERVICE -D
CHROMIUM_BUILD -D ENABLE_MEDIA_ROUTER=1 -D FIELDTRIAL_TESTING_ENABLED -D
CR_CLANG_REVISION=245965-1 -D _FILE_OFFSET_BITS=64 -D _LARGEFILE_SOURCE -D
_LARGEFILE64_SOURCE -D __STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D _DEBUG
-D DYNAMIC_ANNOTATIONS_ENABLED=1 -D WTF_USE_DYNAMIC_ANNOTATIONS=1 -D
_GLIBCXX_DEBUG=1 -D GOOGLE_PROTOBUF_NO_RTTI -D
GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -D GTEST_HAS_POSIX_RE=0 -D
GTEST_LANG_CXX11=0 -D GTEST_HAS_RTTI=0 -D U_USING_ICU_NAMESPACE=0 -D
U_ENABLE_DYLOAD=0 -D U_STATIC_IMPLEMENTATION -D UNIT_TEST -D
MOJO_USE_SYSTEM_IMPL -I ../.. -I gen -I /usr/include/glib-2.0 -I
/usr/lib/x86_64-linux-gnu/glib-2.0/include -I ../../third_party/protobuf/src -I
gen/protoc_out -I ../../third_party/protobuf/src -I ../../third_party/protobuf
-I /usr/include/nss -I /usr/include/nspr -I
../../third_party/boringssl/src/include -I ../../testing/gtest/include -I
../../third_party/icu/source/common -I ../../third_party/icu/source/i18n -I
../../testing/gmock/include -I ../../v8/include -I ../../third_party/zlib -I
../../third_party/mojo/src -I gen/third_party/mojo/src -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/bnc/chromium/chromium/src/third_party/llvm-build/Release+Asserts/bin/../lib/clang/3.8.0/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O0
-Wall -Wsign-compare -Wendif-labels -Werror -Wno-missing-field-initializers
-Wno-unused-parameter -Wno-c++11-narrowing -Wno-char-subscripts
-Wno-covered-switch-default -Wno-deprecated-register
-Wno-unneeded-internal-declaration -Wno-reserved-user-defined-literal
-Wno-inconsistent-missing-override -Wno-shift-negative-value -Wheader-hygiene
-Wstring-conversion -Wno-header-guard -Wthread-safety
-Wno-undefined-bool-conversion -Wno-tautological-undefined-compare -std=gnu++11
-fdeprecated-macro -fdebug-compilation-dir
/usr/local/google/home/bnc/chromium/chromium/src/out/gn -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
../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so
-plugin-arg-find-bad-constructs check-templates -add-plugin find-bad-constructs
-o obj/net/net_unittests/spdy_priority_tree_test.o -x c++
../../net/spdy/spdy_priority_tree_test.cc -split-dwarf-file
obj/net/net_unittests/spdy_priority_tree_test.dwo
1.      <eof> parser at end of file
2.      ../../net/spdy/spdy_priority_tree.h:49:3: instantiating function
definition 'SpdyPriorityTree'
3.     
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/backward/hashtable.h:371:7:
instantiating function definition '~hashtable'
4.     
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/backward/hashtable.h:583:7:
instantiating function definition 'clear'
5.     
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/backward/hashtable.h:633:7:
instantiating function definition '_M_delete_node'
6.     
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/ext/new_allocator.h:124:9:
instantiating function definition 'destroy'
7.      ../../net/spdy/spdy_priority_tree.h:120:5: instantiating function
definition '~Node'
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.8.0 (trunk 245965)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir:
/usr/local/google/home/bnc/chromium/chromium/src/third_party/llvm-build/Release+Asserts/bin
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/spdy_priority_tree_test-b0cdd0.cpp
clang: note: diagnostic msg: /tmp/spdy_priority_tree_test-b0cdd0.sh
clang: note: diagnostic msg:

********************
[67/86] CXX obj/chrome/browser/browser/sync_backend_host_impl.o
ninja: build stopped: subcommand failed.
bnc at bnc:~/chromium/chromium/src$

-- 
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/20150901/cdb431e4/attachment-0001.html>


More information about the llvm-bugs mailing list