Hello Sid,
I tried to run your stress test on Ubuntu 18.04 but only get the following log. Do you have a hint how to get rid of the exception?
./greeter_client 10.0.2.55:8899
Sending greeter to: 10.0.2.55:8899 Floating point exception (core dumped)
I installed the Ubuntu protobuf/grpc programming environment.
apt policy protobuf* grpc*
protobuf-compiler: Installed: 3.0.0-9.1ubuntu1 Candidate: 3.0.0-9.1ubuntu1 Version table: *** 3.0.0-9.1ubuntu1 500 500 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages 100 /var/lib/dpkg/status protobuf-compiler-grpc: Installed: 1.3.2-1.1~build1 Candidate: 1.3.2-1.1~build1 Version table: *** 1.3.2-1.1~build1 500 500 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages 100 /var/lib/dpkg/status libgrpc++1: Installed: 1.3.2-1.1~build1 Candidate: 1.3.2-1.1~build1 Version table: *** 1.3.2-1.1~build1 500 500 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages 100 /var/lib/dpkg/status libgrpc-dev: Installed: 1.3.2-1.1~build1 Candidate: 1.3.2-1.1~build1 Version table: *** 1.3.2-1.1~build1 500 500 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages 100 /var/lib/dpkg/status protobuf-compiler-grpc: Installed: 1.3.2-1.1~build1 Candidate: 1.3.2-1.1~build1 Version table: *** 1.3.2-1.1~build1 500 500 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages 100 /var/lib/dpkg/status libgrpc++-dev: Installed: 1.3.2-1.1~build1 Candidate: 1.3.2-1.1~build1 Version table: *** 1.3.2-1.1~build1 500 500 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages 100 /var/lib/dpkg/status libgrpc3: Installed: 1.3.2-1.1~build1 Candidate: 1.3.2-1.1~build1 Version table: *** 1.3.2-1.1~build1 500 500 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages 100 /var/lib/dpkg/status
I also patched the stress-test tool to compile with this invironment.
git diff
diff --git a/greeter_client.cc b/greeter_client.cc index 970e82e..a5207fb 100644 --- a/greeter_client.cc +++ b/greeter_client.cc @@ -20,7 +20,7 @@ #include <memory> #include <string>
-#include <grpcpp/grpcpp.h> +#include <grpc++/grpc++.h>
#ifdef BAZEL_BUILD #include "examples/protos/helloworld.grpc.pb.h"
Greets