Re: mISDN_send: error -12 strikes again
Patrick Lists <misdn-list-tT6WbRwY5jipaK3yNG/KFWZHpeb/A1Y/@public.gmane.org>
| Newsgroups | gmane.linux.isdn.i4l.user |
|---|---|
| Message-ID | <[email protected]> |
On 19-03-12 17:54, Ralf Schlatterbeck wrote: [snip] > Problem with this approach is that we will do an automatic restart of > asterisk now once this happens again. So I've coded my own lock > debugging. When I ran this I observed that asterisk locks are > implemented using pthread locks with the PTHREAD_MUTEX_RECURSIVE > feature. This means the same thread can lock the same mutex multiple > times as long as lock/unlocks are properly nested. When the lock-count > reaches 0, other threads are free to obtain a lock. I'm afraid I can't be of much help other than to recommend you ask the Asterisk developers in #asterisk-dev on irc.freenode.net. Afaik they are helpful and interested in fixing any deadlock in Asterisk (if Asterisk is to blame). In the Asterisk Makefile there is "DEBUG=-g3" and when you do "make menuselect" then under "Compiler Flags" there are "DONT_OPTIMIZE" and "DEBUG_THREADS" to help debug (maybe there are others flags I missed). Good luck! Regards, Patrick