You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
callback stack:
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `./nrth_cpp_client'.
Program terminated with signal SIGABRT, Aborted.
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
[Current thread is 1 (Thread 0x7f07e2847240 (LWP 17649))]
(gdb) bt
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 #1 0x00007f07e2e76859 in __GI_abort () at abort.c:79 #2 0x00007f07e351c273 in ?? () from /lib/x86_64-linux-gnu/libgrpc++.so.1 #3 0x00007f07e3522ce5 in grpc::Channel::CreateCall(grpc::internal::RpcMethod const&, grpc::ClientContext*, grpc::CompletionQueue*) () from /lib/x86_64-linux-gnu/libgrpc++.so.1 #4 0x000055c16f7f74e9 in grpc::internal::BlockingUnaryCallImpl<frr::GetCapabilitiesRequest, frr::GetCapabilitiesResponse>::BlockingUnaryCallImpl(grpc::ChannelInterface*, grpc::internal::RpcMethod const&, grpc::ClientContext*, frr::GetCapabilitiesRequest const&, frr::GetCapabilitiesResponse*) () #5 0x000055c16f7f2706 in grpc::Status grpc::internal::BlockingUnaryCall<frr::GetCapabilitiesRequest, frr::GetCapabilitiesResponse>(grpc::ChannelInterface*, grpc::internal::RpcMethod const&, grpc::ClientContext*, frr::GetCapabilitiesRequest const&, frr::GetCapabilitiesResponse*) () #6 0x000055c16f7eb235 in frr::Northbound::Stub::GetCapabilities(grpc::ClientContext*, frr::GetCapabilitiesRequest const&, frr::GetCapabilitiesResponse*) () #7 0x000055c16f7ea210 in main ()
hope to okay. i want to know if my function call error. hope to how to use frr grpc function call.
Additional context
x
Checklist
I have searched the open issues for this bug.
I have not included sensitive information in this report.
The text was updated successfully, but these errors were encountered:
This issue is stale because it has been open 180 days with no activity. Comment or remove the autoclose label in order to avoid having this issue closed.
Description
i want to frr capabilities.
write a grpc client call, but coredump.
Version
How to reproduce
#include
#include
#include <grpc/grpc.h>
#include <grpcpp/create_channel.h>
#include "frr-northbound.pb.h"
#include "frr-northbound.grpc.pb.h"
void get_capbilites_callback(grpc::Status status)
{
if (status.ok()) {
std::cout << "RPC call succeeded!" << std::endl;
} else {
std::cout << "RPC call failed: " << status.error_message() << std::endl;
}
}
int main()
{
frr::GetRequest request;
frr::GetResponse reply;
grpc::ClientContext context;
grpc::Status status;
#if 0
request.set_type(frr::GetRequest::ALL);
request.set_encoding(frr::XML);
request.set_with_defaults(true);
request.add_path("/frr-interface:lib");
auto stream = stub->Get(&context, request);
#endif
}
g++ nrth_cpp_client.cc frr-northbound.grpc.pb.cc frr-northbound.pb.cc -o nrth_cpp_client -lgrpc++ -lprotobuf
Expected behavior
x
Actual behavior
callback stack:
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `./nrth_cpp_client'.
Program terminated with signal SIGABRT, Aborted.
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
[Current thread is 1 (Thread 0x7f07e2847240 (LWP 17649))]
(gdb) bt
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1 0x00007f07e2e76859 in __GI_abort () at abort.c:79
#2 0x00007f07e351c273 in ?? () from /lib/x86_64-linux-gnu/libgrpc++.so.1
#3 0x00007f07e3522ce5 in grpc::Channel::CreateCall(grpc::internal::RpcMethod const&, grpc::ClientContext*, grpc::CompletionQueue*) () from /lib/x86_64-linux-gnu/libgrpc++.so.1
#4 0x000055c16f7f74e9 in grpc::internal::BlockingUnaryCallImpl<frr::GetCapabilitiesRequest, frr::GetCapabilitiesResponse>::BlockingUnaryCallImpl(grpc::ChannelInterface*, grpc::internal::RpcMethod const&, grpc::ClientContext*, frr::GetCapabilitiesRequest const&, frr::GetCapabilitiesResponse*) ()
#5 0x000055c16f7f2706 in grpc::Status grpc::internal::BlockingUnaryCall<frr::GetCapabilitiesRequest, frr::GetCapabilitiesResponse>(grpc::ChannelInterface*, grpc::internal::RpcMethod const&, grpc::ClientContext*, frr::GetCapabilitiesRequest const&, frr::GetCapabilitiesResponse*) ()
#6 0x000055c16f7eb235 in frr::Northbound::Stub::GetCapabilities(grpc::ClientContext*, frr::GetCapabilitiesRequest const&, frr::GetCapabilitiesResponse*) ()
#7 0x000055c16f7ea210 in main ()
hope to okay. i want to know if my function call error. hope to how to use frr grpc function call.
Additional context
x
Checklist
The text was updated successfully, but these errors were encountered: