sabby3861 / idoubs

Automatically exported from code.google.com/p/idoubs
0 stars 0 forks source link

Mutex Lock related Crash #84

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Attempt to start a SIP Stack and Register

What is the expected output? What do you see instead?
- Expected successful registration everytime.
- Sometimes [1/10 times,  the program will crash at tsk_mutex.c, line 120 
if(ret = pthread_mutex_lock((MUTEX_T)handle)) ]

What version of the product or source code revision are you using? On what
operating system?
iOS 5.0 & iOS 4.3.5 / iPhone and iPod Touch
Doubango r659
ios-ngn-stack r181 -> r184

I've noticed this since ios-ngn-stack r181. This occurs on all revisions after.

Please provide any additional information below.

Original issue reported on code.google.com by ma...@mumsweb.net on 27 Sep 2011 at 2:01

GoogleCodeExporter commented 9 years ago
This issue happens a lot less frequently on the ios-ngn-stack build r180 that I 
am using at the moment, although still occurs. This issue is causing a serious 
issue for us to launch our product.

Original comment by m...@curiousminds.com on 29 Sep 2011 at 11:33

GoogleCodeExporter commented 9 years ago
For now we cannot do anything as we cannot reproduce the issue using iDoubs.
If you have log trace, please attach.

Original comment by boss...@yahoo.fr on 30 Sep 2011 at 8:09

GoogleCodeExporter commented 9 years ago
It's difficult to reprocude. Here's another example of this.

Thread 14: EXC_BAD_ACCESS (code=2, address=0xc)

ThreadDump:

0 tsip_dialog_layer_shutdownAll (tsip_dialog_layer.c:231)
1 tsip_stack_stop (tsip.c:832)
2 SipStack::stop() (SipStack.cxx:381)
3 -[NgnSipStack stop] (NgnSipStack.mm:273)
4 -[NgnSipService stopStackSynchronously] (NgnSipService.mm:1002)
5 -[NSThread main]

LOG:
***ERROR: function: "tsk_condwait_timedwait()" 
file: 
"/Users/matt/Documents/curiousminds/tt_ios/Libraries/iPhone/idoubs/branches/2.0/
ios-ngn-stack/../../../../../doubango/branches/2.0/doubango/tinySAK/src/tsk_cond
wait.c" 
line: "202" 
MSG: pthread_cond_timedwait function failed: 22
***ERROR: function: "tsk_mutex_unlock()" 
file: 
"/Users/matt/Documents/curiousminds/tt_ios/Libraries/iPhone/idoubs/branches/2.0/
ios-ngn-stack/../../../../../doubango/branches/2.0/doubango/tinySAK/src/tsk_mute
x.c" 
line: "151" 
MSG: Failed to unlock the mutex: 22

Original comment by m...@curiousminds.com on 30 Sep 2011 at 11:25

GoogleCodeExporter commented 9 years ago
Did you reproduced the issue with iDoubs or your app?

Original comment by boss...@yahoo.fr on 1 Oct 2011 at 1:36

GoogleCodeExporter commented 9 years ago
This is with my app with ios-ngn-stack.

This doesn't happen every time, its reproduced ~1/10 calls.

Original comment by m...@curiousminds.com on 1 Oct 2011 at 1:39

GoogleCodeExporter commented 9 years ago
Probably an issue with your code because using iDoubs it's not possible to 
reproduce.
It should be easy to fix the issue as you already have the line producing the 
issue and the errno.
I don't see how we can help fixing an issue in your code.

Original comment by boss...@yahoo.fr on 1 Oct 2011 at 1:59

GoogleCodeExporter commented 9 years ago
The lines listed are ios-ngn-stack lines ie/ lines in the doubango/idoubs 
stack. It seems to happen when the sip stack seems to stop.

I've compared my codebase to idoubs and even refactored things to be identical 
and i'm getting the same issues.

Original comment by m...@curiousminds.com on 13 Oct 2011 at 7:37

GoogleCodeExporter commented 9 years ago
Requesting this to be marked as Invalid, It looks like this was to do with my 
sip server. I've tweaked the SIP authentication and it appears fixed.

Original comment by mattvanv...@gmail.com on 21 Oct 2011 at 12:02

GoogleCodeExporter commented 9 years ago

Original comment by boss...@yahoo.fr on 10 Dec 2011 at 12:30