[OpenSIPS-Users] Contact Header Crash

Bogdan-Andrei Iancu bogdan at voice-system.ro
Thu Jan 15 16:17:37 CET 2009


Hi Antonio,

There is a SEG FAULT happening:
    INFO:seas:dispatcher_main_loop: child process 20783 exited by a 
signal 11

I guess 20783 is a SEAS specific module - could you check in the logs 
what are the last messages from this processes ? or do you have  a core 
file from it?

Regards,
Bogdan

Antonio Frongillo wrote:
>
>
> 2009/1/15 Antonio Frongillo <antonio at frogweb.it 
> <mailto:antonio at frogweb.it>>
>
>     I'm trying to use OpenSips (configured with WeSip) to communicate
>     with Microsoft OCS 2007.
>     I'm able to sends REGISTER and SUBSCRIBE to OCS from a Sip Servlet
>     without any problem.
>     Randomly (or at least it seems) the 200 OK returned by the
>     SUBSCRIBE, or one of the NOTIFYs sent by OCS after the
>     subscription makes OpenSips to crash:
>
>     Jan 15 11:33:42 [1933272943] INFO:seas:seas_sighandler: Child
>     stopped or terminated
>     Jan 15 11:33:42 [1933272943] INFO:seas:dispatcher_main_loop: child
>     process 20783 exited by a signal 11
>     Jan 15 11:33:42 [1933272943] WARNING:seas:dispatcher_main_loop:
>     client [shootist] leaving (Action Dispatcher Process died !)
>     Jan 15 11:33:42 [1933272943] INFO:seas:dispatcher_main_loop:
>     polling [2 ServSock] [1 pipe] [0 App Servers] [0 Uncomplete AS]
>     Jan 15 11:33:43 [20779] DBG:core:handle_tcp_child: dead tcp child
>     0 (pid 20771, no 0) (shutting down?)
>     Jan 15 11:33:43 [20779] DBG:core:io_watch_del: io_watch_del
>     (0x8174e80, 15, -1, 0x0) fd_no=16 called
>     Jan 15 11:33:43 [20779] CRITICAL:core:receive_fd: EOF on 17
>     Jan 15 11:33:43 [20779] DBG:core:handle_ser_child: dead child 7,
>     pid 20771 (shutting down?)
>     Jan 15 11:33:43 [20779] DBG:core:io_watch_del: io_watch_del
>     (0x8174e80, 17, -1, 0x0) fd_no=15 called
>
>
>     The SUBSCRIBE from OCS returns this 200 OK:
>
>     SIP/2.0 200 OK
>     Contact:
>     <sip:OCSPool01.HMCINT.LOCAL;transport=tcp;ms-fe=HMCINTOCS.HMCINT.LOCAL>
>     Authentication-Info: NTLM
>     rspauth="0100000070B14E017817E85DC230F2DF", srand="B91383E2",
>     snum="2", opaque="0FFEF1C7", qop="auth",
>     targetname="HMCINTOCS.HMCINT.LOCAL", realm="SIP Communications
>     Service"
>     Content-Length: 8452
>     From: "Uma
>     Thurman"<sip:uma.thurman at hmcint.local>;transport=tcp;tag=D7DE4E07A70DEB0AF902F3F3ABBBA6D1
>     To: sip:uma.thurman at hmcint.local:5060;transport=tcp;tag=33280080
>     Call-ID: A19293DAF5E2116DE5D31992A298736
>     CSeq: 1 SUBSCRIBE
>     Via: SIP/2.0/TCP
>     10.107.109.108;branch=z9hG4bK398e.5338e871.0;ms-received-port=54613;ms-received-cid=6E00
>     Expires: 43200
>     Require: eventlist
>     Content-Type: application/vnd-microsoft-roaming-self+xml
>     Event: vnd-microsoft-roaming-self
>     subscription-state: active;expires=43200
>     ms-piggyback-cseq: 1
>     Supported: ms-benotify, ms-piggyback-first-notify
>
>     <roamingData
>     xmlns="http://schemas.microsoft.com/2006/09/sip/roaming-self"
>     xmlns:cat="http://schemas.microsoft.com/2006/09/sip/categories"
>     xmlns:con="http://schemas.microsoft.com/2006/09/sip/containers"
>     xmlns:sub="http://schemas.microsoft.com/2006/09/sip/presence-subscribers">
>     <categories
>     xmlns="http://schemas.microsoft.com/2006/09/sip/categories"
>     uri="sip:uma.thurman at hmcint.local">
>     <category name="calendarData" instance="0"
>     publishTime="2008-12-03T13:19:10.797" container="32000"
>     version="1" expireType="static"/>
>     <category name="calendarData" instance="0"
>     publishTime="2008-12-03T13:19:10.797" container="100" version="1"
>     expireType="static"/>
>     <category name="contactCard" instance="0"
>     publishTime="2008-12-03T13:18:55.133" container="32000"
>     version="4" expireType="static">
>     <contactCard
>     xmlns="http://schemas.microsoft.com/2006/09/sip/contactcard" >
>     <identity >
>     <name >
>     <displayName >
>     Uma Thurman</displayName>
>     </name>
>     <email >
>     uma.thurman at hmcint.local</email>
>     </identity>
>     </contactCard>
>     </category>
>     <category name="contactCard" instance="0"
>     publishTime="2008-12-03T13:18:55.133" container="400" version="4"
>     expireType="static">
>     <contactCard
>     xmlns="http://schemas.microsoft.com/2006/09/sip/contactcard" >
>     <identity >
>     <name >
>     <displayName >
>     Uma Thurman</displayName>
>     </name>
>     <email >
>     uma.thurman at hmcint.local</email>
>     </identity>
>     </contactCard>
>     </category>
>     <category name="contactCard" instance="0"
>     publishTime="2008-12-03T13:18:55.133" container="300" version="4"
>     expireType="static">
>     <contactCard
>     xmlns="http://schemas.microsoft.com/2006/09/sip/contactcard" >
>     <identity >
>     <name >
>     <displayName >
>     Uma Thurman</displayName>
>     </name>
>     <email >
>     uma.thurman at hmcint.local</email>
>     </identity>
>     </contactCard>
>     </category>
>     <category name="contactCard" instance="0"
>     publishTime="2008-12-03T13:18:55.133" container="200" version="4"
>     expireType="static">
>     <contactCard
>     xmlns="http://schemas.microsoft.com/2006/09/sip/contactcard" >
>     <identity >
>     <name >
>     <displayName >
>     Uma Thurman</displayName>
>     </name>
>     <email >
>     uma.thurman at hmcint.local</email>
>     </identity>
>     </contactCard>
>     </category>
>     <category name="contactCard" instance="0"
>     publishTime="2008-12-03T13:18:55.133" container="100" version="4"
>     expireType="static">
>     <contactCard
>     xmlns="http://schemas.microsoft.com/2006/09/sip/contactcard" >
>     <identity >
>     <name >
>     <displayName >
>     Uma Thurman</displayName>
>     </name>
>     <email >
>     uma.thurman at hmcint.local</email>
>     </identity>
>     </contactCard>
>     </category>
>     <category name="contactCard" instance="0"
>     publishTime="2008-12-03T13:18:55.133" container="0" version="4"
>     expireType="static">
>     <contactCard
>     xmlns="http://schemas.microsoft.com/2006/09/sip/contactcard" >
>     <identity >
>     <name >
>     <displayName >
>     Uma Thurman</displayName>
>     </name>
>     <email >
>     uma.thurman at hmcint.local</email>
>     </identity>
>     </contactCard>
>     </category>
>     <category name="note" instance="0"
>     publishTime="2008-12-03T13:19:10.797" container="32000"
>     version="1" expireType="static"/>
>     <category name="note" instance="0"
>     publishTime="2008-12-03T13:19:10.797" container="100" version="1"
>     expireType="static"/>
>     <category name="state" instance="0"
>     publishTime="2008-12-03T13:19:10.797" container="32000"
>     version="1" expireType="static">
>     <state xmlns="http://schemas.microsoft.com/2006/09/sip/state"
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>     manual="false" xsi:type="aggregateState" ><availability
>     >18500</availability><endpointLocation ></endpointLocation></state>
>     </category>
>     <category name="state" instance="0"
>     publishTime="2009-01-14T15:06:10.723" container="400" version="1"
>     expireType="static">
>     <state xsi:type="aggregateState" lastActive="2009-01-14T15:06:10"
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>     xmlns="http://schemas.microsoft.com/2006/09/sip/state"><availability>18000</availability></state>
>     </category>
>     <category name="state" instance="0"
>     publishTime="2009-01-14T15:06:10.723" container="300" version="1"
>     expireType="static">
>     <state xsi:type="aggregateState" lastActive="2009-01-14T15:06:10"
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>     xmlns="http://schemas.microsoft.com/2006/09/sip/state"><availability>18000</availability></state>
>     </category>
>     <category name="state" instance="0"
>     publishTime="2009-01-14T15:06:10.723" container="200" version="1"
>     expireType="static">
>     <state xsi:type="aggregateState"
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>     xmlns="http://schemas.microsoft.com/2006/09/sip/state"><availability>18000</availability></state>
>     </category>
>     <category name="state" instance="0"
>     publishTime="2009-01-14T15:06:10.723" container="100" version="1"
>     expireType="static">
>     <state xsi:type="aggregateState"
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>     xmlns="http://schemas.microsoft.com/2006/09/sip/state"><availability>18000</availability></state>
>     </category>
>     <category name="state" instance="0"
>     publishTime="2009-01-14T15:06:10.723" container="3" version="1"
>     expireType="static">
>     <state xsi:type="aggregateState" lastActive="2009-01-14T15:06:10"
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>     xmlns="http://schemas.microsoft.com/2006/09/sip/state"><availability>18000</availability></state>
>     </category>
>     <category name="state" instance="0"
>     publishTime="2009-01-14T15:06:10.723" container="2" version="1"
>     expireType="static">
>     <state xsi:type="aggregateState" lastActive="2009-01-14T15:06:10"
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>     xmlns="http://schemas.microsoft.com/2006/09/sip/state"><availability>18000</availability></state>
>     </category>
>     <category name="routing" instance="0"
>     publishTime="2008-12-03T13:19:10.707" container="32000"
>     version="1" expireType="static">
>     <routing xmlns="http://schemas.microsoft.com/02/2006/sip/routing"
>     name="rtcdefault" version="1" ><preamble ><flags
>     name="clientflags" value="block" ></flags></preamble></routing>
>     </category>
>     <category name="legacyInterop" instance="0"
>     publishTime="2008-12-03T13:18:55.133" container="32000"
>     version="4" expireType="static">
>     <legacyInterop availability="18500" />
>     </category>
>     <category name="legacyInterop" instance="0"
>     publishTime="2009-01-14T15:06:10.723" container="400" version="1"
>     expireType="static">
>     <legacyInterop availability="18000" />
>     </category>
>     <category name="legacyInterop" instance="0"
>     publishTime="2009-01-14T15:06:10.723" container="300" version="1"
>     expireType="static">
>     <legacyInterop availability="18000" />
>     </category>
>     <category name="legacyInterop" instance="0"
>     publishTime="2009-01-14T15:06:10.723" container="200" version="1"
>     expireType="static">
>     <legacyInterop availability="18000" />
>     </category>
>     <category name="legacyInterop" instance="0"
>     publishTime="2009-01-14T15:06:10.723" container="100" version="1"
>     expireType="static">
>     <legacyInterop availability="18000" />
>     </category>
>     <category name="services" instance="0"
>     publishTime="2008-12-03T13:19:10.797" container="32000"
>     version="1" expireType="static">
>     <services xmlns="http://schemas.microsoft.com/2006/09/sip/service"
>     ></services>
>     </category>
>     <category name="userInformation" instance="0"
>     publishTime="2008-12-10T10:12:32.427" container="1" version="1"
>     expireType="static">
>     <userInformation
>     xmlns="http://schemas.microsoft.com/2006/09/sip/options/userInformation"
>     ><phones ><phone type="work" ><readOnly
>     >true</readOnly><displayString >306</displayString><uri
>     >tel:306;phone-context=dialstring</uri></phone><phone
>     type="mobile" ></phone><phone type="home" ></phone><phone
>     type="other" ></phone></phones></userInformation>
>     </category>
>     <category name="userProperties" instance="0"
>     publishTime="2008-12-03T13:18:55.133" container="1" version="4"
>     expireType="static">
>     <userProperties >
>     <lines >
>     <line lineType="Uc" >
>     tel:306</line>
>     </lines>
>     <telephonyMode >
>     Uc</telephonyMode>
>     </userProperties>
>     </category>
>     </categories>
>     <containers
>     xmlns="http://schemas.microsoft.com/2006/09/sip/containers">
>     <container id="32000" version="0"/>
>     <container id="400" version="0"/>
>     <container id="300" version="0"/>
>     <container id="200" version="1">
>     <member type="sameEnterprise"/>
>     </container>
>     <container id="100" version="1">
>     <member type="federated"/>
>     </container>
>     <container id="3" version="0"/>
>     <container id="2" version="0"/>
>     <container id="1" version="0"/>
>     <container id="0" version="0">
>     <member type="everyone"/>
>     </container>
>     </containers>
>     <subscribers
>     xmlns="http://schemas.microsoft.com/2006/09/sip/presence-subscribers"/>
>     </roamingData>
>
>
>
>
>     This message makes OpenSips crash on
>
>     2009/1/15 Bogdan-Andrei Iancu <bogdan at voice-system.ro
>     <mailto:bogdan at voice-system.ro>>
>
>         Hi Antonio,
>
>         Could you detail a bit please ? who is receiving the 200 OK
>         and from where... What is the actual error? Also please
>         describe your scenario.
>
>         Regards,
>         Bogdan
>
>         Antonio Frongillo wrote:
>
>             Hi,
>             I'm experiencing an error in receiving 200 OK of REGISTER
>             requests where are set several Contact Header.
>             According to Sip Servlet specification it should be
>             possible to receive messages with more than one Contact
>             Header, actually I saw that with 8 Contact Header OpenSips
>             crash always, with 2-3 Contact Header it seems to be stable.
>
>             Could it be a bug or I'm missing something?
>
>             Thanks in advance
>             Antonio
>             ------------------------------------------------------------------------
>
>             _______________________________________________
>             Users mailing list
>             Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>             http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>              
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   




More information about the Users mailing list