<div>Not a problem. Here you go</div>
<div> </div>
<div>(gdb) frame 2<br>#2 0x00007ff74cc69ac1 in msg_watchers_clean (ticks=<value optimized out>, param=<value optimized out>) at subscribe.c:485<br>485 abort();</div>
<div> </div>
<div>(gdb) print pa_db<br>$1 = (db_con_t *) 0x83e530</div>
<div> </div>
<div>(gdb) print pa_db->curr_ps<br>$6 = (db_ps_t *) 0x7ff74ce7a2b0</div>
<div> </div>
<div>(gdb) print (struct prep_stmt*)(*(pa_db)->curr_ps)<br>$2 = (struct prep_stmt *) 0x83f2a0</div>
<div> </div>
<div>(gdb) print ((struct prep_stmt*)(*(pa_db)->curr_ps))->stmts<br>$3 = (struct my_stmt_ctx *) 0x83f1e0</div>
<div> </div>
<div>(gdb) print ((struct prep_stmt*)(*(pa_db)->curr_ps))->stmts->table.s<br>$4 = 0x83f218 "active_watchersdelete from active_watchers where expires<?\217\001"</div>
<div> </div>
<div>(gdb) print ((struct prep_stmt*)(*(pa_db)->curr_ps))->stmts->query.s<br>$5 = 0x83f227 "delete from active_watchers where expires<?\217\001"<br><br></div>
<div> </div>
<div> </div>
<div> </div>
<div class="gmail_quote">On Fri, Dec 10, 2010 at 3:57 AM, Anca Vamanu <span dir="ltr"><<a href="mailto:anca@opensips.org">anca@opensips.org</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>
<div></div>
<div class="h5">On 12/09/2010 08:18 PM, Duane Larson wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Anca,<br>It failed quickly. But I am not able to do the Prints like I did last time because _h doesn't exist<br>
(gdb) backtrace<br>#0 0x00007ff75074f165 in raise () from /lib/libc.so.6<br>#1 0x00007ff750751f70 in abort () from /lib/libc.so.6<br>#2 0x00007ff74cc69ac1 in msg_watchers_clean (ticks=<value optimized out>, param=<value optimized out>) at subscribe.c:485<br>
#3 0x00000000004a90b6 in timer_ticker () at timer.c:325<br>#4 run_timer_process () at timer.c:395<br>#5 start_timer_processes () at timer.c:475<br>#6 0x000000000042ce8b in main_loop (argc=<value optimized out>, argv=<value optimized out>) at main.c:867<br>
#7 main (argc=<value optimized out>, argv=<value optimized out>) at main.c:1388<br>(gdb) frame 2<br>#2 0x00007ff74cc69ac1 in msg_watchers_clean (ticks=<value optimized out>, param=<value optimized out>) at subscribe.c:485<br>
485 abort();<br>(gdb) print _h<br>No symbol "_h" in current context.<br>(gdb) print _h->curr_ps<br>No symbol "_h" in current context.<br>(gdb) print (struct prep_stmt*)(*(_h)->curr_ps)<br>
No symbol "_h" in current context.<br>(gdb) print (struct prep_stmt*)(*(_h)->curr_ps)<br>No symbol "_h" in current context.<br>(gdb) print ((struct prep_stmt*)(*(_h)->curr_ps))->stmts<br>No symbol "_h" in current context.<br>
(gdb) print ((struct prep_stmt*)(*(_h)->curr_ps))->stmts->table.s<br>No symbol "_h" in current context.<br>(gdb) print ((struct prep_stmt*)(*(_h)->curr_ps))->stmts->query.s<br>No symbol "_h" in current context.<br>
</blockquote></div></div>A, sorry, you have to change it a bit:<br><br> pa_db<br> pa_db->curr_ps<br> (struct prep_stmt*)(*(pa_db)->curr_ps)<br> ((struct prep_stmt*)(*(pa_db)->curr_ps))->stmts<br> ((struct prep_stmt*)(*(pa_db)->curr_ps))->stmts->table.s<br>
((struct prep_stmt*)(*(pa_db)->curr_ps))->stmts->query.s
<div>
<div></div>
<div class="h5"><br><br><br>Regards,<br><br>-- <br>Anca Vamanu<br><a href="http://www.voice-system.ro/" target="_blank">www.voice-system.ro</a><br><br><br>_______________________________________________<br>Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>--<br>*--*--*--*--*--*<br>Duane<br>*--*--*--*--*--*<br>--<br>