[Home]

Summary:ASTERISK-14642: Segmentation fault (core dumped)
Reporter:sybasesql (sybasesql)Labels:
Date Opened:2009-08-12 15:44:15Date Closed:2011-06-07 14:00:20
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Channels/chan_sip/T.38
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:hello!

I have problem at least with asterisk 1.6.1.[2,4] and t.38 on x64 platform.
Asterisk segmentation fault after full proxy call to my customer who tries send / receive fax (t.38).

   -- Called 7499XXXXXXX@7499XXXXXXX
   -- SIP/7499XXXXXXX-0996bd98 is ringing
   -- SIP/7499XXXXXXX-0996bd98 answered SIP/YYYYYYY-SIP-b00dcb08
   -- Packet2Packet bridging SIP/YYYYYYY-SIP-b00dcb08 and SIP/7499XXXXXXX-0996bd98
[Aug 13 00:14:31] WARNING[19677]: chan_sip.c:7090 process_sdp: Unsupported SDP media type in offer: image 5283 udptl t38
localhost*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
[root@localhost ~]# /usr/sbin/safe_asterisk: line 146: 19643 Segmentation fault      (core dumped) nice -n $PRIORITY ${ASTSBINDIR}/asterisk -f ${CLIARGS} ${ASTARGS} > /dev/${TTY} 2>&1 < /dev/${TTY}
Asterisk ended with exit status 139
Asterisk exited on signal 11.
Automatically restarting Asterisk.

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

I'm backtrace a core dump file from /tmp directory.

