[grpc-io] Re: SEGFAULT in greeter_client
Bump the priority of the Github issue to P1. Let's track it over there. On Wednesday, February 13, 2019 at 8:36:09 PM UTC-8, Gautham B A wrote: > > I had filed it long back - https://github.com/grpc/grpc/issues/17807 . > > On Thursday, 14 February 2019 00:06:05 UTC+5:30, Carl Mastrangelo wrote: >> >> Hi, can you file an issue on gRPC's GitHub issue tracker? >> https://github.com/grpc/grpc/issues/new >> >> On Thursday, January 24, 2019 at 7:37:05 AM UTC-8, Gautham B A wrote: >>> >>> Hi all, >>> >>> I just cloned and built gRPC >>> (SHA 9ed8734efb9b1b2cd892942c2c6dd57e903ce719). I'm getting SEGFAULT when I >>> try to run greeter_client in C++. It SEGFAULTs when the RPC call is made - >>> >>> Status status = stub_->SayHello(, request, ); >>> >>> Here's how I'm building greeter_client - >>> >>> cmake_minimum_required(VERSION 3.13) >>> project(HelloWorld) >>> >>> set(CMAKE_CXX_STANDARD 17) >>> >>> set(GRPC_BUILD_DIR >>> /Users/gautham/projects/github/grpc) >>> >>> set(LIB_GRPC >>> ${GRPC_BUILD_DIR}/libs/opt/libgpr.dylib >>> ${GRPC_BUILD_DIR}/libs/opt/libaddress_sorting.dylib >>> ${GRPC_BUILD_DIR}/libs/opt/libgrpc++.dylib >>> ${GRPC_BUILD_DIR}/libs/opt/libgrpc++_cronet.dylib >>> ${GRPC_BUILD_DIR}/libs/opt/libgrpc++_error_details.dylib >>> ${GRPC_BUILD_DIR}/libs/opt/libgrpc++_reflection.dylib >>> ${GRPC_BUILD_DIR}/libs/opt/libgrpc++_unsecure.dylib >>> ${GRPC_BUILD_DIR}/libs/opt/libgrpc.dylib >>> ${GRPC_BUILD_DIR}/libs/opt/libgrpc_cronet.dylib >>> ${GRPC_BUILD_DIR}/libs/opt/libgrpc_unsecure.dylib >>> ${GRPC_BUILD_DIR}/libs/opt/libgrpcpp_channelz.dylib >>> ) >>> >>> set(LIB_PROTOBUF >>> >>> ${GRPC_BUILD_DIR}/third_party/protobuf/src/.libs/libprotobuf-lite.17.dylib >>> >>> ${GRPC_BUILD_DIR}/third_party/protobuf/src/.libs/libprotobuf-lite.dylib >>> >>> ${GRPC_BUILD_DIR}/third_party/protobuf/src/.libs/libprotobuf.17.dylib >>> >>> ${GRPC_BUILD_DIR}/third_party/protobuf/src/.libs/libprotobuf.dylib >>> >>> ${GRPC_BUILD_DIR}/third_party/protobuf/src/.libs/libprotoc.17.dylib >>> ${GRPC_BUILD_DIR}/third_party/protobuf/src/.libs/libprotoc.dylib >>> ) >>> >>> include_directories( >>> ${GRPC_BUILD_DIR}/include >>> ) >>> >>> add_executable(greeter_client >>> greeter_client.cc >>> helloworld.grpc.pb.cc >>> helloworld.pb.cc >>> ) >>> >>> target_link_libraries(greeter_client >>> ${LIB_GRPC} >>> ${LIB_PROTOBUF} >>> ) >>> >>> Here's the coredump - >>> * thread #1, stop reason = signal SIGSTOP >>> * frame #0: 0x7fffa253a19e libsystem_kernel.dylib`poll + 10 >>> frame #1: 0x00010e6c01a6 >>> libgrpc.dylib`pollset_work(pollset=, >>> worker_hdl=0x7fff519dded8, deadline=) at >>> ev_poll_posix.cc:1063 [opt] >>> frame #2: 0x00010e6e5999 >>> libgrpc.dylib`cq_pluck(cq=0x7fad6240ae40, tag=0x7fff519de200, >>> deadline=, reserved=) at completion_queue.cc:1282 >>> [opt] >>> frame #3: 0x00010e22c4d1 >>> greeter_client`grpc::CompletionQueue::Pluck(grpc::internal::CompletionQueueTag*) >>> >>> + 161 >>> frame #4: 0x00010e22b810 >>> greeter_client`grpc::internal::BlockingUnaryCallImpl>> >>> helloworld::HelloReply>::BlockingUnaryCallImpl(grpc::ChannelInterface*, >>> grpc::internal::RpcMethod const&, grpc::ClientContext*, >>> helloworld::HelloRequest const&, helloworld::HelloReply*) + 704 >>> frame #5: 0x00010e22b4ed >>> greeter_client`grpc::internal::BlockingUnaryCallImpl>> >>> helloworld::HelloReply>::BlockingUnaryCallImpl(grpc::ChannelInterface*, >>> grpc::internal::RpcMethod const&, grpc::ClientContext*, >>> helloworld::HelloRequest const&, helloworld::HelloReply*) + 61 >>> frame #6: 0x00010e228921 greeter_client`grpc::Status >>> grpc::internal::BlockingUnaryCall>> helloworld::HelloReply>(grpc::ChannelInterface*, grpc::internal::RpcMethod >>> const&, grpc::ClientContext*, helloworld::HelloRequest const&, >>> helloworld::HelloReply*) + 81 >>> frame #7: 0x00010e2288c5 >>> greeter_client`helloworld::Greeter::Stub::SayHello(grpc::ClientContext*, >>> helloworld::HelloRequest const&, helloworld::HelloReply*) + 85 >>> frame #8: 0x00010e226ecb >>> greeter_client`GreeterClient::SayHello(std::__1::basic_string>> std::__1::char_traits, std::__1::allocator > const&) + 235 >>> frame #9: 0x00010e226c05 greeter_client`main + 469 >>> frame #10: 0x7fffa240a235 libdyld.dylib`start + 1 >>> frame #11: 0x7fffa240a235 libdyld.dylib`start + 1 >>> >>> I'm using macOS Sierra 10.12.6 >>> >>> Compiler - >>> clang >>> Apple LLVM version 9.0.0 (clang-900.0.39.2) >>> Target: x86_64-apple-darwin16.7.0 >>> Thread model: posix >>> >>> Can anyone please help me? >>> >>> Thanks, >>> --Gautham >>> >>> -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group
[grpc-io] Re: SEGFAULT in greeter_client
I had filed it long back - https://github.com/grpc/grpc/issues/17807 . On Thursday, 14 February 2019 00:06:05 UTC+5:30, Carl Mastrangelo wrote: > > Hi, can you file an issue on gRPC's GitHub issue tracker? > https://github.com/grpc/grpc/issues/new > > On Thursday, January 24, 2019 at 7:37:05 AM UTC-8, Gautham B A wrote: >> >> Hi all, >> >> I just cloned and built gRPC >> (SHA 9ed8734efb9b1b2cd892942c2c6dd57e903ce719). I'm getting SEGFAULT when I >> try to run greeter_client in C++. It SEGFAULTs when the RPC call is made - >> >> Status status = stub_->SayHello(, request, ); >> >> Here's how I'm building greeter_client - >> >> cmake_minimum_required(VERSION 3.13) >> project(HelloWorld) >> >> set(CMAKE_CXX_STANDARD 17) >> >> set(GRPC_BUILD_DIR >> /Users/gautham/projects/github/grpc) >> >> set(LIB_GRPC >> ${GRPC_BUILD_DIR}/libs/opt/libgpr.dylib >> ${GRPC_BUILD_DIR}/libs/opt/libaddress_sorting.dylib >> ${GRPC_BUILD_DIR}/libs/opt/libgrpc++.dylib >> ${GRPC_BUILD_DIR}/libs/opt/libgrpc++_cronet.dylib >> ${GRPC_BUILD_DIR}/libs/opt/libgrpc++_error_details.dylib >> ${GRPC_BUILD_DIR}/libs/opt/libgrpc++_reflection.dylib >> ${GRPC_BUILD_DIR}/libs/opt/libgrpc++_unsecure.dylib >> ${GRPC_BUILD_DIR}/libs/opt/libgrpc.dylib >> ${GRPC_BUILD_DIR}/libs/opt/libgrpc_cronet.dylib >> ${GRPC_BUILD_DIR}/libs/opt/libgrpc_unsecure.dylib >> ${GRPC_BUILD_DIR}/libs/opt/libgrpcpp_channelz.dylib >> ) >> >> set(LIB_PROTOBUF >> >> ${GRPC_BUILD_DIR}/third_party/protobuf/src/.libs/libprotobuf-lite.17.dylib >> >> ${GRPC_BUILD_DIR}/third_party/protobuf/src/.libs/libprotobuf-lite.dylib >> >> ${GRPC_BUILD_DIR}/third_party/protobuf/src/.libs/libprotobuf.17.dylib >> ${GRPC_BUILD_DIR}/third_party/protobuf/src/.libs/libprotobuf.dylib >> >> ${GRPC_BUILD_DIR}/third_party/protobuf/src/.libs/libprotoc.17.dylib >> ${GRPC_BUILD_DIR}/third_party/protobuf/src/.libs/libprotoc.dylib >> ) >> >> include_directories( >> ${GRPC_BUILD_DIR}/include >> ) >> >> add_executable(greeter_client >> greeter_client.cc >> helloworld.grpc.pb.cc >> helloworld.pb.cc >> ) >> >> target_link_libraries(greeter_client >> ${LIB_GRPC} >> ${LIB_PROTOBUF} >> ) >> >> Here's the coredump - >> * thread #1, stop reason = signal SIGSTOP >> * frame #0: 0x7fffa253a19e libsystem_kernel.dylib`poll + 10 >> frame #1: 0x00010e6c01a6 >> libgrpc.dylib`pollset_work(pollset=, >> worker_hdl=0x7fff519dded8, deadline=) at >> ev_poll_posix.cc:1063 [opt] >> frame #2: 0x00010e6e5999 >> libgrpc.dylib`cq_pluck(cq=0x7fad6240ae40, tag=0x7fff519de200, >> deadline=, reserved=) at completion_queue.cc:1282 >> [opt] >> frame #3: 0x00010e22c4d1 >> greeter_client`grpc::CompletionQueue::Pluck(grpc::internal::CompletionQueueTag*) >> >> + 161 >> frame #4: 0x00010e22b810 >> greeter_client`grpc::internal::BlockingUnaryCallImpl> >> helloworld::HelloReply>::BlockingUnaryCallImpl(grpc::ChannelInterface*, >> grpc::internal::RpcMethod const&, grpc::ClientContext*, >> helloworld::HelloRequest const&, helloworld::HelloReply*) + 704 >> frame #5: 0x00010e22b4ed >> greeter_client`grpc::internal::BlockingUnaryCallImpl> >> helloworld::HelloReply>::BlockingUnaryCallImpl(grpc::ChannelInterface*, >> grpc::internal::RpcMethod const&, grpc::ClientContext*, >> helloworld::HelloRequest const&, helloworld::HelloReply*) + 61 >> frame #6: 0x00010e228921 greeter_client`grpc::Status >> grpc::internal::BlockingUnaryCall> helloworld::HelloReply>(grpc::ChannelInterface*, grpc::internal::RpcMethod >> const&, grpc::ClientContext*, helloworld::HelloRequest const&, >> helloworld::HelloReply*) + 81 >> frame #7: 0x00010e2288c5 >> greeter_client`helloworld::Greeter::Stub::SayHello(grpc::ClientContext*, >> helloworld::HelloRequest const&, helloworld::HelloReply*) + 85 >> frame #8: 0x00010e226ecb >> greeter_client`GreeterClient::SayHello(std::__1::basic_string> std::__1::char_traits, std::__1::allocator > const&) + 235 >> frame #9: 0x00010e226c05 greeter_client`main + 469 >> frame #10: 0x7fffa240a235 libdyld.dylib`start + 1 >> frame #11: 0x7fffa240a235 libdyld.dylib`start + 1 >> >> I'm using macOS Sierra 10.12.6 >> >> Compiler - >> clang >> Apple LLVM version 9.0.0 (clang-900.0.39.2) >> Target: x86_64-apple-darwin16.7.0 >> Thread model: posix >> >> Can anyone please help me? >> >> Thanks, >> --Gautham >> >> -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscr...@googlegroups.com. To post to this group, send email to grpc-io@googlegroups.com. Visit this group at https://groups.google.com/group/grpc-io. To view this discussion on the web visit
[grpc-io] Re: SEGFAULT in greeter_client
Hi, can you file an issue on gRPC's GitHub issue tracker? https://github.com/grpc/grpc/issues/new On Thursday, January 24, 2019 at 7:37:05 AM UTC-8, Gautham B A wrote: > > Hi all, > > I just cloned and built gRPC > (SHA 9ed8734efb9b1b2cd892942c2c6dd57e903ce719). I'm getting SEGFAULT when I > try to run greeter_client in C++. It SEGFAULTs when the RPC call is made - > > Status status = stub_->SayHello(, request, ); > > Here's how I'm building greeter_client - > > cmake_minimum_required(VERSION 3.13) > project(HelloWorld) > > set(CMAKE_CXX_STANDARD 17) > > set(GRPC_BUILD_DIR > /Users/gautham/projects/github/grpc) > > set(LIB_GRPC > ${GRPC_BUILD_DIR}/libs/opt/libgpr.dylib > ${GRPC_BUILD_DIR}/libs/opt/libaddress_sorting.dylib > ${GRPC_BUILD_DIR}/libs/opt/libgrpc++.dylib > ${GRPC_BUILD_DIR}/libs/opt/libgrpc++_cronet.dylib > ${GRPC_BUILD_DIR}/libs/opt/libgrpc++_error_details.dylib > ${GRPC_BUILD_DIR}/libs/opt/libgrpc++_reflection.dylib > ${GRPC_BUILD_DIR}/libs/opt/libgrpc++_unsecure.dylib > ${GRPC_BUILD_DIR}/libs/opt/libgrpc.dylib > ${GRPC_BUILD_DIR}/libs/opt/libgrpc_cronet.dylib > ${GRPC_BUILD_DIR}/libs/opt/libgrpc_unsecure.dylib > ${GRPC_BUILD_DIR}/libs/opt/libgrpcpp_channelz.dylib > ) > > set(LIB_PROTOBUF > > ${GRPC_BUILD_DIR}/third_party/protobuf/src/.libs/libprotobuf-lite.17.dylib > > ${GRPC_BUILD_DIR}/third_party/protobuf/src/.libs/libprotobuf-lite.dylib > > ${GRPC_BUILD_DIR}/third_party/protobuf/src/.libs/libprotobuf.17.dylib > ${GRPC_BUILD_DIR}/third_party/protobuf/src/.libs/libprotobuf.dylib > ${GRPC_BUILD_DIR}/third_party/protobuf/src/.libs/libprotoc.17.dylib > ${GRPC_BUILD_DIR}/third_party/protobuf/src/.libs/libprotoc.dylib > ) > > include_directories( > ${GRPC_BUILD_DIR}/include > ) > > add_executable(greeter_client > greeter_client.cc > helloworld.grpc.pb.cc > helloworld.pb.cc > ) > > target_link_libraries(greeter_client > ${LIB_GRPC} > ${LIB_PROTOBUF} > ) > > Here's the coredump - > * thread #1, stop reason = signal SIGSTOP > * frame #0: 0x7fffa253a19e libsystem_kernel.dylib`poll + 10 > frame #1: 0x00010e6c01a6 > libgrpc.dylib`pollset_work(pollset=, > worker_hdl=0x7fff519dded8, deadline=) at > ev_poll_posix.cc:1063 [opt] > frame #2: 0x00010e6e5999 > libgrpc.dylib`cq_pluck(cq=0x7fad6240ae40, tag=0x7fff519de200, > deadline=, reserved=) at completion_queue.cc:1282 > [opt] > frame #3: 0x00010e22c4d1 > greeter_client`grpc::CompletionQueue::Pluck(grpc::internal::CompletionQueueTag*) > > + 161 > frame #4: 0x00010e22b810 > greeter_client`grpc::internal::BlockingUnaryCallImpl > helloworld::HelloReply>::BlockingUnaryCallImpl(grpc::ChannelInterface*, > grpc::internal::RpcMethod const&, grpc::ClientContext*, > helloworld::HelloRequest const&, helloworld::HelloReply*) + 704 > frame #5: 0x00010e22b4ed > greeter_client`grpc::internal::BlockingUnaryCallImpl > helloworld::HelloReply>::BlockingUnaryCallImpl(grpc::ChannelInterface*, > grpc::internal::RpcMethod const&, grpc::ClientContext*, > helloworld::HelloRequest const&, helloworld::HelloReply*) + 61 > frame #6: 0x00010e228921 greeter_client`grpc::Status > grpc::internal::BlockingUnaryCall helloworld::HelloReply>(grpc::ChannelInterface*, grpc::internal::RpcMethod > const&, grpc::ClientContext*, helloworld::HelloRequest const&, > helloworld::HelloReply*) + 81 > frame #7: 0x00010e2288c5 > greeter_client`helloworld::Greeter::Stub::SayHello(grpc::ClientContext*, > helloworld::HelloRequest const&, helloworld::HelloReply*) + 85 > frame #8: 0x00010e226ecb > greeter_client`GreeterClient::SayHello(std::__1::basic_string std::__1::char_traits, std::__1::allocator > const&) + 235 > frame #9: 0x00010e226c05 greeter_client`main + 469 > frame #10: 0x7fffa240a235 libdyld.dylib`start + 1 > frame #11: 0x7fffa240a235 libdyld.dylib`start + 1 > > I'm using macOS Sierra 10.12.6 > > Compiler - > clang > Apple LLVM version 9.0.0 (clang-900.0.39.2) > Target: x86_64-apple-darwin16.7.0 > Thread model: posix > > Can anyone please help me? > > Thanks, > --Gautham > > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscr...@googlegroups.com. To post to this group, send email to grpc-io@googlegroups.com. Visit this group at https://groups.google.com/group/grpc-io. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/f3dc762a-3dfd-4482-a833-f43a1a32a539%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.