<div dir="ltr">
<p class="">(gdb) p *tl->prev</p>
<p class="">$1 = {next = 0x0, prev = 0x7fa5e0403d50, expire = 3233857728, initial_timeout = 0, data = 0xabcdefed, f = 0, flags = 0, slow_idx = 0}</p>
<p class="">(gdb) p *tl->next</p>
<p class="">Cannot access memory at address 0x0</p></div><div class="gmail_extra"><br><div class="gmail_quote">2015-01-29 18:09 GMT+08:00 Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
the tl content looks good, let's see the prev and next items:<br>
<br>
p *tl->prev<br>
p *tl->next<br>
<br>
Cheers,<br>
Daniel<div><div class="h5"><br>
<br>
<div>On 29/01/15 08:49, å¼ é¡ºé€š wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>hi  daniel, look at the following info,thks.</div>
<div><br>
</div>
<div>(gdb) bt full</div>
<div>#0 Â 0x00000000005fda98 in timer_list_expire (t=1263625687,
h=0x7fa5e01c19b0, slow_l=0x7fa5e01c3010, slow_mark=325) at
timer.c:877</div>
<div>Â Â Â Â tl = 0x7fa5e03e77d0</div>
<div>Â Â Â Â ret = 0</div>
<div>#1 Â 0x00000000005fc686 in timer_handler () at timer.c:953</div>
<div>Â Â Â Â saved_ticks = 1263625687</div>
<div>Â Â Â Â run_slow_timer = 0</div>
<div>Â Â Â Â i = 325</div>
<div>Â Â Â Â __FUNCTION__ = "timer_handler"</div>
<div>#2 Â 0x00000000005fdd4d in timer_main () at timer.c:992</div>
<div>No locals.</div>
<div>#3 Â 0x00000000004aa571 in main_loop () at main.c:1700</div>
<div>Â Â Â Â i = 12</div>
<div>Â Â Â Â pid = 0</div>
<div>Â Â Â Â si = 0x0</div>
<div>Â Â Â Â si_desc = "udp receiver child=11 sock=<a href="http://10.103.252.159:5160" target="_blank">10.103.252.159:5160</a>\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"</div>
<div>Â Â Â Â nrprocs = 12</div>
<div>Â Â Â Â __FUNCTION__ = "main_loop"</div>
<div>#4 Â 0x00000000004af166 in main (argc=11,
argv=0x7fff001a3e88) at main.c:2561</div>
<div>Â Â Â Â cfg_stream = 0x19e15e0</div>
<div>Â Â Â Â c = -1</div>
<div>Â Â Â Â r = 0</div>
<div>Â Â Â Â tmp = 0x7fff001a4681 ""</div>
<div>Â Â Â Â tmp_len = 32767</div>
<div>Â Â Â Â port = 1719808</div>
<div>Â Â Â Â proto = 32680</div>
<div>Â Â Â Â options = 0x706ec0
":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:"</div>
<div>Â Â Â Â ret = -1</div>
<div>Â Â Â Â seed = 3548653977</div>
<div>Â Â Â Â rfd = 4</div>
<div>Â Â Â Â debug_save = 0</div>
<div>Â Â Â Â debug_flag = 0</div>
<div>Â Â Â Â dont_fork_cnt = 0</div>
<div>Â Â Â Â n_lst = 0xb</div>
<div>Â Â Â Â p = 0x0</div>
<div>Â Â Â Â __FUNCTION__ = "main"</div>
<div><br>
</div>
<div><br>
</div>
<div>
<p>(gdb) p *tl</p>
<p>$1 = {next = 0x0, prev = 0x7fa5e01c19b0, expire =
1263625760, initial_timeout = 80, data = 0x7fa5e03e7750, f =
0x7fa864720942 <wait_handler>, flags = 513, </p>
<p>Â slow_idx = 0}</p>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2015-01-17 0:40 GMT+08:00
Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> Can you get the
output in gdb for:<br>
<br>
p *tl<br>
<br>
?<br>
<br>
Cheers,<br>
Daniel
<div>
<div><br>
<br>
<div>On 16/01/15 04:29, å¼ é¡ºé€š wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div>
<div dir="ltr">I user rtimer module :
<div><br>
<div>loadmodule "rtimer.so"<br>
</div>
</div>
<div>
<div>modparam("rtimer", "timer",
"name=p_route;interval=1;mode=1;")</div>
<div>modparam("rtimer", "exec",
"timer=p_route;route=P_ROUTE")</div>
</div>
<div><br>
</div>
<div>application will coredump in sometimes, and
core file in below, what's the reason?</div>
<div><br>
</div>
<div>
<div>Program terminated with signal 11,
Segmentation fault.</div>
<div>#0 Â 0x00000000005fda98 in timer_list_expire
(t=1043586690, h=0x7f9ed45ac9b0,
slow_l=0x7f9ed45adc80, slow_mark=2316) at
timer.c:877</div>
<div>877<span style="white-space:pre-wrap"> </span>timer.c:
No such file or directory.</div>
<div><span style="white-space:pre-wrap"> </span>in
timer.c</div>
<div>(gdb) bt full</div>
<div>#0 Â 0x00000000005fda98 in timer_list_expire
(t=1043586690, h=0x7f9ed45ac9b0,
slow_l=0x7f9ed45adc80, slow_mark=2316) at
timer.c:877</div>
<div>Â Â Â Â tl = 0x7f9ed47f7e98</div>
<div>Â Â Â Â ret = 0</div>
<div>#1 Â 0x00000000005fc686 in timer_handler ()
at timer.c:953</div>
<div>Â Â Â Â saved_ticks = 1043586690</div>
<div>Â Â Â Â run_slow_timer = 0</div>
<div>Â Â Â Â i = 268</div>
<div>Â Â Â Â __FUNCTION__ = "timer_handler"</div>
<div>#2 Â 0x00000000005fdd4d in timer_main () at
timer.c:992</div>
<div>No locals.</div>
<div>#3 Â 0x00000000004aa571 in main_loop () at
main.c:1700</div>
<div>Â Â Â Â i = 12</div>
<div>Â Â Â Â pid = 0</div>
<div>Â Â Â Â si = 0x0</div>
<div>Â Â Â Â si_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"</div>
<div>Â Â Â Â nrprocs = 12</div>
<div>Â Â Â Â __FUNCTION__ = "main_loop"</div>
<div>#4 Â 0x00000000004af166 in main (argc=11,
argv=0x7fff7a234098) at main.c:2561</div>
<div>Â Â Â Â cfg_stream = 0x1da75e0</div>
<div>Â Â Â Â c = -1</div>
<div>Â Â Â Â r = 0</div>
<div>Â Â Â Â tmp = 0x7fff7a234681 ""</div>
<div>Â Â Â Â tmp_len = 32767</div>
<div>Â Â Â Â port = <a href="tel:2049130512" value="+12049130512" target="_blank">2049130512</a></div>
<div>Â Â Â Â proto = 32673</div>
<div>Â Â Â Â options = 0x706ec0
":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:"</div>
<div>Â Â Â Â ret = -1</div>
<div>Â Â Â Â seed = 220012340</div>
<div>Â Â Â Â rfd = 4</div>
<div>Â Â Â Â debug_save = 0</div>
<div>Â Â Â Â debug_flag = 0</div>
<div>Â Â Â Â dont_fork_cnt = 0</div>
<div>Â Â Â Â n_lst = 0xb</div>
<div>Â Â Â Â p = 0x0</div>
<div>Â Â Â Â __FUNCTION__ = "main"</div>
</div>
<div><br>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div>
</div>
<pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><span><font color="#888888">
</font></span></pre>
<span><font color="#888888"> </font></span></blockquote>
<span><font color="#888888"> <br>
<pre cols="72">--
Daniel-Constantin Mierla
<a href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></pre>
</font></span></div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<pre cols="72">--
Daniel-Constantin Mierla
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></pre>
</div></div></div>
</blockquote></div><br></div>