# gdb asterisk core.localhost.localdomain-2009-08-13T00:18:34+0400
Core was generated by `/usr/sbin/asterisk -f -vvvg -c'.
Program terminated with signal 11, Segmentation fault.
[New process 21883]
<...snip...>
[New process 21752]
[New process 21747]
#0  ast_udptl_get_us (udptl=0x0, us=0x41373ba0) at udptl.c:876
876             memcpy(us, &udptl->us, sizeof(udptl->us));
(gdb) bt
#0  ast_udptl_get_us (udptl=0x0, us=0x41373ba0) at udptl.c:876
#1  0x00002aaac15442c9 in add_sdp (resp=0x41373c90, p=0x182ad9b8, oldsdp=0, add_audio=0, add_t38=1) at chan_sip.c:8844
#2  0x00002aaac155e02f in transmit_reinvite_with_sdp (p=0x182ad9b8, t38version=1, oldsdp=0) at chan_sip.c:9099
#3  0x00002aaac156038d in sip_indicate (ast=0x182b0e30, condition=<value optimized out>, data=0x2aaaac107650, datalen=4) at chan_sip.c:5674
#4  0x00000000004488ff in ast_indicate_data (chan=0x182b0e30, _condition=19, data=0x2aaaac107650, datalen=4) at channel.c:3007
ASTERISK-1  0x00000000004c466e in bridge_p2p_loop (c0=0x2aaaac045080, c1=0x182b0e30, p0=0x2aaaac041cb0, p1=0x182ae3b0, timeoutms=-1, flags=<value optimized out>,
   fo=0x41374d80, rc=0x41374d78, pvt0=0x2aaaac0412b8, pvt1=0x182ad9b8) at rtp.c:4207
ASTERISK-2  0x00000000004c65ee in ast_rtp_bridge (c0=<value optimized out>, c1=<value optimized out>, flags=0, fo=0x41374d80, rc=0x41374d78, timeoutms=-1)
   at rtp.c:4429
ASTERISK-3  0x000000000044fd67 in ast_channel_bridge (c0=0x2aaaac045080, c1=0x2aaaac0451b0, config=0x41375630, fo=0x41374d80, rc=0x41374d78) at channel.c:4837
ASTERISK-4  0x00000000004715a5 in ast_bridge_call (chan=0x2aaaac045080, peer=0x182b0e30, config=0x41375630) at features.c:2509
ASTERISK-5  0x00002aaac1bccb4b in dial_exec_full (chan=0x2aaaac045080, data=<value optimized out>, peerflags=0x41375880, continue_exec=0x0) at app_dial.c:1977
ASTERISK-6 0x00002aaac1bcf766 in dial_exec (chan=0x0, data=0x41373ba0) at app_dial.c:2051
ASTERISK-7 0x00000000004a734c in pbx_exec (c=0x2aaaac045080, app=0x181745c0, data=0x41377960) at pbx.c:957
ASTERISK-8 0x00000000004b23b0 in pbx_extension_helper (c=0x2aaaac045080, con=<value optimized out>, context=0x2aaaac045438 "xxx",
   exten=0x2aaaac045488 "7499XXXXXXX", priority=2, label=0x0, callerid=0x2aaaac1092e0 "7495XXXXXXX", action=E_SPAWN, found=0x41379ffc,
   combined_find_spawn=1) at pbx.c:3198
ASTERISK-9 0x00000000004b5503 in __ast_pbx_run (c=0x2aaaac045080, args=0x0) at pbx.c:3648
ASTERISK-10 0x00000000004b6b4b in pbx_thread (data=0x0) at pbx.c:4024
ASTERISK-11 0x00000000004ef39c in dummy_start (data=<value optimized out>) at utils.c:968
ASTERISK-12 0x00000032d6a06367 in start_thread () from /lib64/libpthread.so.0
ASTERISK-13 0x00000032d5ad2f7d in clone () from /lib64/libc.so.6
(gdb) thread apply all bt

Thread 28 (process 21747):
#0  0x00000032d6a0d2cb in read () from /lib64/libpthread.so.0
#1  0x00000000004fa0c0 in read_char (el=0x180a0870, cp=0x7fff7d7af6ff "") at read.c:298
#2  0x00000000004f5080 in el_getc (el=0x180a0870, cp=0x7fff7d7af6ff "") at read.c:350
#3  0x00000000004f54e0 in el_gets (el=0x180a0870, nread=0x7fff7d7afbac) at read.c:243
#4  0x000000000043363a in main (argc=<value optimized out>, argv=0x7fff7d7afcc8) at asterisk.c:3508
ASTERISK-1  0x00000032d5a1d974 in __libc_start_main () from /lib64/libc.so.6
ASTERISK-2  0x0000000000418ec9 in SSL_accept ()
ASTERISK-3  0x00007fff7d7afcb8 in ?? ()
ASTERISK-4  0x0000000000000000 in ?? ()

Thread 27 (process 21752):
#0  0x00000032d6a0a899 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00000000004e4be1 in tps_processing_function (data=<value optimized out>) at /usr/src/voip/asterisk-1.6.1.4/include/asterisk/lock.h:1713
#2  0x00000000004ef39c in dummy_start (data=<value optimized out>) at utils.c:968
#3  0x00000032d6a06367 in start_thread () from /lib64/libpthread.so.0
#4  0x00000032d5ad2f7d in clone () from /lib64/libc.so.6

Thread 26 (process 21753):
#0  0x00000032d5aca436 in poll () from /lib64/libc.so.6
#1  0x000000000042e5e5 in listener (unused=<value optimized out>) at asterisk.c:1078
#2  0x00000000004ef39c in dummy_start (data=<value optimized out>) at utils.c:968
#3  0x00000032d6a06367 in start_thread () from /lib64/libpthread.so.0
#4  0x00000032d5ad2f7d in clone () from /lib64/libc.so.6

Thread 25 (process 21754):
#0  0x00000032d6a0a899 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x0000000000492386 in logger_thread (data=<value optimized out>) at /usr/src/voip/asterisk-1.6.1.4/include/asterisk/lock.h:1713
#2  0x00000000004ef39c in dummy_start (data=<value optimized out>) at utils.c:968
#3  0x00000032d6a06367 in start_thread () from /lib64/libpthread.so.0
#4  0x00000032d5ad2f7d in clone () from /lib64/libc.so.6

Thread 24 (process 21755):
#0  0x00000032d6a0a899 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x000000000045fe39 in do_devstate_changes (data=<value optimized out>) at /usr/src/voip/asterisk-1.6.1.4/include/asterisk/lock.h:1713
#2  0x00000000004ef39c in dummy_start (data=<value optimized out>) at utils.c:968
#3  0x00000032d6a06367 in start_thread () from /lib64/libpthread.so.0
#4  0x00000032d5ad2f7d in clone () from /lib64/libc.so.6

Thread 23 (process 21756):
#0  0x00000032d6a0a899 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00000000004e4be1 in tps_processing_function (data=<value optimized out>) at /usr/src/voip/asterisk-1.6.1.4/include/asterisk/lock.h:1713
#2  0x00000000004ef39c in dummy_start (data=<value optimized out>) at utils.c:968
#3  0x00000032d6a06367 in start_thread () from /lib64/libpthread.so.0
#4  0x00000032d5ad2f7d in clone () from /lib64/libc.so.6

Thread 22 (process 21757):
#0  0x00000032d5acc4c2 in select () from /lib64/libc.so.6
#1  0x0000000000478baf in do_parking_thread (ignore=<value optimized out>) at /usr/src/voip/asterisk-1.6.1.4/include/asterisk/channel.h:1681
#2  0x00000000004ef39c in dummy_start (data=<value optimized out>) at utils.c:968
#3  0x00000032d6a06367 in start_thread () from /lib64/libpthread.so.0
#4  0x00000032d5ad2f7d in clone () from /lib64/libc.so.6

Thread 21 (process 21758):
#0  0x00000032d6a0a899 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00000000004e4be1 in tps_processing_function (data=<value optimized out>) at /usr/src/voip/asterisk-1.6.1.4/include/asterisk/lock.h:1713
---Type <return> to continue, or q <return> to quit---
#2  0x00000000004ef39c in dummy_start (data=<value optimized out>) at utils.c:968
#3  0x00000032d6a06367 in start_thread () from /lib64/libpthread.so.0
#4  0x00000032d5ad2f7d in clone () from /lib64/libc.so.6

Thread 20 (process 21761):
#0  0x00000032d6a0a899 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x0000003bb9c8332d in PSyncPoint::Wait () from /usr/lib64/libpt_linux_x86_64_r.so.1.10.0
#2  0x0000003bba4e1e26 in H323ConnectionsCleaner::Main () from /usr/lib64/libh323_linux_x86_64_r.so.1.18.0
#3  0x0000003bb9c82eec in PThread::PX_ThreadStart () from /usr/lib64/libpt_linux_x86_64_r.so.1.10.0
#4  0x00000032d6a06367 in start_thread () from /lib64/libpthread.so.0
ASTERISK-1  0x00000032d5ad2f7d in clone () from /lib64/libc.so.6

Thread 19 (process 21762):
#0  0x00000032d5acc4c2 in select () from /lib64/libc.so.6
#1  0x0000003bb9c85905 in PThread::PXBlockOnIO () from /usr/lib64/libpt_linux_x86_64_r.so.1.10.0
#2  0x0000003bb9c7b46e in PChannel::PXSetIOBlock () from /usr/lib64/libpt_linux_x86_64_r.so.1.10.0
#3  0x0000003bb9c77e0a in PSocket::os_accept () from /usr/lib64/libpt_linux_x86_64_r.so.1.10.0
#4  0x0000003bb9c8caf0 in PTCPSocket::Accept () from /usr/lib64/libpt_linux_x86_64_r.so.1.10.0
ASTERISK-1  0x0000003bba5111d3 in H323ListenerTCP::Accept () from /usr/lib64/libh323_linux_x86_64_r.so.1.18.0
ASTERISK-2  0x0000003bba513f61 in H323ListenerTCP::Main () from /usr/lib64/libh323_linux_x86_64_r.so.1.18.0
ASTERISK-3  0x0000003bb9c82eec in PThread::PX_ThreadStart () from /usr/lib64/libpt_linux_x86_64_r.so.1.10.0
ASTERISK-4  0x00000032d6a06367 in start_thread () from /lib64/libpthread.so.0
ASTERISK-5  0x00000032d5ad2f7d in clone () from /lib64/libc.so.6

Thread 18 (process 21763):
#0  0x00000032d5aca436 in poll () from /lib64/libc.so.6
#1  0x000000000048bc50 in ast_io_wait (ioc=0x181023a0, howlong=1000) at io.c:275
#2  0x00002aaab9fada40 in do_monitor (data=<value optimized out>) at chan_h323.c:2574
#3  0x00000000004ef39c in dummy_start (data=<value optimized out>) at utils.c:968
#4  0x00000032d6a06367 in start_thread () from /lib64/libpthread.so.0
ASTERISK-1  0x00000032d5ad2f7d in clone () from /lib64/libc.so.6

Thread 17 (process 21764):
#0  0x00000032d6a0a899 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00002aaabc7856e7 in iax2_process_thread (data=0x2aaaac011fb0) at /usr/src/voip/asterisk-1.6.1.4/include/asterisk/lock.h:1713
#2  0x00000000004ef39c in dummy_start (data=<value optimized out>) at utils.c:968
#3  0x00000032d6a06367 in start_thread () from /lib64/libpthread.so.0
#4  0x00000032d5ad2f7d in clone () from /lib64/libc.so.6

Thread 16 (process 21765):
#0  0x00000032d6a0a899 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00002aaabc7856e7 in iax2_process_thread (data=0x2aaaac013150) at /usr/src/voip/asterisk-1.6.1.4/include/asterisk/lock.h:1713
#2  0x00000000004ef39c in dummy_start (data=<value optimized out>) at utils.c:968
#3  0x00000032d6a06367 in start_thread () from /lib64/libpthread.so.0
#4  0x00000032d5ad2f7d in clone () from /lib64/libc.so.6

Thread 15 (process 21766):
#0  0x00000032d6a0a899 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00002aaabc7856e7 in iax2_process_thread (data=0x2aaaac0142f0) at /usr/src/voip/asterisk-1.6.1.4/include/asterisk/lock.h:1713
#2  0x00000000004ef39c in dummy_start (data=<value optimized out>) at utils.c:968
#3  0x00000032d6a06367 in start_thread () from /lib64/libpthread.so.0
#4  0x00000032d5ad2f7d in clone () from /lib64/libc.so.6

Thread 14 (process 21767):
#0  0x00000032d6a0a899 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00002aaabc7856e7 in iax2_process_thread (data=0x2aaaac015490) at /usr/src/voip/asterisk-1.6.1.4/include/asterisk/lock.h:1713
#2  0x00000000004ef39c in dummy_start (data=<value optimized out>) at utils.c:968
---Type <return> to continue, or q <return> to quit---
#3  0x00000032d6a06367 in start_thread () from /lib64/libpthread.so.0
#4  0x00000032d5ad2f7d in clone () from /lib64/libc.so.6

Thread 13 (process 21768):
#0  0x00000032d6a0a899 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00002aaabc7856e7 in iax2_process_thread (data=0x2aaaac016630) at /usr/src/voip/asterisk-1.6.1.4/include/asterisk/lock.h:1713
#2  0x00000000004ef39c in dummy_start (data=<value optimized out>) at utils.c:968
#3  0x00000032d6a06367 in start_thread () from /lib64/libpthread.so.0
#4  0x00000032d5ad2f7d in clone () from /lib64/libc.so.6

Thread 12 (process 21769):
#0  0x00000032d6a0a899 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00002aaabc7856e7 in iax2_process_thread (data=0x2aaaac0177d0) at /usr/src/voip/asterisk-1.6.1.4/include/asterisk/lock.h:1713
#2  0x00000000004ef39c in dummy_start (data=<value optimized out>) at utils.c:968
#3  0x00000032d6a06367 in start_thread () from /lib64/libpthread.so.0
#4  0x00000032d5ad2f7d in clone () from /lib64/libc.so.6

Thread 11 (process 21770):
#0  0x00000032d6a0a899 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00002aaabc7856e7 in iax2_process_thread (data=0x2aaaac018970) at /usr/src/voip/asterisk-1.6.1.4/include/asterisk/lock.h:1713
#2  0x00000000004ef39c in dummy_start (data=<value optimized out>) at utils.c:968
#3  0x00000032d6a06367 in start_thread () from /lib64/libpthread.so.0
#4  0x00000032d5ad2f7d in clone () from /lib64/libc.so.6

Thread 10 (process 21771):
#0  0x00000032d6a0a899 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00002aaabc7856e7 in iax2_process_thread (data=0x2aaaac019b10) at /usr/src/voip/asterisk-1.6.1.4/include/asterisk/lock.h:1713
#2  0x00000000004ef39c in dummy_start (data=<value optimized out>) at utils.c:968
#3  0x00000032d6a06367 in start_thread () from /lib64/libpthread.so.0
#4  0x00000032d5ad2f7d in clone () from /lib64/libc.so.6

Thread 9 (process 21772):
#0  0x00000032d6a0a899 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00002aaabc7856e7 in iax2_process_thread (data=0x2aaaac01acb0) at /usr/src/voip/asterisk-1.6.1.4/include/asterisk/lock.h:1713
#2  0x00000000004ef39c in dummy_start (data=<value optimized out>) at utils.c:968
#3  0x00000032d6a06367 in start_thread () from /lib64/libpthread.so.0
#4  0x00000032d5ad2f7d in clone () from /lib64/libc.so.6

Thread 8 (process 21773):
#0  0x00000032d6a0a899 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00002aaabc7856e7 in iax2_process_thread (data=0x2aaaac01be50) at /usr/src/voip/asterisk-1.6.1.4/include/asterisk/lock.h:1713
#2  0x00000000004ef39c in dummy_start (data=<value optimized out>) at utils.c:968
#3  0x00000032d6a06367 in start_thread () from /lib64/libpthread.so.0
#4  0x00000032d5ad2f7d in clone () from /lib64/libc.so.6

Thread 7 (process 21774):
#0  0x00000032d6a0ab00 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00002aaabc760a51 in sched_thread (ignore=<value optimized out>) at /usr/src/voip/asterisk-1.6.1.4/include/asterisk/lock.h:1718
#2  0x00000000004ef39c in dummy_start (data=<value optimized out>) at utils.c:968
#3  0x00000032d6a06367 in start_thread () from /lib64/libpthread.so.0
#4  0x00000032d5ad2f7d in clone () from /lib64/libc.so.6

Thread 6 (process 21775):
#0  0x00000032d5aca436 in poll () from /lib64/libc.so.6
#1  0x000000000048bc50 in ast_io_wait (ioc=0x2aaaac004ae0, howlong=-1) at io.c:275
#2  0x00002aaabc769405 in network_thread (ignore=<value optimized out>) at chan_iax2.c:10439
#3  0x00000000004ef39c in dummy_start (data=<value optimized out>) at utils.c:968
---Type <return> to continue, or q <return> to quit---
#4  0x00000032d6a06367 in start_thread () from /lib64/libpthread.so.0
ASTERISK-1  0x00000032d5ad2f7d in clone () from /lib64/libc.so.6

Thread 5 (process 21776):
#0  0x00000032d6a0ab00 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00002aaabe2be915 in do_timing (arg=<value optimized out>) at /usr/src/voip/asterisk-1.6.1.4/include/asterisk/lock.h:1718
#2  0x00000000004ef39c in dummy_start (data=<value optimized out>) at utils.c:968
#3  0x00000032d6a06367 in start_thread () from /lib64/libpthread.so.0
#4  0x00000032d5ad2f7d in clone () from /lib64/libc.so.6

Thread 4 (process 21779):
#0  0x00000032d5aca436 in poll () from /lib64/libc.so.6
#1  0x000000000048bc50 in ast_io_wait (ioc=0x2aaaac0fe130, howlong=399) at io.c:275
#2  0x00002aaac154f260 in do_monitor (data=<value optimized out>) at chan_sip.c:20404
#3  0x00000000004ef39c in dummy_start (data=<value optimized out>) at utils.c:968
#4  0x00000032d6a06367 in start_thread () from /lib64/libpthread.so.0
ASTERISK-1  0x00000032d5ad2f7d in clone () from /lib64/libc.so.6

Thread 3 (process 21780):
#0  0x00000032d6a0db71 in nanosleep () from /lib64/libpthread.so.0
#1  0x00002aaac6adedae in scan_thread (unused=<value optimized out>) at pbx_spool.c:444
#2  0x00000000004ef39c in dummy_start (data=<value optimized out>) at utils.c:968
#3  0x00000032d6a06367 in start_thread () from /lib64/libpthread.so.0
#4  0x00000032d5ad2f7d in clone () from /lib64/libc.so.6

Thread 2 (process 21781):
#0  0x00000032d5aca436 in poll () from /lib64/libc.so.6
#1  0x000000000042c215 in monitor_sig_flags (unused=<value optimized out>) at asterisk.c:2876
#2  0x00000000004ef39c in dummy_start (data=<value optimized out>) at utils.c:968
#3  0x00000032d6a06367 in start_thread () from /lib64/libpthread.so.0
#4  0x00000032d5ad2f7d in clone () from /lib64/libc.so.6

Thread 1 (process 21883):
#0  ast_udptl_get_us (udptl=0x0, us=0x41373ba0) at udptl.c:876
#1  0x00002aaac15442c9 in add_sdp (resp=0x41373c90, p=0x182ad9b8, oldsdp=0, add_audio=0, add_t38=1) at chan_sip.c:8844
#2  0x00002aaac155e02f in transmit_reinvite_with_sdp (p=0x182ad9b8, t38version=1, oldsdp=0) at chan_sip.c:9099
#3  0x00002aaac156038d in sip_indicate (ast=0x182b0e30, condition=<value optimized out>, data=0x2aaaac107650, datalen=4) at chan_sip.c:5674
#4  0x00000000004488ff in ast_indicate_data (chan=0x182b0e30, _condition=19, data=0x2aaaac107650, datalen=4) at channel.c:3007
ASTERISK-1  0x00000000004c466e in bridge_p2p_loop (c0=0x2aaaac045080, c1=0x182b0e30, p0=0x2aaaac041cb0, p1=0x182ae3b0, timeoutms=-1, flags=<value optimized out>,
   fo=0x41374d80, rc=0x41374d78, pvt0=0x2aaaac0412b8, pvt1=0x182ad9b8) at rtp.c:4207
ASTERISK-2  0x00000000004c65ee in ast_rtp_bridge (c0=<value optimized out>, c1=<value optimized out>, flags=0, fo=0x41374d80, rc=0x41374d78, timeoutms=-1)
   at rtp.c:4429
ASTERISK-3  0x000000000044fd67 in ast_channel_bridge (c0=0x2aaaac045080, c1=0x2aaaac0451b0, config=0x41375630, fo=0x41374d80, rc=0x41374d78) at channel.c:4837
ASTERISK-4  0x00000000004715a5 in ast_bridge_call (chan=0x2aaaac045080, peer=0x182b0e30, config=0x41375630) at features.c:2509
ASTERISK-5  0x00002aaac1bccb4b in dial_exec_full (chan=0x2aaaac045080, data=<value optimized out>, peerflags=0x41375880, continue_exec=0x0) at app_dial.c:1977
ASTERISK-6 0x00002aaac1bcf766 in dial_exec (chan=0x0, data=0x41373ba0) at app_dial.c:2051
ASTERISK-7 0x00000000004a734c in pbx_exec (c=0x2aaaac045080, app=0x181745c0, data=0x41377960) at pbx.c:957
ASTERISK-8 0x00000000004b23b0 in pbx_extension_helper (c=0x2aaaac045080, con=<value optimized out>, context=0x2aaaac045438 "XXX",
   exten=0x2aaaac045488 "7499XXXXXXX", priority=2, label=0x0, callerid=0x2aaaac1092e0 "7495XXXXXXX", action=E_SPAWN, found=0x41379ffc,
   combined_find_spawn=1) at pbx.c:3198
ASTERISK-9 0x00000000004b5503 in __ast_pbx_run (c=0x2aaaac045080, args=0x0) at pbx.c:3648
ASTERISK-10 0x00000000004b6b4b in pbx_thread (data=0x0) at pbx.c:4024
ASTERISK-11 0x00000000004ef39c in dummy_start (data=<value optimized out>) at utils.c:968
ASTERISK-12 0x00000032d6a06367 in start_thread () from /lib64/libpthread.so.0
ASTERISK-13 0x00000032d5ad2f7d in clone () from /lib64/libc.so.6
(gdb)
Comments:By: Leif Madsen (lmadsen) 2009-08-17 12:13:21

I've trimmed the backtrace that you've posted in the additional information. In the future, it would be best if you attached the backtrace output as a file, and not directly into the issues since it makes the issue page quite long.

Also, you'll need to reproduce this issue and attach a new backtrace after you've enabled the DONT_OPTIMIZE flag in the Compile Flags within 'menuselect'.

Once enabled, run 'make install' in order to recompile and install the files. Then attach the newly generated backtrace output as a file once you've reproduced.

Thanks!

By: Kevin P. Fleming (kpfleming) 2009-08-17 14:10:30

We actually don't need the backtrace here, the provided backtrace is adequate to see where the code broke. However, to be able to understand how it got to that point, we'll need a complete console log including 'core set verbose 10', 'core set debug 10' and 'sip set debug on'; please ensure that the 'debug' and 'verbose' logger levels are mapped to the 'full' logger channel in logger.conf and then attach the portion of the full log that relates to these calls. Thanks.

By: Kevin P. Fleming (kpfleming) 2009-08-17 14:27:29

We are also going to need the relevant sip.conf entries for the two SIP endpoints involved in this call; it appears as though one of them may have t38pt_udptl disabled and that is somehow causing the code to misbehave.

By: sybasesql (sybasesql) 2009-08-17 15:02:36

Exactly! I catch that today too.
I have t38pt_udptl=yes in global section in sip.conf, t38pt_udptl=yes for one endpoint and t38pt_udptl=no for endpoint which calls cause asterisk crash.
When I set t38pt_udptl to yes asterisk stop crashes.
Unfortunately it's very difficult to make debug build because its production environment with many sip endpoints, but I try do something to accomplish your requirement.
Thanks!

By: Kevin P. Fleming (kpfleming) 2009-08-17 15:09:56

Don't worry about doing that just yet; with that confirmation of your configuration, we'll probably be able to reproduce this issue.

By: Kevin P. Fleming (kpfleming) 2009-08-17 15:11:29

If you can tell us, which of the two endpoints (t38 enabled or disabled) is the one that sent you the T.38 reinvite?

By: sybasesql (sybasesql) 2009-08-17 16:09:14

This is incoming call to customer with t38pt_udptl set to 'no' for his peer.

Short scheme:
PSTN --> E1 ISDN PRI --> cisco as5400xm --> SIP-t38pt_udptl=yes --> asterisk-1.6.1.4_x64 --> SIP-t38pt_udptl=no --> asterisk-1.6.1.4_x86(customer)

As described in Description section above and that scheme:
SIP/YYYYYYY = t38pt_udptl=yes = cisco as5400xm
SIP/7499XXXXXXX = t38pt_udptl=no = asterisk-1.6.1.4_x86(customer)

Hope this helps.

By: Kevin P. Fleming (kpfleming) 2009-08-19 10:32:50

There have been some significant changes in the 1.6 branches related to T.38 support that are not included in the 1.6.1.4 release; using a current 1.6.1 branch checkout from Subversion, I cannot reproduce this problem. Receiving a T.38 reinvite from a peer with t38pt_udptl set to 'no' properly causes a '488 Not Acceptable Here' response to be sent back, and the call continues in audio mode as expected.

If you are willing to try it you can try the 1.6.1.5-rc1 release candidate which also contains these fixes, and is scheduled to become a full release in the next few days.

By: sybasesql (sybasesql) 2009-08-19 10:53:34

I'll try reproduce crash with asterisk 1.6.1.5 when it will be released and report results here.

By: Kevin P. Fleming (kpfleming) 2009-08-21 15:39:11

It would really be most helpful if you can test with the release candidate that is already out there, because if this bug is still present this issue will be a blocker for that release becoming a full release.

By: Kevin P. Fleming (kpfleming) 2009-09-01 15:35:22

Asterisk 1.6.1.5 has now been released; have you had a chance to do any more testing?

By: sybasesql (sybasesql) 2009-09-01 16:25:49

We are planning install 1.6.1.5 update on our production server where crash exists at Saturday and I'll submit report.

By: Leif Madsen (lmadsen) 2009-09-08 13:11:22

Just pinging this issue to see if the reporter has any additional information. Thanks!

By: Leif Madsen (lmadsen) 2009-09-30 09:24:33

I'm closing this issue as it has been waiting on feedback for more than 2 weeks. If the reporter has additional information that can be submitted, than they are welcome to reopen the issue. Thanks!