mISDN_send: error -12 strikes again

Ralf Schlatterbeck <[email protected]>
Newsgroups gmane.linux.isdn.i4l.user
Message-ID <[email protected]>
System: Debian Stable, kernel 2.6.32-5-amd64
lcr: 129a76d1411166176db646138b35e8f5ed9907a2 from Feb 20 2011
mISDNuser and mISDN around the same time. mISDN is slightly older (some
commits broke compilation on older kernels).

I've verified that the current chan_misdn didn't change anything
concerning locking compared to the old version above.

Yesterday we had the message "mISDN_send: error -12" filling
/var/log/kern.log. Restarting asterisk "fixed" it.

When this happened "lcradmin state" and "core show channels" in asterisk
had different ideas on the channels in use: lcradmin showed three busy
channels while asterisk showed only one.

Andreas: Any idea how to instrument the code to debug locking issues?
Do you think that the same asterisk lock will be called twice by
chan_misdn or is this a complicated locking issue involving several
locks inside asterisk? My idea for the first case would be to replace
all calls to ast_lock/unlock with macros that log line number and time
to syslog.

I'm not sure we're going to see this soon again, though.

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.