(gdb) p *tl->prev
$1 = {next = 0x0, prev = 0x7fa5e0403d50, expire = 3233857728, initial_timeout = 0, data = 0xabcdefed, f = 0, flags = 0, slow_idx = 0}
(gdb) p *tl->next
Cannot access memory at address 0x0
2015-01-29 18:09 GMT+08:00 Daniel-Constantin Mierla <miconda@gmail.com>:
Hello,
the tl content looks good, let's see the prev and next items:
p *tl->prev
p *tl->next
Cheers,
Daniel
On 29/01/15 08:49, 张顺通 wrote:
hi daniel, look at the following info,thks.
(gdb) bt full#0 0x00000000005fda98 in timer_list_expire (t=1263625687, h=0x7fa5e01c19b0, slow_l=0x7fa5e01c3010, slow_mark=325) at timer.c:877tl = 0x7fa5e03e77d0ret = 0#1 0x00000000005fc686 in timer_handler () at timer.c:953saved_ticks = 1263625687run_slow_timer = 0i = 325__FUNCTION__ = "timer_handler"#2 0x00000000005fdd4d in timer_main () at timer.c:992No locals.#3 0x00000000004aa571 in main_loop () at main.c:1700i = 12pid = 0si = 0x0si_desc = "udp receiver child=11 sock=10.103.252.159:5160\000\000\b\000\000\000\000\000\000\000\000\200\024\340\245\177\000\000 ;\032\000\001\000\000\000(\325\027\340\245\177\000\000 ;\032\000\377\177\000\000\214\216N\000\000\000\000\000\335\233}{\000\000\000\000(\325\027\340\245\177\000\000\200>\032\000\377\177\000\000\000\000\000\000\001\000\000"nrprocs = 12__FUNCTION__ = "main_loop"#4 0x00000000004af166 in main (argc=11, argv=0x7fff001a3e88) at main.c:2561cfg_stream = 0x19e15e0c = -1r = 0tmp = 0x7fff001a4681 ""tmp_len = 32767port = 1719808proto = 32680options = 0x706ec0 ":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:"ret = -1seed = 3548653977rfd = 4debug_save = 0debug_flag = 0dont_fork_cnt = 0n_lst = 0xbp = 0x0__FUNCTION__ = "main"
(gdb) p *tl
$1 = {next = 0x0, prev = 0x7fa5e01c19b0, expire = 1263625760, initial_timeout = 80, data = 0x7fa5e03e7750, f = 0x7fa864720942 <wait_handler>, flags = 513,
slow_idx = 0}
2015-01-17 0:40 GMT+08:00 Daniel-Constantin Mierla <miconda@gmail.com>:
Can you get the output in gdb for:
p *tl
?
Cheers,
Daniel
On 16/01/15 04:29, 张顺通 wrote:
I user rtimer module :
loadmodule "rtimer.so"
modparam("rtimer", "timer", "name=p_route;interval=1;mode=1;")modparam("rtimer", "exec", "timer=p_route;route=P_ROUTE")
application will coredump in sometimes, and core file in below, what's the reason?
Program terminated with signal 11, Segmentation fault.#0 0x00000000005fda98 in timer_list_expire (t=1043586690, h=0x7f9ed45ac9b0, slow_l=0x7f9ed45adc80, slow_mark=2316) at timer.c:877877 timer.c: No such file or directory.in timer.c(gdb) bt full#0 0x00000000005fda98 in timer_list_expire (t=1043586690, h=0x7f9ed45ac9b0, slow_l=0x7f9ed45adc80, slow_mark=2316) at timer.c:877tl = 0x7f9ed47f7e98ret = 0#1 0x00000000005fc686 in timer_handler () at timer.c:953saved_ticks = 1043586690run_slow_timer = 0i = 268__FUNCTION__ = "timer_handler"#2 0x00000000005fdd4d in timer_main () at timer.c:992No locals.#3 0x00000000004aa571 in main_loop () at main.c:1700i = 12pid = 0si = 0x0si_desc = "udp receiver child=11 sock=10.1.*.*:5160\000\000\b\000\000\000\000\000\000\000\000\060S\324\236\177\000\000\060=#z\001\000\000\000(\205V\324\236\177\000\000\060=#z\377\177\000\000\214\216N\000\000\000\000\000\037t\372D\000\000\000\000(\205V\324\236\177\000\000\220@#z\377\177\000\000\000\000\000\000\001\000\000"nrprocs = 12__FUNCTION__ = "main_loop"#4 0x00000000004af166 in main (argc=11, argv=0x7fff7a234098) at main.c:2561cfg_stream = 0x1da75e0c = -1r = 0tmp = 0x7fff7a234681 ""tmp_len = 32767port = 2049130512proto = 32673options = 0x706ec0 ":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:"ret = -1seed = 220012340rfd = 4debug_save = 0debug_flag = 0dont_fork_cnt = 0n_lst = 0xbp = 0x0__FUNCTION__ = "main"
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
-- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
-- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda