Mark Gillott

Results comments of Mark Gillott

Hello @kwind. The solution was specific to DANOS, there was no need to make any changes to FRR. Essentially, ended up issuing 'zebra nexthop kernel enable'.

Hey Luca, where can I find the latest symbols? I have libzmq5 "Version: 4.3.1-4+deb10u2" installed, yet the only dbg package I can find is "libzmq5-dbg_4.2.1-4+deb9u3_amd64.deb" (https://packages.debian.org/stretch/amd64/libzmq5-dbg/download). I can see a...

Right, finally managed to get the correct symbols loaded: ``` (gdb) i thread Id Target Id Frame 1 Thread 0x7fe2c3570c80 (LWP 28667) "twampd" 0x00007fe2c4526819 in __GI___poll (fds=0x560f58247f00, nfds=2, timeout=-1) at...

The additional code is now this: ``` const char *path = "ipc:///var/run/test.control"; zsock_t *s = zsock_new_req(path); assert(s != NULL); OWPError(ctx, OWPErrDEBUG, OWPErrINVALID, "INIT-ZMQ path %s zsock_is %d zsock_type %s", path,...

Not sure what you had in mind, but adding "zsys_handler_set(NULL)" made no difference. The crash is from here (zmq::mailbox_t::recv): ``` // Get a command. const bool ok = _cpipe.read (cmd_);...

> Is this the only usage of czmq? Are multiple threads involved in any way? Yes. After problems with some initial code, I removed everything to leave the above test...

> How is the forked process killed off? Looks like its sent a SIGUSR2 (12) (or SIGINT in the case of a error termination). SIGUSR1 (10) is used to kick-start...

To be 100% certain I ripped out all previous code and am left with just that basic socket create/delete snippet that takes place as "main" gets going. In the failed...

OK now I'm very confused. Replaced the previous snippet with: ``` zsys_handler_set(NULL); void *zctx = zmq_ctx_new (); assert (zctx); void *socket = zmq_socket (zctx, ZMQ_STREAM); assert (socket); zmq_close (socket); zmq_ctx_destroy...

Out of interested I added a call to zsys_shutdown() at the end of the test sequence, no errors. I then went back to the original development code that connected to...