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

[reSIProcate] Can some tell me how to debug this crash....


Hi,

        While running my B2BUA over Resiprocate using gdb, I got a segmentation
fault in the stack.
I am capturing the backtrace below as generated by gdb. frame 8  and frame 7
here show that
SdpContents was been accessed.

        My question is that is this failure because of SDP packet not being 
proper
?

        I had commented the asserts() in the code to avoid an assertion Abort.


        Any help will be appreciated.

-Regards
Asheesh.

#0  0xb70f4c0b in _int_malloc () from /lib/tls/libc.so.6
#1  0xb70f3dfd in malloc () from /lib/tls/libc.so.6
#2  0xb72727fe in operator new(unsigned) () from /usr/lib/libstdc++.so.5
#3  0xb725eb03 in std::__default_alloc_template<true, 0>::allocate(unsigned)
() from /usr/lib/libstdc++.so.5
#4  0xb752e2f0 in
_M_allocate_and_copy<__gnu_cxx::_Hashtable_node<std::pair<const int,
resip::SdpContents::Session::Codec> >**> (this=0xaf515d58, __n=2941259240,
__first=0x0, __last=0x0) at stl_alloc.h:238
#5  0xb752dd81 in std::vector<__gnu_cxx::_Hashtable_node<std::pair<int
const, resip::SdpContents::Session::Codec> >*,
std::allocator<resip::SdpContents::Session::Codec> >::reserve(unsigned)
(this=0xaf515d58, __n=193) at stl_vector.h:398
#6  0xb752bbfb in __gnu_cxx::hashtable<std::pair<int const,
resip::SdpContents::Session::Codec>, int, __gnu_cxx::hash<int>,
std::_Select1st<std::pair<int const, resip::SdpContents::Session::Codec> >,
std::equal_to<int>, std::allocator<resip::SdpContents::Session::Codec>
>::_M_copy_from(__gnu_cxx::hashtable<std::pair<int const,
resip::SdpContents::Session::Codec>, int, __gnu_cxx::hash<int>,
std::_Select1st<std::pair<int const, resip::SdpContents::Session::Codec> >,
std::equal_to<int>, std::allocator<resip::SdpContents::Session::Codec> >
const&) (this=0xaf515d54, __ht=@0xaf517714) at stl_vector.h:261
#7  0xb75264d6 in Medium (this=0xaf515c68, rhs=@0xaf517628) at
stl_hashtable.h:311
#8  0xb752dc81 in std::list<resip::SdpContents::Session::Medium,
std::allocator<resip::SdpContents::Session::Medium>
>::_M_create_node(resip::SdpContents::Session::Medium const&)
(this=0xaf501808, __x=@0xaf517628) at new:89
#9  0xb752c7c4 in void std::list<resip::SdpContents::Session::Medium,
std::allocator<resip::SdpContents::Session::Medium>
>::_M_insert_dispatch<std::_List_iterator<resip::SdpContents::Session::Mediu
m, resip::SdpContents::Session::Medium const&,
resip::SdpContents::Session::Medium const*>
>(std::_List_iterator<resip::SdpContents::Session::Medium,
resip::SdpContents::Session::Medium&, resip::SdpContents::Session::Medium*>,
std::_List_iterator<resip::SdpContents::Session::Medium,
resip::SdpContents::Session::Medium const&,
resip::SdpContents::Session::Medium const*>,
std::_List_iterator<resip::SdpContents::Session::Medium,
resip::SdpContents::Session::Medium const&,
resip::SdpContents::Session::Medium const*>, __false_type) (this=0xaf501808,
    __position={<_List_iterator_base> = {_M_node = 0xaf515848}, <No data
fields>}, __first=
        {<_List_iterator_base> = {_M_node = 0xaf517620}, <No data fields>})
at stl_list.h:430
#10 0xb752b2ee in std::list<resip::SdpContents::Session::Medium,
std::allocator<resip::SdpContents::Session::Medium>
>::operator=(std::list<resip::SdpContents::Session::Medium,
std::allocator<resip::SdpContents::Session::Medium> > const&) (
    this=0xaf501808, __x=@0xaf517510) at stl_list.h:91
#11 0xb75241cf in
resip::SdpContents::Session::operator=(resip::SdpContents::Session const&)
(this=0xaf501784,
    rhs=@0xaf519af4) at SdpContents.cxx:943
#12 0xb7523fde in Session (this=0xaf501784, rhs=@0xaf519af4) at
SdpContents.cxx:932
#13 0xb7520be2 in SdpContents (this=0xaf5016e8, rhs=@0xaf519af4) at
SdpContents.cxx:159
#14 0xb7520f9c in resip::SdpContents::clone() const (this=0xaf519a58) at
SdpContents.cxx:181
#15 0xb74b0e95 in resip::SipMessage::operator=(resip::SipMessage const&)
(this=0x861bb78, rhs=@0xaf50117c)
    at SipMessage.cxx:112
#16 0xb72e2940 in ClientInviteSession (this=0x861b350, dum=@0x84f2068,
dialog=@0x857ad78, request=@0xaf50117c,
    initialOffer=0xaf516b78) at ClientInviteSession.cxx:33
#17 0xb730890c in resip::Dialog::makeClientInviteSession(resip::SipMessage
const&) (this=0x857ad78, response=@0x85ea008)
    at InviteSessionCreator.hxx:29
#18 0xb730585c in resip::Dialog::dispatch(resip::SipMessage const&)
(this=0x857ad78, msg=@0x85ea008) at Dialog.cxx:548
#19 0xb730ea73 in resip::DialogSet::dispatch(resip::SipMessage const&)
(this=0xaf51a6f8, msg=@0x85ea008)
---Type <return> to continue, or q <return> to quit---q
 at DialogSet.cxx:648Quit