Hi, This happens to me on the ios7 beta4. I'm almost certain that ios7 has something to do with it. The scenario is as follows: ip change was detected. I am recycling my pjsip thread per the instructions: http://trac.pjsip.org/repos/wiki/IPAddressChange During shutdown I end up calling pj_pool_release on my thread. this is synced to my thread so no chance it's being called twice. The pool it self looks like it's all zeroed out. Any ideas? Here is the log from PJSIP log level 4, it crashes on pj_pool_release right after the log ends 2013-08-06 10:47:34:865 Yalo[4426:b323] 972544816020 10:47:34.858 pjsua_acc.c ....SIP outbound status for acc 0 is not active 2013-08-06 10:47:34:873 Yalo[4426:b323] 972544816020 10:47:34.865 pjsua_acc.c ....sip:YYYYYY at XXX.XXX.XXX.XXX: registration success, status=200 (OK), will re-register in 60 seconds 2013-08-06 10:47:34:873 Yalo[4426:b323] Status changed acc 0 OK (200) 2013-08-06 10:47:34:873 Yalo[4426:b323] sip status:200 2013-08-06 10:48:16:517 Yalo[4426:60b] Reachability Changed:2, main thread:1 2013-08-06 10:48:16:517 Yalo[4426:60b] Current IP : 10.243.182.149 2013-08-06 10:48:16:517 Yalo[4426:60b] IP Address changed and we are still conntected - going to restart sip thread 2013-08-06 10:48:16:517 Yalo[4426:60b] SipHandlerListener about to annouce terminate with restartThread:Yes 2013-08-06 10:48:16:523 Yalo[4426:5a23] SipHandlerListener is canceling thread with restartThread:Yes 2013-08-06 10:48:16:523 Yalo[4426:5a23] NSRunLoop worked:1 2013-08-06 10:48:16:523 Yalo[4426:5a23] SipHandlerListener Thread is cancelled, about to destroy zip 2013-08-06 10:48:16:523 Yalo[4426:5a23] SipHandlerListener destryoing sip 2013-08-06 10:48:16:532 Yalo[4426:5a23] 972544816020 10:48:16.523 pjsua_core.c !Shutting down, flags=0... 2013-08-06 10:48:16:541 Yalo[4426:5a23] 972544816020 10:48:16.532 pjsua_core.c PJSUA state changed: RUNNING --> CLOSING 2013-08-06 10:48:16:661 Yalo[4426:5a23] 972544816020 10:48:16.648 pjsua_call.c .Hangup all calls.. 2013-08-06 10:48:16:698 Yalo[4426:5a23] 972544816020 10:48:16.661 pjsua_pres.c .Shutting down presence.. 2013-08-06 10:48:16:739 Yalo[4426:5a23] 972544816020 10:48:16.699 tsx0x162bee64 ....Failed to send Request msg PUBLISH/cseq=62398 (tdta0x16324c00)! err=171060 (Unsupported transport (PJSIP_EUNSUPTRANSPORT)) 2013-08-06 10:48:16:761 Yalo[4426:5a23] 972544816020 10:48:16.740 pjsua_pres.c .....Client publication (PUBLISH) failed (503/Service Unavailable) 2013-08-06 10:48:16:766 Yalo[4426:5a23] 972544816020 10:48:16.761 publishc.c ...Error sending request, status=171060 2013-08-06 10:48:16:770 Yalo[4426:5a23] 972544816020 10:48:16.766 pjsua_pres.c ...Error sending PUBLISH request: Unsupported transport (PJSIP_EUNSUPTRANSPORT) [status=171060] 2013-08-06 10:48:16:788 Yalo[4426:5a23] 972544816020 10:48:16.770 pjsua_media.c .Shutting down media.. 2013-08-06 10:48:16:834 Yalo[4426:5a23] 972544816020 10:48:16.819 pjsua_media.c ..Call 0: deinitializing media.. 2013-08-06 10:48:16:847 Yalo[4426:5a23] 972544816020 10:48:16.834 pjsua_media.c ..Call 1: deinitializing media.. 2013-08-06 10:48:16:864 Yalo[4426:5a23] 972544816020 10:48:16.848 pjsua_media.c ..Call 2: deinitializing media.. 2013-08-06 10:48:16:906 Yalo[4426:5a23] 972544816020 10:48:16.864 pjsua_media.c ..Call 3: deinitializing media.. 2013-08-06 10:48:16:923 Yalo[4426:5a23] 972544816020 10:48:16.906 pjsua_acc.c .Acc 0: setting unregistration.. 2013-08-06 10:48:16:933 Yalo[4426:5a23] 972544816020 10:48:16.923 pjsua_core.c ...TX 555 bytes Request msg REGISTER/cseq=34780 (tdta0x15aed000) to TCP XXX.XXX.XXX.XXX:5060: REGISTER sip:XXX.XXX.XXX.XXX;transport=tcp SIP/2.0 Via: SIP/2.0/TCP XXX.XXX.XXX.TTTT:36663;rport;branch=z9hG4bKPjqrdIp4kZTdGkOB3ldq5emq9rGPA.qol6;alias Max-Forwards: 70 From: <sip:YYYYY@xxxxxxxxxxxxxxx>;tag=qlCD82ookCbciKMQgW0CAwtGNwiCWKrw To: <sip:YYYYY at XXX.XXX.XXX.XXX> Call-ID: EdcOcl6GT0EElisKeHMo3L0xnJ2k1KG6 CSeq: 34780 REGISTER User-Agent: Yalo PjSip v2.1-svn/arm-apple-darwin9 Supported: outbound, path Contact: <sip:YYYYY at ZZZ.ZZZ.ZZZ.ZZZ:PPPPP;transport=TCP;ob>;+sip.ice Expires: 0 Content-Length: 0 --end msg-- 2013-08-06 10:48:16:940 Yalo[4426:5a23] 972544816020 10:48:16.933 pjsua_acc.c ..Acc 0: Unregistration sent 2013-08-06 10:48:21:398 Yalo[4426:5a23] 972544816020 10:48:21.392 pjsua_core.c .Destroying... 2013-08-06 10:48:21:404 Yalo[4426:5a23] 972544816020 10:48:21.398 sip_transactio .Stopping transaction layer module 2013-08-06 10:48:21:408 Yalo[4426:5a23] 972544816020 10:48:21.404 pjsua_acc.c ....SIP registration failed, status=503 (Service Unavailable) 2013-08-06 10:48:21:418 Yalo[4426:5a23] 972544816020 10:48:21.408 pjsua_acc.c ....Scheduling re-registration retry for acc 0 in 0 seconds.. 2013-08-06 10:48:21:419 Yalo[4426:5a23] Status changed acc 0 Service Unavailable (503) 2013-08-06 10:48:21:419 Yalo[4426:5a23] sip status:503 2013-08-06 10:48:21:419 Yalo[4426:5a23] SipHandlerListener is Canceled , NOT about to broadcast anything 2013-08-06 10:48:21:439 Yalo[4426:5a23] 972544816020 10:48:21.419 sip_transactio .Stopped transaction layer module 2013-08-06 10:48:21:445 Yalo[4426:5a23] 972544816020 10:48:21.439 sip_endpoint.c .Module "mod-unsolicited-mwi" unregistered 2013-08-06 10:48:21:450 Yalo[4426:5a23] 972544816020 10:48:21.445 sip_endpoint.c .Module "mod-pjsua-options" unregistered 2013-08-06 10:48:21:468 Yalo[4426:5a23] 972544816020 10:48:21.450 sip_endpoint.c .Module "mod-pjsua-im" unregistered 2013-08-06 10:48:21:474 Yalo[4426:5a23] 972544816020 10:48:21.468 sip_endpoint.c .Module "mod-pjsua-pres" unregistered -- -- Yosi Taguri | Co-Founder | Labgoo | iPhone: http://ahhhpah.com | twitter: http://twitter.com/yosit | Mobile: +972-54-4816020 | Google Voice US Mobile: +1 (415) 935-1126 | Email: yosi at taguri.com *Confidential* -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20130806/481a4576/attachment-0001.html>