[Home]

Summary:ASTERISK-13603: Crash when a agent is connected with a customer
Reporter:Andrea Sannucci (asannucci)Labels:
Date Opened:2009-02-18 10:28:31.000-0600Date Closed:2011-06-07 14:01:08
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Applications/app_queue
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:when a agent is online and a customer is connected with the agent, the system crash

My linux distribution is Centos 5.2 i386

Asterisk 1.6.0.5


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

gdb asterisk corexxxxx

Program terminated with signal 11, Segmentation fault.
#0  0x080f2fcd in ast_rtcp_read (rtp=0x977ac20) at rtp.c:1075
1075    rtp.c: No such file or directory.
       in rtp.c

with the bt command

I receive

#0  0x080f2fcd in ast_rtcp_read (rtp=0x977ac20) at rtp.c:1075
#1  0x01727835 in sip_read (ast=0x96bd780) at chan_sip.c:5698
#2  0x0808bf22 in __ast_read (chan=0x96bd780, dropaudio=0) at channel.c:2517
#3  0x08077683 in autoservice_run (ign=0x0) at autoservice.c:113
#4  0x00c4c45b in start_thread () from /lib/libpthread.so.0
ASTERISK-1  0x00b6ae5e in clone () from /lib/libc.so.6
Comments:By: Joshua C. Colp (jcolp) 2009-02-18 13:52:07.000-0600

Please try the latest 1.6.0 from SVN as there have been changes in this area. Additionally a thread apply all bt and print *rtp would also be useful. Thanks.

By: Andrea Sannucci (asannucci) 2009-02-18 15:34:55.000-0600

How can i print *rtp?

Thank you

By: Andrea Sannucci (asannucci) 2009-02-18 15:36:03.000-0600

I noted that same error appear when I try to transfer a call to another extension

By: Leif Madsen (lmadsen) 2009-02-18 15:51:46.000-0600

'thread apply bt all' and 'print *rtp' I believe are commands you are supposed to run in gdb against the core file. Output should be added to this issue.

By: Andrea Sannucci (asannucci) 2009-02-18 16:16:47.000-0600

$1 = {s = 46, f = {frametype = 0, subclass = 0, datalen = 0, samples = 0, mallocd = 0, mallocd_hdr_len = 0, offset = 0,
   src = 0x0, data = 0x0, delivery = {tv_sec = 0, tv_usec = 0}, frame_list = {next = 0x0}, flags = 0, ts = 0, len = 0,
   seqno = 0}, rawdata = '\0' <repeats 8255 times>, ssrc = 1854800494, themssrc = 0, rxssrc = 0, lastts = 320,
 lastrxts = 0, lastividtimestamp = 0, lastovidtimestamp = 0, lastitexttimestamp = 0, lastotexttimestamp = 0,
 lasteventseqn = 0, lastrxseqno = 0, seedrxseqno = 0, seedrxts = 0, rxcount = 0, rxoctetcount = 0, txcount = 2,
 txoctetcount = 320, cycles = 0, rxjitter = 0, rxtransit = 0, lasttxformat = 8, lastrxformat = 0, rtptimeout = 0,
 rtpholdtimeout = 0, rtpkeepalive = 0, resp = 0 '\0', lastevent = 0, dtmfcount = 0, dtmfsamples = 0, lastdigitts = 320,
 sending_digit = 0 '\0', send_digit = 0 '\0', send_payload = 0, send_duration = 0, nat = 524288, flags = 8, us = {
   sin_family = 2, sin_port = 5193, sin_addr = {s_addr = 0}, sin_zero = "\000\000\000\000\000\000\000"}, them = {
   sin_family = 2, sin_port = 20484, sin_addr = {s_addr = 1717872832}, sin_zero = "\000\000\000\000\000\000\000"},
 rxcore = {tv_sec = 0, tv_usec = 0}, txcore = {tv_sec = 1234994735, tv_usec = 11498}, drxcore = 0, lastrx = {tv_sec = 0,
   tv_usec = 0}, dtmfmute = {tv_sec = 0, tv_usec = 0}, smoother = 0x8d341b0, ioid = 0x0, seqno = 63100, rxseqno = 0,
 sched = 0x8ce6850, io = 0x8ce6888, data = 0x0, callback = 0, current_RTP_PT = {{isAstFormat = 1, code = 4}, {
     isAstFormat = 0, code = 0}, {isAstFormat = 0, code = 0}, {isAstFormat = 0, code = 0}, {isAstFormat = 0, code = 0}, {
     isAstFormat = 0, code = 0}, {isAstFormat = 0, code = 0}, {isAstFormat = 0, code = 0}, {isAstFormat = 1, code = 8}, {
     isAstFormat = 0, code = 0}, {isAstFormat = 0, code = 0}, {isAstFormat = 0, code = 0}, {isAstFormat = 0, code = 0}, {
     isAstFormat = 0, code = 0}, {isAstFormat = 0, code = 0}, {isAstFormat = 0, code = 0}, {isAstFormat = 0, code = 0}, {
     isAstFormat = 0, code = 0}, {isAstFormat = 1, code = 256}, {isAstFormat = 0, code = 0} <repeats 79 times>, {
     isAstFormat = 1, code = 1024}, {isAstFormat = 0, code = 0}, {isAstFormat = 1, code = 512}, {isAstFormat = 0,
     code = 1}, {isAstFormat = 0, code = 0} <repeats 154 times>}, rtp_lookup_code_cache_isAstFormat = 1,
 rtp_lookup_code_cache_code = 8, rtp_lookup_code_cache_result = 8, rtcp = 0xb7b17e38, pref = {
   order = "\002\004\003\t", '\0' <repeats 27 times>, framing = "\024\024\024\024", '\0' <repeats 27 times>},
 bridged = 0x0, strict_rtp_state = STRICT_RTP_OPEN, strict_rtp_address = {sin_family = 0, sin_port = 0, sin_addr = {
     s_addr = 0}, sin_zero = "\000\000\000\000\000\000\000"}, set_marker_bit = 0}

By: Joshua C. Colp (jcolp) 2009-02-19 09:52:04.000-0600

This actually looks fine... can you run things under valgrind following the instructions in doc/valgrind.txt plus attach the complete console output?

By: Joshua C. Colp (jcolp) 2009-03-04 09:29:52.000-0600

asannucci: Any update on the valgrind and complete console output?

By: Andrea Sannucci (asannucci) 2009-03-04 09:54:27.000-0600

I unload chan_console and now work fine... Sorry for respond only now.
Regards

By: Leif Madsen (lmadsen) 2009-03-04 13:16:07.000-0600

asannucci: were you planning on getting the information for file, or should I just close this?

By: Andrea Sannucci (asannucci) 2009-03-04 15:38:06.000-0600

Hi,

you can close the report.

Thank you very much for support

Regards

By: Leif Madsen (lmadsen) 2009-03-04 16:38:20.000-0600

Closed per reporter.