Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

5.0.0-svn300007-1~exp1 segfault llvm::ScheduleDAGSDNodes::EmitSchedule(llvm::MachineInstrBundleIterator<llvm::MachineInstr, false>&) #32224

Closed Quuxplusone closed 7 years ago

Quuxplusone commented 7 years ago
Bugzilla Link PR33252
Status RESOLVED INVALID
Importance P normal
Reported by Daniel Black (danielgb@au1.ibm.com)
Reported on 2017-05-31 17:57:56 -0700
Last modified on 2017-08-08 14:43:02 -0700
Version trunk
Hardware PC Linux
CC hans@chromium.org, llvm-bugs@lists.llvm.org
Fixed by commit(s)
Attachments clock_cache-aeb995.sh (13588 bytes, application/x-shellscript)
clock_cache-052e13.sh (13588 bytes, application/x-shellscript)
Blocks
Blocked by
See also
Created attachment 18553
clock_cache-aeb995.sh

While compiling rocksdb master branch from github facebook with clang-5.0 apt
packages:

+ clang-5.0 --version
clang version 5.0.0-svn300007-1~exp1 (trunk)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

+ clang++-5.0 --version
clang version 5.0.0-svn300007-1~exp1 (trunk)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

make -j44 --output-sync=target V=1 'OPT=-DSNAPPY=1 -DLZ4=1 -DZLIB=1 -
DJEMALLOC=1 -DZSTD=1 -DNUMA=1' shared_lib

