[SR-Users] JSONRPC-S and async RPC commands

Juha Heinanen jh at tutpro.com
Fri Aug 17 14:59:22 CEST 2018


Daniel-Constantin Mierla writes:

> Get couple of more details from gdb:

Below, Juha

(gdb) frame 0
#0  0x00007ff1ec5e6cf9 in jsonrpc_send (ctx=0x7ff1e27066c8) at jsonrpcs_mod.c:390
390	in jsonrpcs_mod.c
(gdb) list
385	in jsonrpcs_mod.c
(gdb) info locals
nj = 0x0
i = -630111740
rbuf = {s = 0x3 <error: Cannot access memory at address 0x3>, len = -187033216}
__func__ = "jsonrpc_send"
(gdb) p *ctx
$1 = {msg = 0x7ff1e270d170, msg_shm_block_size = 3024, method = 0x0, flags = 257, jreq = 0x0, req_node = 0x0, jrpl = 0x560edbc8ea20, 
  rpl_node = 0x0, reply_sent = 1, error_code = 0, error_text = {s = 0x0, len = 0}, http_code = 200, http_text = {s = 0x7ff1ec607b1d "OK", 
    len = 2}, transport = 1}
(gdb) p *ctx->jreq
Cannot access memory at address 0x0
(gdb) p *ctx->jrpl
$2 = {root = 0x560edbc8f380, flags = 0, buf = {s = 0x0, len = 0}, malloc_fn = 0x7ff1f4ceef10 <__GI___libc_malloc>, 
  free_fn = 0x7ff1f4cef510 <__GI___libc_free>}



More information about the sr-users mailing list