[Home]

Summary:ASTERISK-11578: Asterisk Crash
Reporter:Thiago Garcia (thiagarcia)Labels:
Date Opened:2008-03-05 08:37:59.000-0600Date Closed:2008-03-05 18:17:39.000-0600
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Channels/chan_iax2
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) bt_full_second.txt
( 1) bt_full_valgrind.txt
( 2) bt_full.txt
( 3) malloc_debug.txt
( 4) mmlog
( 5) thread_apply_all_bt_second.txt
( 6) thread_apply_all_bt_valfrind.txt
( 7) thread_apply_all_bt.txt
( 8) valgrind.zip
Description:After updated Asterisk from SVN-branch-1.4-r80601 to SVN-branch-1.4-r105676, the asterisk crashes.

That occurs when a call is blind transfered.

The valgrind takes away huge load the production server. In the night I will execute asterisk with valgrind.


****** ADDITIONAL INFORMATION ******

    -------------
Our scenario:
-------------
extensions prococol: IAX2
softphone: IDEFISK
softphone codec: ALAW/GSM/ULAW
* Server are compiled with DONT_OPTIMIZE, DEBUG_THREADS and MALLOC_DEBUG options.
-------------

---------------------
Hardware Description:
---------------------

Server :
-Intel(R) Core(TM)2 Duo CPU
-Digium TE110P card
-Digium TDM2400 (with 6 FXS modules)
-Digium TDM400P (with 4 FXO modules)

---------------------
Software Description:
---------------------

Slackware 12 kernel 2.6.23.17

Asterisk SVN-branch-1.4-r105676
Zaptel SVN-branch-1.4-r3921
Libpri SVN-branch-1.4-r528

Comments:By: Thiago Garcia (thiagarcia) 2008-03-05 09:52:30.000-0600

In mmlog

1204410826 - New session
1204417034 - New session
1204417652 - New session
1204417717 - New session
1204417834 - New session
1204418334 - New session
1204418403 - New session
1204433098 - New session
1204433126 - New session
1204433149 - New session
1204433805 - New session
1204451297 - New session
1204669200 - New session
1204669265 - New session
WARNING: Freeing unused memory at (nil), in timing_read of chan_iax2.c, line 6415
1204723145 - New session
1204723265 - New session
1204729625 - New session
WARNING: Freeing unused memory at (nil), in timing_read of chan_iax2.c, line 6415
1204729890 - New session
1204731885 - New session

By: Thiago Garcia (thiagarcia) 2008-03-05 09:53:18.000-0600

The console of last crash.

[Mar  5 12:44:14] DEBUG[29003]: func_db.c:70 function_db_read: DB: CFIM/5666 not found in database.
[Mar  5 12:44:14] DEBUG[27406]: chan_iax2.c:7581 socket_process: Async goto of 'AsyncGoto/IAX2/5633-41<ZOMBIE>' to '5666@pode-testes' started
   -- Executing [5666@pode-testes:1] Set("IAX2/5633-41", "TEMP=") in new stack
 == Spawn extension (pode-testes, 5633, 34) exited non-zero on 'IAX2/5660-123'
   -- Executing [5666@pode-testes:2] GotoIf("IAX2/5633-41", "0?3:5") in new stack
   -- Hungup 'IAX2/5660-123'
   -- Goto (pode-testes,5666,5)
   -- Executing [5666@pode-testes:5] Set("IAX2/5633-41", "NRAMAL=5666") in new stack
   -- Executing [5666@pode-testes:6] NoOp("IAX2/5633-41", "Finish if-ramais-101") in new stack
   -- Executing [5666@pode-testes:7] GotoIf("IAX2/5633-41", "0?8:12") in new stack
   -- Goto (pode-testes,5666,12)
   -- Executing [5666@pode-testes:12] GotoIf("IAX2/5633-41", "0?13:17") in new stack
   -- Goto (pode-testes,5666,17)
   -- Executing [5666@pode-testes:17] Set("IAX2/5633-41", "INTERFACE=Zap") in new stack
[Mar  5 12:44:15] DEBUG[29003]: func_rand.c:71 acf_rand_exec: 853517558 was the lucky number in range [1,2147483647]
   -- Executing [5666@pode-testes:18] Set("IAX2/5633-41", "VAR_ALEATOREA=853517558") in new stack
   -- Executing [5666@pode-testes:19] TrySystem("IAX2/5633-41", "/var/lib/asterisk/agi-bin/checa-ramal.sh 5666 853517558 adiciona") in new stack
