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

[reSIProcate] Segfault BuildFdSet


My application is segfaulting on buildFdSet.  I don't think I have
changed
anything that directly affects it, but it used here in this context.

SipHandler::SipHandler (RtpManager* rtpm) : SipStack(false,0,false)

{
      Data hostdata("0.0.0.0");
      mLocalUri.host() = hostdata;
      mLocalUri.port() = 5060;
      rtpman = rtpm;
      addTransport(UDP,5060,V4);
}

/**
     * SipHandler Thread function
     */
void SipHandler::thread () {
      while ( !isShutdown() ) {
        FdSet fdset;
        buildFdSet(fdset);
        int err = fdset.selectMilliSeconds(getTimeTillNextProcessMS());
        assert (err != -1);
        process(fdset);

        SipMessage* received = receive();
        if (received)
          processReceived(received);
      }
}


I don't see whats going wrong since this seemed to work before.

Dan