[Home]

Summary:ASTERISK-09046: Asterisk crash in codec_alaw.c
Reporter:Eldad Ran (eldadran)Labels:
Date Opened:2007-03-19 11:55:18Date Closed:2007-07-18 07:21:36
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 20070712__frdup_instead_of_ptrcopy.diff.txt
( 1) crash_060707.txt
( 2) crash_120607.txt
( 3) crash_SVN-branch-1.4-r69470M.txt
( 4) crash.txt
Description:see the attached BT,
normal installation, have experiance some internet link problem while it crashed, might be related and might be not.
The version
Comments:By: Serge Vecher (serge-v) 2007-03-19 13:00:40

do you have a console log available prior to the crash?

By: Eldad Ran (eldadran) 2007-03-19 13:06:44

I'm affraid not, this is a production server, and usually the console is not used, and verbosety is set to zero.

By: Serge Vecher (serge-v) 2007-03-19 14:26:06

what about /var/log/asterisk/messages?

By: Eldad Ran (eldadran) 2007-03-19 14:32:49

That was /var/log/asterisk/messages

By: Joshua C. Colp (jcolp) 2007-03-20 23:10:25

Is this an unoptimized build? I'm following the code flow and it looks really... impossible with what is happening.

By: Eldad Ran (eldadran) 2007-03-21 02:18:52

Asterisk was built from release 1.4.1:
Asterisk 1.4.1 built by root @ localhost on a i686 running Linux on 2007-03-07 05:37:05 UTC
I didn't touch the source code.
If you like I can send you the specific sources, so we can verify that the code is untouched, just tell me what files do you need.

By: Serge Vecher (serge-v) 2007-03-21 08:36:54

in menuselect, under compiler options, is the "DONT OPTIMIZE" flag checked? If not , you will have to rebuild asterisk (might as well go to 1.4.2) and of crash occurs again, produce a new bt.

By: Eldad Ran (eldadran) 2007-03-24 09:33:53

Done.
now we have to wait and see.

By: Eldad Ran (eldadran) 2007-06-11 14:55:19

Updated installation from trunk, including zaptel and libpri. log file shows:
[Jun 11 19:28:43] WARNING[32016] translate.c: no samples for lintoalaw
[Jun 11 19:28:43] WARNING[32016] translate.c: lintoalaw did not update samples 0
[Jun 11 19:28:43] WARNING[32016] translate.c: no samples for lintoalaw
[Jun 11 19:28:44] WARNING[32016] translate.c: no samples for lintoalaw
[Jun 11 19:28:44] WARNING[32016] translate.c: no samples for lintoalaw
[Jun 11 19:28:45] WARNING[32016] translate.c: no samples for lintoalaw
[Jun 11 19:28:47] NOTICE[25827] rtp.c: Unknown RTP codec 126 received from 'XX.XX.XX.XX'
[Jun 11 19:28:47] WARNING[32016] translate.c: no samples for lintoalaw
[Jun 11 19:28:48] WARNING[32016] translate.c: no samples for lintoalaw
[Jun 11 19:28:50] WARNING[32016] translate.c: no samples for lintoalaw
[Jun 11 19:28:50] WARNING[32016] translate.c: no samples for lintoalaw
[Jun 11 19:28:51] WARNING[29971] app_meetme.c: Unable to write frame to channel SIP/XX.XX.XX.XX-b5eb26c0
[Jun 11 19:28:51] WARNING[32016] translate.c: no samples for lintoalaw
[Jun 11 19:28:51] WARNING[32016] translate.c: no samples for lintoalaw
[Jun 11 19:28:51] WARNING[32016] translate.c: no samples for lintoalaw
[Jun 11 19:28:55] WARNING[32016] translate.c: no samples for lintoalaw
[Jun 11 19:28:55] WARNING[32016] translate.c: no samples for lintoalaw
[Jun 11 19:28:55] WARNING[32016] translate.c: no samples for lintoalaw
[Jun 11 19:28:55] WARNING[32016] translate.c: no samples for lintoalaw
[Jun 11 19:28:55] WARNING[32016] translate.c: no samples for lintoalaw
[Jun 11 19:28:55] WARNING[32016] translate.c: no samples for lintoalaw
[Jun 11 19:28:56] NOTICE[9074] rtp.c: Unknown RTP codec 126 received from 'XX.XX.XX.XX'
[Jun 11 19:29:06] NOTICE[9074] rtp.c: Unknown RTP codec 126 received from 'XX.XX.XX.XX'
[Jun 11 19:29:08] NOTICE[711] rtp.c: Unknown RTP codec 126 received from 'XX.XX.XX.XX'
[Jun 11 19:29:08] NOTICE[25827] rtp.c: Unknown RTP codec 126 received from 'XX.XX.XX.XX'
[Jun 11 19:29:10] WARNING[1868] translate.c: no samples for lintoalaw
[Jun 11 19:29:10] WARNING[1868] translate.c: no samples for lintoalaw

This is the last log line, then it crashed.

By: Eldad Ran (eldadran) 2007-07-01 17:02:56

Crashed again this time, running version is from branch 1.4 r69470, after running for 20 days or so, about 300K calls.

By: Tilghman Lesher (tilghman) 2007-07-01 21:02:56

The version number "r69470M" tells me that you are not using clean source.  What exactly have you modified, and would it be possible to generate a crash using unaltered Asterisk?

By: Eldad Ran (eldadran) 2007-07-02 01:09:19

I've just modified the safe_asterisk script, not the compiled code:
[src]$ svn status asterisk
X      asterisk/menuselect
M      asterisk/contrib/scripts/safe_asterisk

Performing status on external item at 'asterisk/menuselect'
X      asterisk/menuselect/mxml

Performing status on external item at 'asterisk/menuselect/mxml'



By: Eldad Ran (eldadran) 2007-07-05 12:39:39

Clean code, same crash.

By: Eldad Ran (eldadran) 2007-07-05 13:13:12

The only thing I can find in common with the last 3 crashes was that all channels were in an initial mute status ('m' flag), and the state is suppose to be changed to talk mode after 20 seconds which is the duration of the meetme session (using meetmeadmin unmute command from a local channel) when it crashed asterisk.
This is a very busy system which holds at least 20 meetme clients in different rooms in any given time, and all are using the very same 20 seconds of listen only mode.

By: Eldad Ran (eldadran) 2007-07-12 01:49:16

The system keeps crashing every day, did you found out why ?

By: Tilghman Lesher (tilghman) 2007-07-12 07:15:35

Please try this patch and see if it solves your crashes.

By: Eldad Ran (eldadran) 2007-07-18 03:04:29

It looks like it fixed the problem, no crashes for the last 6 days, it used to crash every day.
Thanks.

By: Digium Subversion (svnbot) 2007-07-18 07:12:46

Repository: asterisk
Revision: 75529

------------------------------------------------------------------------
r75529 | tilghman | 2007-07-18 07:12:44 -0500 (Wed, 18 Jul 2007) | 2 lines

Using a freed frame causes crashes (closes issue ASTERISK-9046)

------------------------------------------------------------------------

By: Digium Subversion (svnbot) 2007-07-18 07:21:36

Repository: asterisk
Revision: 75530

------------------------------------------------------------------------
r75530 | tilghman | 2007-07-18 07:21:36 -0500 (Wed, 18 Jul 2007) | 10 lines

Merged revisions 75529 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r75529 | tilghman | 2007-07-18 07:29:41 -0500 (Wed, 18 Jul 2007) | 2 lines

Using a freed frame causes crashes (closes issue ASTERISK-9046)

........

------------------------------------------------------------------------