[OpenSIPS-Users] db_mysql core dump

Anca Vamanu anca at opensips.org
Fri Dec 10 10:57:02 CET 2010


On 12/09/2010 08:18 PM, Duane Larson wrote:
> Anca,
> It failed quickly.  But I am not able to do the Prints like I did last 
> time because _h doesn't exist
> (gdb) backtrace
> #0  0x00007ff75074f165 in raise () from /lib/libc.so.6
> #1  0x00007ff750751f70 in abort () from /lib/libc.so.6
> #2  0x00007ff74cc69ac1 in msg_watchers_clean (ticks=<value optimized 
> out>, param=<value optimized out>) at subscribe.c:485
> #3  0x00000000004a90b6 in timer_ticker () at timer.c:325
> #4  run_timer_process () at timer.c:395
> #5  start_timer_processes () at timer.c:475
> #6  0x000000000042ce8b in main_loop (argc=<value optimized out>, 
> argv=<value optimized out>) at main.c:867
> #7  main (argc=<value optimized out>, argv=<value optimized out>) at 
> main.c:1388
> (gdb) frame 2
> #2  0x00007ff74cc69ac1 in msg_watchers_clean (ticks=<value optimized 
> out>, param=<value optimized out>) at subscribe.c:485
> 485                     abort();
> (gdb) print _h
> No symbol "_h" in current context.
> (gdb) print _h->curr_ps
> No symbol "_h" in current context.
> (gdb) print (struct prep_stmt*)(*(_h)->curr_ps)
> No symbol "_h" in current context.
> (gdb) print (struct prep_stmt*)(*(_h)->curr_ps)
> No symbol "_h" in current context.
> (gdb) print ((struct prep_stmt*)(*(_h)->curr_ps))->stmts
> No symbol "_h" in current context.
> (gdb) print ((struct prep_stmt*)(*(_h)->curr_ps))->stmts->table.s
> No symbol "_h" in current context.
> (gdb) print ((struct prep_stmt*)(*(_h)->curr_ps))->stmts->query.s
> No symbol "_h" in current context.
A, sorry, you have to change it a bit:

     pa_db
     pa_db->curr_ps
     (struct prep_stmt*)(*(pa_db)->curr_ps)
     ((struct prep_stmt*)(*(pa_db)->curr_ps))->stmts
     ((struct prep_stmt*)(*(pa_db)->curr_ps))->stmts->table.s
     ((struct prep_stmt*)(*(pa_db)->curr_ps))->stmts->query.s


Regards,

-- 
Anca Vamanu
www.voice-system.ro




More information about the Users mailing list