[asterisk-dev] Crash when using custom application when Slav's Abstract Jitterbuffer is enabled

Slav Klenov slav at securax.org
Thu Sep 7 07:00:59 MST 2006


Hello Mikael,

The "custom applications are no longer able to access chan->cdr-> 
variables when Asterisk is compiled with the Abstract Jitterbuffer" 
problem is caused by the new fields the AST_JB macro enables in the 
ast_channel C structure. If some code, compiled outside the main 
asterisk Makefile process (like probably your application is) wants to 
dereference this structure, it has to definine the AST_JB macro for 
itself. Else it uses wrong definition of the structure and it is not 
strange that the real structure seems broken to your app. Try to pass 
the -DAST_JB flag to the compiler when making your app, or just put 
#define AST_JB on the top of your app_mcc2.c file.

If your application is compiled as a part of asterisk, the AST_JB macro 
should be defined for it, so just first enable the jb in Makefile, then 
recompile all the asterisk code (including your application).

Regards,
Slav


Mikael Bjerkeland wrote:
> I am using an application app_mcc2.c which rates calls, chooses trunk,
> does prepaid/postpaid handling etc. This application was developed by my
> programmer and has worked flawlessly since Asterisk 1.0.5 with minor
> code changes from 1.0.X to 1.2.X.
>
> I have tested this on:
> Asterisk 1.2.0 and up to 1.2.11 - Asterisk not crashing
> Asterisk 1.2.0 and up to 1.2.11+jitterbuffer - Asterisk crashing
> Asterisk 1.2-SVN+jitterbuffer - Asterisk crashing
> Asterisk SVN - Module won't compile
>
> What happens is that as soon as I enable the jitterbuffer in Makefile
> (GENERIC_JB = -DAST_JB) Asterisk will crash when my application is run.
> I have debugged this a lot and it seems to me that custom applications
> are no longer able to access chan->cdr-> variables when Asterisk is
> compiled with the Abstract Jitterbuffer. When accessing chan->cdr->src
> for instance, it is always NULL. Accountcode is also not accessible from
> the app. If I recompile asterisk and uncomment AST_JB in Makefile, then
> the application runs exactly like it should.
>
> Attached is the bt + the application. Crash is below:
>
> I initially posted this on the bug tracker, but it was of course
> rejected (who would have thought).
>
>
>     -- Executing Set("IAX2/2-001-4", "CALLERID(number)=004799355151") in
> new stack
>     -- Executing Set("IAX2/2-001-4", "CALLERID(ANI)=004799355151") in
> new stack
>     -- Executing Set("IAX2/2-001-4", "CDR(accountcode)=2") in new stack
>     -- Executing NoOp("IAX2/2-001-4", "004799355151") in new stack
>     -- Executing mcc2("IAX2/2-001-4", "0047993551") in new stack
> Sep 6 13:51:06 NOTICE[19854]: app_mcc2.c:817 mcc2_exec: Answering
> channel
> Sep 6 13:51:06 NOTICE[19854]: app_mcc2.c:230 mcc2_ivr_authorize:
> app_mcc2: Date: 2006-09-06, time: 13:51:06
> cd->source: b70e782c
> size: 30
> chan->cdr->src: 00000050
> chan->accountcode: 083253d0
> Minnesegmentsfeil (core dumped)
>
> Look at:
> chan->cdr->src: 00000050 
> This means it's NULL. If I now recompile Asterisk with AST_JB turned
> off, my application works again. What did the abstract jitterbuffer
> destroy? Since it is in trunk (future 1.4) I am getting worried.
>
> The application I am using is at http://galileo.upnet.lt/mcc/
>
> Before saying that the problem is the application, please note that it's been in production use for over two years. 
> It broke when the new JB was added.
>   
> ------------------------------------------------------------------------
>
> root at Mikael-LAP:/usr/src/mcc/apps/1.3.1# gdb asterisk core.23151
> GNU gdb 6.4-debian
> Copyright 2005 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 "i486-linux-gnu"...Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
>
>
> warning: exec file is newer than core file.
> Core was generated by `asterisk -vvvvvgc'.
> Program terminated with signal 11, Segmentation fault.
>
> warning: Can't read pathname for load map: Inn/ut-feil.
> Reading symbols from /lib/tls/i686/cmov/libdl.so.2...done.
> Loaded symbols for /lib/tls/i686/cmov/libdl.so.2
> Reading symbols from /lib/tls/i686/cmov/libpthread.so.0...done.
> Loaded symbols for /lib/tls/i686/cmov/libpthread.so.0
> Reading symbols from /lib/libncurses.so.5...done.
> Loaded symbols for /lib/libncurses.so.5
> Reading symbols from /lib/tls/i686/cmov/libm.so.6...done.
> Loaded symbols for /lib/tls/i686/cmov/libm.so.6
> Reading symbols from /lib/tls/i686/cmov/libresolv.so.2...done.
> Loaded symbols for /lib/tls/i686/cmov/libresolv.so.2
> Reading symbols from /usr/lib/i686/cmov/libssl.so.0.9.8...done.
> Loaded symbols for /usr/lib/i686/cmov/libssl.so.0.9.8
> Reading symbols from /lib/tls/i686/cmov/libc.so.6...done.
> Loaded symbols for /lib/tls/i686/cmov/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/i686/cmov/libcrypto.so.0.9.8...done.
> Loaded symbols for /usr/lib/i686/cmov/libcrypto.so.0.9.8
> 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_musiconhold.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/res_musiconhold.so
> Reading symbols from /usr/lib/asterisk/modules/cdr_pgsql.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/cdr_pgsql.so
> Reading symbols from /usr/lib/libpq.so.4...done.
> Loaded symbols for /usr/lib/libpq.so.4
> Reading symbols from /usr/lib/libkrb5.so.3...done.
> Loaded symbols for /usr/lib/libkrb5.so.3
> Reading symbols from /usr/lib/libk5crypto.so.3...done.
> Loaded symbols for /usr/lib/libk5crypto.so.3
> Reading symbols from /lib/libcom_err.so.2...done.
> Loaded symbols for /lib/libcom_err.so.2
> Reading symbols from /lib/tls/i686/cmov/libcrypt.so.1...done.
> Loaded symbols for /lib/tls/i686/cmov/libcrypt.so.1
> Reading symbols from /lib/tls/i686/cmov/libnsl.so.1...done.
> Loaded symbols for /lib/tls/i686/cmov/libnsl.so.1
> Reading symbols from /usr/lib/libkrb5support.so.0...done.
> Loaded symbols for /usr/lib/libkrb5support.so.0
> Reading symbols from /lib/tls/i686/cmov/libnss_compat.so.2...done.
> Loaded symbols for /lib/tls/i686/cmov/libnss_compat.so.2
> Reading symbols from /lib/tls/i686/cmov/libnss_nis.so.2...done.
> Loaded symbols for /lib/tls/i686/cmov/libnss_nis.so.2
> Reading symbols from /lib/tls/i686/cmov/libnss_files.so.2...done.
> Loaded symbols for /lib/tls/i686/cmov/libnss_files.so.2
> 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_monitor.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/res_monitor.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_features.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/res_features.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 /usr/lib/asterisk/modules/res_config_odbc.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/res_config_odbc.so
> Reading symbols from /usr/lib/asterisk/modules/res_odbc.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/res_odbc.so
> Reading symbols from /usr/lib/libodbc.so.1...done.
> Loaded symbols for /usr/lib/libodbc.so.1
> Reading symbols from /usr/lib/libltdl.so.3...done.
> Loaded symbols for /usr/lib/libltdl.so.3
> Reading symbols from /usr/lib/gconv/ISO8859-1.so...done.
> Loaded symbols for /usr/lib/gconv/ISO8859-1.so
> Reading symbols from /usr/lib/odbc/psqlodbc.so...done.
> Loaded symbols for /usr/lib/odbc/psqlodbc.so
> Reading symbols from /usr/lib/libodbcinst.so.1...done.
> Loaded symbols for /usr/lib/libodbcinst.so.1
> 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/pbx_spool.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/pbx_spool.so
> Reading symbols from /usr/lib/asterisk/modules/pbx_dundi.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/pbx_dundi.so
> Reading symbols from /usr/lib/asterisk/modules/pbx_loopback.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/pbx_loopback.so
> Reading symbols from /usr/lib/asterisk/modules/pbx_realtime.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/pbx_realtime.so
> Reading symbols from /usr/lib/asterisk/modules/pbx_ael.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/pbx_ael.so
> Reading symbols from /usr/lib/asterisk/modules/pbx_functions.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/pbx_functions.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/chan_agent.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/chan_agent.so
> Reading symbols from /usr/lib/asterisk/modules/chan_mgcp.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/chan_mgcp.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/chan_local.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/chan_local.so
> Reading symbols from /usr/lib/asterisk/modules/chan_skinny.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/chan_skinny.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/chan_oss.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/chan_oss.so
> Reading symbols from /usr/lib/asterisk/modules/chan_phone.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/chan_phone.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/app_playback.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_playback.so
> Reading symbols from /usr/lib/asterisk/modules/app_voicemail.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_voicemail.so
> Reading symbols from /usr/lib/asterisk/modules/app_directory.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_directory.so
> Reading symbols from /usr/lib/asterisk/modules/app_mp3.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_mp3.so
> Reading symbols from /usr/lib/asterisk/modules/app_system.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_system.so
> Reading symbols from /usr/lib/asterisk/modules/app_echo.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_echo.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/app_image.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_image.so
> Reading symbols from /usr/lib/asterisk/modules/app_url.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_url.so
> Reading symbols from /usr/lib/asterisk/modules/app_disa.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_disa.so
> Reading symbols from /usr/lib/asterisk/modules/app_adsiprog.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_adsiprog.so
> Reading symbols from /usr/lib/asterisk/modules/app_getcpeid.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_getcpeid.so
> Reading symbols from /usr/lib/asterisk/modules/app_milliwatt.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_milliwatt.so
> Reading symbols from /usr/lib/asterisk/modules/app_zapateller.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_zapateller.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_festival.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_festival.so
> Reading symbols from /usr/lib/asterisk/modules/app_queue.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_queue.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_parkandannounce.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_parkandannounce.so
> Reading symbols from /usr/lib/asterisk/modules/app_setcidname.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_setcidname.so
> Reading symbols from /usr/lib/asterisk/modules/app_lookupcidname.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_lookupcidname.so
> Reading symbols from /usr/lib/asterisk/modules/app_macro.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_macro.so
> Reading symbols from /usr/lib/asterisk/modules/app_authenticate.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_authenticate.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/app_lookupblacklist.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_lookupblacklist.so
> Reading symbols from /usr/lib/asterisk/modules/app_waitforring.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_waitforring.so
> Reading symbols from /usr/lib/asterisk/modules/app_privacy.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_privacy.so
> Reading symbols from /usr/lib/asterisk/modules/app_db.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_db.so
> Reading symbols from /usr/lib/asterisk/modules/app_chanisavail.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_chanisavail.so
> Reading symbols from /usr/lib/asterisk/modules/app_enumlookup.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_enumlookup.so
> Reading symbols from /usr/lib/asterisk/modules/app_transfer.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_transfer.so
> Reading symbols from /usr/lib/asterisk/modules/app_setcidnum.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_setcidnum.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/app_hasnewvoicemail.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_hasnewvoicemail.so
> Reading symbols from /usr/lib/asterisk/modules/app_sayunixtime.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_sayunixtime.so
> Reading symbols from /usr/lib/asterisk/modules/app_cut.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_cut.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_setcdruserfield.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_setcdruserfield.so
> Reading symbols from /usr/lib/asterisk/modules/app_random.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_random.so
> Reading symbols from /usr/lib/asterisk/modules/app_ices.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_ices.so
> Reading symbols from /usr/lib/asterisk/modules/app_eval.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_eval.so
> Reading symbols from /usr/lib/asterisk/modules/app_nbscat.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_nbscat.so
> Reading symbols from /usr/lib/asterisk/modules/app_sendtext.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_sendtext.so
> Reading symbols from /usr/lib/asterisk/modules/app_exec.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_exec.so
> Reading symbols from /usr/lib/asterisk/modules/app_groupcount.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_groupcount.so
> Reading symbols from /usr/lib/asterisk/modules/app_txtcidname.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_txtcidname.so
> Reading symbols from /usr/lib/asterisk/modules/app_controlplayback.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_controlplayback.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/app_alarmreceiver.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_alarmreceiver.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/app_verbose.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_verbose.so
> Reading symbols from /usr/lib/asterisk/modules/app_test.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_test.so
> Reading symbols from /usr/lib/asterisk/modules/app_forkcdr.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_forkcdr.so
> Reading symbols from /usr/lib/asterisk/modules/app_math.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_math.so
> Reading symbols from /usr/lib/asterisk/modules/app_realtime.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_realtime.so
> Reading symbols from /usr/lib/asterisk/modules/app_dumpchan.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_dumpchan.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/app_while.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_while.so
> Reading symbols from /usr/lib/asterisk/modules/app_setrdnis.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_setrdnis.so
> Reading symbols from /usr/lib/asterisk/modules/app_md5.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_md5.so
> Reading symbols from /usr/lib/asterisk/modules/app_readfile.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_readfile.so
> 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/app_settransfercapability.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_settransfercapability.so
> Reading symbols from /usr/lib/asterisk/modules/app_dictate.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_dictate.so
> Reading symbols from /usr/lib/asterisk/modules/app_externalivr.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_externalivr.so
> Reading symbols from /usr/lib/asterisk/modules/app_directed_pickup.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_directed_pickup.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/app_stack.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_stack.so
> Reading symbols from /usr/lib/asterisk/modules/app_sms.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_sms.so
> Reading symbols from /usr/lib/asterisk/modules/codec_ilbc.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/codec_ilbc.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/codec_lpc10.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/codec_lpc10.so
> Reading symbols from /usr/lib/asterisk/modules/codec_adpcm.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/codec_adpcm.so
> Reading symbols from /usr/lib/asterisk/modules/codec_ulaw.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/codec_ulaw.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/codec_a_mu.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/codec_a_mu.so
> Reading symbols from /usr/lib/asterisk/modules/codec_g726.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/codec_g726.so
> Reading symbols from /usr/local/lib/libspandsp.so.0...done.
> Loaded symbols for /usr/local/lib/libspandsp.so.0
> Reading symbols from /usr/lib/libtiff.so.4...done.
> Loaded symbols for /usr/lib/libtiff.so.4
> Reading symbols from /usr/lib/libjpeg.so.62...done.
> Loaded symbols for /usr/lib/libjpeg.so.62
> 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/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/format_vox.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/format_vox.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_g729.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/format_g729.so
> Reading symbols from /usr/lib/asterisk/modules/format_pcm_alaw.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/format_pcm_alaw.so
> Reading symbols from /usr/lib/asterisk/modules/format_h263.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/format_h263.so
> Reading symbols from /usr/lib/asterisk/modules/format_g726.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/format_g726.so
> Reading symbols from /usr/lib/asterisk/modules/format_ilbc.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/format_ilbc.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/format_au.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/format_au.so
> Reading symbols from /usr/lib/asterisk/modules/format_jpeg.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/format_jpeg.so
> Reading symbols from /usr/lib/asterisk/modules/format_g723.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/format_g723.so
> Reading symbols from /usr/lib/asterisk/modules/format_ogg_vorbis.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/format_ogg_vorbis.so
> Reading symbols from /usr/lib/libogg.so.0...done.
> Loaded symbols for /usr/lib/libogg.so.0
> Reading symbols from /usr/lib/libvorbis.so.0...done.
> Loaded symbols for /usr/lib/libvorbis.so.0
> Reading symbols from /usr/lib/libvorbisenc.so.2...done.
> Loaded symbols for /usr/lib/libvorbisenc.so.2
> Reading symbols from /usr/lib/asterisk/modules/cdr_csv.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/cdr_csv.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/cdr_custom.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/cdr_custom.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_enum.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/func_enum.so
> Reading symbols from /usr/lib/asterisk/modules/func_uri.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/func_uri.so
> Reading symbols from /usr/lib/asterisk/modules/cdr_odbc.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/cdr_odbc.so
> Reading symbols from /usr/lib/asterisk/modules/app_curl.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_curl.so
> Reading symbols from /usr/lib/libcurl.so.3...done.
> Loaded symbols for /usr/lib/libcurl.so.3
> Reading symbols from /usr/lib/libgssapi_krb5.so.2...done.
> Loaded symbols for /usr/lib/libgssapi_krb5.so.2
> Reading symbols from /usr/lib/libidn.so.11...done.
> Loaded symbols for /usr/lib/libidn.so.11
> Reading symbols from /usr/lib/asterisk/modules/app_mcc2.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_mcc2.so
> Reading symbols from /lib/tls/i686/cmov/libnss_dns.so.2...done.
> Loaded symbols for /lib/tls/i686/cmov/libnss_dns.so.2
> Reading symbols from /usr/lib/asterisk/modules/app_rxfax.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_rxfax.so
> Reading symbols from /usr/lib/asterisk/modules/app_txfax.so...done.
> Loaded symbols for /usr/lib/asterisk/modules/app_txfax.so
> #0  0xb6fd46c7 in mcc2_acct_stop (chan=0x8340040, cdr=0x0, cd=0xb6f28770) at app_mcc2.c:560
> 560         fprintf(stderr,"cdr->disposition: %08x\n", cdr->disposition);
> (gdb) bt
> #0  0xb6fd46c7 in mcc2_acct_stop (chan=0x8340040, cdr=0x0, cd=0xb6f28770) at app_mcc2.c:560
> #1  0xb6fd5c2e in mcc2_exec (chan=0x8340040, data=0xb6f2d048) at app_mcc2.c:817
> #2  0x0808cafd in pbx_exec (c=0x8340040, app=0x8341b48, data=0xb6f2d048, newstack=1) at pbx.c:553
> #3  0x08090a3c in pbx_extension_helper (c=0x8340040, con=0x0, context=0x8340190 "users", exten=0x8340284 "004799355151",
>     priority=4, label=0x0, callerid=0x814ff30 "004799355151", action=1) at pbx.c:1697
> #4  0x08091f6f in ast_spawn_extension (c=0x8340040, context=0x8340190 "users", exten=0x8340284 "004799355151", priority=4,
>     callerid=0x814ff30 "004799355151") at pbx.c:2230
> #5  0x08092489 in __ast_pbx_run (c=0x8340040) at pbx.c:2296
> #6  0x080934c4 in pbx_thread (data=0x8340040) at pbx.c:2517
> #7  0xb7eda341 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
> #8  0xb7dbb4ee in clone () from /lib/tls/i686/cmov/libc.so.6
> (gdb) bt full
> #0  0xb6fd46c7 in mcc2_acct_stop (chan=0x8340040, cdr=0x0, cd=0xb6f28770) at app_mcc2.c:560
>         res = <value optimized out>
>         billsec = <value optimized out>
>         price = -nan(0x400000)
>         sqlcmd = '\0' <repeats 2047 times>
>         result = <value optimized out>
>         new_credit = -nan(0x400000)
>         new_frozen_credit = -nan(0x400000)
>         __PRETTY_FUNCTION__ = "mcc2_acct_stop"
> #1  0xb6fd5c2e in mcc2_exec (chan=0x8340040, data=0xb6f2d048) at app_mcc2.c:817
>         res = -1
>         cd = {accountcode = "2", '\0' <repeats 28 times>, user_id = "2\000\000\000\000\000\000\000\000",
>   tariff_id = "0\000\000\000\000\000\000\000\000", credit = "0\000\000\000\000\000\000\000\000",
>   credit_frozen = "0\000\000\000\000\000\000\000\000", connection_fee = "0\000\000\000\000\000\000\000\000",
>   hangup_cause = '\0' <repeats 19 times>, destination = "004799355151", '\0' <repeats 17 times>,
>   prefix = "00479", '\0' <repeats 24 times>, tech = "IAX2/upnet-termination/EXTEN", '\0' <repeats 71 times>,
>   rate = "12.9\000\000\000\000\000", credit_to_freeze = 0, timeout = 72000,
>   date = "2006-09-06\000\000\000\000\000\000\000\000\000", time = "10:07:25", '\0' <repeats 11 times>,
>   source = "004799355151", '\0' <repeats 17 times>, cid = "004799355151\000\000\000\000\000\000\000",
>   postpaid = "t\000\000\000", blocked = "f\000\000\000"}
>         dialstr = "IAX2/upnet-termination/004799355151||S(72000)", '\0' <repeats 210 times>
>         dialstr2 = "||S(72000)\000termination/004799355151", '\0' <repeats 220 times>
>         destination2 = "004799355151", '\0' <repeats 243 times>
>         direct = 0
>         direct_tech = '\0' <repeats 255 times>
>         temp_tech = '\0' <repeats 255 times>
>         cut = "\000"
>         f = 23
>         l = 28
>         e = 28
>         __PRETTY_FUNCTION__ = "mcc2_exec"
> #2  0x0808cafd in pbx_exec (c=0x8340040, app=0x8341b48, data=0xb6f2d048, newstack=1) at pbx.c:553
>         res = 8191
>         saved_c_appl = 0x0
>         saved_c_data = 0x0
>         execute = (int (*)(struct ast_channel *, void *)) 0xb6fd546e <mcc2_exec>
> ---Type <return> to continue, or q <return> to quit---
>         __PRETTY_FUNCTION__ = "pbx_exec"
> #3  0x08090a3c in pbx_extension_helper (c=0x8340040, con=0x0, context=0x8340190 "users", exten=0x8340284 "004799355151",
>     priority=4, label=0x0, callerid=0x814ff30 "004799355151", action=1) at pbx.c:1697
>         e = (struct ast_exten *) 0x8264cc8
>         app = (struct ast_app *) 0x8341b48
>         sw = (struct ast_switch *) 0x0
>         data = 0x0
>         foundcontext = 0x8340190 "users"
>         newstack = 1
>         res = 0
>         status = 5
>         incstack = {0x0 <repeats 18 times>, 0xb7d52334 "\201è?\f", 0x0, 0x0, 0xb7e1cadc "<?\022",
>   0xb6f2f0f0 "\001\200??L???L???L???L???f???\233???L???\233???", 0xb6f2f0cc "????6??????\177?\021\b\024???L???",
>   0xb7d53631 "\211~\020\213U\024\211~\f\211~\004\205?t6\213U\024\213}?\211V\024\211V\b1?\211~\030\211\226\230",
>   0xb6f2f0f0 "\001\200??L???L???L???L???f???\233???L???\233???", 0xb6f2f24c "\220\0014\b", 0xb6f2f29b "\b\001", 0x0,
>   0xb6f2f29b "\b\001", 0xb7e1cadc "<?\022", 0x811a77f "\"%s\" <%s>", 0xb6f2f20c " U&\b??\024\b",
>   0xb6f2f1dc "????2W?L???P", 0xb7d4da36 "\213\215\f???\211?9\2150???t\t\213?(????\006",
>   0xb6f2f0f0 "\001\200??L???L???L???L???f???\233???L???\233???", 0x811a77f "\"%s\" <%s>", 0xb6f2f214 "",
>   0xb6f2f24c "\220\0014\b", 0x0, 0xb6f2f190 "", 0xb6f2f0f0 "\001\200??L???L???L???L???f???\233???L???\233???",
>   0xfbad8001 <Address 0xfbad8001 out of bounds>, 0xb6f2f24c "\220\0014\b", 0xb6f2f24c "\220\0014\b",
>   0xb6f2f24c "\220\0014\b", 0xb6f2f24c "\220\0014\b", 0xb6f2f266 "", 0xb6f2f29b "\b\001", 0xb6f2f24c "\220\0014\b",
>   0xb6f2f29b "\b\001", 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb7000000 "\n", 0x0, 0x0, 0x0, 0x0, 0x0,
>   0xffffffff <Address 0xffffffff out of bounds>, 0xb7e1079b "corrupted double-linked list",
>   0xb7e1079b "corrupted double-linked list", 0xb7e1079b "corrupted double-linked list", 0x0, 0x0, 0x0, 0x0, 0x0,
>   0x48 <Address 0x48 out of bounds>, 0x18 <Address 0x18 out of bounds>, 0xb7e1e358 "", 0x0, 0xb7e1e344 "??0\b",
>   0xb7e1c520 "", 0x0, 0x0, 0x0, 0x0, 0x0, 0xb7e1cadc "<?\022", 0xb7e1e320 "", 0x0, 0xb6f2f26c "H???\220\0014\b",
>   0xb7d55653 "?Z???\213\215\\???9A\004?\022\213\225\\???\213r\b9F\004\211?\\???w?\213\205\\???\213p\f?\222???\201}??\001",
>   0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x830e738 "", 0xb7d553b4 "\201?(w\f", 0xb7e1cadc "<?\022", 0x0,
>   0xb6f2fbb0 "????\234\v4\b????\001", 0xb6f2f1f8 "????U\v\v\b\\\a4\b",
>   0xb7d35732 "\203?\020[]?\220\220\220\220\220\220\220\220U\211?\215M\020S\203?\f\213U\f\211L$\b\213E\b?\226\025??\201?\203s\016", 0xb6f2f24c "\220\0014\b", 0x50 <Address 0x50 out of bounds>, 0x811a77f "\"%s\" <%s>", 0xb6f2f20c " U&\b??\024\b",
>   0xb7ee43b4 "\220?", 0xb6f2f4c8 "", 0x80b0b55 "\213\204$?", 0x834075c "", 0x8340400 "", 0x14 <Address 0x14 out of bounds>,
>   0x8265520 "iaxComm User", 0x814f8c0 "@", 0x0, 0x0, 0x0, 0x811a646 "<unknown>", 0x814f8c0 "@", 0x814f8c0 "@",
>   0xb6f2f4c8 "", 0xb6f2f280 "@", 0x0, 0xb7d6f306 "\211?=\001???s\001??\031`\b",
>   0x80d5390 "\213D$\020\213T$\024\211\003\211S\004\211?\203?\030[?\004", 0xb6f2f250 "", 0x0}
>         passdata = "004799355151", '\0' <repeats 8179 times>
> ---Type <return> to continue, or q <return> to quit---
>         stacklen = 0
>         tmp = "\033[1;36;40mmcc2\033[0;37;40m", '\0' <repeats 55 times>
>         tmp2 = "\033[1;35;40mIAX2/2-001-5\033[0;37;40m", '\0' <repeats 47 times>
>         tmp3 = "\033[1;35;40m004799355151\033[0;37;40m\0007;40m\000\033[0;37;40m", '\0' <repeats 8142 times>
>         atmp = '\0' <repeats 79 times>
>         atmp2 = '\0' <repeats 8291 times>
>         __PRETTY_FUNCTION__ = "pbx_extension_helper"
> #4  0x08091f6f in ast_spawn_extension (c=0x8340040, context=0x8340190 "users", exten=0x8340284 "004799355151", priority=4,
>     callerid=0x814ff30 "004799355151") at pbx.c:2230
> No locals.
> #5  0x08092489 in __ast_pbx_run (c=0x8340040) at pbx.c:2296
>         firstpass = 0
>         digit = 0
>         exten = '\0' <repeats 255 times>
>         pos = 0
>         waittime = 0
>         res = 0
>         autoloopflag = 0
>         __PRETTY_FUNCTION__ = "__ast_pbx_run"
> #6  0x080934c4 in pbx_thread (data=0x8340040) at pbx.c:2517
>         c = (struct ast_channel *) 0x8340040
> #7  0xb7eda341 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
> No symbol table info available.
> #8  0xb7dbb4ee in clone () from /lib/tls/i686/cmov/libc.so.6
> No symbol table info available.
> (gdb)
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev
>   



More information about the asterisk-dev mailing list