CPP example doesn't work

How severe does this issue affect your experience of using Ray?

  • High: It blocks me to complete my task.

I build ray from scratch following the instruction in site. And I want to try the example code using ray/python/build/lib/ray/cpp/example/run.sh . The output shows below.

PC: @     0x55f04356755e  (unknown)  __gnu_cxx::__exchange_and_add()
    @     0x7f697385ae49         64  absl::lts_20211102::WriteFailureInfo()
    @     0x7f697385b008         96  absl::lts_20211102::AbslFailureSignalHandler()
    @     0x7f697004e0c0  381257504  (unknown)
    @     0x55f0435675f5         32  __gnu_cxx::__exchange_and_add_dispatch()
    @     0x55f04356ef8f         32  std::_Sp_counted_base<>::_M_release()
    @     0x55f04356cd23         32  std::__shared_count<>::~__shared_count()
    @     0x55f04356b212         32  std::__shared_ptr<>::~__shared_ptr()
    @     0x55f04356b232         32  std::shared_ptr<>::~shared_ptr()
    @     0x55f04356d710        128  ray::Put<>()
    @     0x55f043566a4f        448  main
    @     0x7f697002f0b3  (unknown)  __libc_start_main
[2022-03-31 17:15:56,795 E 18327 18327] logging.cc:325: *** SIGSEGV received at time=1648718156 on cpu 22 ***
[2022-03-31 17:15:56,795 E 18327 18327] logging.cc:325: PC: @     0x55f04356755e  (unknown)  __gnu_cxx::__exchange_and_add()
[2022-03-31 17:15:56,795 E 18327 18327] logging.cc:325:     @     0x7f697385ae49         64  absl::lts_20211102::WriteFailureInfo()
[2022-03-31 17:15:56,807 E 18327 18327] logging.cc:325:     @     0x7f697385b02c         96  absl::lts_20211102::AbslFailureSignalHandler()
[2022-03-31 17:15:56,807 E 18327 18327] logging.cc:325:     @     0x7f697004e0c0  381257504  (unknown)
[2022-03-31 17:15:56,807 E 18327 18327] logging.cc:325:     @     0x55f0435675f5         32  __gnu_cxx::__exchange_and_add_dispatch()
[2022-03-31 17:15:56,807 E 18327 18327] logging.cc:325:     @     0x55f04356ef8f         32  std::_Sp_counted_base<>::_M_release()
[2022-03-31 17:15:56,807 E 18327 18327] logging.cc:325:     @     0x55f04356cd23         32  std::__shared_count<>::~__shared_count()
[2022-03-31 17:15:56,807 E 18327 18327] logging.cc:325:     @     0x55f04356b212         32  std::__shared_ptr<>::~__shared_ptr()
[2022-03-31 17:15:56,807 E 18327 18327] logging.cc:325:     @     0x55f04356b232         32  std::shared_ptr<>::~shared_ptr()
[2022-03-31 17:15:56,807 E 18327 18327] logging.cc:325:     @     0x55f04356d710        128  ray::Put<>()
[2022-03-31 17:15:56,807 E 18327 18327] logging.cc:325:     @     0x55f043566a4f        448  main
[2022-03-31 17:15:56,807 E 18327 18327] logging.cc:325:     @     0x7f697002f0b3  (unknown)  __libc_start_main
./run.sh: line 10: 18327 Segmentation fault      (core dumped) LD_LIBRARY_PATH="$ROOT_DIR/thirdparty/lib" "${ROOT_DIR}"/bazel-bin/example```

I check the code and find the ray started but the code failed when executed ray.put(). Before I rerun the code, I need to stop the ray first. Do I need to install something else?

i have the same problem three days ago

what’s your platform?

I build the ray from the source in Linux. :sob: