Summary:ASTERISK-12914: [patch] crashes randomly
Reporter:Marcin Kowalczyk (kowalma)Labels:
Date Opened:2008-10-16 06:52:04Date Closed:2008-12-22 16:37:48.000-0600
Versions:Frequency of
Environment:Attachments:( 0) 20081019__bug13717.diff.txt
( 1) 20081102__bug13717.diff.txt
( 2) core.asterisk-IBM-2008-11-02T22_16.txt
( 3) core.asterisk-IBM-2008-11-03T04_11.txt
( 4) core.asterisk-IBM-2008-11-04T17_55.txt
( 5) crash2.txt
( 6) crash-dell.txt
( 7) iax2.pcap
( 8) putty_new.log
( 9) putty.log

I've compiled on my box on Monday and since then I had few totaly random coredumps. Some of them were done durring night when no call-processing is done, some of them durring peak-time.

Asterisk @ IBM x3400 + Sangoma A104d (wanpipe 3.3.14) + DAHDI 2.0 + asterisk-addons
Kernel 2.6.19-7
gcc 4.1.2

420 SIP peers, 55 IAX2 peers (IAX modems).

Please find attached gbd output, from this output I think that crash is caused by iax2
Comments:By: Leif Madsen (lmadsen) 2008-10-16 13:39:06

Just curious if this log is from a machine with DONT_OPTIMIZE enabled? I can't quite tell if this backtrace is useful or not for a developer. Thanks!

By: Marcin Kowalczyk (kowalma) 2008-10-16 13:49:51

yes - it's from machine with dont_optimize compiled.
I've read backtrace.txt


By: Marcin Kowalczyk (kowalma) 2008-10-17 15:04:07

I've attached backtrace from today's crash

By: Marcin Kowalczyk (kowalma) 2008-10-18 14:38:30

I've attached backtrace from next crash, and ethereal traces before and after crash.

By: Marcin Kowalczyk (kowalma) 2008-10-19 12:24:22

I've just applied provided patch. I'll let you know how Asterisk behavies with that patch.

By: Leif Madsen (lmadsen) 2008-10-27 11:48:20

kowalma: does the patch fix your issues? I assume it does as we haven't heard back in a week :)

By: Marcin Kowalczyk (kowalma) 2008-11-02 15:07:13.000-0600


I've just checked and Asterisk crashed again, so patch did not solve problem.

asterisk-IBM:/tmp# ls core*

By: Tilghman Lesher (tilghman) 2008-11-02 22:47:22.000-0600

kowalma:  please provide a backtrace from a corefile with the patch.

By: Marcin Kowalczyk (kowalma) 2008-11-03 01:06:45.000-0600

Please find attached bt from last two crashes (it's after patching)

By: Tilghman Lesher (tilghman) 2008-11-03 07:13:10.000-0600

New patch uploaded.

By: Marcin Kowalczyk (kowalma) 2008-11-03 08:06:09.000-0600

I've just applied patch. I will provide feedback in few days.

By: Marcin Kowalczyk (kowalma) 2008-11-04 12:37:53.000-0600

Crashed again half hour ago.

Please find attached bt output from most recent crash.

By: Tilghman Lesher (tilghman) 2008-11-04 14:36:53.000-0600

Okay, so the original crash is fixed, but you have a new crash to report.  Please open a new issue with the details of that crash, including that it crashed within manager.  This is no longer an IAX2 issue.  I am committing the patch posted and this issue will be closed.

By: Digium Subversion (svnbot) 2008-11-04 14:38:22.000-0600

Repository: asterisk
Revision: 154365

U   branches/1.4/channels/chan_iax2.c

r154365 | tilghman | 2008-11-04 14:38:21 -0600 (Tue, 04 Nov 2008) | 9 lines

On busy systems, it's possible for the values checked within a single line
of code to change, unless the structure is locked to ensure a consistent
(closes issue ASTERISK-12914)
Reported by: kowalma
      20081102__bug13717.diff.txt uploaded by Corydon76 (license 14)
Tested by: kowalma



By: Marcin Kowalczyk (kowalma) 2008-12-22 16:26:29.000-0600

My asterisk box started to crash again:

Asterisk-node0:/tmp# rasterisk -x "core show version"
Asterisk built by root @ Asterisk-node0 on a i686 running Linux on 2008-12-22 20:56:13 UTC
Asterisk-node0:/tmp# ls /tmp/core.Asterisk-node0-2008-12-22* |wc -l

By: Leif Madsen (lmadsen) 2008-12-22 16:37:48.000-0600

As was requested by Corydon76, this is a separate crash issue. Please open a new issue to track it.