[Kamailio-Devel] [ openser-Bugs-2790184 ] coredump when calling 'registered("location")'
SourceForge.net
noreply at sourceforge.net
Tue May 12 12:20:48 CEST 2009
Bugs item #2790184, was opened at 2009-05-11 16:28
Message generated for change (Comment added) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=2790184&group_id=139143
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: ver 1.5.x
Status: Open
Resolution: None
Priority: 4
Private: No
Submitted By: Iñaki Baz Castillo (ibc_sf)
Assigned to: Nobody/Anonymous (nobody)
Summary: coredump when calling 'registered("location")'
Initial Comment:
kamailio 1.5 (rev 5834).
I call 'is_registered("location")' and it crashes generating the following coredump:
-------------------------------------------------------------------------------------
(gdb) bt full
#0 0x00002ad8afff9345 in registered (_m=<value optimized out>, _t=0x2ad8b13cf418 "��<��*", _s=<value optimized out>) at lookup.c:212
match_callid = {n = 16, s = {s = 0x3000000010 <Address 0x3000000010 out of bounds>, len = -63987744}}
uri = {
s = 0x5dc9a7 "sip:30000 at demosip1.demotelecom.es SIP/2.0\r\nVia: SIP/2.0/UDP 10.134.16.124:6060;rport;branch=z9hG4bKzaikoxay\r\nMax-Forwards: 69\r\nProxy-Authorization: Digest username=\"30000\",realm=\"demosip1.demotelecom."..., len = 33}
aor = {s = 0x2ad8b0105260 "30000", len = 5}
r = (urecord_t *) 0x2ad8b13d48d8
ptr = (ucontact_t *) 0x2ad8b13d4940
res = <value optimized out>
__FUNCTION__ = "registered"
#1 0x000000000040d024 in do_action (a=dwarf2_read_address: Corrupted DWARF expression.
) at action.c:874
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>
user = <value optimized out>
uri = {user = {s = 0x3000000020 <Address 0x3000000020 out of bounds>, len = -63987744}, passwd = {s = 0x7ffffc2f9f20 "���", len = 107}, host = {
s = 0xa2eda0 "<191>May 11 18:19:41 /usr/sbin/kamailio[31476]: DBG:core:db_free_result: freeing result set at 0x63b890\n", len = 1242058781}, port = {
s = 0x4bb304 "db_free_result", len = 6535312}, params = {s = 0x20 <Address 0x20 out of bounds>, len = 6534784}, headers = {s = 0x10 <Address 0x10 out of bounds>, len = 16},
port_no = 0, proto = 0, type = ERROR_URI_T, transport = {s = 0x48aa56 "I�\006", len = 24}, ttl = {s = 0x0, len = 6534712}, user_param = {s = 0x2ad8aed150e0 "", len = 10570360},
maddr = {s = 0x2ad8aed150e0 "", len = 10570224}, method = {s = 0x639de0 "\001", len = 16}, lr = {s = 0x639de0 "\001", len = 6528480}, r2 = {s = 0x2ad8aeb481ee "\203=�\003\035",
len = 0}, transport_val = {s = 0x2ad8aed150e0 "", len = 6383816}, ttl_val = {s = 0x639de0 "\001", len = 16}, user_param_val = {s = 0x639de0 "\001", len = 6528480},
maddr_val = {s = 0x2ad8aeb481ee "\203=�\003\035", len = 6527664}, method_val = {s = 0x2ad8aee25ed3 "H\213C\bH�@\030", len = -63987512}, lr_val = {
---Type <return> to continue, or q <return> to quit---
s = 0x2ad8aee28a30 "H\211l$�L\211d$�H\211�L\211l$�L\211t$�I\211�H\211\\$�H\203�8I\211�I\211������\205�\211�~mA\213\004$\203�\004\017\204\200", len = 6528480}, r2_val = {
s = 0x639de0 "\001", len = 16}}
next_hop = {user = {s = 0x4bb280 "DBG:core:%s: freeing result set at %p\n", len = -1362013984}, passwd = {s = 0xa14ac0 "XQѮ�*", len = 0}, host = {s = 0x7ffffc2f9f00 " ",
len = 21}, port = {s = 0x4bb280 "DBG:core:%s: freeing result set at %p\n", len = -1363901970}, params = {s = 0x15 <Address 0x15 out of bounds>, len = -1363534724}, headers = {
s = 0x1300000029 <Address 0x1300000029 out of bounds>, len = 18}, port_no = 4, proto = 0, type = 109, transport = {s = 0x8200000001 <Address 0x8200000001 out of bounds>,
len = 1}, ttl = {s = 0x1c20 <Address 0x1c20 out of bounds>, len = 10503632}, user_param = {s = 0x66 <Address 0x66 out of bounds>, len = 10677664}, maddr = {
s = 0x4a08501d <Address 0x4a08501d out of bounds>, len = -1337826488}, method = {s = 0x10 <Address 0x10 out of bounds>, len = 6535376}, lr = {s = 0x0, len = 32}, r2 = {
s = 0x63b690 "", len = 10677664}, transport_val = {s = 0x0, len = 32}, ttl_val = {s = 0x7ffffc2f9f70 "\030", len = -63988048}, user_param_val = {
s = 0x69 <Address 0x69 out of bounds>, len = 10677664}, maddr_val = {s = 0x4a08501d <Address 0x4a08501d out of bounds>, len = 4961392}, method_val = {
s = 0x10 <Address 0x10 out of bounds>, len = 6535312}, lr_val = {s = 0x1 <Address 0x1 out of bounds>, len = 6534800}, r2_val = {s = 0x639de0 "\001", len = 6528480}}
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 = 0x400000001 <Address 0x400000001 out of bounds>, len = 0}, ri = -63987512, flags = 32767}
__FUNCTION__ = "do_action"
#2 0x000000000040eea3 in run_action_list (a=<value optimized out>, msg=0x639de0) at action.c:145
ret = -1
t = (struct action *) 0x616de0
__FUNCTION__ = "run_action_list"
#3 0x0000000000440ae5 in eval_expr (e=0x616eb0, msg=0x639de0, val=0x9a0) at route.c:1171
ret = <value optimized out>
rec_lev = 2
__FUNCTION__ = "eval_expr"
#4 0x0000000000440560 in eval_expr (e=0x616ef8, msg=0x639de0, val=0x0) at route.c:1488
-------------------------------------------------------------------------------------
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2009-05-12 10:20
Message:
The registered("location") is part of my regular test suite, i could
observe the crash yet. But indeed there seems to be a problem in the return
value of this function, i do some more tests soon.
Seems that the match_callid parameter is invalid in the trace, do you've
set one?
modparam("reg_callid_avp"..)
----------------------------------------------------------------------
Comment By: Iñaki Baz Castillo (ibc_sf)
Date: 2009-05-11 17:29
Message:
Sorry, when I say "is_registered()" I mean "registered()".
----------------------------------------------------------------------
Comment By: Iñaki Baz Castillo (ibc_sf)
Date: 2009-05-11 17:17
Message:
It's not just the only problem. When it doesn crash, "is_registered()"
returns 'false' most of the times, even if the user *is* registered (in
memory and DB table, and tested with all "usrloc" db_modes).
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=2790184&group_id=139143
More information about the Devel
mailing list