No subject


Wed Jun 27 05:48:46 CEST 2012


<BR>
If that is the case then it means these have not been properly set somewhere further up the call stack (so in db_mysql, db_cluster, or pua itself).&nbsp; I suspect it's OK in pua as there would be problems when I use db_postgres.<BR>
<BR>
Regards,<BR>
<BR>
Peter<BR>
<BR>
On Thu, 2012-09-27 at 17:33 +0300, Juha Heinanen wrote: 
<BLOCKQUOTE TYPE=CITE>
<PRE>
i tried to use db_cluster with presence server and got crash:

core was generated by `/usr/sbin/pres-serv -f /etc/pres-serv/pres-serv.cfg -P /var/run/pres-serv/pres-'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f39f3c13b13 in db_do_query_internal (_h=0x7f39f53b5708, _k=0x7fff811b8c90, _op=0x7fff811b8c50, _v=0x7fff811b8c60, _c=0x0, 
    _n=1, _nc=0, _o=0x0, _r=0x0, val2str=0x7f39f4c31cbc &lt;db_mysql_val2str&gt;, submit_query=0x7f39f4c2b615 &lt;db_mysql_submit_query&gt;, 
    store_result=0x7f39f4c2bb9c &lt;db_mysql_store_result&gt;, _l=0) at db_query.c:83
83	db_query.c: No such file or directory.

(gdb) where
#0  0x00007f39f3c13b13 in db_do_query_internal (_h=0x7f39f53b5708, _k=0x7fff811b8c90, _op=0x7fff811b8c50, _v=0x7fff811b8c60, _c=0x0, 
    _n=1, _nc=0, _o=0x0, _r=0x0, val2str=0x7f39f4c31cbc &lt;db_mysql_val2str&gt;, submit_query=0x7f39f4c2b615 &lt;db_mysql_submit_query&gt;, 
    store_result=0x7f39f4c2bb9c &lt;db_mysql_store_result&gt;, _l=0) at db_query.c:83
#1  0x00007f39f3c14303 in db_do_query (_h=0x7f39f53b5708, _k=0x7fff811b8c90, _op=0x7fff811b8c50, _v=0x7fff811b8c60, _c=0x0, _n=1, 
    _nc=0, _o=0x0, _r=0x0, val2str=0x7f39f4c31cbc &lt;db_mysql_val2str&gt;, submit_query=0x7f39f4c2b615 &lt;db_mysql_submit_query&gt;, 
    store_result=0x7f39f4c2bb9c &lt;db_mysql_store_result&gt;) at db_query.c:156
#2  0x00007f39f4c2c727 in db_mysql_query (_h=0x7f39f53b5708, _k=0x7fff811b8c90, _op=0x7fff811b8c50, _v=0x7fff811b8c60, _c=0x0, _n=1, 
    _nc=0, _o=0x0, _r=0x0) at km_dbase.c:261
#3  0x00007f39f1abec8e in db_cluster_query (_h=0x7f39f53b4788, _k=0x7fff811b8c90, _op=0x7fff811b8c50, _v=0x7fff811b8c60, _c=0x0, _n=1, 
    _nc=0, _o=0x0, _r=0x0) at dbcl_api.c:300
#4  0x00007f39f3c1651f in db_fetch_query_internal (dbf=0x7f39f03cec20, frows=500, _h=0x7f39f53b4788, _k=0x7fff811b8c90, 
    _op=0x7fff811b8c50, _v=0x7fff811b8c60, _c=0x0, _n=1, _nc=0, _o=0x0, _r=0x7fff811b8c88, _query=0x7f39f1abe854 &lt;db_cluster_query&gt;)
    at db_query.c:427
#5  0x00007f39f3c169cc in db_fetch_query (dbf=0x7f39f03cec20, frows=500, _h=0x7f39f53b4788, _k=0x7fff811b8c90, _op=0x7fff811b8c50, 
    _v=0x7fff811b8c60, _c=0x0, _n=1, _nc=0, _o=0x0, _r=0x7fff811b8c88) at db_query.c:466
#6  0x00007f39f01aab1f in clean_puadb (update_period=30, min_expires=0) at pua_db.c:171
#7  0x00007f39f01a60a2 in hashT_clean (ticks=95327236, param=0x0) at pua.c:685
#8  0x0000000000525839 in compat_old_handler (ti=1525235788, tl=0x7f39ecc03a90, data=0x7f39ecc03a90) at timer.c:1017
#9  0x0000000000525da1 in slow_timer_main () at timer.c:1151
#10 0x00000000004656f0 in main_loop () at main.c:1692
#11 0x00000000004685f8 in main (argc=16, argv=0x7fff811b9088) at main.c:2563

i don't know why gdb complains about missing db_query.c.

this is with latest master.

-- juha

_______________________________________________
sr-dev mailing list
<A HREF="mailto:sr-dev at lists.sip-router.org">sr-dev at lists.sip-router.org</A>
<A HREF="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</A>
</PRE>
</BLOCKQUOTE>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>
-- 
Peter Dunkley
Technical Director
Crocodile RCS Ltd
</PRE>
</TD>
</TR>
</TABLE>
<BR>
</BODY>
</HTML>

--=-pnXq8gfQ4f7e+4/B99E1--




More information about the sr-dev mailing list