[Home]

Summary:ASTERISK-17853: Asterisk Crashing
Reporter:Harpreet (vois)Labels:
Date Opened:2011-05-13 08:21:52Date Closed:2012-01-26 09:04:12.000-0600
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:General
Versions:1.8.4 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) backtrace.txt
( 1) backtrace-threads.txt
( 2) core-show-locks.txt
( 3) gdb.txt
Description:I upgraded to 1.8.4 from 1.8.3.2 and asterisk is crashing as soon as i am starting it. Core file is attached.
Comments:By: Walter Doekes (wdoekes) 2011-05-13 09:15:51

Dupe of 19192 among others.

Apply the patch or fix your TCP peers to not be firewalled.

By: Harpreet (vois) 2011-05-13 09:37:30

i already tried it. Patch is failing, see below:

wget 'https://issues.asterisk.org/file_download.php?file_id=29408&type=bug' -O - | patch -p0
--2011-05-13 08:50:10--  https://issues.asterisk.org/file_download.php?file_id=29408&type=bug
Resolving issues.asterisk.org... 76.164.171.231, 2001:470:e0d4::e7
Connecting to issues.asterisk.org|76.164.171.231|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 543 [text/plain]
Saving to: `STDOUT'

100%[==============================================================================================================================>] 543         --.-K/s   in 0s

2011-05-13 08:50:13 (19.7 MB/s) - written to stdout [543/543]

patching file asterisk-1.8.4/channels/chan_sip.c
Hunk #1 FAILED at 2728.
1 out of 1 hunk FAILED -- saving rejects to file asterisk-1.8.4/channels/chan_sip.c.rej

By: Harpreet (vois) 2011-05-16 09:23:32

I applied patch 0019192, does not solve my problem. Asterisk was hanged and i have to kill the pid to stop asterisk. The new core show locks and backtrace-thread it uploaded. Please check and suggest.

I saw following messages continuously running while asterisk was hanged:

[May 16 05:28:02] ERROR[7447]: tcptls.c:378 ast_tcptls_client_start: Unable to connect SIP socket to ip:port: Connection refused
[May 16 05:28:02] ERROR[6979]: chan_sip.c:2723 _sip_tcp_helper_thread: Unknown tcptls thread alert '1579792892'
[May 16 05:28:02] WARNING[20856]: chan_sip.c:3256 __sip_xmit: sip_xmit of 0x7fa1005c1de0 (len 616) to ip:port returned -2: Success
[May 16 05:28:02] ERROR[7451]: tcptls.c:378 ast_tcptls_client_start: Unable to connect SIP socket to ip:port: Connection refused
[May 16 05:28:02] ERROR[7452]: tcptls.c:378 ast_tcptls_client_start: Unable to connect SIP socket to ip:port:9403: Connection refused
[May 16 05:28:02] ERROR[7462]: tcptls.c:378 ast_tcptls_client_start: Unable to connect SIP socket to ip:port: Connection refused
[May 16 05:28:02] ERROR[7463]: tcptls.c:378 ast_tcptls_client_start: Unable to connect SIP socket to ip:port: Connection refused
[May 16 05:28:02] WARNING[6468]: chan_sip.c:2714 _sip_tcp_helper_thread: Failure to write to tcp/tls socket
[May 16 05:28:02] WARNING[20856]: chan_sip.c:3256 __sip_xmit: sip_xmit of 0x7fa1006e63f0 (len 616) to ip:port: returned -2: Success
[May 16 05:28:02] WARNING[20856]: chan_sip.c:3256 __sip_xmit: sip_xmit of 0x7fa1006e63f0 (len 618) to ip:port: returned -2: Success
[May 16 05:28:02] ERROR[7470]: tcptls.c:378 ast_tcptls_client_start: Unable to connect SIP socket to ip:port: Connection refused

By: Harpreet (vois) 2011-05-17 21:21:05

Any update on this issue?

By: Matt Jordan (mjordan) 2011-12-13 13:24:02.702-0600

It appears as if this issue was fixed in the 1.8 branch.  Please test with the latest from the 1.8 branch or the latest 1.8 release.

By: Matt Jordan (mjordan) 2012-01-26 09:04:07.362-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