[root@bzq-233-117-145 /tmp]$ gdb asterisk core.10472 GNU gdb Red Hat Linux (6.1post-1.20040607.43.0.1rh) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1". Reading symbols from shared object read from target memory...done. Loaded system supplied DSO at 0xb7fb3000 Core was generated by `asterisk -p -g -c'. Program terminated with signal 11, Segmentation fault. warning: svr4_current_sos: Can't read pathname for load map: Input/output error Reading symbols from /lib/libdl.so.2...done. Loaded symbols for /lib/libdl.so.2 Reading symbols from /lib/i686/libpthread.so.0...done. Loaded symbols for /lib/i686/libpthread.so.0 Reading symbols from /lib/libtermcap.so.2...done. Loaded symbols for /lib/libtermcap.so.2 Reading symbols from /lib/libresolv.so.2...done. Loaded symbols for /lib/libresolv.so.2 Reading symbols from /usr/lib/libstdc++.so.6...done. Loaded symbols for /usr/lib/libstdc++.so.6 Reading symbols from /lib/i686/libm.so.6...done. Loaded symbols for /lib/i686/libm.so.6 Reading symbols from /lib/libgcc_s.so.1...done. Loaded symbols for /lib/libgcc_s.so.1 Reading symbols from /lib/i686/libc.so.6...done. Loaded symbols for /lib/i686/libc.so.6 Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 Reading symbols from /usr/lib/asterisk/modules/res_musiconhold.so...done. Loaded symbols for /usr/lib/asterisk/modules/res_musiconhold.so Reading symbols from /usr/lib/asterisk/modules/res_indications.so...done. Loaded symbols for /usr/lib/asterisk/modules/res_indications.so Reading symbols from /usr/lib/asterisk/modules/res_adsi.so...done. Loaded symbols for /usr/lib/asterisk/modules/res_adsi.so Reading symbols from /usr/lib/asterisk/modules/res_agi.so...done. Loaded symbols for /usr/lib/asterisk/modules/res_agi.so Reading symbols from /usr/lib/asterisk/modules/res_crypto.so...done. Loaded symbols for /usr/lib/asterisk/modules/res_crypto.so Reading symbols from /lib/libssl.so.4...done. Loaded symbols for /lib/libssl.so.4 Reading symbols from /lib/libcrypto.so.4...done. Loaded symbols for /lib/libcrypto.so.4 Reading symbols from /usr/lib/libgssapi_krb5.so.2...done. Loaded symbols for /usr/lib/libgssapi_krb5.so.2 Reading symbols from /usr/lib/libkrb5.so.3...done. Loaded symbols for /usr/lib/libkrb5.so.3 Reading symbols from /lib/libcom_err.so.2...done. Loaded symbols for /lib/libcom_err.so.2 Reading symbols from /usr/lib/libk5crypto.so.3...done. Loaded symbols for /usr/lib/libk5crypto.so.3 Reading symbols from /usr/lib/libz.so.1...done. Loaded symbols for /usr/lib/libz.so.1 Reading symbols from /usr/lib/asterisk/modules/res_features.so...done. Loaded symbols for /usr/lib/asterisk/modules/res_features.so Reading symbols from /usr/lib/asterisk/modules/res_monitor.so...done. Loaded symbols for /usr/lib/asterisk/modules/res_monitor.so Reading symbols from /usr/lib/asterisk/modules/app_cdr.so...done. Loaded symbols for /usr/lib/asterisk/modules/app_cdr.so Reading symbols from /usr/lib/asterisk/modules/cdr_manager.so...done. Loaded symbols for /usr/lib/asterisk/modules/cdr_manager.so Reading symbols from /usr/lib/asterisk/modules/chan_features.so...done. Loaded symbols for /usr/lib/asterisk/modules/chan_features.so Reading symbols from /usr/lib/asterisk/modules/codec_a_mu.so...done. Loaded symbols for /usr/lib/asterisk/modules/codec_a_mu.so Reading symbols from /usr/lib/asterisk/modules/app_zapscan.so...done. Loaded symbols for /usr/lib/asterisk/modules/app_zapscan.so Reading symbols from /usr/lib/asterisk/modules/func_cdr.so...done. Loaded symbols for /usr/lib/asterisk/modules/func_cdr.so Reading symbols from /usr/lib/asterisk/modules/format_g729.so...done. Loaded symbols for /usr/lib/asterisk/modules/format_g729.so Reading symbols from /usr/lib/asterisk/modules/func_language.so...done. Loaded symbols for /usr/lib/asterisk/modules/func_language.so Reading symbols from /usr/lib/asterisk/modules/app_mixmonitor.so...done. Loaded symbols for /usr/lib/asterisk/modules/app_mixmonitor.so Reading symbols from /usr/lib/asterisk/modules/func_base64.so...done. Loaded symbols for /usr/lib/asterisk/modules/func_base64.so Reading symbols from /usr/lib/asterisk/modules/func_global.so...done. Loaded symbols for /usr/lib/asterisk/modules/func_global.so Reading symbols from /usr/lib/asterisk/modules/app_read.so...done. Loaded symbols for /usr/lib/asterisk/modules/app_read.so Reading symbols from /usr/lib/asterisk/modules/app_talkdetect.so...done. Loaded symbols for /usr/lib/asterisk/modules/app_talkdetect.so Reading symbols from /usr/lib/asterisk/modules/func_strings.so...done. Loaded symbols for /usr/lib/asterisk/modules/func_strings.so Reading symbols from /usr/lib/asterisk/modules/app_setcallerid.so...done. Loaded symbols for /usr/lib/asterisk/modules/app_setcallerid.so Reading symbols from /usr/lib/asterisk/modules/app_softhangup.so...done. Loaded symbols for /usr/lib/asterisk/modules/app_softhangup.so Reading symbols from /usr/lib/asterisk/modules/chan_local.so...done. Loaded symbols for /usr/lib/asterisk/modules/chan_local.so Reading symbols from /usr/lib/asterisk/modules/func_sha1.so...done. Loaded symbols for /usr/lib/asterisk/modules/func_sha1.so Reading symbols from /usr/lib/asterisk/modules/codec_alaw.so...done. Loaded symbols for /usr/lib/asterisk/modules/codec_alaw.so Reading symbols from /usr/lib/asterisk/modules/chan_iax2.so...done. Loaded symbols for /usr/lib/asterisk/modules/chan_iax2.so Reading symbols from /usr/lib/asterisk/modules/app_verbose.so...done. Loaded symbols for /usr/lib/asterisk/modules/app_verbose.so Reading symbols from /usr/lib/asterisk/modules/app_amd.so...done. Loaded symbols for /usr/lib/asterisk/modules/app_amd.so Reading symbols from /usr/lib/asterisk/modules/app_record.so...done. Loaded symbols for /usr/lib/asterisk/modules/app_record.so Reading symbols from /usr/lib/asterisk/modules/pbx_config.so...done. Loaded symbols for /usr/lib/asterisk/modules/pbx_config.so Reading symbols from /usr/lib/asterisk/modules/func_groupcount.so...done. Loaded symbols for /usr/lib/asterisk/modules/func_groupcount.so Reading symbols from /usr/lib/asterisk/modules/app_senddtmf.so...done. Loaded symbols for /usr/lib/asterisk/modules/app_senddtmf.so Reading symbols from /usr/lib/asterisk/modules/app_userevent.so...done. Loaded symbols for /usr/lib/asterisk/modules/app_userevent.so Reading symbols from /usr/lib/asterisk/modules/chan_zap.so...done. Loaded symbols for /usr/lib/asterisk/modules/chan_zap.so Reading symbols from /usr/lib/libtonezone.so.1.0...done. Loaded symbols for /usr/lib/libtonezone.so.1.0 Reading symbols from /usr/lib/libpri.so.1.0...done. Loaded symbols for /usr/lib/libpri.so.1.0 Reading symbols from /usr/lib/asterisk/modules/app_chanspy.so...done. Loaded symbols for /usr/lib/asterisk/modules/app_chanspy.so Reading symbols from /usr/lib/asterisk/modules/codec_gsm.so...done. Loaded symbols for /usr/lib/asterisk/modules/codec_gsm.so Reading symbols from /usr/lib/asterisk/modules/format_gsm.so...done. Loaded symbols for /usr/lib/asterisk/modules/format_gsm.so Reading symbols from /usr/lib/asterisk/modules/app_playback.so...done. Loaded symbols for /usr/lib/asterisk/modules/app_playback.so Reading symbols from /usr/lib/asterisk/modules/func_callerid.so...done. Loaded symbols for /usr/lib/asterisk/modules/func_callerid.so Reading symbols from /usr/lib/asterisk/modules/func_timeout.so...done. Loaded symbols for /usr/lib/asterisk/modules/func_timeout.so Reading symbols from /usr/lib/asterisk/modules/format_wav.so...done. Loaded symbols for /usr/lib/asterisk/modules/format_wav.so Reading symbols from /usr/lib/asterisk/modules/format_wav_gsm.so...done. Loaded symbols for /usr/lib/asterisk/modules/format_wav_gsm.so Reading symbols from /usr/lib/asterisk/modules/func_moh.so...done. Loaded symbols for /usr/lib/asterisk/modules/func_moh.so Reading symbols from /usr/lib/asterisk/modules/app_dial.so...done. Loaded symbols for /usr/lib/asterisk/modules/app_dial.so Reading symbols from /usr/lib/asterisk/modules/func_channel.so...done. Loaded symbols for /usr/lib/asterisk/modules/func_channel.so Reading symbols from /usr/lib/asterisk/modules/app_meetme.so...done. Loaded symbols for /usr/lib/asterisk/modules/app_meetme.so Reading symbols from /usr/lib/asterisk/modules/chan_sip.so...done. Loaded symbols for /usr/lib/asterisk/modules/chan_sip.so Reading symbols from /usr/lib/asterisk/modules/format_pcm.so...done. Loaded symbols for /usr/lib/asterisk/modules/format_pcm.so Reading symbols from /usr/lib/asterisk/modules/format_sln.so...done. Loaded symbols for /usr/lib/asterisk/modules/format_sln.so Reading symbols from /usr/lib/asterisk/modules/app_waitforsilence.so...done. Loaded symbols for /usr/lib/asterisk/modules/app_waitforsilence.so Reading symbols from /usr/lib/asterisk/modules/codec_g729a.so...done. Loaded symbols for /usr/lib/asterisk/modules/codec_g729a.so Reading symbols from /lib/libnss_files.so.2...done. Loaded symbols for /lib/libnss_files.so.2 Reading symbols from /lib/libnss_dns.so.2...done. Loaded symbols for /lib/libnss_dns.so.2 #0 0x0807a972 in ast_channel_alloc (needqueue=0, state=1, cid_num=0x0, cid_name=0x0, acctcode=0x94b4a68 "Zap/pseudo-1340205819", exten=0x154918d0
, context=0x9b50742 , amaflag=90, name_fmt=0x1 ) at strings.h:35 35 return (!s || (*s == '\0')); (gdb) bt #0 0x0807a972 in ast_channel_alloc (needqueue=0, state=1, cid_num=0x0, cid_name=0x0, acctcode=0x94b4a68 "Zap/pseudo-1340205819", exten=0x154918d0 , context=0x9b50742 , amaflag=90, name_fmt=0x1 ) at strings.h:35 #1 0xb76830a7 in zt_new (i=0x94c79b8, state=1, startpbx=0, index=0, law=0, transfercapability=0) at chan_zap.c:5173 #2 0xb7695fce in zt_request (type=0xb74c66e4 "zap", format=64, data=0xb74c66dd, cause=0xb6c27f90) at chan_zap.c:7815 #3 0x08081c72 in ast_request (type=0xb74c66e4 "zap", format=64, data=0xb74c66dd, cause=0xb6c27f90) at channel.c:3134 #4 0xb74b73b9 in build_conf (confno=0xb6c28040 "1101", pin=0xb74c6d28 "", pinadmin=0xb74c6d28 "", make=1, dynamic=0, refcount=1) at app_meetme.c:756 #5 0xb74bd1c9 in find_conf (chan=0x94a9ae0, confno=0xb6c28290 "1101", make=1, dynamic=0, dynamic_pin=0xb6c28210 "", pin_buf_len=80, refcount=1, confflags=0xb6c28280) at strings.h:34 #6 0xb74be01e in conf_exec (chan=0x94a9ae0, data=0xb6c285ec) at app_meetme.c:2622 #7 0x080b5e33 in pbx_exec (c=0x94a9ae0, app=0xb79a1e80, data=0xb6c285ec) at pbx.c:532 #8 0xb7cf83bd in handle_exec (chan=0x94a9ae0, agi=0xb6c28e50, argc=3, argv=0xb6c28390) at res_agi.c:1116 #9 0xb7cf9500 in agi_handle_command (chan=0x94a9ae0, agi=0xb6c28e50, buf=0xb6c285e0 "EXEC") at res_agi.c:1812 #10 0xb7cf98da in run_agi (chan=0x94a9ae0, request=0xb6c28e80 "inbound_call.php", agi=0xb6c28e50, pid=10474, status=0xb6c28e4c, dead=0) at res_agi.c:1894 #11 0xb7cfa019 in agi_exec_full (chan=0x94a9ae0, data=0xb6c2daa0, enhanced=0, dead=0) at res_agi.c:2038 #12 0xb7cfa19c in agi_exec (chan=0x94a9ae0, data=0xb6c2daa0) at res_agi.c:2069 #13 0x080b5e33 in pbx_exec (c=0x94a9ae0, app=0x93d02f0, data=0xb6c2daa0) at pbx.c:532 #14 0x080b9079 in pbx_extension_helper (c=0x94a9ae0, con=0x0, context=0x94a9c60 "inbound_new", exten=0x94a9cb0 "s", priority=5, label=0x0, callerid=0x9403cb8 "NET24_6", action=E_SPAWN) at pbx.c:1833 #15 0x080ba13b in ast_spawn_extension (c=0x94a9ae0, context=0x94a9c60 "inbound_new", exten=0x94a9cb0 "s", priority=5, callerid=0x9403cb8 "NET24_6") at pbx.c:2288 #16 0x080ba629 in __ast_pbx_run (c=0x94a9ae0) at pbx.c:2388 #17 0x080bb326 in pbx_thread (data=0x94a9ae0) at pbx.c:2601 #18 0x080f367d in dummy_start (data=0x94aa450) at utils.c:545 #19 0xb7f5cce1 in pthread_start_thread () from /lib/i686/libpthread.so.0 #20 0xb7ecfd3a in clone () from /lib/i686/libc.so.6 (gdb) bt full #0 0x0807a972 in ast_channel_alloc (needqueue=0, state=1, cid_num=0x0, cid_name=0x0, acctcode=0x94b4a68 "Zap/pseudo-1340205819", exten=0x154918d0 , context=0x9b50742 , amaflag=90, name_fmt=0x1 ) at strings.h:35 tmp = (struct ast_channel *) 0x94c8b28 x = 6 flags = 1 headp = (struct varshead *) 0xb7e4c74b ap1 = 0xb6c27ca8 "¸}¶§0h·" ap2 = 0x1 __PRETTY_FUNCTION__ = "ast_channel_alloc" #1 0xb76830a7 in zt_new (i=0x94c79b8, state=1, startpbx=0, index=0, law=0, transfercapability=0) at chan_zap.c:5173 tmp = Variable "tmp" is not available. (gdb) thread apply all bt Thread 56 (process 10236): #0 0x00000296 in ?? () Cannot access memory at address 0x0 0x0807a972 35 return (!s || (*s == '\0')); (gdb) q [root@bzq-233-117-145 /tmp]$