[sr-dev] presence pua crash when using db_cluster

Juha Heinanen jh at tutpro.com
Thu Sep 27 16:33:12 CEST 2012


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 <db_mysql_val2str>, submit_query=0x7f39f4c2b615 <db_mysql_submit_query>, 
    store_result=0x7f39f4c2bb9c <db_mysql_store_result>, _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 <db_mysql_val2str>, submit_query=0x7f39f4c2b615 <db_mysql_submit_query>, 
    store_result=0x7f39f4c2bb9c <db_mysql_store_result>, _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 <db_mysql_val2str>, submit_query=0x7f39f4c2b615 <db_mysql_submit_query>, 
    store_result=0x7f39f4c2bb9c <db_mysql_store_result>) 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 <db_cluster_query>)
    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



More information about the sr-dev mailing list