[OpenSIPS-Devel] [ opensips-Bugs-2059871 ] Core dump on get_ha1 in openser 1.3

SourceForge.net noreply at sourceforge.net
Sun Sep 27 11:10:27 CEST 2009


Bugs item #2059871, was opened at 2008-08-19 17:33
Message generated for change (Settings changed) made by bogdan_iancu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2059871&group_id=232389

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: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
Summary: Core dump on get_ha1 in openser 1.3

Initial Comment:
I can be reached at rrevels at bsltech.net

This does not happen every call.  It happens very infrequently.  It is also not limited to INVITE.  Sometimes it happens on REGISTER requests.

Backtrace from core dump:

Core was generated by `/usr/local/openser/sbin/openser -f /usr/local/openser/etc/openser/openser.cfg -'.
Program terminated with signal 11, Segmentation fault.
#0  0x0020d5fd in get_ha1 (_username=0x818abac, _domain=0xbff948b8, _table=0x818a860 "subscriber", _ha1=0xbff947b8 "", res=0xbff948c4) at authorize.c:107
107		if (RES_ROW_N(*res) == 0) {
(gdb) bt
#0  0x0020d5fd in get_ha1 (_username=0x818abac, _domain=0xbff948b8, _table=0x818a860 "subscriber", _ha1=0xbff947b8 "", res=0xbff948c4) at authorize.c:107
#1  0x0020dc82 in proxy_authorize (_m=0x81a60f0, _realm=0x8190028 "ا\030\b", _table=0x818a860 "subscriber") at authorize.c:236
#2  0x080521ec in do_action (a=0x818a8e8, msg=0x81a60f0) at action.c:816
#3  0x0805494b in run_action_list (a=0x818a8e8, msg=0x81a60f0) at action.c:132
#4  0x080a3a6d in eval_expr (e=0x818a940, msg=0x81a60f0, val=0xbff94cc8) at route.c:1069
#5  0x08050cf7 in do_assign (msg=0x81a60f0, a=0x818a968) at action.c:200
#6  0x080513cb in do_action (a=0x818a968, msg=0x81a60f0) at action.c:921
#7  0x0805494b in run_action_list (a=0x818a968, msg=0x81a60f0) at action.c:132
#8  0x0805320e in do_action (a=0x8183190, msg=0x81a60f0) at action.c:112
#9  0x0805494b in run_action_list (a=0x8183190, msg=0x81a60f0) at action.c:132
#10 0x08053fc4 in do_action (a=0x8183750, msg=0x81a60f0) at action.c:695
#11 0x0805494b in run_action_list (a=0x81824f8, msg=0x81a60f0) at action.c:132
#12 0x080532a6 in do_action (a=0x81837a8, msg=0x81a60f0) at action.c:689
#13 0x0805494b in run_action_list (a=0x81822b8, msg=0x81a60f0) at action.c:132
#14 0x08053e18 in do_action (a=0x8183858, msg=0x81a60f0) at action.c:794
#15 0x0805494b in run_action_list (a=0x817fdd0, msg=0x81a60f0) at action.c:132
#16 0x08054cf2 in run_top_route (a=0x817fdd0, msg=0x81a60f0) at action.c:112
#17 0x08094175 in receive_msg (buf=0x8165020 "INVITE sip:9192971029 at 216.xx.xx.xxx:5060;user=phone SIP/2.0\r\nVia: SIP/2.0/UDP 216.xx.xx.xxx:49408;branch=z9hG4bKa6e6659ABF68180\r\nFrom: \"Richard Revels\" <sip:+19194397461 at 216.xx.xx.xxx>;tag=96749FE7-24"..., len=1216, 
    rcv_info=0xbff95b34) at receive.c:156
#18 0x080d3f11 in udp_rcv_loop () at udp_server.c:438
#19 0x0806c5b6 in main (argc=7, argv=0xbff95d24) at main.c:834

Dial Plan:

route[15]
{
	$avp(i:120) :=  proxy_authorize("$rd","subscriber");
	switch ( $avp(i:120) )
	{
		case -5:
			if (isflagset(1))
				xlog("L_INFO", "some generic error occurred in invite auth and no reply was sent out\n");
			return(-1);
			break;
		case -4:
			if (isflagset(1))
                        	xlog("L_INFO", "(no credentials) - credentials were not found in request\n");
			proxy_challenge("$rd", "1");
			return(0);
			break;
		case -3:
			if (isflagset(1))
				xlog("L_INFO", "(stale nonce) - stale nonce\n");
			proxy_challenge("", "1");  # Realm will be autogenerated
			return(0);
			break;
		case -2:
			if (isflagset(1))
				xlog("L_INFO", "(invalid password) - valid user, but wrong password\n");
			proxy_challenge("", "1");  # Realm will be autogenerated
			return(0);
			break;
		case -1:
			if (isflagset(1))
				xlog("L_INFO", " (invalid user) - authentication user does not exist.\n");
			proxy_challenge("", "1");  # Realm will be autogenerated
			return(0);
			break;
		case 1:
			# valid user found - do whatever and send call
			if (isflagset(1))
				xlog("L_INFO", "user authorized on invite: f-uri <$fu>\n");
			consume_credentials();
			#Next section checks from domain against source ip and rejects call if not the same
			#commented out due to polycom phone handling of from header.  Need to work with some more
			#if( !$fd==$si )
			#{
			#	sl_send_reply( "403", "From header not matching src $fd -- $si" );
			#	return(-1);
			#}
			return(1);
			break;
		default:
                        if (isflagset(1))
                                xlog("L_INFO", " (check subscriber) - got a status code not known - $avp(i:120)\n");
			return(-1);
	}
}


Call Trace:

U 216.xx.xx.xxx:49408 -> 216.xx.xx.xxx:5060
INVITE sip:9192971029 at 216.xx.xx.xxx:5060;user=phone SIP/2.0.
Via: SIP/2.0/UDP 216.xx.xx.xxx:49408;branch=z9hG4bKc34d5ab8F9C49BF3.
From: "Richard Revels" <sip:+19194397461 at 216.xx.xx.xxx>;tag=96749FE7-24ADBEF6.
To: <sip:9192971029 at 216.xx.xx.xxx;user=phone>.
CSeq: 1 INVITE.
Call-ID: 4746812-1bb1df45-31fd15fc at 10.1.50.113.
Contact: <sip:+19194397461 at 216.xx.xx.xxx:49408>.
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, INFO, MESSAGE, SUBSCRIBE, NOTIFY, PRACK, UPDATE, REFER.
User-Agent: PolycomSoundPointIP-SPIP_650-UA/3.0.0.0258.
Supported: 100rel,replaces.
Allow-Events: talk,hold,conference.
Max-Forwards: 70.
Content-Type: application/sdp.
Content-Length: 276.
.
v=0.
o=- 1219064375 1219064375 IN IP4 216.xx.xx.xxx.
s=Polycom IP Phone.
c=IN IP4 216.xx.xx.xxx.
t=0 0.
m=audio 44086 RTP/AVP 9 0 8 18 101.
a=sendrecv.
a=rtpmap:9 G722/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=rtpmap:101 telephone-event/8000.


U 216.xx.xx.xxx:5060 -> 216.xx.xx.xxx:49408
SIP/2.0 407 Proxy Authentication Required.
Via: SIP/2.0/UDP 216.xx.xx.xxx:49408;branch=z9hG4bKc34d5ab8F9C49BF3.
From: "Richard Revels" <sip:+19194397461 at 216.xx.xx.xxx>;tag=96749FE7-24ADBEF6.
To: <sip:9192971029 at 216.xx.xx.xxx;user=phone>;tag=f788a50cbb9e4806448fafbd351142ba.b719.
CSeq: 1 INVITE.
Call-ID: 4746812-1bb1df45-31fd15fc at 10.1.50.113.
Proxy-Authenticate: Digest realm="216.xx.xx.xxx", nonce="48a9746c84fee2ff6224c7896341b546e1be648f", qop="auth".
Content-Length: 0.
.


U 216.xx.xx.xxx:49408 -> 216.xx.xx.xxx:5060
ACK sip:9192971029 at 216.xx.xx.xxx:5060 SIP/2.0.
Via: SIP/2.0/UDP 216.xx.xx.xxx:49408;branch=z9hG4bKc34d5ab8F9C49BF3.
From: "Richard Revels" <sip:+19194397461 at 216.xx.xx.xxx>;tag=96749FE7-24ADBEF6.
To: <sip:9192971029 at 216.xx.xx.xxx;user=phone>;tag=f788a50cbb9e4806448fafbd351142ba.b719.
CSeq: 1 ACK.
Call-ID: 4746812-1bb1df45-31fd15fc at 10.1.50.113.
Contact: <sip:+19194397461 at 216.xx.xx.xxx:49408>.
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, INFO, MESSAGE, SUBSCRIBE, NOTIFY, PRACK, UPDATE, REFER.
User-Agent: PolycomSoundPointIP-SPIP_650-UA/3.0.0.0258.
Max-Forwards: 70.
Content-Length: 0.
.


U 216.xx.xx.xxx:49408 -> 216.xx.xx.xxx:5060
INVITE sip:9192971029 at 216.xx.xx.xxx:5060;user=phone SIP/2.0.
Via: SIP/2.0/UDP 216.xx.xx.xxx:49408;branch=z9hG4bKa6e6659ABF68180.
From: "Richard Revels" <sip:+19194397461 at 216.xx.xx.xxx>;tag=96749FE7-24ADBEF6.
To: <sip:9192971029 at 216.xx.xx.xxx;user=phone>.
CSeq: 2 INVITE.
Call-ID: 4746812-1bb1df45-31fd15fc at 10.1.50.113.
Contact: <sip:+19194397461 at 216.xx.xx.xxx:49408>.
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, INFO, MESSAGE, SUBSCRIBE, NOTIFY, PRACK, UPDATE, REFER.
User-Agent: PolycomSoundPointIP-SPIP_650-UA/3.0.0.0258.
Supported: 100rel,replaces.
Allow-Events: talk,hold,conference.
Proxy-Authorization: Digest username="rrevels", realm="216.xx.xx.xxx", nonce="48a9746c84fee2ff6224c7896341b546e1be648f", qop=auth, cnonce="8fNYBDnuc8r6fmC", nc=00000001, uri="sip:9192971029 at 216.xx.xx.xxx:5060;user=phone", response="8425aad548d03b073fcf32a5c96afee0", algorithm=MD5.
Max-Forwards: 70.
Content-Type: application/sdp.
Content-Length: 276.
.
v=0.
o=- 1219064375 1219064375 IN IP4 216.xx.xx.xxx.
s=Polycom IP Phone.
c=IN IP4 216.xx.xx.xxx.
t=0 0.
m=audio 44086 RTP/AVP 9 0 8 18 101.
a=sendrecv.
a=rtpmap:9 G722/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=rtpmap:101 telephone-event/8000.


U 216.xx.xx.xxx:49408 -> 216.xx.xx.xxx:5060
INVITE sip:9192971029 at 216.xx.xx.xxx:5060;user=phone SIP/2.0.
Via: SIP/2.0/UDP 216.xx.xx.xxx:49408;branch=z9hG4bKa6e6659ABF68180.
From: "Richard Revels" <sip:+19194397461 at 216.xx.xx.xxx>;tag=96749FE7-24ADBEF6.
To: <sip:9192971029 at 216.xx.xx.xxx;user=phone>.
CSeq: 2 INVITE.
Call-ID: 4746812-1bb1df45-31fd15fc at 10.1.50.113.
Contact: <sip:+19194397461 at 216.xx.xx.xxx:49408>.
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, INFO, MESSAGE, SUBSCRIBE, NOTIFY, PRACK, UPDATE, REFER.
User-Agent: PolycomSoundPointIP-SPIP_650-UA/3.0.0.0258.
Supported: 100rel,replaces.
Allow-Events: talk,hold,conference.
Proxy-Authorization: Digest username="rrevels", realm="216.xx.xx.xxx", nonce="48a9746c84fee2ff6224c7896341b546e1be648f", qop=auth, cnonce="8fNYBDnuc8r6fmC", nc=00000001, uri="sip:9192971029 at 216.xx.xx.xxx:5060;user=phone", response="8425aad548d03b073fcf32a5c96afee0", algorithm=MD5.
Max-Forwards: 70.
Content-Type: application/sdp.
Content-Length: 276.
.
v=0.
o=- 1219064375 1219064375 IN IP4 216.xx.xx.xxx.
s=Polycom IP Phone.
c=IN IP4 216.xx.xx.xxx.
t=0 0.
m=audio 44086 RTP/AVP 9 0 8 18 101.
a=sendrecv.
a=rtpmap:9 G722/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=rtpmap:101 telephone-event/8000.


U 216.xx.xx.xxx:49408 -> 216.xx.xx.xxx:5060
INVITE sip:9192971029 at 216.xx.xx.xxx:5060;user=phone SIP/2.0.
Via: SIP/2.0/UDP 216.xx.xx.xxx:49408;branch=z9hG4bKa6e6659ABF68180.
From: "Richard Revels" <sip:+19194397461 at 216.xx.xx.xxx>;tag=96749FE7-24ADBEF6.
To: <sip:9192971029 at 216.xx.xx.xxx;user=phone>.
CSeq: 2 INVITE.
Call-ID: 4746812-1bb1df45-31fd15fc at 10.1.50.113.
Contact: <sip:+19194397461 at 216.xx.xx.xxx:49408>.
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, INFO, MESSAGE, SUBSCRIBE, NOTIFY, PRACK, UPDATE, REFER.
User-Agent: PolycomSoundPointIP-SPIP_650-UA/3.0.0.0258.
Supported: 100rel,replaces.
Allow-Events: talk,hold,conference.
Proxy-Authorization: Digest username="rrevels", realm="216.xx.xx.xxx", nonce="48a9746c84fee2ff6224c7896341b546e1be648f", qop=auth, cnonce="8fNYBDnuc8r6fmC", nc=00000001, uri="sip:9192971029 at 216.xx.xx.xxx:5060;user=phone", response="8425aad548d03b073fcf32a5c96afee0", algorithm=MD5.
Max-Forwards: 70.
Content-Type: application/sdp.
Content-Length: 276.
.
v=0.
o=- 1219064375 1219064375 IN IP4 216.xx.xx.xxx.
s=Polycom IP Phone.
c=IN IP4 216.xx.xx.xxx.
t=0 0.
m=audio 44086 RTP/AVP 9 0 8 18 101.
a=sendrecv.
a=rtpmap:9 G722/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=rtpmap:101 telephone-event/8000.


U 216.xx.xx.xxx:49408 -> 216.xx.xx.xxx:5060
INVITE sip:9192971029 at 216.xx.xx.xxx:5060;user=phone SIP/2.0.
Via: SIP/2.0/UDP 216.xx.xx.xxx:49408;branch=z9hG4bKa6e6659ABF68180.
From: "Richard Revels" <sip:+19194397461 at 216.xx.xx.xxx>;tag=96749FE7-24ADBEF6.
To: <sip:9192971029 at 216.xx.xx.xxx;user=phone>.
CSeq: 2 INVITE.
Call-ID: 4746812-1bb1df45-31fd15fc at 10.1.50.113.
Contact: <sip:+19194397461 at 216.xx.xx.xxx:49408>.
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, INFO, MESSAGE, SUBSCRIBE, NOTIFY, PRACK, UPDATE, REFER.
User-Agent: PolycomSoundPointIP-SPIP_650-UA/3.0.0.0258.
Supported: 100rel,replaces.
Allow-Events: talk,hold,conference.
Proxy-Authorization: Digest username="rrevels", realm="216.xx.xx.xxx", nonce="48a9746c84fee2ff6224c7896341b546e1be648f", qop=auth, cnonce="8fNYBDnuc8r6fmC", nc=00000001, uri="sip:9192971029 at 216.xx.xx.xxx:5060;user=phone", response="8425aad548d03b073fcf32a5c96afee0", algorithm=MD5.
Max-Forwards: 70.
Content-Type: application/sdp.
Content-Length: 276.
.
v=0.
o=- 1219064375 1219064375 IN IP4 216.xx.xx.xxx.
s=Polycom IP Phone.
c=IN IP4 216.xx.xx.xxx.
t=0 0.
m=audio 44086 RTP/AVP 9 0 8 18 101.
a=sendrecv.
a=rtpmap:9 G722/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=rtpmap:101 telephone-event/8000.


U 216.xx.xx.xxx:49408 -> 216.xx.xx.xxx:5060
INVITE sip:9192971029 at 216.xx.xx.xxx:5060;user=phone SIP/2.0.
Via: SIP/2.0/UDP 216.xx.xx.xxx:49408;branch=z9hG4bKa6e6659ABF68180.
From: "Richard Revels" <sip:+19194397461 at 216.xx.xx.xxx>;tag=96749FE7-24ADBEF6.
To: <sip:9192971029 at 216.xx.xx.xxx;user=phone>.
CSeq: 2 INVITE.
Call-ID: 4746812-1bb1df45-31fd15fc at 10.1.50.113.
Contact: <sip:+19194397461 at 216.xx.xx.xxx:49408>.
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, INFO, MESSAGE, SUBSCRIBE, NOTIFY, PRACK, UPDATE, REFER.
User-Agent: PolycomSoundPointIP-SPIP_650-UA/3.0.0.0258.
Supported: 100rel,replaces.
Allow-Events: talk,hold,conference.
Proxy-Authorization: Digest username="rrevels", realm="216.xx.xx.xxx", nonce="48a9746c84fee2ff6224c7896341b546e1be648f", qop=auth, cnonce="8fNYBDnuc8r6fmC", nc=00000001, uri="sip:9192971029 at 216.xx.xx.xxx:5060;user=phone", response="8425aad548d03b073fcf32a5c96afee0", algorithm=MD5.
Max-Forwards: 70.
Content-Type: application/sdp.
Content-Length: 276.
.
v=0.
o=- 1219064375 1219064375 IN IP4 216.xx.xx.xxx.
s=Polycom IP Phone.
c=IN IP4 216.xx.xx.xxx.
t=0 0.
m=audio 44086 RTP/AVP 9 0 8 18 101.
a=sendrecv.
a=rtpmap:9 G722/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=rtpmap:101 telephone-event/8000.


U 216.xx.xx.xxx:49408 -> 216.xx.xx.xxx:5060
INVITE sip:9192971029 at 216.xx.xx.xxx:5060;user=phone SIP/2.0.
Via: SIP/2.0/UDP 216.xx.xx.xxx:49408;branch=z9hG4bKa6e6659ABF68180.
From: "Richard Revels" <sip:+19194397461 at 216.xx.xx.xxx>;tag=96749FE7-24ADBEF6.
To: <sip:9192971029 at 216.xx.xx.xxx;user=phone>.
CSeq: 2 INVITE.
Call-ID: 4746812-1bb1df45-31fd15fc at 10.1.50.113.
Contact: <sip:+19194397461 at 216.xx.xx.xxx:49408>.
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, INFO, MESSAGE, SUBSCRIBE, NOTIFY, PRACK, UPDATE, REFER.
User-Agent: PolycomSoundPointIP-SPIP_650-UA/3.0.0.0258.
Supported: 100rel,replaces.
Allow-Events: talk,hold,conference.
Proxy-Authorization: Digest username="rrevels", realm="216.xx.xx.xxx", nonce="48a9746c84fee2ff6224c7896341b546e1be648f", qop=auth, cnonce="8fNYBDnuc8r6fmC", nc=00000001, uri="sip:9192971029 at 216.xx.xx.xxx:5060;user=phone", response="8425aad548d03b073fcf32a5c96afee0", algorithm=MD5.
Max-Forwards: 70.
Content-Type: application/sdp.
Content-Length: 276.
.
v=0.
o=- 1219064375 1219064375 IN IP4 216.xx.xx.xxx.
s=Polycom IP Phone.
c=IN IP4 216.xx.xx.xxx.
t=0 0.
m=audio 44086 RTP/AVP 9 0 8 18 101.
a=sendrecv.
a=rtpmap:9 G722/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=rtpmap:101 telephone-event/8000.


U 216.xx.xx.xxx:5060 -> 216.xx.xx.xxx:49408
SIP/2.0 407 Proxy Authentication Required.
Via: SIP/2.0/UDP 216.xx.xx.xxx:49408;branch=z9hG4bKa6e6659ABF68180.
From: "Richard Revels" <sip:+19194397461 at 216.xx.xx.xxx>;tag=96749FE7-24ADBEF6.
To: <sip:9192971029 at 216.xx.xx.xxx;user=phone>;tag=f788a50cbb9e4806448fafbd351142ba.5b3c.
CSeq: 2 INVITE.
Call-ID: 4746812-1bb1df45-31fd15fc at 10.1.50.113.
Proxy-Authenticate: Digest realm="216.xx.xx.xxx", nonce="48a97474ab8bfdfbc242536ab13bf0a63033013b", qop="auth".
Content-Length: 0.
.


U 216.xx.xx.xxx:49408 -> 216.xx.xx.xxx:5060
ACK sip:9192971029 at 216.xx.xx.xxx:5060;user=phone SIP/2.0.
Via: SIP/2.0/UDP 216.xx.xx.xxx:49408;branch=z9hG4bKa6e6659ABF68180.
From: "Richard Revels" <sip:+19194397461 at 216.xx.xx.xxx>;tag=96749FE7-24ADBEF6.
To: <sip:9192971029 at 216.xx.xx.xxx;user=phone>;tag=f788a50cbb9e4806448fafbd351142ba.5b3c.
CSeq: 2 ACK.
Call-ID: 4746812-1bb1df45-31fd15fc at 10.1.50.113.
Contact: <sip:+19194397461 at 216.xx.xx.xxx:49408>.
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, INFO, MESSAGE, SUBSCRIBE, NOTIFY, PRACK, UPDATE, REFER.
User-Agent: PolycomSoundPointIP-SPIP_650-UA/3.0.0.0258.
Max-Forwards: 70.
Content-Length: 0.
.


----------------------------------------------------------------------

>Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2009-09-27 12:10

Message:
Richard,

Do you still experience this problem ?

Regrads,
Bodgdan 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2059871&group_id=232389



More information about the Devel mailing list