Summary:ASTERISK-08269: Crash when having more than 10 IAX registrations per second
Reporter:Loic Didelot (voipgate)Labels:
Date Opened:2006-12-04 04:23:35.000-0600Date Closed:2006-12-18 09:54:39.000-0600
Versions:Frequency of
Environment:Attachments:( 0) bt
( 1) btfull
( 2) iax.conf
Description:I flood the asterisk with some iax registration to test the stability. Since the beginning asterisk had always have problems with iax registrations. So this is a basic test we do everythime when trying out a new version.

We are running Redhat Enterprise. The problem does not occure on SIP.

We singed an NDA long time ago. I can provide access to this test box where all the tools are installed. So your develpers can trac, fix, compile etc.... Maybe this makes it easyer for you.


The following tool has been used to simulate the registrations. The tool has been executed on the same machine:

./iax_mass_authorization -h 80.??.??.?? -n 1000 -t 100


I remember having identical core dumps 6 weeks ago in 1.4 SVN. The bug does not exist in 1.4 SVN (r47527).
Comments:By: Serge Vecher (serge-v) 2006-12-04 09:33:40.000-0600

can you please compile asterisk without optimizations and attach a backtrace of core file dumped by asterisk upon a crash?

By: Serge Vecher (serge-v) 2006-12-04 10:35:09.000-0600

hmm, the crash is in chan_iax, but r.47527 did not touch that code. If possible, could you please try to narrow down the revision that introduces the problem between 47527 and 48223?

By: Jason Parker (jparker) 2006-12-04 16:29:50.000-0600

There was only one change in chan_iax (besides adding comments) since revision 47527, and that is here: http://svn.digium.com/view/asterisk/trunk/channels/chan_iax2.c?r1=48099&r2=48160

By: Russell Bryant (russell) 2006-12-05 19:52:06.000-0600

You say 10 per second, but based on the command line that you put in the report, you have it doing 1000 per second.  That is insane.  That would be 60 thousand peers registered to the same box.

In any case, it should never crash ...

By: Loic Didelot (voipgate) 2006-12-06 00:17:46.000-0600

1 second equals to 1000 milliseconds. So if I have a timeout value of 100 (-t 100) this means 10 registrations per second.  Well let's not discuss this. On SIP I can launch the command with -t1 without any problem. SIP behaves very well.

By: Russell Bryant (russell) 2006-12-06 00:35:33.000-0600

Ah, I misunderstood what the arguments were to the application.

By: Russell Bryant (russell) 2006-12-06 00:38:11.000-0600

So, based on the settings in your iax.conf, I assume you're using realtime with this?

By: Loic Didelot (voipgate) 2006-12-06 01:01:54.000-0600

Oh yes. We use realtime through ODBC to a mysql database.

By: Loic Didelot (voipgate) 2006-12-18 02:53:06.000-0600

I test this from time 2 time and I just tested with Asterisk SVN-branch-1.4-r48548 . It does not seem to crash anymore.

By: Serge Vecher (serge-v) 2006-12-18 09:54:38.000-0600

ok, thanks for the confirmation. If the problem does come back up, please reopen the issue with an updated unoptimized bt full attached. Thanks!