42
   -- Executing [5666@pode-testes:20] GotoIf("IAX2/5633-41", "1?21:23") in new stack
   -- Goto (pode-testes,5666,21)
   -- Executing [5666@pode-testes:21] ReadFile("IAX2/5633-41", "RAMAL=/var/spool/asterisk/tmp/853517558|2") in new stack
   -- Executing [5666@pode-testes:22] Set("IAX2/5633-41", "DIST_RING=r2") in new stack
   -- Executing [5666@pode-testes:23] NoOp("IAX2/5633-41", "Finish if-if-if-ramais-102-103-104") in new stack
   -- Executing [5666@pode-testes:24] System("IAX2/5633-41", "/var/lib/asterisk/agi-bin/checa-ramal.sh 5666 853517558") in new stack
   -- Executing [5666@pode-testes:25] NoOp("IAX2/5633-41", "Finish if-if-ramais-102-103") in new stack
   -- Executing [5666@pode-testes:26] NoOp("IAX2/5633-41", "Finish if-ramais-102") in new stack
   -- Executing [5666@pode-testes:27] GotoIf("IAX2/5633-41", "1?28:39") in new stack
   -- Goto (pode-testes,5666,28)
[Mar  5 12:44:15] DEBUG[29003]: func_db.c:70 function_db_read: DB: NPERTURBE/5666 not found in database.
   -- Executing [5666@pode-testes:28] Set("IAX2/5633-41", "NPERTURBE=") in new stack
   -- Executing [5666@pode-testes:29] ChanIsAvail("IAX2/5633-41", "Zap/5666|s") in new stack
   -- Executing [5666@pode-testes:30] GotoIf("IAX2/5633-41", "0?31:34") in new stack
   -- Goto (pode-testes,5666,34)
   -- Executing [5666@pode-testes:34] Dial("IAX2/5633-41", "Zap/42r2|40|tT") in new stack
   -- Called 42r2
   -- Zap/42-1 is ringing
   -- Zap/42-1 is ringing
   -- Zap/42-1 is ringing
[Mar  5 12:44:17] DEBUG[29003]: chan_zap.c:1461 zt_train_ec: No echo training requested
[Mar  5 12:44:17] DEBUG[29003]: chan_zap.c:4045 zt_handle_event: channel 42 answered
   -- Zap/42-1 answered IAX2/5633-41
   -- Stopped music on hold on IAX2/5633-59
   -- Started music on hold, class 'def', on channel 'IAX2/5660-102'
   -- Registered IAX2 '5619' (AUTHENTICATED) at 10.9.15.236:32769
   -- Registered IAX2 '5619' (AUTHENTICATED) at 10.9.15.236:4569
Killed

By: Digium Subversion (svnbot) 2008-03-05 16:33:28.000-0600

Repository: asterisk
Revision: 106237

U   branches/1.4/channels/chan_iax2.c

------------------------------------------------------------------------
r106237 | russell | 2008-03-05 16:33:27 -0600 (Wed, 05 Mar 2008) | 3 lines

Fix a potential deadlock and a few different potential crashes.
(closes issue ASTERISK-11578, reported by thiagarcia, patched by me)

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

http://svn.digium.com/view/asterisk?view=rev&revision=106237

By: Digium Subversion (svnbot) 2008-03-05 16:37:05.000-0600

Repository: asterisk
Revision: 106238

_U  trunk/
U   trunk/channels/chan_iax2.c

------------------------------------------------------------------------
r106238 | russell | 2008-03-05 16:37:03 -0600 (Wed, 05 Mar 2008) | 11 lines

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

........
r106237 | russell | 2008-03-05 16:37:09 -0600 (Wed, 05 Mar 2008) | 3 lines

Fix a potential deadlock and a few different potential crashes.
(closes issue ASTERISK-11578, reported by thiagarcia, patched by me)

........

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

http://svn.digium.com/view/asterisk?view=rev&revision=106238

By: Digium Subversion (svnbot) 2008-03-05 18:17:39.000-0600

Repository: asterisk
Revision: 106317

_U  branches/1.6.0/
U   branches/1.6.0/channels/chan_iax2.c

------------------------------------------------------------------------
r106317 | russell | 2008-03-05 18:17:39 -0600 (Wed, 05 Mar 2008) | 19 lines

Merged revisions 106238 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r106238 | russell | 2008-03-05 16:40:58 -0600 (Wed, 05 Mar 2008) | 11 lines

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

........
r106237 | russell | 2008-03-05 16:37:09 -0600 (Wed, 05 Mar 2008) | 3 lines

Fix a potential deadlock and a few different potential crashes.
(closes issue ASTERISK-11578, reported by thiagarcia, patched by me)

........

................

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

http://svn.digium.com/view/asterisk?view=rev&revision=106317