Summary:ASTERISK-13561: Segfault in chan_iax.so
Reporter:kopspa (kopspa)Labels:
Date Opened:2009-02-11 08:47:19.000-0600Date Closed:2009-02-11 09:34:25.000-0600
Versions:Frequency of
Environment:Attachments:( 0) gdb.txt
Description:Hi All,
I've some strange problems with some kind of PBXs

i see a lot of

asterisk[16692]: segfault at c6 ip b3887174 sp aeffc3b0 error 4 in chan_iax2.so[b3868000+3e000]
asterisk[16921]: segfault at c6 ip b38f7174 sp b20893b0 error 4 in chan_iax2.so[b38d8000+3e000]

in my logs.

Note that it happens only in some cases: all my machines running asterisk and iaxmodem. The problem occurs in asterisk 1.4.21,22 and 23
It is an Asterisk compiled from scratch in a vmware virtual machine and packaged by me for Debian Etch
I have also some Asterisk boxes with IAX trunks (for some of my customers that needs 2 or more PBXs) and on that boxes i haven't see the problem... I use iaxmodem for getting/sending faxes (after nv_faxdetect)

What i could do to debug the problem? I've not setup some insane CFLAGS to compile asterisk, simply ./configure; make; make install and then i manually build the .deb

Comments:By: Joshua C. Colp (jcolp) 2009-02-11 09:00:17.000-0600

Unfortunately this is not very useful. We need a backtrace to see exactly where it is crashing. Please use the latest version of Asterisk. Instructions for getting a backtrace are in the backtrace.txt file in the doc directory of the Asterisk source code. Please make sure that your code is compiled with DONT_OPTIMIZE enabled.

By: kopspa (kopspa) 2009-02-11 09:11:54.000-0600

i have some problems upgrading to latest just now, i'll do it in the next days
if i give you a core dump, may be useful?

By: Joshua C. Colp (jcolp) 2009-02-11 09:13:25.000-0600

The core dump has to be opened in gdb on your system and the backtrace attached. Attaching the core dump itself won't help.

By: kopspa (kopspa) 2009-02-11 09:31:47.000-0600

here is the gdb output. please note that it isn't compiled with DONT_OPTIMIZE, because right now i can't do it on that system

By: Joshua C. Colp (jcolp) 2009-02-11 09:34:25.000-0600

This is a duplicate of issue 13998. Please follow progress there and help if you can.