[SR-Users] Daily crash of kamailio 4.0.5

Tristan Mahé t.mahe at b-and-c.net
Thu Jan 16 00:54:46 CET 2014


Hi guys,

I'm having some crashs on a simple REGISTRAR, in st_delete_ucontact.

It happens daily, mostly when proxy is loaded. Saw that someone got the
same problem via this pastebin: http://pastebin.com/GsMtav7A.

Does someone got an idea of why it's failing or a workaround or a fix to
share ?

Here is the backtrace for us:
#0  0x00007fb6d7178e3c in st_delete_ucontact (_c=0xf0) at ucontact.c:358
#1  0x00007fb6d718f4a1 in delete_ucontact (_r=0x7fb69c9a1ea0, _c=0xf0)
at urecord.c:509
#2  0x00007fb6d6d49b6a in update_contacts (_m=0x7fb6d8e1ab70,
_r=0x7fb69c9a1ea0, _mode=1) at save.c:700
#3  0x00007fb6d6d4a4c3 in add_contacts (_m=0x7fb6d8e1ab70,
_d=0x7fb6908c2f10, _a=0x7fff02a69380, _mode=1) at save.c:803
#4  0x00007fb6d6d4a9f2 in save (_m=0x7fb6d8e1ab70, _d=0x7fb6908c2f10,
_cflags=4, _uri=0x0) at save.c:879
#5  0x00007fb6d6d3e41d in w_save2 (_m=0x7fb6d8e1ab70, _d=0x7fb6908c2f10
"\240.\214\220\266\177", _cflags=0x4 <Address 0x4 out of bounds>) at
reg_mod.c:442
#6  0x000000000041b80b in do_action (h=0x7fff02a699a0, a=0x7fb6d8de2a30,
msg=0x7fb6d8e1ab70) at action.c:1086
#7  0x0000000000423f62 in run_actions (h=0x7fff02a699a0,
a=0x7fb6d8de2a30, msg=0x7fb6d8e1ab70) at action.c:1573
#8  0x0000000000424639 in run_actions_safe (h=0x7fff02a6ae90,
a=0x7fb6d8de2a30, msg=0x7fb6d8e1ab70) at action.c:1637
#9  0x00000000004bef7d in rval_get_int (h=0x7fff02a6ae90,
msg=0x7fb6d8e1ab70, i=0x7fff02a69da8, rv=0x7fb6d8de37a8, cache=0x0) at
rvalue.c:920
#10 0x00000000004c1b85 in rval_expr_eval_int (h=0x7fff02a6ae90,
msg=0x7fb6d8e1ab70, res=0x7fff02a69da8, rve=0x7fb6d8de37a0) at rvalue.c:1914
#11 0x00000000004c1d6c in rval_expr_eval_int (h=0x7fff02a6ae90,
msg=0x7fb6d8e1ab70, res=0x7fff02a6a200, rve=0x7fb6d8de30c0) at rvalue.c:1922
#12 0x000000000041b422 in do_action (h=0x7fff02a6ae90, a=0x7fb6d8df3700,
msg=0x7fb6d8e1ab70) at action.c:1050
#13 0x0000000000423f62 in run_actions (h=0x7fff02a6ae90,
a=0x7fb6d8de27f0, msg=0x7fb6d8e1ab70) at action.c:1573
#14 0x000000000041b661 in do_action (h=0x7fff02a6ae90, a=0x7fb6d8df3900,
msg=0x7fb6d8e1ab70) at action.c:1065
#15 0x0000000000423f62 in run_actions (h=0x7fff02a6ae90,
a=0x7fb6d8df3900, msg=0x7fb6d8e1ab70) at action.c:1573
#16 0x0000000000419851 in do_action (h=0x7fff02a6ae90, a=0x7fb6d8dc0e70,
msg=0x7fb6d8e1ab70) at action.c:690
#17 0x0000000000423f62 in run_actions (h=0x7fff02a6ae90,
a=0x7fb6d8db9bf0, msg=0x7fb6d8e1ab70) at action.c:1573
#18 0x0000000000424701 in run_top_route (a=0x7fb6d8db9bf0,
msg=0x7fb6d8e1ab70, c=0x0) at action.c:1658
#19 0x00000000004a0018 in receive_msg (
    buf=0x9055c0 "REGISTER sip:[ADOMAIN] SIP/2.0\r\nVia: SIP/2.0/UDP
[ANIP];branch=z9hG4bKcydzigwkX;i=20be2b3\r\nVia: SIP/2.0/TLS
[ANIP]:40080;received=[ANIP];rport=50419;branch=z9hG4bK793894041\r\nFr"...,
    len=613, rcv_info=0x7fff02a6b140) at receive.c:211
#20 0x0000000000530665 in udp_rcv_loop () at udp_server.c:557
#21 0x0000000000469be4 in main_loop () at main.c:1638
#22 0x000000000046ca85 in main (argc=13, argv=0x7fff02a6b478) at main.c:2566

And here is the simple part of config that could call this method:

route[REGISTRAR] {
	if (is_method("REGISTER")) {		
		if (!save("location","0x04")) {
			sl_reply_error();
		} else {
			# DOSOMESTUFF like replicate to a backup proxy
		}
		exit;
	}
}

If you need more info, don't hesitate to ask !!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0x78672493.asc
Type: application/pgp-keys
Size: 1735 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140116/3f82ef30/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 555 bytes
Desc: OpenPGP digital signature
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140116/3f82ef30/attachment.pgp>


More information about the sr-users mailing list