Hi Trey,

I just had a look at this issue and found that we have a fairly trivial bug in 
Homestead (see 
https://github.com/Metaswitch/homestead/issues/362#issuecomment-232930184 for 
details) which I suspect caused your crash. We’d hit this if the MAA contained 
a SIP-Auth-Data-Item AVP that didn’t contain a SIP-Auth-Scheme AVP – does that 
sound right? It sounds like you probably won’t hit this again, but I expect it 
will be fixed in our next release if you do require a fix for it. Thanks for 
bringing it to our attention!

Thanks,
Graeme

From: Clearwater [mailto:[email protected]] On 
Behalf Of Chris Elford
Sent: 15 July 2016 12:01
To: Chris Elford (projectclearwater.org); Trey Ormsbee; 
[email protected]
Subject: Re: [Project Clearwater] homestead core dump on MAA

Sorry, I made a mistake there. I should have said `sudo apt-get install 
homestead-dbg`.

From: Chris Elford (projectclearwater.org)
Sent: 15 July 2016 12:01
To: 'Trey Ormsbee' 
<[email protected]<mailto:[email protected]>>;
 
[email protected]<mailto:[email protected]>
Subject: RE: [Project Clearwater] homestead core dump on MAA

Hi Trey,

I’m glad you managed to get to the bottom of this. I’d like to get this issue 
fixed so that other people don’t hit this problem.

Do you know exactly which required parameter was missing in the MAA?

It would be great if you could get us a stack trace including debug symbols. To 
do that, run `sudo apt-get install bono-dbg sprout-dbg` to install Bono and 
Sprout debug symbols, then attempt to hit the crash again.

Yours,

Chris


From: Clearwater [mailto:[email protected]] On 
Behalf Of Trey Ormsbee
Sent: 14 July 2016 19:57
To: 
[email protected]<mailto:[email protected]>
Subject: Re: [Project Clearwater] homestead core dump on MAA

It appears this crashed is caused by a missing required parameter in the MAA,  
specifically SIP-Number-Auth-Items.  So this is more a note of a bug in the 
parser of this type of diameter message.

Thanks,
Trey

-----Original Message-----From: Trey Ormsbee 
<[email protected]<mailto:trey%20ormsbee%20%[email protected]%3e>>
To: 
[email protected]<mailto:[email protected]>
 
<[email protected]<mailto:%[email protected]%22%20%[email protected]%3e>>
Subject: [Project Clearwater] homestead core dump on MAA
Date: Thu, 14 Jul 2016 11:59:37 -0400

I am getting a coredump on the latest release of homestead with an MAA.

excerpt is here:
14-07-2016 15:42:02.637 UTC Debug diameterstack.cpp:888: Processing a received 
diameter message
14-07-2016 15:42:02.637 UTC Debug diameterstack.cpp:901: Got existing trail ID: 
2
14-07-2016 15:42:02.637 UTC Debug diameterstack.cpp:969: Raising correlating 
marker with diameter session ID = homestead01.example.com;1468510914;2
14-07-2016 15:42:02.637 UTC Debug freeDiameter: Peer timeout reset to 30 
seconds (+/- 2)
14-07-2016 15:42:02.637 UTC Debug freeDiameter: 'XXX.XXX.XXX.100' in state 
'STATE_OPEN' waiting for next event.
14-07-2016 15:42:02.637 UTC Debug freeDiameter: Iterating on rules of AVP: 
'Vendor-Specific-Application-Id'.
14-07-2016 15:42:02.637 UTC Debug freeDiameter: Iterating on rules of AVP: 
'SIP-Digest-Authenticate'.
14-07-2016 15:42:02.637 UTC Debug freeDiameter: Iterating on rules of AVP: 
'SIP-Auth-Data-Item'.
14-07-2016 15:42:02.637 UTC Debug freeDiameter: Iterating on rules of COMMAND: 
'3GPP/Multimedia-Auth-Answer'.
14-07-2016 15:42:02.637 UTC Debug freeDiameter: Calling callback registered 
when query was sent (0x45b880, 0x7f6a8c01a440)
14-07-2016 15:42:02.637 UTC Verbose diameterstack.cpp:1097: Got Diameter 
response of type 303 - calling callback on transaction 0x7f6a8c01a440
14-07-2016 15:42:02.637 UTC Debug handlers.cpp:343: Received Multimedia-Auth 
answer with result code 2001
14-07-2016 15:42:02.637 UTC Error freeDiameter: ERROR: Invalid parameter 
'(((avp) && (((struct msg_avp_chain *)(avp))->type == MSG_AVP) && (((struct avp 
*)(avp))->avp_eyec == (0x11355467))) && pdata)', 22

Signal 11 caught

Basic stack dump:
/usr/share/clearwater/bin/homestead[0x492bbd]
/usr/share/clearwater/bin/homestead[0x493d7d]
/usr/share/clearwater/bin/homestead[0x4a9cec]
/lib/x86_64-linux-gnu/libc.so.6(+0x36cb0)[0x7f6acf2c2cb0]
/usr/share/clearwater/bin/homestead[0x4534f5]
/usr/share/clearwater/bin/homestead[0x4778f9]
/usr/share/clearwater/bin/homestead[0x47d8a1]
/usr/share/clearwater/bin/homestead[0x45b911]
/usr/share/clearwater/homestead/lib/libfdcore.so.6(+0x30656)[0x7f6ad1811656]
/usr/share/clearwater/homestead/lib/libfdcore.so.6(+0x3225c)[0x7f6ad181325c]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x8184)[0x7f6ad083c184]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f6acf38637d]




Attached is the full startup and error,  any ideas what may cause this?  I 
cannot attach a capture/core as it has private data in it.
_______________________________________________
Clearwater mailing list
[email protected]
http://lists.projectclearwater.org/mailman/listinfo/clearwater_lists.projectclearwater.org

Reply via email to