< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index  

Re: [reSIProcate-users] Resiprocate 1.5 crash


Scott,
 
I was able to find solutions for this issue.
 
We moved from RedHat 4 to RedHat 5 and our binary failed to compile in G++ 4.1 which is the default version coming with RedHat 5. But resiprocate library we built in G++ 4.1 in RedHat 5. So in combination of our binary in G++ 3.4 and resiprocate in G++ 4.1,  the following code occasionally failed  to initialise the second stack and that leads to crashes for the very first call in our system in second stack code.
 
<---------------- Code ------------>
1.resip::Uri myUri;
2.Initialise myUri...
3.mDialogProfile->setDefaultFrom(NameAddr(myUri));
4.mDialogProfile->setOverrideHostAndPort(myUri);
5........................
6.if (second stack is enabled) {
7.    resip::Uri myUri;
8.   Initialise myUri.....
9.    mNotifyProfile->setDefaultFrom(NameAddr(myUri));
10.    mNotifyProfile->setOverrideHostAndPort(myUri);
11.
12.}
 
If I compile Resiprocate in G++ 3.4 (same as our binary) for RedHat 5 machines, I see that this problem goes away. Or If I change the above code to create 4 separate instances of resip::Uri, intiialise  and use them in line numbers 3,4, 9 and 10, this problem goes away.
 
Not sure what exactly is the issue here. Is it Resiprocate ? Or Our code ? Or the compiler ? As I mentioned earlier, the above given code has been running on RedHat 4 machines for 10+ months without any issues.
 
Thanks,
Vasanthi

From: Vasanthi Ramasamy
Sent: Tuesday, June 08, 2010 6:45 PM
To: 'Scott Godin'
Cc: resiprocate-users@xxxxxxxxxxxxxxx
Subject: RE: [reSIProcate-users] Resiprocate 1.5 crash

OK Scott. I made a test build with Resip 1.6 and it still happens. Here is the core dump.
 
#0  0x0079a410 in __kernel_vsyscall ()
#1  0x00b2adf0 in raise () from /lib/libc.so.6
#2  0x00b2c701 in abort () from /lib/libc.so.6
#3  0x00b6328b in __libc_message () from /lib/libc.so.6
#4  0x00b6b595 in _int_free () from /lib/libc.so.6
#5  0x00b6b9d9 in free () from /lib/libc.so.6
#6  0x0064e581 in operator delete () from /usr/lib/libstdc++.so.6
#7  0x0064e5dd in operator delete[] () from /usr/lib/libstdc++.so.6
#8  0x083f3380 in resip::Data::resize (this=0x8566ac8, newCapacity=17, copy=false) at Data.cxx:1052
#9  0x083f3980 in resip::Data::operator= (this=0x8566ac8, data="">) at Data.cxx:767
#10 0x083b63f0 in resip::Uri::getAor (this=0x8566950) at Uri.cxx:678
#11 0x082b592f in resip::UserProfile::isAnonymous (this=0xa335eb8) at UserProfile.cxx:46
-Vasanthi


From: slgodin@xxxxxxxxx [mailto:slgodin@xxxxxxxxx] On Behalf Of Scott Godin
Sent: Tuesday, June 08, 2010 12:27 PM
To: Vasanthi Ramasamy
Cc: resiprocate-users@xxxxxxxxxxxxxxx
Subject: Re: [reSIProcate-users] Resiprocate 1.5 crash

Are you using multiple SipStack instances in the same process space?  I ran across a startup issue, related to initialization of static variables on first access.  These were fixed in 1.6.

Scott

On Tue, Jun 8, 2010 at 12:21 PM, Vasanthi Ramasamy <Vasanthi.Ramasamy@xxxxxxxxxxxxxxxx> wrote:
The very first call crashes our system occasionally. Nothing changed from our side except the fact that we moved from RedHat 4 to RedHat 5.


From: slgodin@xxxxxxxxx [mailto:slgodin@xxxxxxxxx] On Behalf Of Scott Godin
Sent: Tuesday, June 08, 2010 12:17 PM
To: Vasanthi Ramasamy
Cc: resiprocate-users@xxxxxxxxxxxxxxx
Subject: Re: [reSIProcate-users] Resiprocate 1.5 crash

Doesn't look familiar to me.

Scott

On Tue, Jun 8, 2010 at 11:58 AM, Vasanthi Ramasamy <Vasanthi.Ramasamy@xxxxxxxxxxxxxxxx> wrote:
Hi,
 
We are using Resiprocate 1.5 and I see occasional crash. I do have the dump file.  Is this something got fixed in Resip 1.6 ?
 
#0  0x00564410 in __kernel_vsyscall ()
#1  0x00b2adf0 in raise () from /lib/libc.so.6
#2  0x00b2c701 in abort () from /lib/libc.so.6
#3  0x00b6328b in __libc_message () from /lib/libc.so.6
#4  0x00b6b595 in _int_free () from /lib/libc.so.6
#5  0x00b6b9d9 in free () from /lib/libc.so.6
#6  0x0064e581 in operator delete () from /usr/lib/libstdc++.so.6
#7  0x0064e5dd in operator delete[] () from /usr/lib/libstdc++.so.6
#8  0x083e9a01 in resip::Data::resize (this=0x85453dc, newCapacity=17, copy=false) at Data.cxx:1020
#9  0x083e9f4a in resip::Data::operator= (this=0x85453dc, data="">) at Data.cxx:759
#10 0x083adc3d in resip::Uri::getAor (this=0x85452b0) at Uri.cxx:690
thanks,
Vasanthi

_______________________________________________
resiprocate-users mailing list
resiprocate-users@xxxxxxxxxxxxxxx
List Archive: http://list.resiprocate.org/archive/resiprocate-users/