clang++-5.0 -Wl,--no-as-needed -shared -Wl,-soname -Wl,librocksdb.so.5.3 -m64 -
O3 -g -mtune=native -I /opt/ibm/java/include/ -std=c++11  -g -W -Wextra -Wall -
Wsign-compare -Wshadow -Wno-unused-parameter -I. -I./include -std=c++11 -m64 -
O3 -g -mtune=native -I /opt/ibm/java/include/ -std=c++11 -
DROCKSDB_PLATFORM_POSIX -DROCKSDB_LIB_IO_POSIX -m64 -O3 -g -mtune=native -I
/opt/ibm/java/include/ -DOS_LINUX -fno-builtin-memcmp -
DROCKSDB_FALLOCATE_PRESENT -DSNAPPY -DGFLAGS=gflags -DZLIB -DBZIP2 -DLZ4 -DZSTD
-DNUMA -DTBB -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -
DROCKSDB_BACKTRACE -Wshorten-64-to-32 -march=native  -DROCKSDB_JEMALLOC -
DJEMALLOC_NO_DEMANGLE  -isystem ./third-party/gtest-1.7.0/fused-src -DSNAPPY=1 -
DLZ4=1 -DZLIB=1 -DJEMALLOC=1 -DZSTD=1 -DNUMA=1 -Woverloaded-virtual -Wnon-
virtual-dtor -Wno-missing-field-initializers -fPIC cache/clock_cache.cc
cache/lru_cache.cc cache/sharded_cache.cc db/builder.cc db/c.cc
db/column_family.cc db/compacted_db_impl.cc db/compaction.cc
db/compaction_iterator.cc db/compaction_job.cc db/compaction_picker.cc
db/compaction_picker_universal.cc db/convenience.cc db/db_filesnapshot.cc
db/db_impl.cc db/db_impl_write.cc db/db_impl_compaction_flush.cc
db/db_impl_files.cc db/db_impl_open.cc db/db_impl_debug.cc
db/db_impl_experimental.cc db/db_impl_readonly.cc db/db_info_dumper.cc
db/db_iter.cc db/dbformat.cc db/event_helpers.cc db/experimental.cc
db/external_sst_file_ingestion_job.cc db/file_indexer.cc db/flush_job.cc
db/flush_scheduler.cc db/forward_iterator.cc db/internal_stats.cc
db/log_reader.cc db/log_writer.cc db/managed_iterator.cc db/memtable.cc
db/memtable_list.cc db/merge_helper.cc db/merge_operator.cc
db/range_del_aggregator.cc db/repair.cc db/snapshot_impl.cc db/table_cache.cc
db/table_properties_collector.cc db/transaction_log_impl.cc
db/version_builder.cc db/version_edit.cc db/version_set.cc db/wal_manager.cc
db/write_batch.cc db/write_batch_base.cc db/write_controller.cc
db/write_thread.cc env/env.cc env/env_chroot.cc env/env_hdfs.cc
env/env_posix.cc env/io_posix.cc env/memenv.cc memtable/hash_cuckoo_rep.cc
memtable/hash_linklist_rep.cc memtable/hash_skiplist_rep.cc
memtable/memtable_allocator.cc memtable/skiplistrep.cc memtable/vectorrep.cc
monitoring/histogram.cc monitoring/histogram_windowing.cc
monitoring/instrumented_mutex.cc monitoring/iostats_context.cc
monitoring/perf_context.cc monitoring/perf_level.cc monitoring/statistics.cc
monitoring/thread_status_impl.cc monitoring/thread_status_updater.cc
monitoring/thread_status_updater_debug.cc monitoring/thread_status_util.cc
monitoring/thread_status_util_debug.cc options/cf_options.cc
options/db_options.cc options/options.cc options/options_helper.cc
options/options_parser.cc options/options_sanity_check.cc port/port_posix.cc
port/stack_trace.cc table/adaptive_table_factory.cc table/block.cc
table/block_based_filter_block.cc table/block_based_table_builder.cc
table/block_based_table_factory.cc table/block_based_table_reader.cc
table/block_builder.cc table/block_prefix_index.cc table/bloom_block.cc
table/cuckoo_table_builder.cc table/cuckoo_table_factory.cc
table/cuckoo_table_reader.cc table/flush_block_policy.cc table/format.cc
table/full_filter_block.cc table/get_context.cc table/index_builder.cc
table/iterator.cc table/merging_iterator.cc table/meta_blocks.cc
table/partitioned_filter_block.cc table/persistent_cache_helper.cc
table/plain_table_builder.cc table/plain_table_factory.cc
table/plain_table_index.cc table/plain_table_key_coding.cc
table/plain_table_reader.cc table/sst_file_writer.cc table/table_properties.cc
table/two_level_iterator.cc tools/dump/db_dump_tool.cc util/arena.cc
util/auto_roll_logger.cc util/bloom.cc util/build_version.cc util/coding.cc
util/compaction_job_stats_impl.cc util/comparator.cc util/concurrent_arena.cc
util/crc32c.cc util/delete_scheduler.cc util/dynamic_bloom.cc
util/event_logger.cc util/file_reader_writer.cc util/file_util.cc
util/filename.cc util/filter_policy.cc util/hash.cc util/log_buffer.cc
util/murmurhash.cc util/random.cc util/rate_limiter.cc util/slice.cc
util/sst_file_manager_impl.cc util/status.cc util/status_message.cc
util/string_util.cc util/sync_point.cc util/thread_local.cc
util/threadpool_imp.cc util/transaction_test_util.cc util/xxhash.cc
utilities/backupable/backupable_db.cc utilities/blob_db/blob_db.cc
utilities/checkpoint/checkpoint.cc
utilities/compaction_filters/remove_emptyvalue_compactionfilter.cc
utilities/convenience/info_log_finder.cc
utilities/date_tiered/date_tiered_db_impl.cc utilities/document/document_db.cc
utilities/document/json_document.cc utilities/document/json_document_builder.cc
utilities/env_mirror.cc utilities/env_timed.cc utilities/geodb/geodb_impl.cc
utilities/leveldb_options/leveldb_options.cc
utilities/lua/rocks_lua_compaction_filter.cc utilities/memory/memory_util.cc
utilities/merge_operators/max.cc utilities/merge_operators/put.cc
utilities/merge_operators/string_append/stringappend.cc
utilities/merge_operators/string_append/stringappend2.cc
utilities/merge_operators/uint64add.cc
utilities/option_change_migration/option_change_migration.cc
utilities/options/options_util.cc
utilities/persistent_cache/block_cache_tier.cc
utilities/persistent_cache/block_cache_tier_file.cc
utilities/persistent_cache/block_cache_tier_metadata.cc
utilities/persistent_cache/persistent_cache_tier.cc
utilities/persistent_cache/volatile_tier_impl.cc utilities/redis/redis_lists.cc
utilities/simulator_cache/sim_cache.cc utilities/spatialdb/spatial_db.cc
utilities/table_properties_collectors/compact_on_deletion_collector.cc
utilities/transactions/optimistic_transaction_db_impl.cc
utilities/transactions/optimistic_transaction_impl.cc
utilities/transactions/transaction_base.cc
utilities/transactions/transaction_db_impl.cc
utilities/transactions/transaction_db_mutex_impl.cc
utilities/transactions/transaction_impl.cc
utilities/transactions/transaction_lock_mgr.cc
utilities/transactions/transaction_util.cc utilities/ttl/db_ttl_impl.cc
utilities/write_batch_with_index/write_batch_with_index.cc
utilities/write_batch_with_index/write_batch_with_index_internal.cc
tools/ldb_cmd.cc tools/ldb_tool.cc tools/sst_dump_tool.cc  \
     -lpthread -lrt -lsnappy -lgflags -lz -lbz2 -llz4 -lzstd -lnuma -ltbb -
