[Home]

Summary:ASTERISK-18169: Asterisk crashes on incoming call
Reporter:candrews (candrews)Labels:
Date Opened:2011-07-24 14:05:17Date Closed:2012-01-28 11:56:37.000-0600
Priority:MajorRegression?
Status:Closed/CompleteComponents:Channels/chan_gtalk
Versions:1.8.5.0 Frequency of
Occurrence
Constant
Related
Issues:
Environment:Gentoo Linux. I also experience this crash on OpenWRT. i can provide any info about any dependency upon request.Attachments:( 0) asterisk.tar.gz
( 1) backtrace.txt
( 2) gdb.txt
( 3) messages
Description:Whenever I receive an incoming call (I use Google Voice via gtalk) Asterisk crashes with a segfault. Making outgoing calls works great.

I'm attaching a zip with all my asterisk configuration (except passwords).

I've been experiencing this issue for a long time, at least back to Asterisk 1.8.1. It used to just crash sometimes on incoming calls, but now it always crashes.
Comments:By: candrews (candrews) 2011-07-24 14:05:58.055-0500

backtrace, gathered as specified in https://wiki.asterisk.org/wiki/display/AST/Getting+a+Backtrace#GettingaBacktrace-Overview

By: candrews (candrews) 2011-07-24 14:06:14.155-0500

gdb.txt, gathered as specified in https://wiki.asterisk.org/wiki/display/AST/Getting+a+Backtrace#GettingaBacktrace-Overview

By: candrews (candrews) 2011-07-24 14:07:43.031-0500

/var/log/asterisk/messages from startup to when the crash occurs. debug 4 and verbose 4. In sip.conf, recordhistory=yes and dumphistory=yes

By: candrews (candrews) 2011-07-24 14:14:07.127-0500

asterisk configuration from /etc/asterisk

By: Gregory Hinton Nietsky (irroot) 2011-07-24 14:30:31.496-0500

can you please rebuild asterisk with the DONT_OPTOMISE flag and paste a new back trace.

By: candrews (candrews) 2011-07-24 20:37:14.912-0500

I have some troubling information to report...

I am using /etc/asterisk.makeopts to set DONT_OPTIMIZE. So I recompiled asterisk with /etc/asterisk.makeopts containing only this line:
MENUSELECT_CFLAGS=DONT_OPTIMIZE

And asterisk does not crash on incoming calls any more.

If I remove that line, and change nothing else, and recompile again... asterisk will crash on incoming calls.

I also tried setting DEBUG_THREADS, so /etc/asterisk.makeopts contains only this line:
MENUSELECT_CFLAGS=DEBUG_THREADS

and asterisk refuses to crash on incoming calls (just as it refuses to crash when DONT_OPTIMIZE was set).

What can I do to help figure out what this problem is? I can certainly run asterisk with DEBUG_THREADS or DONT_OPTIMIZE, but that seems... hacky.

Thank you!

By: Kinsey Moore (kmoore) 2011-07-26 09:33:57.551-0500

Since DONT_OPTIMIZE causes a lack of failure, maybe running under valgrind --trace-children=yes will give us some more hints at what to look at for the cause of the crash.

By: Alec Davis (alecdavis) 2011-09-07 05:48:01.230-0500

I can get a similar crash just by having a simple dialplan of;
dial 807 or 808 from another SIP or DAHDI extension.
exten => 807,1,Dial(SIP/gxp-823,,a)
exten => 808,1,Dial(DAHDI/35,,a)

1.8.6.0 also crashes, and like candrews, enabling DONT_OPTIMIZE stops it.

1.8 SVN wouldn't crash.
trunk, wouldn't crash.



By: Matt Jordan (mjordan) 2011-12-27 08:34:25.329-0600

Per Alec, this may not be a problem in the latest 1.8.  Can you test with 1.8.8?

By: Paul Belanger (pabelanger) 2012-01-28 11:56:26.143-0600

Suspended due to lack of activity. Please request a bug marshal in #asterisk-bugs on the IRC network irc.freenode.net to reopen the issue should you have the additional information requested.  Further information can be found at http://www.asterisk.org/developers/bug-guidelines