Bugs item #1810115, was opened at 2007-10-09 15:16
Message generated for change (Comment added) made by ppessi
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=756076&aid=1810115&group_id=143636

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Mikhail Zabaluev (mzabaluev)
Assigned to: Nobody/Anonymous (nobody)
Summary: Crash after domain name resolution fails on REGISTER

Initial Comment:
A segfault occurs after a registration attempt with an invalid domain name such 
as given with these parameters:

   sip::from: sip:[EMAIL PROTECTED]
   sip::from_str: "sip:[EMAIL PROTECTED]"
   nua::retry_count: 3
   nua::max_subscriptions: 20
   nua::media_enable: true
   nua::enableInvite: true
   nua::autoAlert: false
   nua::early_media: false
   nua::only183_100rel: false
   nua::autoAnswer: false
   nua::autoACK: true
   nua::invite_timer: 120
   nua::session_timer: 1800
   nua::min_se: 120
   nua::session_refresher: 0
   nua::update_refresh: false
   nua::enableMessage: true
   nua::enableMessenger: false
   nua::callee_caps: false
   nua::media_features: false
   nua::service_route_enable: true
   nua::path_enable: true
   nua::refer_expires: 300
   nua::refer_with_id: true
   nua::substate: 2
   sip::supported: timer, 100rel
   sip::supported_str: "timer, 100rel"
   sip::allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, UPDATE
   sip::allow_str: "INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, UPDATE"
   nua::appl_method: "INVITE, REGISTER, PUBLISH, SUBSCRIBE, MESSAGE"
   sip::user_agent: Telepathy-SofiaSIP/0.3.31 sofia-sip/1.12.6work
   sip::user_agent_str: "Telepathy-SofiaSIP/0.3.31 sofia-sip/1.12.6work"
   nua::user_agent: "Telepathy-SofiaSIP/0.3.31 sofia-sip/1.12.6work"
   nua::keepalive: 120000
   nua::m_username: "user"
   nua::outbound: "use-rport natify"
   nta::contact: <sip:[EMAIL PROTECTED]:49161>
   nta::udp_mtu: 1300
   nta::sip_t1: 500
   nta::sip_t2: 4000
   nta::sip_t4: 5000
   nta::sip_t1x64: 32000
   nta::debug_drop_prob: 0
   nta::default_proxy: <sip:bogus.domain>
   nta::aliases: <NONE>
   nta::sipflags: 2
   soa::af: 3
   soa::srtp_enable: false
   soa::srtp_confidentiality: false
   soa::srtp_integrity: false

Here's the backtrace:

#0  0x400b83c0 in outgoing_recv (orq=0x3bfa0, status=503, msg=0x3f848, 
    sip=0x3f8e4) at nta.c:8096
#1  0x400b9fa4 in outgoing_delayed_recv (rm=0x368e0, msg=0xbef99478, u=0x3fb90)
    at nta.c:8568
#2  0x40140a10 in su_base_port_execute_msgs (queue=0x3c090)
    at su_base_port.c:272
#3  0x401406c8 in su_base_port_getmsgs (self=0x30438) at su_base_port.c:198
#4  0x4002e080 in su_source_dispatch (gs=0x30400, callback=0, user_data=0x0)
    at su_source.c:463

Apparently, orq comes to point to a freed buffer or something like that.


----------------------------------------------------------------------

>Comment By: Pekka Pessi (ppessi)
Date: 2007-10-11 18:53

Message:
Logged In: YES 
user_id=52043
Originator: NO

Fix is in darcs.

A delayed response was delivered after the nta_agent_destroy() had
destroyed the client transaction.


----------------------------------------------------------------------

Comment By: Mikhail Zabaluev (mzabaluev)
Date: 2007-10-11 16:14

Message:
Logged In: YES 
user_id=313104
Originator: YES

This only happens if the register handle is destroyed with
nua_handle_destroy() upon receiving the 503 status. Unreferencing the
handle lets the stack finalize it gracefully.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=756076&aid=1810115&group_id=143636

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to