Hi
Opensips crashed in RLS mode for large number of user(ie 2000 users).
Test setup details
IMS UE1 192.168.165.151:5070
IMS UE2 192.168.165.152:5075
Proxy - SCSCF (192.168.166.150:50602)
Opensips(presence server) (10.6.2.246:5060) - presence server receives the subscribe messages sent by the rls
server.
RLS (10.6.2.246:5060)
Please see the following backtrace.
Core was generated by `opensips'.
Program terminated with signal 11, Segmentation fault.
#0 0xb7ca297d in mysql_stmt_fetch () from /usr/lib/libmysqlclient.so.15
(gdb) bt full
#0 0xb7ca297d in mysql_stmt_fetch () from /usr/lib/libmysqlclient.so.15
No symbol table info available.
#1 0xb7e56ffb in db_mysql_convert_result (_h=0x81b0e08, _r=0x81b17e0) at res.c:161
__FUNCTION__ = "db_mysql_convert_result"
#2 0xb7e513f6 in db_mysql_store_result (_h=0x81b0e08, _r=0xbfd32758) at dbase.c:525
__FUNCTION__ = "db_mysql_store_result"
#3 0xb7e557a4 in db_mysql_query (_h=0x81b0e08, _k=0xbfd3273c, _op=0x0, _v=0xbfd326ac, _c=0xbfd32724, _n=3, _nc=4, _o=0xb7b51568, _r=0xbfd32758)
at dbase.c:605
ret = 2
#4 0xb7b27291 in get_p_notify_body (pres_uri={s = 0x81b1438 "\020", len = 19}, event=0xb5b3d700, etag=0x0, contact=0xbfd32c0c) at notify.c:836
query_cols = {0xb7b51498, 0xb7b51490, 0xb7b514c8, 0x8176f61, 0x0, 0x8176f5e}
query_vals = {{type = DB_STR, nul = 0, free = -1208460708, val = {int_val = 135992385, double_val = 2.128714707517724e-313, time_val = 135992385,
string_val = 0x81b1441 "~\033\b!", str_val = {s = 0x81b1441 "~\033\b!", len = 10}, blob_val = {s = 0x81b1441 "~\033\b!", len = 10},
bitmap_val = 135992385}}, {type = DB_STR, nul = 0, free = 11, val = {int_val = 135992380, double_val = 8.5551723269152775e-314, time_val = 135992380,
string_val = 0x81b143c "", str_val = {s = 0x81b143c "", len = 4}, blob_val = {s = 0x81b143c "", len = 4}, bitmap_val = 135992380}}, {type = DB_STR,
nul = 0, free = 135131093, val = {int_val = -1246505128, double_val = 1.8482106757577705e-313, time_val = -1246505128,
string_val = 0xb5b3d758 "presence\020", str_val = {s = 0xb5b3d758 "presence\020", len = 8}, blob_val = {s = 0xb5b3d758 "presence\020", len = 8},
bitmap_val = 3048462168}}, {type = 397, nul = 0, free = -1243898848, val = {int_val = 16, double_val = 7.9050503334599447e-323, time_val = 16,
string_val = 0x10 <Address 0x10 out of bounds>, str_val = {s = 0x10 <Address 0x10 out of bounds>, len = 0}, blob_val = {
s = 0x10 <Address 0x10 out of bounds>, len = 0}, bitmap_val = 16}}, {type = 3082453740, nul = -1243895424, free = -1243899016, val = {
int_val = -1076680920, double_val = -2.721322930237449e-40, time_val = -1076680920,
string_val = 0xbfd32728 "\020\025µ·Ð\024µ·`\025µ· j\033\b\230'Ó¿\230\024µ·\220\024µ·È\024µ·ao\027\b", str_val = {
s = 0xbfd32728 "\020\025µ·Ð\024µ·`\025µ· j\033\b\230'Ó¿\230\024µ·\220\024µ·È\024µ·ao\027\b", len = -1212697408}, blob_val = {
s = 0xbfd32728 "\020\025µ·Ð\024µ·`\025µ· j\033\b\230'Ó¿\230\024µ·\220\024µ·È\024µ·ao\027\b", len = -1212697408}, bitmap_val = 3218286376}}, {
type = 397, nul = 16, free = 16, val = {int_val = -1, double_val = 1.2997493376334316e-269, time_val = -1,
string_val = 0xffffffff <Address 0xffffffff out of bounds>, str_val = {s = 0xffffffff <Address 0xffffffff out of bounds>, len = 136017740},
blob_val = {s = 0xffffffff <Address 0xffffffff out of bounds>, len = 136017740}, bitmap_val = 4294967295}}}
result_cols = {0xb7b514a0, 0xb7b51510, 0xb7b514d0, 0xb7b51560, 0x81b6aa0, 0xbfd32798}
result = (db_res_t *) 0x81b17e0
body_array = <value optimized out>
notify_body = <value optimized out>
row_vals = <value optimized out>
i = <value optimized out>
build_off_n = <value optimized out>
uri = {user = {s = 0x81b143c "", len = 4}, passwd = {s = 0x0, len = 0}, host = {s = 0x81b1441 "~\033\b!", len = 10}, port = {s = 0x0, len = 0},
params = {s = 0x0, len = 0}, headers = {s = 0x0, len = 0}, port_no = 0, proto = 0, type = SIP_URI_T, transport = {s = 0x0, len = 0}, ttl = {s = 0x0,
len = 0}, user_param = {s = 0x0, len = 0}, maddr = {s = 0x0, len = 0}, method = {s = 0x0, len = 0}, lr = {s = 0x0, len = 0}, r2 = {s = 0x0, len = 0},
transport_val = {s = 0x0, len = 0}, ttl_val = {s = 0x0, len = 0}, user_param_val = {s = 0x0, len = 0}, maddr_val = {s = 0x0, len = 0}, method_val = {
s = 0x0, len = 0}, lr_val = {s = 0x0, len = 0}, r2_val = {s = 0x0, len = 0}}
hash_code = <value optimized out>
my_ps = (db_ps_t) 0x81b7a58
query_str = {s = 0xb7b4bc3b "received_time", len = 13}
__FUNCTION__ = "get_p_notify_body"
#5 0xb7b2d9d2 in send_notify_request (subs=0xbfd32bb4, watcher_subs=0x0, n_body=0x0, force_null_body=0) at notify.c:1636
td = <value optimized out>
met = {s = 0xb7b4bb61 "NOTIFY", len = 6}
str_hdr = {s = 0x0, len = 0}
notify_body = (str *) 0x0
result = <value optimized out>
cb_param = <value optimized out>
final_body = (str *) 0x0
__FUNCTION__ = "send_notify_request"
#6 0xb7b2eddd in notify (subs=0xbfd32bb4, watcher_subs=0x0, n_body=0x0, force_null_body=0) at notify.c:1793
hash_code = <value optimized out>
__FUNCTION__ = "notify"
#7 0xb7b46a04 in update_subscription (msg=0x81b65b0, subs=0xbfd32bb4, init_req=1) at subscribe.c:419
---Type <return> to continue, or q <return> to quit---
hash_code = 317
reply_code = 200
__FUNCTION__ = "update_subscription"
#8 0xb7b4a082 in handle_subscribe (msg=0x81b65b0, str1=0x0, str2=0x0) at subscribe.c:698
init_req = 1
subs = {pres_uri = {s = 0x81b1438 "\020", len = 19}, to_user = {
s = 0x81873aa "c3-3@10.6.2.246\r\nFrom: sip:s3-2@10.6.2.246;tag=dfbc96f94531d424a28aef4868a4e910-9015\r\nCSeq: 10 SUBSCRIBE\r\nCall-ID: 3fbef6c8-11074@10.6.2.246\r\nContent-Length: 0\r\nUser-Agent: OpenSIPS (1.5.0dev5-notls ("..., len = 4}, to_domain = {
s = 0x81873af "10.6.2.246\r\nFrom: sip:s3-2@10.6.2.246;tag=dfbc96f94531d424a28aef4868a4e910-9015\r\nCSeq: 10 SUBSCRIBE\r\nCall-ID: 3fbef6c8-11074@10.6.2.246\r\nContent-Length: 0\r\nUser-Agent: OpenSIPS (1.5.0dev5-notls (i386/"..., len = 10}, from_user = {
s = 0x81873c5 "s3-2@10.6.2.246;tag=dfbc96f94531d424a28aef4868a4e910-9015\r\nCSeq: 10 SUBSCRIBE\r\nCall-ID: 3fbef6c8-11074@10.6.2.246\r\nContent-Length: 0\r\nUser-Agent: OpenSIPS (1.5.0dev5-notls (i386/linux))\r\nMax-Forwards:"..., len = 4}, from_domain = {
s = 0x81873ca "10.6.2.246;tag=dfbc96f94531d424a28aef4868a4e910-9015\r\nCSeq: 10 SUBSCRIBE\r\nCall-ID: 3fbef6c8-11074@10.6.2.246\r\nContent-Length: 0\r\nUser-Agent: OpenSIPS (1.5.0dev5-notls (i386/linux))\r\nMax-Forwards: 69\r\n"..., len = 10}, event = 0xb5b3d700, event_id = {s = 0x0, len = 0}, to_tag = {
s = 0xb5dbfe1f "97b57f2144c425bc44f2e7a21eb22549-eb68\r\nFrom: sip:s3-5@10.6.2.246;tag=dfbc96f94531d424a28aef4868a4e910-88e9\r\nCSeq: 10 SUBSCRIBE\r\nCall-ID: 3fbef6cc-11070@10.6.2.246\r\nExpires: 366\r\nContact: <sip:10.6.2.2"..., len = 37}, from_tag = {
s = 0x81873d9 "dfbc96f94531d424a28aef4868a4e910-9015\r\nCSeq: 10 SUBSCRIBE\r\nCall-ID: 3fbef6c8-11074@10.6.2.246\r\nContent-Length: 0\r\nUser-Agent: OpenSIPS (1.5.0dev5-notls (i386/linux))\r\nMax-Forwards: 69\r\nEvent: presence"..., len = 37}, callid = {
s = 0x818741d "3fbef6c8-11074@10.6.2.246\r\nContent-Length: 0\r\nUser-Agent: OpenSIPS (1.5.0dev5-notls (i386/linux))\r\nMax-Forwards: 69\r\nEvent: presence\r\nContact: <sip:10.6.2.246:5060>\r\nExpires: 366\r\n\r\n", len = 25}, sockinfo = 0x81ac810, remote_cseq = 10, local_cseq = 0, contact = {
s = 0x81874ad "sip:10.6.2.246:5060>\r\nExpires: 366\r\n\r\n", len = 19}, local_contact = {s = 0x81b7dc0 "", len = 33}, record_route = {s = 0x0,
len = 0}, expires = 366, status = 1, reason = {s = 0x0, len = 0}, version = 0, db_flag = 4, auth_rules_doc = 0x0, next = 0x0}
event = (pres_ev_t *) 0xb5b3d700
parsed_event = (event_t *) 0x81b17b0
ev_param = <value optimized out>
found = 1
uri = {user = {
s = 0x8055efe "\211Æ\017¶\023éiæÿÿ\203é\001\017\205Åôÿÿ\213=\204¯\026\b\203?ÿ\017\214\001ûÿÿ\213\025\210¯\026\b\205Ò\017\204\203\002",
len = 136013232}, passwd = {s = 0x0, len = 0}, host = {s = 0x0, len = 0}, port = {s = 0x0, len = 0}, params = {s = 0x0, len = 135994312}, headers = {
s = 0x81977a0 "select body,expires,etag,sender from presentity where domain=? AND username=? AND event=? order by received_time", len = 1068},
port_no = 61428, proto = 47097, type = 3085284496, transport = {s = 0x0, len = -1076679768}, ttl = {s = 0xb7e52661 "\205À\017\204Ç", len = 135992391},
user_param = {s = 0x81977a0 "select body,expires,etag,sender from presentity where domain=? AND username=? AND event=? order by received_time",
len = 1068}, maddr = {s = 0x811fccc "\205À\017\210\001\001", len = 135990792}, method = {s = 0xbfd32e48 "X/Ó¿\034\211\n\b\200\005\033\b°e\033\b",
len = 135887809}, lr = {s = 0xb7b1d2bc "\201Ã ?\003", len = 136018210}, r2 = {s = 0x17 <Address 0x17 out of bounds>, len = 136018248}, transport_val = {
s = 0x6 <Address 0x6 out of bounds>, len = 7}, ttl_val = {s = 0xb5b3d760 "\020", len = 1702498662}, user_param_val = {
s = 0x3a736572 <Address 0x3a736572 out of bounds>, len = 909456160}, maddr_val = {s = 0xb7b6d366 "\201Á\206¯\003", len = -1076679512}, method_val = {
s = 0xb7b86a74 "\213u\214\213¾ü\002", len = 0}, lr_val = {s = 0xb5951318 "", len = -1076679656}, r2_val = {
s = 0xb7b2f7e0 "1À\203Ä\\[^_]Ã\213³\204ÿÿÿé8þÿÿ\213M\b\213A\024é\210üÿÿ\215»\021¾ÿÿ\211|$\b\215³L½ÿÿ\211t$\004\213\223`ÿÿÿ\213\002\203È\a\211\004$è\211\237þÿë\233\215\203\021¾ÿÿ\211D$\b\215³8ºÿÿ\211t$\004\213\223`ÿÿÿ\213\n\203É\a\211\f$è`\237þÿ\213}\b\213G\024é-üÿÿ\213\f$Ã\220U\211åWVS\203ì\\èi§þÿ\201Ãî\031\002", len = 0}}
reply_code = 500
reply_str = {s = 0xb7b4f892 "Server Internal Error", len = 21}
ret = 0
__FUNCTION__ = "handle_subscribe"
#9 0x08055efe in do_action (a=0x81b0658, msg=0x81b65b0) at action.c:961
val_s = {s = 0xb7f85a5c "double free or corruption (fasttop)", len = -1076678888}
aux = {s = 0x20 <Address 0x20 out of bounds>, len = 10}
ret = <value optimized out>
v = <value optimized out>
to = <value optimized out>
p = <value optimized out>
tmp = <value optimized out>
new_uri = <value optimized out>
end = <value optimized out>
crt = <value optimized out>
len = <value optimized out>
---Type <return> to continue, or q <return> to quit---
user = <value optimized out>
uri = {user = {s = 0x81874d3 "", len = 1694540258}, passwd = {s = 0x0, len = 135820292}, host = {s = 0x81b05a8 "\001", len = 136013232}, port = {
s = 0x4 <Address 0x4 out of bounds>, len = -1076678824}, params = {
s = 0x80a891c "\211Æë \213\025\204¯\026\b\203:þ}\a¾ÿÿÿÿë\216¡\210¯\026\b\205À\017\204\231\a", len = 135988608}, headers = {s = 0x81b65b0 "e", len = 0},
port_no = 11100, proto = 2064, type = 135820106, transport = {s = 0x13 <Address 0x13 out of bounds>, len = 136013580}, ttl = {s = 0x81874d3 "", len = 0},
user_param = {s = 0x13c400ca "", len = 2}, maddr = {s = 0x40 <Address 0x40 out of bounds>, len = -1209178604}, method = {s = 0xb7fa0140 "",
len = -1212754937}, lr = {s = 0xb7ba82ec "Ì \004", len = 41491}, r2 = {s = 0xb5db9c0c "È", len = -1076678904}, transport_val = {
s = 0xb7b8995f "\205À\017\204B\005", len = -1243898868}, ttl_val = {s = 0x81b65b0 "e", len = -1}, user_param_val = {s = 0x0, len = -1209178604},
maddr_val = {s = 0x1 <Address 0x1 out of bounds>, len = 672991168}, method_val = {s = 0x81b0324 "\001", len = 135988320}, lr_val = {s = 0xbfd32ef0 "\n",
len = -1076678904}, r2_val = {s = 0x8090e4a "\205À\017\204\027\001", len = 135981952}}
next_hop = {user = {s = 0x81ac338 "\001", len = 672989288}, passwd = {s = 0x40 <Address 0x40 out of bounds>, len = -1243893708}, host = {s = 0x0,
len = -1208352448}, port = {s = 0xbfd32db8 "ø-Ó¿ÑA\005\bÐ\003\033\b°e\033\b", len = 0}, params = {s = 0x4 <Address 0x4 out of bounds>,
len = 136018196}, headers = {s = 0x81b0438 "\002", len = 135988176}, port_no = 26032, proto = 2075, type = 3218288120, transport = {
s = 0x80541d1 "\211Eà\205Àu\a\203\rpÇ\026\b\001\213\0254\202\032\b\205Ò\017\204\037\001", len = 135988176}, ttl = {s = 0x81b65b0 "e", len = 0},
user_param = {s = 0xb7ba82ec "Ì \004", len = 136013232}, maddr = {s = 0x84 <Address 0x84 out of bounds>, len = 10}, method = {
s = 0xb7b6e261 "\213\205xÿÿÿ\201Ĭ", len = -1243899016}, lr = {s = 0xbfd32e88 "\aÔ¶·ì\202º·\023¢", len = 135992248}, r2 = {s = 0x81b0438 "\002",
len = 136013232}, transport_val = {s = 0x81b65b0 "e", len = -1076678904}, ttl_val = {s = 0x80a8b51 "\213]\020\205Ût\r\213M\020ÇA\f\030",
len = 135988176}, user_param_val = {s = 0x81b65b0 "e", len = 0}, maddr_val = {s = 0xb5dba9b4 "", len = -1243899016}, method_val = {
s = 0x818735d " SIP/2.0\r\nVia: SIP/2.0/UDP 10.6.2.246;branch=z9hG4bK6d12.4b27a982.0\r\nTo: sip:c3-3@10.6.2.246\r\nFrom: sip:s3-2@10.6.2.246;tag=dfbc96f94531d424a28aef4868a4e910-9015\r\nCSeq: 10 SUBSCRIBE\r\nCall-ID: 3fbef6c8"..., len = -1243899016}, lr_val = {s = 0x1 <Address 0x1 out of bounds>, len = 0},
r2_val = {s = 0x81b14b0 "\017", len = 0}}
u = <value optimized out>
port = <value optimized out>
cmatch = <value optimized out>
aitem = <value optimized out>
adefault = <value optimized out>
spec = <value optimized out>
model = <value optimized out>
val = {rs = {s = 0xbfd32ef0 "\n", len = 0}, ri = -1212420609, flags = -1209176919}
name_s = {s = 0x81b0318 "N", len = 135988320}
__FUNCTION__ = "do_action"
#10 0x080541d1 in run_action_list (a=0x81b0658, msg=0x81b65b0) at action.c:139
ret = 0
t = (struct action *) 0x81b0658
__FUNCTION__ = "run_action_list"
#11 0x08057962 in do_action (a=0x81b06c0, msg=0x81b65b0) at action.c:705
val_s = {s = 0x0, len = 1}
aux = {s = 0x0, len = 0}
ret = <value optimized out>
v = 1
to = <value optimized out>
p = <value optimized out>
tmp = <value optimized out>
new_uri = <value optimized out>
end = <value optimized out>
crt = <value optimized out>
len = <value optimized out>
user = <value optimized out>
uri = {user = {s = 0xb7e6d074 "p-ü· òý·", len = -1076678252}, passwd = {s = 0x164 <Address 0x164 out of bounds>, len = 136018152}, host = {
s = 0x81b0268 "\001", len = 136013232}, port = {s = 0x4 <Address 0x4 out of bounds>, len = -1076678072}, params = {
s = 0x80a891c "\211Æë \213\025\204¯\026\b\203:þ}\a¾ÿÿÿÿë\216¡\210¯\026\b\205À\017\204\231\a", len = 135987776}, headers = {s = 0x81b65b0 "e", len = 0},
port_no = 7356, proto = 47079, type = 5, transport = {s = 0x281b3448 "\f", len = -1076678280}, ttl = {s = 0xb7ed6d1e "\201ÃÖ\202\f", len = 672894064},
user_param = {s = 0x0, len = 0}, maddr = {s = 0x0, len = 0}, method = {s = 0x0, len = 0}, lr = {s = 0x0, len = 0}, r2 = {s = 0x0, len = 0},
transport_val = {s = 0x0, len = 0}, ttl_val = {s = 0x0, len = 0}, user_param_val = {s = 0x0, len = 0}, maddr_val = {s = 0x0, len = 0}, method_val = {
s = 0x0, len = 0}, lr_val = {s = 0x0, len = 0}, r2_val = {s = 0x81afbd8 "\002", len = 135986032}}
next_hop = {user = {s = 0xb7f85a5c "double free or corruption (fasttop)", len = 0}, passwd = {s = 0x0, len = 672865648}, host = {s = 0xb7fdf2a0 "",
---Type <return> to continue, or q <return> to quit---
len = 0}, port = {s = 0x0, len = -1209554292}, params = {s = 0xbfd32fe0 "Ø\001\033\b°e\033\b(0Ó¿ÑA\005\bØ\001\033\b°e\033\b\001", len = -1208149706},
headers = {s = 0x1 <Address 0x1 out of bounds>, len = 0}, port_no = 0, proto = 0, type = 672872440, transport = {s = 0xbfd33a94 "Q>Ó¿", len = 1}, ttl = {
s = 0x3 <Address 0x3 out of bounds>, len = 136014184}, user_param = {s = 0xfffffffc <Address 0xfffffffc out of bounds>, len = 23}, maddr = {
s = 0xbfd33104 "\002", len = -1208149293}, method = {s = 0xbfd33a9c "Z>Ó¿f>Ó¿v>Ó¿\233>Ó¿¯>Ó¿¹>Ó¿Í>Ó¿\034?Ó¿0?Ó¿;?Ó¿H?Ó¿P?Ó¿[?Ó¿s?Ó¿\200?Ó¿»?Ó¿Ö?Ó¿",
len = 672872440}, lr = {s = 0xb7fc2d70 "", len = 0}, r2 = {s = 0x80527ce "GLIBC_2.2", len = 225011984}, transport_val = {
s = 0xe10 <Address 0xe10 out of bounds>, len = -1076678368}, ttl_val = {
s = 0xb7fccc9b "\205À\017\204fÿÿÿ\213G\b\205À\017\205Tÿÿÿ\205ö\017\205Lÿÿÿf\203}ä", len = -1209532022}, user_param_val = {s = 0x80527c4 "GLIBC_2.0",
len = -1208210120}, maddr_val = {s = 0xb7fc2d28 "4-ü·", len = -1209571716}, method_val = {s = 0xbfd30002 "", len = -1208147367}, lr_val = {
s = 0x804f9a4 "libc.so.6", len = -1208210124}, r2_val = {s = 0xb7fdeff4 "(¯\001", len = -1076678304}}
u = <value optimized out>
port = <value optimized out>
cmatch = <value optimized out>
aitem = <value optimized out>
adefault = <value optimized out>
spec = <value optimized out>
model = <value optimized out>
val = {rs = {s = 0x81b65b0 "e", len = -1076678136}, ri = 134562257, flags = 135986032}
name_s = {s = 0x0, len = 0}
__FUNCTION__ = "do_action"
#12 0x080541d1 in run_action_list (a=0x81b0460, msg=0x81b65b0) at action.c:139
ret = 1
t = (struct action *) 0x81b06c0
__FUNCTION__ = "run_action_list"
#13 0x08057962 in do_action (a=0x81b0a48, msg=0x81b65b0) at action.c:705
val_s = {s = 0x3b <Address 0x3b out of bounds>, len = 135992544}
aux = {s = 0xb594f0b8 "", len = 135971668}
ret = <value optimized out>
v = 1
to = <value optimized out>
p = <value optimized out>
tmp = <value optimized out>
new_uri = <value optimized out>
end = <value optimized out>
crt = <value optimized out>
len = <value optimized out>
user = <value optimized out>
uri = {user = {s = 0xb7bbe1ba "\205À\017\205µ\004", len = 135990768}, passwd = {s = 0xbfd33488 "È5Ó¿°e\033\bn\001", len = 1}, host = {
s = 0x81affb0 "\001", len = 136013232}, port = {s = 0x4 <Address 0x4 out of bounds>, len = -1076677320}, params = {
s = 0x80a891c "\211Æë \213\025\204¯\026\b\203:þ}\a¾ÿÿÿÿë\216¡\210¯\026\b\205À\017\204\231\a", len = 135987080}, headers = {s = 0x81b65b0 "e", len = 0},
port_no = 0, proto = 28783, type = 1769172581, transport = {s = 0x14007370 "", len = -160557575}, ttl = {
s = 0xb1cd523c <Address 0xb1cd523c out of bounds>, len = 435238159}, user_param = {s = 0x81b14a8 "(", len = 136017976}, maddr = {
s = 0x8187383 "branch=z9hG4bK6d12.4b27a982.0\r\nTo: sip:c3-3@10.6.2.246\r\nFrom: sip:s3-2@10.6.2.246;tag=dfbc96f94531d424a28aef4868a4e910-9015\r\nCSeq: 10 SUBSCRIBE\r\nCall-ID: 3fbef6c8-11074@10.6.2.246\r\nContent-Length: 0\r\n"..., len = 3}, method = {s = 0x0, len = -1076676920}, lr = {
s = 0x810500e "\211\205\214þÿÿ\205À\017\204*%", len = 135955072}, r2 = {s = 0x20 <Address 0x20 out of bounds>, len = -1076677240}, transport_val = {
s = 0xb7ece4b4 "\211Â\213\205\fÿÿÿ9\2050ÿÿÿt\t\213\205(ÿÿÿÆ", len = -1076677476}, ttl_val = {s = 0xb7ba0b46 "%c%d@%.*s", len = -1076677176},
user_param_val = {s = 0x81b65b0 "e", len = 366}, maddr_val = {s = 0x81ac338 "\001", len = 135971952}, method_val = {
s = 0x13 <Address 0x13 out of bounds>, len = 135820194}, lr_val = {
s = 0x81873a1 "\nTo: sip:c3-3@10.6.2.246\r\nFrom: sip:s3-2@10.6.2.246;tag=dfbc96f94531d424a28aef4868a4e910-9015\r\nCSeq: 10 SUBSCRIBE\r\nCall-ID: 3fbef6c8-11074@10.6.2.246\r\nContent-Length: 0\r\nUser-Agent: OpenSIPS (1.5.0dev"..., len = -1076677256}, r2_val = {s = 0x80fa6d9 "\211\205|ÿÿÿ\205À\017\2045\n",
len = 135955072}}
next_hop = {user = {s = 0x2 <Address 0x2 out of bounds>, len = -1076677720}, passwd = {s = 0xb79bb5f8 "\201Ã\204\233\001", len = -1076677744},
host = {s = 0x81ac41c "AF71@s;s+1+13a0002+219759be;97b57f2144c425bc44f2e7a21eb22549-087c", len = 2048}, port = {s = 0x328 <Address 0x328 out of bounds>,
len = -1244080557}, params = {s = 0x737a1164 <Address 0x737a1164 out of bounds>, len = -1244080557}, headers = {s = 0xb5d8d64f ".246[ÖØµ\023",
len = -1244080534}, port_no = 434, proto = 0, type = 3050886766, transport = {s = 0xb79d517c "\024à\001", len = -1248530248}, ttl = {s = 0xb594b000 "",
len = -1076677064}, user_param = {s = 0xb79cf901 "\213³\210ÿÿÿ\213\026Æ\002", len = -1248546816}, maddr = {
s = 0xb5cff788 "sip:192.168.166.150:50658ip:c3-80", len = -1}, method = {s = 0x0, len = 135989168}, lr = {s = 0x81b07b6 "", len = -1076677640}, r2 = {
---Type <return> to continue, or q <return> to quit---
s = 0x281b3688 "", len = 672871984}, transport_val = {s = 0x81b0f90 "\n", len = 1024}, ttl_val = {s = 0xa <Address 0xa out of bounds>,
len = 892809265}, user_param_val = {s = 0x281c8ca0 "8\215\034(0\215\034(", len = 1}, maddr_val = {s = 0xb7e5b490 "TÃ", len = 0}, method_val = {
s = 0x800 <Address 0x800 out of bounds>, len = 1024}, lr_val = {s = 0xb7bc6394 "¨¢", len = 0}, r2_val = {s = 0x81b07b6 "", len = -1076677480}}
u = <value optimized out>
port = <value optimized out>
cmatch = <value optimized out>
aitem = <value optimized out>
adefault = <value optimized out>
spec = <value optimized out>
model = <value optimized out>
val = {rs = {s = 0x18 <Address 0x18 out of bounds>, len = -1244661709}, ri = -1244661686, flags = 1}
name_s = {s = 0x73796d2f <Address 0x73796d2f out of bounds>, len = 795110513}
__FUNCTION__ = "do_action"
#14 0x080541d1 in run_action_list (a=0x81b0a48, msg=0x81b65b0) at action.c:139
ret = 1
t = (struct action *) 0x81b0a48
__FUNCTION__ = "run_action_list"
#15 0x08058580 in do_action (a=0x81b0ab0, msg=0x81b65b0) at action.c:711
res = <value optimized out>
avp_name = {n = 0, s = {s = 0x0, len = 2}}
avp_type = <value optimized out>
val_s = {s = 0x3 <Address 0x3 out of bounds>, len = -1076676632}
aux = {s = 0x0, len = 135971640}
ret = <value optimized out>
v = 0
to = <value optimized out>
p = <value optimized out>
tmp = <value optimized out>
new_uri = <value optimized out>
end = <value optimized out>
crt = <value optimized out>
len = <value optimized out>
user = <value optimized out>
uri = {user = {s = 0xb7b7b4c0 "\203Ä\024[]ÃU\211åVS\203ì\020èT\210þÿ\201Ã\031Î\002", len = 135820140}, passwd = {
s = 0x1 <Address 0x1 out of bounds>, len = 0}, host = {s = 0x81b7728 "", len = 136013232}, port = {s = 0xb5db0d08 " -Ûµ", len = -1076676600}, params = {
s = 0xb7b9d06f "\213»èþÿÿÇ\a", len = 136013232}, headers = {s = 0x81b65b0 "e", len = 0}, port_no = 200, proto = 0, type = 3218290672, transport = {
s = 0x81ac338 "\001", len = -1076676696}, ttl = {
s = 0x811bc81 "\213MÀ\211A\024\205À\017\204¬ûÿÿü\211Ú\203û\003v$¨\001t\b\211Ǥ\211ø\215Sÿ¨\002t\t\211Çf¥\211ø\203ê\002\211ÑÁé\002\211Çó¥\211øöÂ\002t\006\211Çf¥\211ø\200â\001t\003\211Ǥ\213UÀ\213r\024Æ\004\036", len = 0}, user_param = {s = 0x2e <Address 0x2e out of bounds>, len = 1}, maddr = {
s = 0x534 <Address 0x534 out of bounds>, len = -1209610080}, method = {s = 0xb7fc2d70 "", len = 134544382}, lr = {s = 0xb7e7aa8c "", len = 134530928},
r2 = {
s = 0x81873a2 "To: sip:c3-3@10.6.2.246\r\nFrom: sip:s3-2@10.6.2.246;tag=dfbc96f94531d424a28aef4868a4e910-9015\r\nCSeq: 10 SUBSCRIBE\r\nCall-ID: 3fbef6c8-11074@10.6.2.246\r\nContent-Length: 0\r\nUser-Agent: OpenSIPS (1.5.0dev5"..., len = 135820499}, transport_val = {
s = 0xbfd33834 "°e\033\bH8Ó¿\b\r\033\b°e\033\b", len = -1208092640}, ttl_val = {s = 0x81b13e0 "\030", len = 135993216}, user_param_val = {
s = 0x81b65b0 "e", len = 135993216}, maddr_val = {s = 0x81b17a4 "\003", len = -1076676600}, method_val = {
s = 0x80e6737 "\211EÐ\213>\215G\001\203ø(vB¡\204¯\026\b\2038þ\017\215Ð\a", len = 135820135}, lr_val = {s = 0x81874d3 "", len = 135993216}, r2_val = {
s = 0x8187349 " sip:c3-3@10.6.2.246 SIP/2.0\r\nVia: SIP/2.0/UDP 10.6.2.246;branch=z9hG4bK6d12.4b27a982.0\r\nTo: sip:c3-3@10.6.2.246\r\nFrom: sip:s3-2@10.6.2.246;tag=dfbc96f94531d424a28aef4868a4e910-9015\r\nCSeq: 10 SUBSCRIB"..., len = 83}}
next_hop = {user = {s = 0x8176f65 "", len = 135753569}, passwd = {s = 0x0, len = -1212513556}, host = {s = 0x0, len = -1076676872}, port = {
s = 0xb7b8219d "1Ò\003E¸\023U¼\211EÀ\211UÄ\213M\b\211A\f\211Q\020\213u\fÁæ\006\213U´\001ò\211Q\024ÇA\030", len = -1076676976}, params = {
s = 0x8197344 "", len = 232}, headers = {
s = 0x8187389 "=z9hG4bK6d12.4b27a982.0\r\nTo: sip:c3-3@10.6.2.246\r\nFrom: sip:s3-2@10.6.2.246;tag=dfbc96f94531d424a28aef4868a4e910-9015\r\nCSeq: 10 SUBSCRIBE\r\nCall-ID: 3fbef6c8-11074@10.6.2.246\r\nContent-Length: 0\r\nUser-A"..., len = 0}, port_no = 34097, proto = 0, type = 135820323, transport = {
s = 0x1 <Address 0x1 out of bounds>, len = 135753566}, ttl = {s = 0x7 <Address 0x7 out of bounds>, len = 11}, user_param = {
s = 0x5050000 <Address 0x5050000 out of bounds>, len = 61}, maddr = {s = 0x81b65b0 "e", len = -1076676840}, method = {s = 0xb5ad1f98 " \037¹µ",
len = 5}, lr = {s = 0x0, len = 136017704}, r2 = {s = 0x81b65b0 "e", len = 135820499}, transport_val = {s = 0x81b77a0 "", len = -1076676728}, ttl_val = {
---Type <return> to continue, or q <return> to quit---
s = 0x80e5b05 "\211EÜ\213]\204\203;ÿ\017\204l\a", len = 135820140}, user_param_val = {s = 0x81874d3 "", len = 136017704}, maddr_val = {
s = 0xb7b89462 "¸\001", len = -1}, method_val = {s = 0xbfd30002 "", len = -1208147367}, lr_val = {s = 0xb7ba82ec "Ì \004", len = 200}, r2_val = {
s = 0xb5db0d08 " -Ûµ", len = -1076676840}}
u = <value optimized out>
port = <value optimized out>
cmatch = <value optimized out>
aitem = <value optimized out>
adefault = <value optimized out>
spec = <value optimized out>
model = <value optimized out>
val = {rs = {
s = 0x818735e "SIP/2.0\r\nVia: SIP/2.0/UDP 10.6.2.246;branch=z9hG4bK6d12.4b27a982.0\r\nTo: sip:c3-3@10.6.2.246\r\nFrom: sip:s3-2@10.6.2.246;tag=dfbc96f94531d424a28aef4868a4e910-9015\r\nCSeq: 10 SUBSCRIBE\r\nCall-ID: 3fbef6c8-"..., len = 2}, ri = 0, flags = 0}
name_s = {s = 0x81b1780 "4", len = 5}
__FUNCTION__ = "do_action"
#16 0x080541d1 in run_action_list (a=0x81af2a0, msg=0x81b65b0) at action.c:139
ret = 1
t = (struct action *) 0x81b0ab0
__FUNCTION__ = "run_action_list"
#17 0x08058c88 in run_top_route (a=0x81af2a0, msg=0x81b65b0) at action.c:119
bk_action_flags = 0
bk_rec_lev = 0
#18 0x080983df in receive_msg (
buf=0x8187340 "SUBSCRIBE sip:c3-3@10.6.2.246 SIP/2.0\r\nVia: SIP/2.0/UDP 10.6.2.246;branch=z9hG4bK6d12.4b27a982.0\r\nTo: sip:c3-3@10.6.2.246\r\nFrom: sip:s3-2@10.6.2.246;tag=dfbc96f94531d424a28aef4868a4e910-9015\r\nCSeq: 10"..., len=403, rcv_info=0xbfd338f4) at receive.c:165
msg = <value optimized out>
__FUNCTION__ = "receive_msg"
#19 0x080dd956 in udp_rcv_loop () at udp_server.c:449
len = 403
tmp = <value optimized out>
from = <value optimized out>
fromlen = 16
ri = {src_ip = {af = 2, len = 4, u = {addrl = {4127327754, 3048791508, 128, 135548222}, addr32 = {4127327754, 3048791508, 128, 135548222},
addr16 = {1546, 62978, 56788, 46520, 128, 0, 19774, 2068}, addr = "\n\006\002öÔݸµ\200\000\000\000>M\024\b"}}, dst_ip = {af = 2, len = 4, u = {
addrl = {4127327754, 0, 0, 0}, addr32 = {4127327754, 0, 0, 0}, addr16 = {1546, 62978, 0, 0, 0, 0, 0, 0},
addr = "\n\006\002ö", '\0' <repeats 11 times>}}, src_port = 5060, dst_port = 5060, proto = 1, proto_reserved1 = 0, proto_reserved2 = 0, src_su = {
s = {sa_family = 2, sa_data = "\023Ä\n\006\002ö\000\000\000\000\000\000\000"}, sin = {sin_family = 2, sin_port = 50195, sin_addr = {
s_addr = 4127327754}, sin_zero = "\000\000\000\000\000\000\000"}, sin6 = {sin6_family = 2, sin6_port = 50195, sin6_flowinfo = 4127327754,
sin6_addr = {in6_u = {u6_addr8 = '\0' <repeats 15 times>, u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, u6_addr32 = {0, 0, 0, 0}}}, sin6_scope_id = 0}},
bind_address = 0x81ac810}
buf = "SUBSCRIBE sip:c3-3@10.6.2.246 SIP/2.0\r\nVia: SIP/2.0/UDP 10.6.2.246;branch=z9hG4bK6d12.4b27a982.0\r\nTo: sip:c3-3@10.6.2.246\r\nFrom: sip:s3-2@10.6.2.246;tag=dfbc96f94531d424a28aef4868a4e910-9015\r\nCSeq: 10"...
__FUNCTION__ = "udp_rcv_loop"
#20 0x0807056c in main (argc=1, argv=0xbfd33a94) at main.c:778
cfg_log_stderr = 0
cfg_stream = (FILE *) 0x281a9008
c = <value optimized out>
r = <value optimized out>
tmp = 0x816a394 "°¢\026\bhöý·@lý·"
tmp_len = <value optimized out>
port = <value optimized out>
proto = <value optimized out>
ret = <value optimized out>
seed = 1514267192
rfd = 4
__FUNCTION__ = "main"
(gdb)
(gdb)
Regards
rmnathan
Hi Rmnathan,
I think that this error is due to prepare statements. I have taken them out from presence module some time ago. Can you please update and see if the segmentation fault happens with the latest version?
regards,
Anca
Hi Anca,
sorry for the late reply.
Now i got some other crash
Crash 1:
======
Program terminated with signal 11, Segmentation fault.
#0 0xb7ada382 in shm_dup_cbparam (subs=0xbfe15ca4) at notify.c:1854
1854 memset(cb_param, 0, size);
(gdb) bt
#0 0xb7ada382 in shm_dup_cbparam (subs=0xbfe15ca4) at notify.c:1854
#1 0xb7ae1c42 in send_notify_request (subs=0xbfe15ca4, watcher_subs=0x0, n_body=0x0, force_null_body=0) at notify.c:1689
#2 0xb7ae2dad in notify (subs=0xbfe15ca4, watcher_subs=0x0, n_body=0x0, force_null_body=0) at notify.c:1793
#3 0xb7af6c6a in update_subscription (msg=0x81b5818, subs=0xbfe15ca4, init_req=1) at subscribe.c:420
#4 0xb7afdcf8 in handle_subscribe (msg=0x81b5818, str1=0x0, str2=0x0) at subscribe.c:699
#5 0x080557fe in do_action (a=0x81b0d58, msg=0x81b5818) at action.c:962
#6 0x080541d1 in run_action_list (a=0x81b0d58, msg=0x81b5818) at action.c:139
#7 0x080578e2 in do_action (a=0x81b0dc0, msg=0x81b5818) at action.c:706
#8 0x080541d1 in run_action_list (a=0x81b0b60, msg=0x81b5818) at action.c:139
#9 0x080578e2 in do_action (a=0x81b1148, msg=0x81b5818) at action.c:706
#10 0x080541d1 in run_action_list (a=0x81b1148, msg=0x81b5818) at action.c:139
#11 0x08058478 in do_action (a=0x81b11b0, msg=0x81b5818) at action.c:712
#12 0x080541d1 in run_action_list (a=0x81af9a0, msg=0x81b5818) at action.c:139
#13 0x08058cba in run_top_route (a=0x81af9a0, msg=0x81b5818) at action.c:119
#14 0x080984df in receive_msg (
buf=0x8187a40 "SUBSCRIBE sip:s5-112@10.6.2.246 SIP/2.0\r\nVia: SIP/2.0/UDP 10.6.2.246;branch=z9hG4bKa34c.973afb17.0\r\nTo: sip:s5-112@10.6.2.246\r\nFrom: <sip:c5-109@10.6.2.246>;tag=dfbc96f94531d424a28aef4868a4e910-8828\r\n"..., len=411, rcv_info=0xbfe169e4) at receive.c:165
#15 0x080ddc86 in udp_rcv_loop () at udp_server.c:449
#16 0x0807061c in main (argc=1, argv=0xbfe16b84) at main.c:779
Crash 2
Core was generated by `/usr/local/sbin/opensips -m 1500'.
Program terminated with signal 11, Segmentation fault.
#0 0xb7c3397d in mysql_stmt_fetch () from /usr/lib/libmysqlclient.so.15
(gdb) bt
#0 0xb7c3397d in mysql_stmt_fetch () from /usr/lib/libmysqlclient.so.15
#1 0xb7de85eb in db_mysql_convert_result (_h=0x81b1508, _r=0x81b1b20) at res.c:161
#2 0xb7de301a in db_mysql_store_result (_h=0x81b1508, _r=0xbfb156c8) at dbase.c:598
#3 0xb7de6da0 in db_mysql_query (_h=0x81b1508, _k=0xbfb156b8, _op=0xbfb156b0, _v=0xbfb15658, _c=0xbfb15680, _n=1, _nc=4, _o=0xb7ae2780, _r=0xbfb156c8)
at dbase.c:679
#4 0xb7acb84b in msg_presentity_clean (ticks=104, param=0x0) at publish.c:102
#5 0x080cf895 in start_timer_processes () at timer.c:266
#6 0x0807033c in main (argc=3, argv=0xbfb15864) at main.c:818
please see the attached file for bt full .
Thanks
Rmanathan
bt full for crash 1
bt full for crash 2