[Home]

Summary:ASTERISK-03488: Segmentation fault upon invalid IAX peer registration
Reporter:muppetmaster (muppetmaster)Labels:
Date Opened:2005-02-12 02:34:01.000-0600Date Closed:2011-06-07 14:00:52
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Channels/chan_iax2
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) asterisk.sql
( 1) btfull.txt.txt
Description:I just installed Asterisk on SuSE v9.1 on a new server.  There is someone attempting to register with my server:

Feb 12 09:29:20 NOTICE[11327]: chan_iax2.c:4422 register_verify: No registration for peer 'gw01-cph' (from 62.61.142.72)

[traces back to arrownet.dk]

I do not know who they are or why they are attempting to register (I am contacting to try and find out).  Nonethless, after a few attempts at a connection, I get a segmentation fault (bt details below).

****** ADDITIONAL INFORMATION ******

(gdb) bt
#0  realtime_peer (peername=Variable "peername" is not available.
) at chan_iax2.c:2240
#1  0x40be3621 in register_verify (callno=Variable "callno" is not available.
) at chan_iax2.c:680
#2  0x40be9201 in socket_read (id=0x813ac38, fd=10, events=1, cbdata=0x0)
   at chan_iax2.c:6553
#3  0x0805361c in ast_io_wait (ioc=0x81396d8, howlong=1385) at io.c:267
#4  0x40bddf61 in network_thread (ignore=0x0) at chan_iax2.c:7130
ASTERISK-1  0x400269dd in start_thread () from /lib/tls/libpthread.so.0
ASTERISK-2  0x4019364a in clone () from /lib/tls/libc.so.6
(gdb)
Comments:By: Clod Patry (junky) 2005-02-12 06:00:41.000-0600

Please attach a bt full and a full output of CLI please (with debug enabled).

By: Olle Johansson (oej) 2005-02-12 07:50:19.000-0600

What's your database schema for the realtime peer support?

By: muppetmaster (muppetmaster) 2005-02-12 09:07:10.000-0600

Added the SQL schema (some extra tables that I use for LCR, CLI lookup, etc) as well as the btfull.txt.  Will get the CLI in debug mode up there as well.

By: Clod Patry (junky) 2005-02-12 10:48:27.000-0600

Concerning the creation of cdr table, i think it's a good idea to put the uniqueid as the Primary Key, a bit off topic, i know, but im just expressing myself.

By: Mark Spencer (markster) 2005-02-12 12:36:40.000-0600

Find me on IRC so I can try to take a look.  If you are using the mysql realtime, can you please noload it and use the odbc one instead?

By: muppetmaster (muppetmaster) 2005-02-12 13:08:04.000-0600

Thanks for the tip on the CDR table, noted and changed.  As for the crash, I am unable to recreate as the extraneous registration attempts that were happening regularly have now stopped.  I will see what I can do and as appropriate switch from MySQL to ODBC.

By: Mark Spencer (markster) 2005-02-15 00:16:20.000-0600

Any update here?

By: Mark Spencer (markster) 2005-02-15 00:17:41.000-0600

Also be sure you're on latest CVS, we found a little but which may hvae caused this.

By: muppetmaster (muppetmaster) 2005-02-15 01:39:27.000-0600

I was out of my office yesterday so was not able to do much testng.  I have loaded the latest CVS this AM (Feb 15, 2005) and thus far the problem has not been reproduceable.  I will post any faults that occur, if any on this subject.

By: Mark Spencer (markster) 2005-02-15 23:40:42.000-0600

Just reopen if it happens again.  Thanks!