Summary:ASTERISK-05632: Segmentation Fault at DISA
Reporter:d-trix (d-trix)Labels:
Date Opened:2005-11-17 16:04:03.000-0600Date Closed:2011-06-07 14:00:45
Versions:Frequency of
Environment:Attachments:( 0) PUBLICcapi.conf
( 1) PUBLICextensions.conf
Description:When an call gets in via DISA, Asterisk caused an Segmentation fault. This happens also at Asterisk 1.2.0-beta2
Asterisk 1.0.9 and 1.2.0-beta1 runs stable at the same szenario!

Asterisk Ready.
*CLI>     -- parse_srv: SRV mapped to host sipgate.de, port 5060
   -- Saved useragent "ALL7950 02.09.18" for peer 100
   -- Saved useragent "ALL7950 02.09.26" for peer 11
   -- creating pipe for PLCI=0x4701
   -- started pbx on channel (callgroup=0)!
Segmentation fault (core dumped)
linux:~/asterisk-1.2.0 #

With an downgrade to 1.2.0-beta1 with the same configuration files there is now no problem anymore.
Comments:By: Matt O'Gorman (mogorman) 2005-11-17 16:21:29.000-0600

is this issue repeatable with the new version of 1.2 on your machine?

By: d-trix (d-trix) 2005-11-17 17:40:53.000-0600

yes this happens on:

1.2.0-final: Segmentation fault
1.2.0-beta2: Segmentation fault
1.2.0-beta1: works fine
1.0.9-final: works fine

By: Mark Spencer (markster) 2005-11-17 19:09:05.000-0600

Can you please supply a backtrace?

By: damin (damin) 2005-11-19 00:30:25.000-0600

If you can provide the dial-plan code that you are using, I can set this up and verify the behavior on a box here.

By: d-trix (d-trix) 2005-11-20 11:25:53.000-0600


I dont know exactly what to do for a valid backtrace.
Ok i installed 1.2.0 with make clean; make valgrind; make install"
started Asterisk in normal mode, call it via DISA, it crashed, then
  1. start Asterisk with safe_asterisk
  2. enter "gdb asterisk core.xxxx"
  3. enter "bt" while in gdb (or do a "bt full")

So this is the result:

(gdb) bt
#0  0x40151f28 in _int_malloc () from /lib/tls/libc.so.6
#1  0x401535b4 in malloc () from /lib/tls/libc.so.6
#2  0x080a63e0 in ast_cdr_alloc () at cdr.c:459
#3  0x080942e9 in __ast_pbx_run (c=0x40203ff4) at pbx.c:2248
#4  0x08095c8c in pbx_thread (data=0x3f0) at pbx.c:2507
ASTERISK-1  0x40036aa7 in start_thread () from /lib/tls/libpthread.so.0
ASTERISK-2  0x401a8c2e in clone () from /lib/tls/libc.so.6

For further infos leave me a message..

By: BJ Weschke (bweschke) 2005-11-20 16:37:46.000-0600

d-trix, if you'd send us the assets (your dialplan or your disa password file's contents, minus passwords), we'd be able to try to reproduce this w/o you submitting a full bt. A full bt wouldn't hurt either though. :)

By: d-trix (d-trix) 2005-11-20 17:25:46.000-0600

Ok here are my censored extensions.conf and the capi.conf
I use chan_capi-cm-0.5.4

By: Russell Bryant (russell) 2005-11-20 19:56:17.000-0600

chan_capi is not in Asterisk.  If you can recreate this on an unpatched version of Asterisk, please submit a valid backtrace.  Instructions for providing a backtrace can be found in doc/README.backtrace.  Thanks