[sr-dev] [kamailio/kamailio] carrierroute: cr.dump_routes prints error or hangs after over 100 prefixes (#1304)

Rick notifications at github.com
Tue Nov 7 22:03:13 CET 2017


```
(gdb) bt full
#0  0x0000000800f97e3a in _kevent () from /lib/libc.so.7
No symbol table info available.
#1  0x00000008046c4ca2 in pthread_suspend_all_np () from /lib/libthr.so.3
No symbol table info available.
#2  0x000000080567c944 in io_wait_loop_kqueue (h=0x8058be9f0, t=10, repeat=0) at io_wait.h:1094
	n = 0
	r = 0
	tspec = {tv_sec = 10, tv_nsec = 0}
	fm = (struct fd_map *) 0x801982738
	orig_changes = 0
	apply_changes = 0
	revents = 1
#3  0x0000000805676d19 in io_listen_loop (fd_no=1, cs_lst=0x801648a00) at io_listener.c:293
	max_fd_no = 289
	poll_err = 0x0
	poll_method = 6
	cs = (struct ctrl_socket *) 0x0
	type = 2
#4  0x0000000805656411 in mod_child (rank=0) at ctl.c:337
	rpc_handler = 1
	pid = 0
	cs = (struct ctrl_socket *) 0x0
#5  0x0000000000505cdd in init_mod_child (m=0x801859fe8, rank=0) at core/sr_module.c:938
No locals.
#6  0x0000000000505727 in init_mod_child (m=0x80185a648, rank=0) at core/sr_module.c:935
No locals.
#7  0x0000000000505727 in init_mod_child (m=0x80185c0d0, rank=0) at core/sr_module.c:935
No locals.
#8  0x0000000000505727 in init_mod_child (m=0x80185c898, rank=0) at core/sr_module.c:935
No locals.
#9  0x0000000000505727 in init_mod_child (m=0x80185d098, rank=0) at core/sr_module.c:935
No locals.
#10 0x0000000000505727 in init_mod_child (m=0x80185d7f0, rank=0) at core/sr_module.c:935
No locals.
#11 0x0000000000505727 in init_mod_child (m=0x80185f600, rank=0) at core/sr_module.c:935
No locals.
#12 0x0000000000505727 in init_mod_child (m=0x801860410, rank=0) at core/sr_module.c:935
No locals.
#13 0x0000000000505727 in init_mod_child (m=0x801860a48, rank=0) at core/sr_module.c:935
No locals.
#14 0x0000000000505727 in init_mod_child (m=0x801860f60, rank=0) at core/sr_module.c:935
No locals.
#15 0x0000000000505727 in init_mod_child (m=0x8018613d0, rank=0) at core/sr_module.c:935
No locals.
#16 0x0000000000505727 in init_mod_child (m=0x8018620c0, rank=0) at core/sr_module.c:935
No locals.
#17 0x0000000000505727 in init_mod_child (m=0x801862488, rank=0) at core/sr_module.c:935
No locals.
#18 0x0000000000505727 in init_mod_child (m=0x801862e48, rank=0) at core/sr_module.c:935
No locals.
#19 0x0000000000505727 in init_mod_child (m=0x80186a6b0, rank=0) at core/sr_module.c:935
No locals.
#20 0x0000000000505727 in init_mod_child (m=0x80186b530, rank=0) at core/sr_module.c:935
No locals.
#21 0x0000000000505727 in init_mod_child (m=0x80186c0b0, rank=0) at core/sr_module.c:935
No locals.
#22 0x0000000000505727 in init_mod_child (m=0x80186c998, rank=0) at core/sr_module.c:935
No locals.
#23 0x0000000000505727 in init_mod_child (m=0x80186ce90, rank=0) at core/sr_module.c:935
No locals.
#24 0x0000000000505727 in init_mod_child (m=0x80186d530, rank=0) at core/sr_module.c:935
No locals.
#25 0x0000000000505727 in init_mod_child (m=0x80186dac0, rank=0) at core/sr_module.c:935
No locals.
#26 0x0000000000505727 in init_mod_child (m=0x80186e338, rank=0) at core/sr_module.c:935
No locals.
#27 0x0000000000505727 in init_mod_child (m=0x80186ed38, rank=0) at core/sr_module.c:935
No locals.
#28 0x0000000000505727 in init_mod_child (m=0x80186f4f8, rank=0) at core/sr_module.c:935
No locals.
#29 0x0000000000505727 in init_mod_child (m=0x80186f9d8, rank=0) at core/sr_module.c:935
No locals.
#30 0x00000000005056d8 in init_child (rank=0) at core/sr_module.c:964
No locals.
#31 0x000000000042f286 in main_loop () at main.c:1708
	i = 16
	pid = 19525
	si = (struct socket_info *) 0x0
	si_desc = 0x7fffffffd020 "udp receiver child=15 sock=192.168.10.120:5060"
	nrprocs = 16
	woneinit = 1
#32 0x000000000043b1ff in main (argc=15, argv=0x7fffffffeb50) at main.c:2646
	cfg_stream = (FILE *) 0x80120aca0
	c = -1
	r = 0
	tmp = 0x7fffffffee1a ""
	tmp_len = 32767
	port = -5392
	proto = 0
	options = 0x97dfe7 ":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:x:X:Y:"
	ret = -1
	seed = 1687602241
	rfd = 4
	debug_save = 0
	debug_flag = 0
	dont_fork_cnt = 0
	n_lst = (struct name_lst *) 0xd1e64309666ca822
	p = 0xf <Error reading address 0xf: Bad address>
	st = {st_dev = 1153570505, st_ino = 52988, st_mode = 16877, st_nlink = 2, st_uid = 1001, st_gid = 1001, st_rdev = 4294967295, st_atim = {tv_sec = 1509564024, 
    tv_nsec = 794875000}, st_mtim = {tv_sec = 1510082134, tv_nsec = 719802000}, st_ctim = {tv_sec = 1510082134, tv_nsec = 719802000}, st_size = 2, st_blocks = 1, 
  st_blksize = 4096, st_flags = 2048, st_gen = 0, st_lspare = 0, st_birthtim = {tv_sec = 1509564024, tv_nsec = 794875000}}
```

When the data is growing the command gives an error. (281 entries in carrierroute table)
```
kamcmd> cr.reload_routes
kamcmd> cr.dump_routes
error: 500 - Failed to add data to response
```

And this in the logs:
```
Nov  7 22:01:44 <daemon.err> ic1 kamailio[88580]: ERROR: carrierroute [cr_fifo.c:1230]: cr_rpc_dump_routes(): dump tree recursor failure at count 6/1
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1304#issuecomment-342621239
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20171107/7bbb0df0/attachment-0001.html>


More information about the sr-dev mailing list