ljemalloc -o librocksdb.so.5.3.0
#0 0x00002b055318843a llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/lib/x86_64-linux-gnu/libLLVM-5.0.so.1+0x78743a)
#1 0x00002b05531865ae llvm::sys::RunSignalHandlers() (/usr/lib/x86_64-linux-
gnu/libLLVM-5.0.so.1+0x7855ae)
#2 0x00002b05531866fc (/usr/lib/x86_64-linux-gnu/libLLVM-5.0.so.1+0x7856fc)
#3 0x00002b05527f5390 __restore_rt (/lib/x86_64-linux-
gnu/libpthread.so.0+0x11390)
#4 0x00002b05535c1f08 (/usr/lib/x86_64-linux-gnu/libLLVM-5.0.so.1+0xbc0f08)
#5 0x00002b05535c5b17 (/usr/lib/x86_64-linux-gnu/libLLVM-5.0.so.1+0xbc4b17)
#6 0x00002b055365ca0c
llvm::ScheduleDAGSDNodes::EmitSchedule(llvm::MachineInstrBundleIterator<llvm::MachineInstr,
false>&) (/usr/lib/x86_64-linux-gnu/libLLVM-5.0.so.1+0xc5ba0c)
#7 0x00002b05536d34b6 llvm::SelectionDAGISel::CodeGenAndEmitDAG()
(/usr/lib/x86_64-linux-gnu/libLLVM-5.0.so.1+0xcd24b6)
#8 0x00002b05536dafc9
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&)
(/usr/lib/x86_64-linux-gnu/libLLVM-5.0.so.1+0xcd9fc9)
#9 0x00002b05536dd870
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(/usr/lib/x86_64-linux-gnu/libLLVM-5.0.so.1+0xcdc870)
#10 0x00002b055494d174 (/usr/lib/x86_64-linux-gnu/libLLVM-5.0.so.1+0x1f4c174)
#11 0x00002b05533ce2a1
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (/usr/lib/x86_64-
linux-gnu/libLLVM-5.0.so.1+0x9cd2a1)
#12 0x00002b0553251a52 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/usr/lib/x86_64-linux-gnu/libLLVM-5.0.so.1+0x850a52)
#13 0x00002b0553251b03 llvm::FPPassManager::runOnModule(llvm::Module&)
(/usr/lib/x86_64-linux-gnu/libLLVM-5.0.so.1+0x850b03)
#14 0x00002b055325169f llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/usr/lib/x86_64-linux-gnu/libLLVM-5.0.so.1+0x85069f)
#15 0x00000000008167bd clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::HeaderSearchOptions const&, clang::CodeGenOptions const&,
clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout
const&, llvm::Module*, clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >) (/usr/lib/llvm-
5.0/bin/clang+0x8167bd)
#16 0x0000000000c8cca8 (/usr/lib/llvm-5.0/bin/clang+0xc8cca8)
#17 0x0000000000daca28 clang::ParseAST(clang::Sema&, bool, bool) (/usr/lib/llvm-
5.0/bin/clang+0xdaca28)
#18 0x0000000000c8c432 clang::CodeGenAction::ExecuteAction() (/usr/lib/llvm-
5.0/bin/clang+0xc8c432)
#19 0x0000000000b522ce clang::FrontendAction::Execute() (/usr/lib/llvm-
5.0/bin/clang+0xb522ce)
#20 0x0000000000b22176
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/usr/lib/llvm-
5.0/bin/clang+0xb22176)
#21 0x0000000000bd1d92
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/usr/lib/llvm-
5.0/bin/clang+0xbd1d92)
#22 0x00000000007d7eb8 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/usr/lib/llvm-5.0/bin/clang+0x7d7eb8)
#23 0x00000000007c74df main (/usr/lib/llvm-5.0/bin/clang+0x7c74df)
#24 0x00002b0556685830 __libc_start_main /build/glibc-9tT8Do/glibc-
2.23/csu/../csu/libc-start.c:325:0
#25 0x00000000007d5f49 _start (/usr/lib/llvm-5.0/bin/clang+0x7d5f49)
Stack dump:
0.  Program arguments: /usr/lib/llvm-5.0/bin/clang -cc1 -triple x86_64-pc-linux-
gnu -emit-obj -disable-free -disable-llvm-verifier -discard-value-names -main-
file-name flush_scheduler.cc -mrelocation-model pic -pic-level 2 -mthread-model
posix -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-
init-array -target-cpu broadwell -target-feature +sse2 -target-feature +cx16 -
target-feature -tbm -target-feature -avx512ifma -target-feature -avx512dq -
target-feature -fma4 -target-feature +prfchw -target-feature +bmi2 -target-
feature -xsavec -target-feature +fsgsbase -target-feature +popcnt -target-
feature +aes -target-feature -xsaves -target-feature -avx512er -target-feature -
clwb -target-feature -avx512f -target-feature -clzero -target-feature -pku -
target-feature +mmx -target-feature -xop -target-feature +rdseed -target-
feature -sse4a -target-feature -avx512bw -target-feature -clflushopt -target-
feature +xsave -target-feature -avx512vl -target-feature -avx512cd -target-
feature +avx -target-feature +rtm -target-feature +fma -target-feature +bmi -
target-feature -mwaitx -target-feature +rdrnd -target-feature +sse4.1 -target-
feature +sse4.2 -target-feature +avx2 -target-feature +sse -target-feature
+lzcnt -target-feature +pclmul -target-feature -prefetchwt1 -target-feature
+f16c -target-feature +ssse3 -target-feature -sgx -target-feature +cmov -target-
feature -avx512vbmi -target-feature +movbe -target-feature +xsaveopt -target-
feature -sha -target-feature +adx -target-feature -avx512pf -target-feature
+sse3 -momit-leaf-frame-pointer -dwarf-column-info -debug-info-kind=limited -
dwarf-version=4 -debugger-tuning=gdb -resource-dir /usr/lib/llvm-
5.0/lib/clang/5.0.0 -isystem ./third-party/gtest-1.7.0/fused-src -I
/opt/ibm/java/include/ -I . -I ./include -I /opt/ibm/java/include/ -D
ROCKSDB_PLATFORM_POSIX -D ROCKSDB_LIB_IO_POSIX -I /opt/ibm/java/include/ -D
OS_LINUX -D ROCKSDB_FALLOCATE_PRESENT -D SNAPPY -D GFLAGS=gflags -D ZLIB -D
BZIP2 -D LZ4 -D ZSTD -D NUMA -D TBB -D ROCKSDB_MALLOC_USABLE_SIZE -D
ROCKSDB_PTHREAD_ADAPTIVE_MUTEX -D ROCKSDB_BACKTRACE -D ROCKSDB_JEMALLOC -D
JEMALLOC_NO_DEMANGLE -D SNAPPY=1 -D LZ4=1 -D ZLIB=1 -D JEMALLOC=1 -D ZSTD=1 -D
NUMA=1 -internal-isystem /usr/include/clang/5.0.0/include/ -internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/6.2.0/../../../../include/c++/6.2.0 -
internal-isystem /usr/bin/../lib/gcc/x86_64-linux-
gnu/6.2.0/../../../../include/x86_64-linux-gnu/c++/6.2.0 -internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/6.2.0/../../../../include/x86_64-linux-
gnu/c++/6.2.0 -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-
gnu/6.2.0/../../../../include/c++/6.2.0/backward -internal-isystem
/usr/local/include -internal-isystem /usr/lib/llvm-5.0/lib/clang/5.0.0/include -
internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-
isystem /include -internal-externc-isystem /usr/include -O3 -W -Wextra -Wall -
Wsign-compare -Wshadow -Wno-unused-parameter -Wshorten-64-to-32 -Woverloaded-
virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -std=c++11 -
fdeprecated-macro -fdebug-compilation-dir /source -ferror-limit 19 -fmessage-
length 0 -fno-builtin-memcmp -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -
fdiagnostics-show-option -vectorize-loops -vectorize-slp -o
/tmp/flush_scheduler-f0fe17.o -x c++ db/flush_scheduler.cc
1.  <eof> parser at end of file
2.  Code generation
3.  Running pass 'Function Pass Manager' on module 'db/flush_scheduler.cc'.
4.  Running pass 'X86 DAG->DAG Instruction Selection' on function
'@_ZN7rocksdb14FlushScheduler20TakeNextColumnFamilyEv'
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 5.0.0-svn300007-1~exp1 (trunk)
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:
********************

sources are 213M (bz compresses).
Quuxplusone commented 7 years ago

Attached clock_cache-aeb995.sh (13588 bytes, application/x-shellscript): clock_cache-aeb995.sh

Quuxplusone commented 7 years ago

Attached clock_cache-052e13.sh (13588 bytes, application/x-shellscript): clock_cache-052e13.sh

Quuxplusone commented 7 years ago
> 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:
> ********************
>
> sources are 213M (bz compresses).

Unfortunately we still need the preprocessed source to be able to deal with
this.

Please re-open if this issue is still occurring, and try to upload the source
somewhere.