Hi All,<br>Opensips 1.5 is running with presence modules. XCAP 1.0.7 is running.<br>When a client is registered, Opensips Server is getting crashed.<br>Here the client tried to register is <a href="mailto:Jp@dev.ongobiz.com">Jp@dev.ongobiz.com</a><br>
Below I'm printing backtrace.<br>********************************************************************************************************************************************************************************************<br>
(gdb) bt<br>#0 0xb7fd7424 in __kernel_vsyscall ()<br>#1 0xb7e7b640 in raise () from /lib/i686/cmov/libc.so.6<br>#2 0xb7e7d018 in abort () from /lib/i686/cmov/libc.so.6<br>#3 0x080d7478 in qm_free (qm=0x818c4e0, p=0x0, file=0xb784965f "xcap_functions.c", func=0xb78499bf "get_xcap_path", line=458) at mem/q_malloc.c:444<br>
#4 0xb7847db7 in get_xcap_path (req=<br> {xcap_root = 0xaf75c4bc "192.168.1.130", port = 9222, doc_sel = {auid = {s = 0xb79cf2b5 "pres-rules", len = 10}, doc_type = 2, type = 1, xid = {s = 0x81e7614 "<a href="mailto:sip%3AJp@dev.ongobiz.com">sip:Jp@dev.ongobiz.com</a>", len = 22}, filename = {s = 0xb79cf2af "index", len = 5}}, node_sel = 0x0, etag = 0x0, match_type = 0}) at xcap_functions.c:458<br>
#5 0xb78489f2 in xcapGetNewDoc (req=<br> {xcap_root = 0xaf75c4bc "192.168.1.130", port = 9222, doc_sel = {auid = {s = 0xb79cf2b5 "pres-rules", len = 10}, doc_type = 2, type = 1, xid = {s = 0x81e7614 "<a href="mailto:sip%3AJp@dev.ongobiz.com">sip:Jp@dev.ongobiz.com</a>", len = 22}, filename = {s = 0xb79cf2af "index", len = 5}}, node_sel = 0x0, etag = 0x0, match_type = 0}, user={s = 0x81e753f "Jpa.1238777853.23723.1.0", len = 2}, domain=<br>
{s = 0x81e7530 "dev.ongobiz.comJpa.1238777853.23723.1.0", len = 15}, xcap_doc=0xbfff0e08) at xcap_functions.c:318<br>#6 0xb79cb4d8 in http_get_rules_doc (user={s = 0x81e753f "Jpa.1238777853.23723.1.0", len = 2}, domain={s = 0x81e7530 "dev.ongobiz.comJpa.1238777853.23723.1.0", len = 15}, rules_doc=0xbfff0f1c)<br>
at xcap_auth.c:581<br>#7 0xb79cbaba in get_rules_doc (user=0x81e7508, domain=0x81e7510, type=2, rules_doc=0xbfff1214) at xcap_auth.c:489<br>#8 0xb79cc0ec in pres_get_rules_doc (user=0x81e7508, domain=0x81e7510, rules_doc=0xbfff1214) at xcap_auth.c:415<br>
#9 0xb79ec98e in update_presentity (msg=0x81e60d0, presentity=0x81e7504, body=0xbfff1378, new_t=1, sent_reply=0xbfff1384, sphere=0x0) at presentity.c:291<br>#10 0xb79f0ec8 in handle_publish (msg=0x81e60d0, sender_uri=0x0, str2=0x0) at publish.c:492<br>
#11 0x080552a8 in do_action (a=0x81cdb74, msg=0x81e60d0) at action.c:962<br>#12 0x080541a2 in run_action_list (a=0x81cd5a4, msg=0x81e60d0) at action.c:139<br>#13 0x080571e6 in do_action (a=0x81cf41c, msg=0x81e60d0) at action.c:706<br>
#14 0x080541a2 in run_action_list (a=0x81cb5d4, msg=0x81e60d0) at action.c:139<br>#15 0x08058025 in run_top_route (a=0x81cb5d4, msg=0x81e60d0) at action.c:119<br>#16 0x08093ac4 in receive_msg (<br> buf=0x816b5a0 "PUBLISH <a href="mailto:sip%3AJp@dev.ongobiz.com">sip:Jp@dev.ongobiz.com</a> SIP/2.0\r\nVia: SIP/2.0/UDP 192.168.1.105:44192;branch=z9hG4bK-d8754z-3d56f119092aee67-1---d8754z-;rport\r\nMax-Forwards: 69\r\nContact: <<a href="http://sip:Jp@123.236.244.51:44192">sip:Jp@123.236.244.51:44192</a>>\r\nTo: \"Jp"..., len=989, rcv_info=0xbfff1974) at receive.c:165<br>
#17 0x080d096b in udp_rcv_loop () at udp_server.c:449<br>#18 0x0806ce17 in main (argc=9, argv=0xbfff1b04) at main.c:779<br>******************************************************************************************************************************************************************************<br>
Below, Iam printing errors.<br><br> ERROR:db_mysql:get_new_stmt_ctx: failed while mysql_stmt_prepare: Lost connection to MySQL server during query<br> ERROR:db_mysql:db_mysql_do_prepared_query: failed to create new context<br>
ERROR:presence:update_subs_db: updating presence information<br> ERROR:presence:notify: updating subscription in database<br> ERROR:presence:update_subscription: sending notify request<br> ERROR:presence:handle_subscribe: in update_subscription<br>
ERROR:tm:_reply_light: failed to generate 407 reply when a final 200 was sent out<br> ERROR:signaling:sig_send_reply_mod: failed to send reply with tm module<br> ERROR:auth:challenge: failed to send the response<br> ERROR:db_mysql:get_new_stmt_ctx: failed while mysql_stmt_prepare: Lost connection to MySQL server during query<br>
ERROR:db_mysql:db_mysql_do_prepared_query: failed to create new context<br> ERROR:presence:insert_subs_db: unsuccessful sql insert<br> ERROR:presence:update_subscription: failed to insert subscription in database<br> ERROR:presence:handle_subscribe: in update_subscription<br>
ERROR:tm:_reply_light: failed to generate 407 reply when a final 200 was sent out<br> ERROR:signaling:sig_send_reply_mod: failed to send reply with tm module<br> ERROR:auth:challenge: failed to send the response<br> CRITICAL:core:qm_free: bad pointer (nil) (out of memory block!) - aborting<br>
<br>Will you please where the issue is.<br><br clear="all">Thanks<br>JayaPrakash<br>