Re: mISDN_send: error -12 strikes again

Ralf Schlatterbeck <[email protected]>
Newsgroups gmane.linux.isdn.i4l.user
Message-ID <[email protected]>
Another scenario is during relase, when lcr_in_release calls ast_hangup
while holding the lcr lock and *several* other threads that have
acquired a lock for one of the channels try to acquire the lcr lock.

This is now with asterisk 1.6 and an earlier version of chan_lcr.

So it seems not just ast_channel_alloc is a problem (see my previous
mail with a patch I tried) but also ast_hangup. Both should not be
called while holding a private lock.

Can we come up with a design that never calls into asterisk while
holding a private lock that is also needed by callbacks from asterisk?

Ralf

-- 
Ralf Schlatterbeck             email: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.