[llvm-bugs] [Bug 37034] New: clang++ version 4.0.1-6 on Ubuntu 17.10 segmentation fault when trying to build rethinkdb-2.3.6

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Apr 6 08:37:55 PDT 2018


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

            Bug ID: 37034
           Summary: clang++ version 4.0.1-6 on Ubuntu 17.10 segmentation
                    fault when trying to build rethinkdb-2.3.6
           Product: clang
           Version: 4.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: erik at nordstroem.no
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org

See also:
https://github.com/rethinkdb/rethinkdb/issues/6536#issuecomment-379279687

    [9/426] CC build/release_clang/obj/rdb_protocol/geo_traversal.o
In file included from src/rdb_protocol/geo_traversal.cc:2:
In file included from ./src/rdb_protocol/geo_traversal.hpp:14:
In file included from ./src/btree/reql_specific.hpp:5:
In file included from ./src/btree/operations.hpp:17:
In file included from ./src/perfmon/perfmon.hpp:20:
In file included from ./src/perfmon/core.hpp:14:
In file included from ./src/rdb_protocol/datum.hpp:26:
In file included from ./src/rdb_protocol/error.hpp:12:
./build/proto/rdb_protocol/ql2.pb.h:2292:6: warning:
'PROTOBUF_INLINE_NOT_IN_HEADERS' is not defined, evaluates to 0 [-Wundef]
#if !PROTOBUF_INLINE_NOT_IN_HEADERS
     ^
In file included from src/rdb_protocol/geo_traversal.cc:9:
In file included from ./src/rdb_protocol/env.hpp:21:
./src/rdb_protocol/datum_stream.hpp:839:16: warning: moving a local object in a
return statement prevents copy elision [-Wpessimizing-move]
        return std::move(rget_items);
               ^
./src/rdb_protocol/datum_stream.hpp:839:16: note: remove std::move call here
        return std::move(rget_items);
               ^~~~~~~~~~          ~
#0 0x00007f35a715d3c8 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/lib/llvm-4.0/bin/../lib/libLLVM-4.0.so.1+0x6d43c8)
#1 0x00007f35a715b586 llvm::sys::RunSignalHandlers()
(/usr/lib/llvm-4.0/bin/../lib/libLLVM-4.0.so.1+0x6d2586)
#2 0x00007f35a715b6bb (/usr/lib/llvm-4.0/bin/../lib/libLLVM-4.0.so.1+0x6d26bb)
#3 0x00007f35a9a2a150 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x13150)
#4 0x00007f35a7e91ec4
llvm::ScopedNoAliasAAResult::mayAliasInScopes(llvm::MDNode const*, llvm::MDNode
const*) const (/usr/lib/llvm-4.0/bin/../lib/libLLVM-4.0.so.1+0x1408ec4)
#5 0x000055e01737b880
Stack dump:
0.      Program arguments: /usr/lib/llvm-4.0/bin/clang -cc1 -triple
x86_64-pc-linux-gnu -emit-obj -disable-free -disable-llvm-verifier
-discard-value-names -main-file-name geo_traversal.cc -mrelocation-model static
-mthread-model posix -relaxed-aliasing -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64
-momit-leaf-frame-pointer -dwarf-column-info -debug-info-kind=limited
-dwarf-version=4 -debugger-tuning=gdb -coverage-notes-file
/home/user/rethinkdb-2.3.6-clang++/build/release_clang/obj/rdb_protocol/geo_traversal.gcno
-resource-dir /usr/lib/llvm-4.0/bin/../lib/clang/4.0.1 -dependency-file
./build/release_clang/dep/rdb_protocol/geo_traversal.d -sys-header-deps -MP -MT
build/release_clang/obj/rdb_protocol/geo_traversal.o -isystem
./build/external/re2_20140111/include -isystem
./build/external/v8_3.30.33.16-patched2/include -isystem
./build/external/gtest_1.7.0/include -I ./src -D PRODUCT_NAME="RethinkDB" -D
__STDC_LIMIT_MACROS -D __STDC_FORMAT_MACROS -D RAPIDJSON_HAS_STDSTRING -D
RAPIDJSON_PARSE_DEFAULT_FLAGS=kParseFullPrecisionFlag -D _FILE_OFFSET_BITS=64
-D NDEBUG -D HAS_TERMCAP -I ./build/proto -D RETHINKDB_VERSION="2.3.6" -D
RETHINKDB_CODE_VERSION="2.3.6" -internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/x86_64-linux-gnu/c++/7.2.0
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/x86_64-linux-gnu/c++/7.2.0
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/backward
-internal-isystem /usr/include/clang/4.0.1/include/ -internal-isystem
/usr/local/include -internal-isystem
/usr/lib/llvm-4.0/bin/../lib/clang/4.0.1/include -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem /include
-internal-externc-isystem /usr/include -O3 -Wall -Wextra -Wnon-virtual-dtor
-Wno-deprecated-declarations -Wformat=2 -Wswitch-enum -Wused-but-marked-unused
-Wundef -Wvla -Wshadow -Wconditional-uninitialized -Wmissing-noreturn
-std=gnu++0x -fdeprecated-macro -fdebug-compilation-dir
/home/user/rethinkdb-2.3.6-clang++ -ferror-limit 19 -fmessage-length 140
-pthread -fobjc-runtime=gcc -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
-o build/release_clang/obj/rdb_protocol/geo_traversal.o -x c++
src/rdb_protocol/geo_traversal.cc
1.      <eof> parser at end of file
2.      Per-module optimization passes
3.      Running pass 'CallGraph Pass Manager' on module
'src/rdb_protocol/geo_traversal.cc'.
4.      Running pass 'Combine redundant instructions' on function
'@_ZNSt8_Rb_treeIN2ql7datum_tESt4pairIKS1_NS0_11optimizer_tEESt10_Select1stIS5_E21optional_datum_less_tSaIS5_EEC2ERKSA_'
clang: error: unable to execute command: Segmentation fault (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 4.0.1-6 (tags/RELEASE_401/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/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/geo_traversal-675e20.cpp
clang: note: diagnostic msg: /tmp/geo_traversal-675e20.sh
clang: note: diagnostic msg:

********************
src/build.mk:390: recipe for target
'build/release_clang/obj/rdb_protocol/geo_traversal.o' failed
make[1]: *** [build/release_clang/obj/rdb_protocol/geo_traversal.o] Error 254
Makefile:52: recipe for target 'make' failed
make: *** [make] Error 2

-- 
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/20180406/3e3bc2b3/attachment.html>


More information about the llvm-bugs mailing list