-
Notifications
You must be signed in to change notification settings - Fork 11.1k
SSL handshake is broken for OAuth tokens. #7131
Copy link
Copy link
Closed
Description
I am getting an assertion failed with the latest releases of grpc, on code that used to work a few months ago. Running this code will need the Genomics API enabled for the Google account; happy to help with that if needed.
#include <google/genomics/v1/reads.grpc.pb.h>
#include <grpc++/client_context.h>
#include <grpc++/create_channel.h>
#include <grpc++/security/credentials.h>
#include <grpc++/support/status.h>
#include <grpc/grpc.h>
int main(int argc, char** argv) {
auto stub = ::google::genomics::v1::ReadServiceV1::NewStub(
::grpc::CreateChannel("genomics.googleapis.com:443",
::grpc::GoogleDefaultCredentials()));
::grpc::ClientContext context;
::google::genomics::v1::SearchReadsRequest request;
::google::genomics::v1::SearchReadsResponse response;
stub->SearchReads(&context, request, &response);
return 0;
}E0628 19:24:08.714252896 25458 timer.c:181] assertion failed: deadline.clock_type == g_clock_type
Program received signal SIGABRT, Aborted.
0x00007ffff6c92c37 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0 0x00007ffff6c92c37 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x00007ffff6c96028 in __GI_abort () at abort.c:89
#2 0x00007ffff68e8ef8 in grpc_timer_init () from /usr/local/lib/libgrpc.so.0
#3 0x00007ffff6910d05 in grpc_do_security_handshake () from /usr/local/lib/libgrpc.so.0
#4 0x00007ffff6907ede in ?? () from /usr/local/lib/libgrpc.so.0
#5 0x00007ffff6908155 in ?? () from /usr/local/lib/libgrpc.so.0
#6 0x00007ffff68dccbd in ?? () from /usr/local/lib/libgrpc.so.0
#7 0x00007ffff68e3e37 in grpc_exec_ctx_flush () from /usr/local/lib/libgrpc.so.0
#8 0x00007ffff68e345b in ?? () from /usr/local/lib/libgrpc.so.0
#9 0x00007ffff68f10c2 in grpc_completion_queue_pluck () from /usr/local/lib/libgrpc.so.0
#10 0x00007ffff7bbff48 in grpc::CoreCodegen::grpc_completion_queue_pluck(grpc_completion_queue*, void*, gpr_timespec, void*) () from /usr/local/lib/libgrpc++.so.0
#11 0x0000000000441962 in grpc::CompletionQueue::Pluck (this=0x7fffffffd6f0, tag=0x7fffffffd720) at /usr/local/include/grpc++/impl/codegen/completion_queue.h:197
#12 0x00000000004459e9 in grpc::BlockingUnaryCall<google::genomics::v1::SearchReadsRequest, google::genomics::v1::SearchReadsResponse> (channel=0x7b0930, method=..., context=0x7fffffffd960, request=...,
result=0x7fffffffd8b0) at /usr/local/include/grpc++/impl/codegen/client_unary_call.h:72
#13 0x000000000043f3bd in google::genomics::v1::ReadServiceV1::Stub::SearchReads (this=0x7b0e80, context=0x7fffffffd960, request=..., response=0x7fffffffd8b0) at gens/google/genomics/v1/reads.grpc.pb.cc:145
#14 0x00000000004834fe in main (argc=1, argv=0x7fffffffdb98) at client.cc:16
Reactions are currently unavailable