[asterisk-bugs] WARNING[18907] chan_dahdi.c: Whoa.... I'm owned but found (18) in read...

Brad Allen bwa+asterisk-bugs at sonic.net
Tue Sep 1 11:42:58 CDT 2020


I presume "Asterisk Bugs" is where we report bugs.  I found one!  This is in
asterisk-17.7.0-rc1 and I just started configuring my new Digium analog board,
and have it working for outgoing calls mostly, and started to do some reliability
work on outgoing and starting to get the configuration for incoming working,
too.

I went to bed and when I woke up I found this:

[Sep  1 08:38:08] WARNING[18907] chan_dahdi.c: Whoa....  I'm owned but found (18) in read...
[Sep  1 08:38:08] WARNING[18907] chan_dahdi.c: Whoa....  I'm owned but found (18) in read...
[Sep  1 08:38:08] WARNING[18907] chan_dahdi.c: Whoa....  I'm owned but found (18) in read...
[Sep  1 08:38:08] WARNING[18907] chan_dahdi.c: Whoa....  I'm owned but found (18) in read...
[Sep  1 08:38:08] WARNING[18907] chan_dahdi.c: Whoa....  I'm owned but found (18) in read...
[Sep  1 08:38:08] WARNING[18907] chan_dahdi.c: Whoa....  I'm owned but found (18) in read...
[Sep  1 08:38:08] WARNING[18907] chan_dahdi.c: Whoa....  I'm owned but found (18) in read...
[Sep  1 08:38:08] WARNING[18907] chan_dahdi.c: Whoa....  I'm owned but found (18) in read...
[Sep  1 08:38:08] WARNING[18907] chan_dahdi.c: Whoa....  I'm owned but found (18) in read...
[Sep  1 08:38:08] WARNING[18907] risk2037$130 ^C
$ ^C
$ egrep -c 'chan_dahdi\.c: Whoa....  I'"'"'m owned but found [(]18[)] in read...'  messages
297473651
[That's 297,473,651, and that's just what it decided to log.]
$ tail messages
[Sep  1 09:27:07] WARNING[18907] chan_dahdi.c: Whoa....  I'm owned but found (18) in read...
[Sep  1 09:27:07] WARNING[18907] chan_dahdi.c: Whoa....  I'm owned but found (18) in read...
[Sep  1 09:27:07] WARNING[18907] chan_dahdi.c: Whoa....  I'm owned but found (18) in read...
[Sep  1 09:27:07] WARNING[18907] chan_dahdi.c: Whoa....  I'm owned but found (18) in read...
[Sep  1 09:27:07] WARNING[18907] chan_dahdi.c: Whoa....  I'm owned but found (18) in read...
[Sep  1 09:27:07] WARNING[18907] chan_dahdi.c: Whoa....  I'm owned but found (18) in read...
[Sep  1 09:27:07] WARNING[18907] chan_dahdi.c: Whoa....  I'm owned but found (18) in read...
[Sep  1 09:27:07] WARNING[18907] chan_dahdi.c: Whoa....  I'm owned but found (18) in read...
[Sep  1 09:27:07] WARNING[18907] logger: Log queue threshold (1000) exceeded.  Discarding new messages.
[Sep  1 09:27:07] WARNING[11828] logger: Logging resumed.  1477 messages discarded.
$ ls -ld messages
-rw-r--r-- 1 asterisk asterisk 27721147501 Sep  1 09:27 messages
$
[That's 27,721,147,501.]

Two things:

1.  The logging is horrible at removing duplicates.  This basic
functionality has existed in syslog for decades.  If Asterisk
implements its own homebrew logging system, it's time it upgrades to
basic functionality.  (It should remove duplicates like syslog does.)
2.  There's a loop bug in there.  The logging tells me nothing about
what that loop bug could be.  It must be hidden in the source code.

Ok, have a nice day.
Brad Allen



More information about the asterisk-bugs mailing list