[asterisk-users] Asterisk 1.4.0-beta3 spandsp rxfax woes (or me
being hard of thinking)
Matt Gibson
diwelf at gmail.com
Sun Dec 10 14:13:04 MST 2006
Okay, So,
More updates after testing some more
1. with the "free" line commented out of app_rxfax.c, and recompiled,
asterisk seems to work on non-fax incoming calls to my fax extension.
Doesn't send a file obviously, but does seem to actually reach the
right place and do what it's supposed to do.
2. Here is all the debug output I have while trying to get this to
receive the faxes:
Error #1 :
--------------
*** glibc detected *** asterisk: double free or corruption (out): 0x0820ae98 ***
======= Backtrace: =========
/lib/libc.so.6[0xb72e8d20]
/lib/libc.so.6(__libc_free+0x84)[0xb72ea364]
/lib/libc.so.6(closedir+0x28)[0xb730bf48]
/usr/lib/asterisk/modules/app_voicemail.so[0xb66d1ef5]
/usr/lib/asterisk/modules/app_voicemail.so[0xb66d26a4]
/usr/lib/asterisk/modules/chan_zap.so[0xb697304e]
asterisk[0x80ecb99]
/lib/libpthread.so.0[0xb7e6b294]
/lib/libc.so.6(__clone+0x5e)[0xb7341c9e]
======= Memory map: ========
08048000-0813b000 r-xp 00000000 03:03 2474075 /usr/sbin/asterisk
0813b000-08148000 rw-p 000f3000 03:03 2474075 /usr/sbin/asterisk
08148000-0822b000 rw-p 08148000 00:00 0 [heap]
b5e00000-b5e21000 rw-p b5e00000 00:00 0
b5e21000-b5f00000 ---p b5e21000 00:00 0
b5fc1000-b5fc2000 ---p b5fc1000 00:00 0
b5fc2000-b5ffd000 rwxp b5fc2000 00:00 0
b602e000-b602f000 ---p b602e000 00:00 0
b602f000-b606a000 rwxp b602f000 00:00 0
b606a000-b609b000 r-xp 00000000 03:03 889758 /usr/lib/libcurl.so.3.0.0
b609b000-b609c000 rw-p 00031000 03:03 889758 /usr/lib/libcurl.so.3.0.0
b60a4000-b60a8000 r-xp 00000000 03:03 1066578 /usr/lib/libogg.so.0.5.2
b60a8000-b60a9000 rw-p 00003000 03:03 1066578 /usr/lib/libogg.so.0.5.2
b60a9000-b60b4000 r-xp 00000000 03:03 1130913 /usr/lib/libvorbisenc.so.2.0.2
b60b4000-b61a3000 rw-p 0000a000 03:03 1130913 /usr/lib/libvorbisenc.so.2.0.2
b61a3000-b61a5000 rw-p b61a3000 00:00 0
b61a5000-b61bf000 r-xp 00000000 03:03 1132171 /usr/lib/libvorbis.so.0.3.1
b61bf000-b61cd000 rw-p 0001a000 03:03 1132171 /usr/lib/libvorbis.so.0.3.1
b61d2000-b61d4000 r-xp 00000000 03:03 2376646
/usr/lib/asterisk/modules/func_curl.so
b61d4000-b61d5000 rw-p 00001000 03:03 2376646
/usr/lib/asterisk/modules/func_curl.so
b61d5000-b61d6000 ---p b61d5000 00:00 0
b61d6000-b6211000 rwxp b61d6000 00:00 0
b6211000-b6212000 ---p b6211000 00:00 0
b6212000-b6252000 rwxp b6212000 00:00 0
b6252000-b6253000 ---p b6252000 00:00 0
b6253000-b6293000 rwxp b6253000 00:00 0
b6293000-b629b000 r-xp 00000000 03:03 1002454 /lib/libnss_nis-2.4.so
b629b000-b629d000 rw-p 00007000 03:03 1002454 /lib/libnss_nis-2.4.so
b629d000-b62a3000 r-xp 00000000 03:03 1002470 /lib/libnss_compat-2.4.so
b62a3000-b62a5000 rw-p 00005000 03:03 1002470 /lib/libnss_compat-2.4.so
b62a9000-b62ac000 r-xp 00000000 03:03 2376631
/usr/lib/asterisk/modules/format_ogg_vorbis.so
b62ac000-b62ad000 rw-p 00002000 03:03 2376631
/usr/lib/asterisk/modules/format_ogg_vorbis.so
b62ad000-b62b0000 r-xp 00000000 03:03 1343898
/usr/lib/pwlib/codecs/audio/g726_audio_pwplugin.so
b62b0000-b62b1000 rw-p 00003000 03:03 1343898
/usr/lib/pwlib/codecs/audio/g726_audio_pwplugin.so
b62b1000-b62b9000 r-xp 00000000 03:03 1343897
/usr/lib/pwlib/codecs/audio/lpc10_audio_pwplugin.so
b62b9000-b62ba000 rw-p 00008000 03:03 1343897
/usr/lib/pwlib/codecs/audio/lpc10_audio_pwplugin.so
b62ba000-b62c7000 r-xp 00000000 03:03 1343896
/usr/lib/pwlib/codecs/audio/ilbc_audio_pwplugin.so
b62c7000-b62ca000 rw-p 0000c000 03:03 1343896
/usr/lib/pwlib/codecs/audio/ilbc_audio_pwplugin.so
b62ca000-b62e4000 r-xp 00000000 03:03 1343895
/usr/lib/pwlib/codecs/audio/speex_audio_pwplugin.so
b62e4000-b62e9000 rw-p 0001a000 03:03 1343895
/usr/lib/pwlib/codecs/audio/speex_audio_pwplugin.so
b62e9000-b62f2000 r-xp 00000000 03:03 1343907
/usr/lib/pwlib/codecs/audio/gsm0610_audio_pwplugin.so
b62f2000-b62f3000 rw-p 00008000 03:03 1343907
/usr/lib/pwlib/codecs/audio/gsm0610_audio_pwplugin.so
b62f3000-b633d000 r-xp 00000000 03:03 2376522
/usr/lib/asterisk/modules/chan_h323.so
b633d000-b6341000 rw-p 00049000 03:03 2376522
/usr/lib/asterisk/modules/chan_h323.so
b6341000-b639b000 r-xp 00000000 03:03 3244836
/opt/swift/lib/libceplex_us.so.4.1
b639b000-b639e000 rw-p 00059000 03:03 3244836
/opt/swift/lib/libceplex_us.so.4.1
b639e000-b63ba000 r-xp 00000000 03:03 3244833
/opt/swift/lib/libceplang_en.so.4.1
b63ba000-b63c0000 rw-p 0001b000 03:03 3244833
/opt/swift/lib/libceplang_en.so.4.1
b63c0000-b643c000 r-xp 00000000 03:03 3244839 /opt/swift/lib/libswift.so.4.1
b643c000-b6443000 rw-p 0007b000 03:03 3244839 /opt/swift/lib/libswift.so.4.1
b6443000-b6446000 r-xp 00000000 03:03 2376595
/usr/lib/asterisk/modules/app_txfax.so
b6446000-b6447000 rw-p 00002000 03:03 2376595
/usr/lib/asterisk/modules/app_txfax.so
b6447000-b644a000 r-xp 00000000 03:03 2376580
/usr/lib/asterisk/modules/app_rxfax.so
b644a000-b644b000 rw-p 00002000 03:03 2376580
/usr/lib/asterisk/modules/app_rxfax.so
b644b000-b644e000 r-xp 00000000 03:03 2376446
/usr/lib/asterisk/modules/app_swift.so
b644e000-b644f000 rw-p 00003000 03:03 2376446
/usr/lib/asterisk/modules/app_swift.so
b644f000-b6459000 r-xp 00000000 03:03 2376377
/usr/lib/asterisk/modules/format_mp3.so
b6459000-b645c000 rw-p 0000a000 03:03 2376377
/usr/lib/asterisk/modules/format_mp3.so
b645c000-b6476000 rw-p b645c000 00:00 0
b6476000-b647b000 r-xp 00000000 03:03 1002262 /lib/libcrypt-2.4.so
b647b000-b647d000 rw-p 00004000 03:03 1002262 /lib/libcrypt-2.4.so
b647d000-b64a4000 rw-p b647d000 00:00 0
b64a4000-b65ba000 r-xp 00000000 03:03 1164750
/usr/lib/mysql/libmysqlclient.so.15.0.0
b65ba000-b65fc000 rw-p 00115000 03:03 1164750
/usr/lib/mysql/libmysqlclient.so.15.0.0
b65fc000-b65fd000 rw-p b65fc000 00:00 0
b65fe000-b65ff000 r-xp 00000000 03:03 1343899
/usr/lib/pwlib/codecs/audio/ima_adpcm_audio_pwplugin.so
b65ff000-b6600000 rw-p 00001000 03:03 1343899
/usr/lib/pwlib/codecs/audio/ima_adpcm_audio_pwplugin.so
b6600000-b6604000 r-xp 00000000 03:03 2376375
/usr/lib/asterisk/modules/cdr_addon_mysql.so
b6604000-b6605000 rw-p 00004000 03:03 2376375
/usr/lib/asterisk/modules/cdr_addon_mysql.so
b6605000-b6608000 r-xp 00000000 03:03 2376374
/usr/lib/asterisk/modules/app_addon_sql_mysql.so
b6608000-b6609000 rw-p 00002000 03:03 2376374
/usr/lib/asterisk/modules/app_addon_sql_mysql.so
b6609000-b660a000 r-xp 00000000 03:03 2376664
/usr/lib/asterisk/modules/func_uri.so
b660a000-b660b000 rw-p 00000000 03:03 2376664
/usr/lib/asterisk/modules/func_uri.so
b660b000-b660d000 r-xp 00000000 03:03 2376663
/usr/lib/asterisk/modules/func_timeout.so
b660d000-b660e000 rw-p 00001000 03:03 2376663
/usr/lib/asterisk/modules/func_timeout.so
b660e000-b6612000 r-xp 00000000 03:03 2376661
/usr/lib/asterisk/modules/func_strings.so
b6612000-b6613000 rw-p 00003000 03:03 2376661
/usr/lib/asterisk/modules/func_strings.so
b6613000-b6614000 r-xp 00000000 03:03 2376660
/usr/lib/asterisk/modules/func_sha1.so
b6614000-b6615000 rw-p 00000000 03:03 2376660
/usr/lib/asterisk/modules/func_sha1.so
b6615000-b6617000 r-xp 00000000 03:03 2376659
/usr/lib/asterisk/modules/func_realtime.so
b6617000-b6618000 rw-p 00001000 03:03 2376659
/usr/lib/asterisk/modules/func_realtime.so
b6618000-b661a000 r-xp 00000000 03:03 2376658
/usr/lib/asterisk/modules/func_rand.so
b661a000-b661b000 rw-p 00001000 03:03 2376658
/usr/lib/asterisk/modules/func_rand.so
b661b000-b661c000 r-xp 00000000 03:03 2376657
/usr/lib/asterisk/modules/func_moh.so
b661c000-b661d000 rw-p 00001000 03:03 2376657
/usr/lib/asterisk/modules/func_moh.so
b661d000-b661e000 r-xp 00000000 03:03 2376656
/usr/lib/asterisk/modules/func_md5.so
b661e000-b661f000 rw-p 00001000 03:03 2376656
/usr/lib/asterisk/modules/func_md5.so
b661f000-b6621000 r-xp 00000000 03:03 2376655
/usr/lib/asterisk/modules/func_math.so
b6621000-b6622000 rw-p 00001000 03:03 2376655
/usr/lib/asterisk/modules/func_math.so
b6622000-b6624000 r-xp 00000000 03:03 2376654
/usr/lib/asterisk/modules/func_logic.so
b6624000-b6625000 rw-p 00001000 03:03 2376654
/usr/lib/asterisk/modules/func_logic.so
b6625000-b6626000 r-xp 00000000 03:03 2376653
/usr/lib/asterisk/modules/func_language.so
b6626000-b6627000 rw-p 00001000 03:03 2376653
/usr/lib/asterisk/modules/func_language.so
b6627000-b6629000 r-xp 00000000 03:03 2376652
/usr/lib/asterisk/modules/func_groupcount.so
b6629000-b662a000 rw-p 00001000 03:03 2376652
/usr/lib/asterisk/modules/func_groupcount.so
b662a000-b662b000 r-xp 00000000 03:03 2376651
/usr/lib/asterisk/modules/func_global.so
b662b000-b662c000 rw-p 00000000 03:03 2376651
/usr/lib/asterisk/modules/func_global.so
b662c000-b662e000 r-xp 00000000 03:03 2376650
/usr/lib/asterisk/modules/func_env.so
b662e000-b662f000 rw-p 00001000 03:03 2376650
/usr/lib/asterisk/modules/func_env.so
b662f000-b6631000 r-xp 00000000 03:03 2376649
/usr/lib/asterisk/modules/func_enum.so
b6631000-b6632000 rw-p 00001000 03:03 2376649
/usr/lib/asterisk/modules/func_enum.so
b6632000-b6634000 r-xp 00000000 03:03 2376648
/usr/lib/asterisk/modules/func_db.so
b6634000-b6635000 rw-p 00001000 03:03 2376648
/usr/lib/asterisk/modules/func_db.so
b6635000-b6637000 r-xp 00000000 03:03 2376647
/usr/lib/asterisk/modules/func_cut.so
b6637000-b6638000 rw-p 00002000 03:03 2376647
/usr/lib/asterisk/modules/func_cut.so
b6638000-b663a000 r-xp 00000000 03:03 2376645
/usr/lib/asterisk/modules/func_channel.so
b663a000-b663b000 rw-p 00002000 03:03 2376645
/usr/lib/asterisk/modules/func_channel.so
b663b000-b663d000 r-xp 00000000 03:03 2376644
/usr/lib/asterisk/modules/func_cdr.so
b663d000-b663e000 rw-p 00001000 03:03 2376644
/usr/lib/asterisk/modules/func_cdr.so
b663e000-b6640000 r-xp 00000000 03:03 2376643
/usr/lib/asterisk/modules/func_callerid.so
b6640000-b6641000 rw-p 00001000 03:03 2376643
/usr/lib/asterisk/modules/func_callerid.so
b6641000-b6642000 r-xp 00000000 03:03 2376642
/usr/lib/asterisk/modules/func_base64.so
b6642000-b6643000 rw-p 00001000 03:03 2376642
/usr/lib/asterisk/modules/func_base64.so
b6643000-b6645000 r-xp 00000000 03:03 2376641
/usr/lib/asterisk/modules/cdr_manager.so
b6645000-b6646000 rw-p 00001000 03:03 2376641
/usr/lib/asterisk/modules/cdr_manager.so
b6646000-b6648000 r-xp 00000000 03:03 2376639
/usr/lib/asterisk/modules/cdr_custom.so
b6648000-b6649000 rw-p 00001000 03:03 2376639
/usr/lib/asterisk/modules/cdr_custom.so
b6649000-b664a000 rw-p b6649000 00:00 0
b664a000-b664d000 r-xp 00000000 03:03 2376638
/usr/lib/asterisk/modules/cdr_csv.so
b664d000-b664e000 rw-p 00002000 03:03 2376638
/usr/lib/asterisk/modules/cdr_csv.so
b664e000-b6654000 r-xp 00000000 03:03 2376637
/usr/lib/asterisk/modules/format_wav_gsm.so
b6654000-b6655000 rw-p 00005000 03:03 2376637
/usr/lib/asterisk/modules/format_wav_gsm.so
b6655000-b6658000 r-xp 00000000 03:03 2376636
/usr/lib/asterisk/modules/format_wav.so
b6658000-b6659000 rw-p 00002000 03:03 2376636
/usr/lib/asterisk/modules/format_wav.so
b6659000-b665b000 r-xp 00000000 03:03 2376634
/usr/lib/asterisk/modules/format_vox.so
b665b000-b665c000 rw-p 00001000 03:03 2376634
/usr/lib/asterisk/modules/format_vox.so
b665c000-b665e000 r-xp 00000000 03:03 2376633
/usr/lib/asterisk/modules/format_sln.so
b665e000-b665f000 rw-p 00001000 03:03 2376633
/usr/lib/asterisk/modules/format_sln.so
b665f000-b6661000 r-xp 00000000 03:03 2376632
/usr/lib/asterisk/modules/format_pcm.so
b6661000-b6662000 rw-p 00002000 03:03 2376632
/usr/lib/asterisk/modules/format_pcm.so
b6662000-b6664000 r-xp 00000000 03:03 2376630
/usr/lib/asterisk/modules/format_jpeg.so
b6664000-b6665000 rw-p 00001000 03:03 2376630
/usr/lib/asterisk/modules/format_jpeg.so
b6665000-b6667000 r-xp 00000000 03:03 2376629
/usr/lib/asterisk/modules/format_ilbc.so
b6667000-b6668000 rw-p 00001000 03:03 2376629
/usr/lib/asterisk/modules/format_ilbc.so
b6668000-b666a000 r-xp 00000000 03:03 2376628
/usr/lib/asterisk/modules/format_h264.so
b666a000-b666b000 rw-p 00001000 03:03 2376628
/usr/lib/asterisk/modules/format_h264.so
b666b000-b666d000 r-xp 00000000 03:03 2376627
/usr/lib/asterisk/modules/format_h263.so
b666d000-b666e000 rw-p 00001000 03:03 2376627
/usr/lib/asterisk/modules/format_h263.so
b666e000-b6671000 r-xp 00000000 03:03 2376625
/usr/lib/asterisk/modules/format_gsm.so
b6671000-b6672000 rw-p 00002000 03:03 2376625
/usr/lib/asterisk/modules/format_gsm.so
b6672000-b6674000 r-xp 00000000 03:03 2376624
/usr/lib/asterisk/modules/format_g729.so
b6674000-b6675000 rw-p 00001000 03:03 2376624
/usr/lib/asterisk/modules/format_g729.so
b6675000-b6677000 r-xp 00000000 03:03 2376623
/usr/lib/asterisk/modules/format_g726.so
b6677000-b6678000 rw-p 00001000 03:03 2376623
/usr/lib/asterisk/modules/format_g726.so
b6678000-b667a000 r-xp 00000000 03:03 2376622
/usr/lib/asterisk/modules/format_g723.so
b667a000-b667b000 rw-p 00001000 03:03 2376622
/usr/lib/asterisk/modules/format_g723.so
b667b000-b667d000 r-xp 00000000 03:03 2376620
/usr/lib/asterisk/modules/codec_ulaw.so
b667d000-b667e000 rw-p 00001000 03:03 2376620
/usr/lib/asterisk/modules/codec_ulaw.so
b667e000-b6688000 r-xp 00000000 03:03 2376618
/usr/lib/asterisk/modules/codec_lpc10.so
b6688000-b6689000 rw-p 00009000 03:03 2376618
/usr/lib/asterisk/modules/codec_lpc10.so
b6689000-b6697000 r-xp 00000000 03:03 2376617
/usr/lib/asterisk/modules/codec_ilbc.so
b6697000-b669a000 rw-p 0000d000 03:03 2376617
/usr/lib/asterisk/modules/codec_ilbc.so
b669a000-b66aa000 r-xp 00000000 03:03 2376616
/usr/lib/asterisk/modules/codec_gsm.so
b66aa000-b66ab000 rw-p 0000f000 03:03 2376616
/usr/lib/asterisk/modules/codec_gsm.so
b66ab000-b66ae000 r-xp 00000000 03:03 2376615
/usr/lib/asterisk/modules/codec_g726.so
b66ae000-b66af000 rw-p 00002000 03:03 2376615
/usr/lib/asterisk/modules/codec_g726.so
b66af000-b66b1000 r-xp 00000000 03:03 2376614
/usr/lib/asterisk/modules/codec_alaw.so
b66b1000-b66b2000 rw-p 00001000 03:03 2376614
/usr/lib/asterisk/modules/codec_alaw.so
b66b2000-b66b4000 r-xp 00000000 03:03 2376613
/usr/lib/asterisk/modules/codec_adpcm.so
b66b4000-b66b5000 rw-p 00001000 03:03 2376613
/usr/lib/asterisk/modules/codec_adpcm.so
b66b5000-b66b6000 r-xp 00000000 03:03 2376611
/usr/lib/asterisk/modules/codec_a_mu.so
b66b6000-b66b7000 rw-p 00001000 03:03 2376611
/usr/lib/asterisk/modules/codec_a_mu.so
b66b7000-b66ba000 r-xp 00000000 03:03 2376609
/usr/lib/asterisk/modules/app_zapscan.so
b66ba000-b66bb000 rw-p 00002000 03:03 2376609
/usr/lib/asterisk/modules/app_zapscan.so
b66bb000-b66bd000 r-xp 00000000 03:03 2376608
/usr/lib/asterisk/modules/app_zapras.so
b66bd000-b66be000 rw-p 00002000 03:03 2376608
/usr/lib/asterisk/modules/app_zapras.so
b66be000-b66c1000 r-xp 00000000 03:03 2376607
/usr/lib/asterisk/modules/app_zapbarge.so
b66c1000-b66c2000 rw-p 00002000 03:03 2376607
/usr/lib/asterisk/modules/app_zapbarge.so
b66c2000-b66c4000 r-xp 00000000 03:03 2376606
/usr/lib/asterisk/modules/app_zapateller.so
b66c4000-b66c5000 rw-p 00001000 03:03 2376606
/usr/lib/asterisk/modules/app_zapateller.so
b66c5000-b66c8000 r-xp 00000000 03:03 2376605
/usr/lib/asterisk/modules/app_while.so
b66c8000-b66c9000 rw-p 00002000 03:03 2376605
/usr/lib/asterisk/modules/app_while.so
b66c9000-b66cb000 r-xp 00000000 03:03 2376604
/usr/lib/asterisk/modules/app_waitforsilence.so
b66cb000-b66cc000 rw-p 00001000 03:03 2376604
/usr/lib/asterisk/modules/app_waitforsilence.so
b66cc000-b66ce000 r-xp 00000000 03:03 2376601
/usr/lib/asterisk/modules/app_waitforring.so
b66ce000-b66cf000 rw-p 00001000 03:03 2376601
/usr/lib/asterisk/modules/app_waitforring.so
b66cf000-b66ee000 r-xp 00000000 03:03 2376600
/usr/lib/asterisk/modules/app_voicemail.so
b66ee000-b66ef000 rw-p 0001f000 03:03 2376600
/usr/lib/asterisk/modules/app_voicemail.so
b66ef000-b66f0000 rw-p b66ef000 00:00 0
b66f0000-b66f2000 r-xp 00000000 03:03 2376599
/usr/lib/asterisk/modules/app_verbose.so
b66f2000-b66f3000 rw-p 00001000 03:03 2376599
/usr/lib/asterisk/modules/app_verbose.so
b66f3000-b66f5000 r-xp 00000000 03:03 2376598
/usr/lib/asterisk/modules/app_userevent.so
b66f5000-b66f6000 rw-p 00001000 03:03 2376598
/usr/lib/asterisk/modules/app_userevent.so
b66f6000-b66f8000 r-xp 00000000 03:03 2376596
/usr/lib/asterisk/modules/app_url.so
b66f8000-b66f9000 rw-p 00001000 03:03 2376596
/usr/lib/asterisk/modules/app_url.so
b66f9000-b66fb000 r-xp 00000000 03:03 2376594
/usr/lib/asterisk/modules/app_transfer.so
b66fb000-b66fc000 rw-p 00001000 03:03 2376594
/usr/lib/asterisk/modules/app_transfer.so
b66fc000-b6700000 r-xp 00000000 03:03 2376593
/usr/lib/asterisk/modules/app_test.so
b6700000-b6701000 rw-p 00003000 03:03 2376593
/usr/lib/asterisk/modules/app_test.so
b6701000-b6704000 r-xp 00000000 03:03 2376592
/usr/lib/asterisk/modules/app_talkdetect.so
b6704000-b6705000 rw-p 00002000 03:03 2376592
/usr/lib/asterisk/modules/app_talkdetect.so
b6705000-b6707000 r-xp 00000000 03:03 2376591
/usr/lib/asterisk/modules/app_system.so
b6707000-b6708000 rw-p 00001000 03:03 2376591
/usr/lib/asterisk/modules/app_system.so
b6708000-b670a000 r-xp 00000000 03:03 2376590
/usr/lib/asterisk/modulAborted (core dumped)
error #2:
------------
-- Executing [s at fax:1] Macro("Zap/4-1", "faxreceive") in new stack
-- Executing [s at macro-faxreceive:1] Set("Zap/4-1",
"FAXFILE=/var/spool/asterisk-fax/1165782949.4.tif") in new stack
[Dec 10 15:35:54] DEBUG[12068]: pbx.c:1621
pbx_substitute_variables_helper_full: Function result is
'email at address.com'
-- Executing [s at macro-faxreceive:2] Set("Zap/4-1",
"EMAILADDR=email at address.com") in new stack
-- Executing [s at macro-faxreceive:3] RxFAX("Zap/4-1",
"/var/spool/asterisk-fax/1165782949.4.tif") in new stack
Segmentation fault (core dumped)
working with just a call to the extension:
-----------------------------------------------------------
-- Executing [8002 at internal:1] Goto("SIP/8080-0820c678",
"fax|s|1") in new stack
-- Goto (fax,s,1)
-- Executing [s at fax:1] Macro("SIP/8080-0820c678", "faxreceive") in new stack
-- Executing [s at macro-faxreceive:1] Set("SIP/8080-0820c678",
"FAXFILE=/var/spool/asterisk-fax/1165784325.0.tif") in new stack
[Dec 10 15:58:45] DEBUG[12168]: pbx.c:1621
pbx_substitute_variables_helper_full: Function result is
'email at address.com'
-- Executing [s at macro-faxreceive:2] Set("SIP/8080-0820c678",
"EMAILADDR=email at address.com") in new stack
-- Executing [s at macro-faxreceive:3] RxFAX("SIP/8080-0820c678",
"/var/spool/asterisk-fax/1165784325.0.tif") in new stack
[Dec 10 15:59:09] DEBUG[12168]: app_rxfax.c:123 phase_e_handler:
==============================================================================
[Dec 10 15:59:09] DEBUG[12168]: app_rxfax.c:124 phase_e_handler: Fax
receive not successful - result (60) Disconnected after permitted
retries.
[Dec 10 15:59:09] DEBUG[12168]: app_rxfax.c:125 phase_e_handler:
==============================================================================
[Dec 10 16:00:48] DEBUG[12168]: app_rxfax.c:325 rxfax_exec: Got hangup
[Dec 10 16:00:48] DEBUG[12168]: app_macro.c:267 _macro_exec: Extension
s, macroexten s, priority 3 returned normally even though call
was hung up
[Dec 10 16:00:48] DEBUG[12168]: pbx.c:2383 __ast_pbx_run: Extension s,
priority 1 returned normally even though call was hung up
-- Executing [h at fax:1] System("SIP/8080-0820c678",
"/usr/local/sbin/mailfax /var/spool/asterisk-fax/1165784325.0.tif
email at address.com "" " "") in new stack
TIFFOpen: /var/spool/asterisk-fax/1165784325.0.tif: Cannot open.
tiff2pdf: Can't open input file
/var/spool/asterisk-fax/1165784325.0.tif for reading.
and this is the crash with strace enabled:
------------------------------------------------------------
-- Starting simple switch on 'Zap/4-1'
0xbff6229b, 1) = ? ERESTARTSYS (To be restarted)
--- SIGURG (Urgent I/O condition) @ 0 (0) ---
rt_sigaction(SIGURG, {0x8066cc0, [URG], SA_RESTART}, {0x8066cc0,
[URG], SA_RESTART}, 8) = 0
sigreturn() = ? (mask now [])
read(0, -- Executing [s at from-pstn:1] Goto("Zap/4-1",
"main-menu|s|1") in new stack
-- Goto (main-menu,s,1)
-- Executing [s at main-menu:1] Wait("Zap/4-1", ".5") in new stack
-- Executing [s at main-menu:2] Answer("Zap/4-1", "") in new stack
[Dec 10 16:06:17] DEBUG[12305]: chan_zap.c:2789 zt_answer: Took Zap/4-1 off hook
[Dec 10 16:06:17] DEBUG[12305]: chan_zap.c:1458 zt_enable_ec: Enabled
echo cancellation on channel 4
[Dec 10 16:06:17] DEBUG[12305]: chan_zap.c:1477 zt_train_ec: No echo
training requested
-- Executing [s at main-menu:3] SetMusicOnHold("Zap/4-1",
"oldschool") in new stack
-- Executing [s at main-menu:4] Set("Zap/4-1", "TIMEOUT(digit)=10")
in new stack
-- Digit timeout set to 10
-- Executing [s at main-menu:5] Set("Zap/4-1",
"TIMEOUT(response)=15") in new stack
-- Response timeout set to 15
-- Executing [s at main-menu:6] Wait("Zap/4-1", ".25") in new stack
-- Executing [s at main-menu:7] GotoIfTime("Zap/4-1",
"9:00-17:00|*|*|*?flewid|s|1") in new stack
-- Goto (flewid,s,1)
-- Executing [s at flewid:1] BackGround("Zap/4-1",
"flewid-ivr/initial-greet") in new stack
[Dec 10 16:06:17] DEBUG[12305]: channel.c:1860 ast_settimeout:
Scheduling timer at 160 sample intervals
-- Playing 'flewid-ivr/initial-greet' (language 'en')
0xbff6229b, 1) = ? ERESTARTSYS (To be restarted)
--- SIGURG (Urgent I/O condition) @ 0 (0) ---
rt_sigaction(SIGURG, {0x8066cc0, [URG], SA_RESTART}, {0x8066cc0,
[URG], SA_RESTART}, 8) = 0
sigreturn() = ? (mask now [])
read(0, [Dec 10 16:06:20] DEBUG[12305]: channel.c:1860 ast_settimeout:
Scheduling timer at 0 sample intervals
[Dec 10 16:06:20] DEBUG[12305]: channel.c:1860 ast_settimeout:
Scheduling timer at 0 sample intervals
-- Executing [s at flewid:2] BackGround("Zap/4-1", "silence/1") in new stack
[Dec 10 16:06:20] DEBUG[12305]: channel.c:1860 ast_settimeout:
Scheduling timer at 160 sample intervals
-- Playing 'silence/1' (language 'en')
0xbff6229b, 1) = ? ERESTARTSYS (To be restarted)
--- SIGURG (Urgent I/O condition) @ 0 (0) ---
rt_sigaction(SIGURG, {0x8066cc0, [URG], SA_RESTART}, {0x8066cc0,
[URG], SA_RESTART}, 8) = 0
sigreturn() = ? (mask now [])
read(0, [Dec 10 16:06:20] DEBUG[12305]: channel.c:1860 ast_settimeout:
Scheduling timer at 158 sample intervals
[Dec 10 16:06:20] DEBUG[12305]: channel.c:1860 ast_settimeout:
Scheduling timer at 0 sample intervals
[Dec 10 16:06:20] DEBUG[12305]: channel.c:1860 ast_settimeout:
Scheduling timer at 0 sample intervals
-- Executing [s at flewid:3] BackGround("Zap/4-1",
"flewid-ivr/main-message") in new stack
[Dec 10 16:06:20] DEBUG[12305]: channel.c:1860 ast_settimeout:
Scheduling timer at 160 sample intervals
-- Playing 'flewid-ivr/main-message' (language 'en')
0xbff6229b, 1) = ? ERESTARTSYS (To be restarted)
--- SIGURG (Urgent I/O condition) @ 0 (0) ---
rt_sigaction(SIGURG, {0x8066cc0, [URG], SA_RESTART}, {0x8066cc0,
[URG], SA_RESTART}, 8) = 0
sigreturn() = ? (mask now [])
read(0, [Dec 10 16:06:21] DEBUG[12305]: chan_zap.c:4805 zt_read: DTMF
digit: f on Zap/4-1
-- Redirecting Zap/4-1 to fax extension
[Dec 10 16:06:21] DEBUG[12305]: channel.c:1860 ast_settimeout:
Scheduling timer at 0 sample intervals
== Spawn extension (flewid, fax, 0) exited non-zero on 'Zap/4-1'
-- Executing [fax at flewid:1] Goto("Zap/4-1", "fax|s|1") in new stack
-- Goto (fax,s,1)
-- Executing [s at fax:1] Macro("Zap/4-1", "faxreceive") in new stack
-- Executing [s at macro-faxreceive:1] Set("Zap/4-1",
"FAXFILE=/var/spool/asterisk-fax/1165784776.0.tif") in new stack
[Dec 10 16:06:21] DEBUG[12305]: pbx.c:1621
pbx_substitute_variables_helper_full: Function result is
'email at address.com'
-- Executing [s at macro-faxreceive:2] Set("Zap/4-1",
"EMAILADDR=email at address.com") in new stack
-- Executing [s at macro-faxreceive:3] RxFAX("Zap/4-1",
"/var/spool/asterisk-fax/1165784776.0.tif") in new stack
0xbff6229b, 1) = ? ERESTARTSYS (To be restarted)
+++ killed by SIGSEGV (core dumped) +++
Process 12268 detached
pbx asterisk-fax #
Thanks,
Matt Gibson / Diwelf
On 10/12/06, Matt Gibson <diwelf at gmail.com> wrote:
> Just an update to this..
>
> - my machine was virgin install as well, also tried spandsp located in
> /usr/local/lib or /usr/lib
> - hard linked the asterisk binary to -lspandsp
>
> still gives the same error :(
>
> As for the "free" line in app_rxfax.so, I commented out:
>
> ast_frfree(inf);
>
> Once this was commented out, everything seems to work!
>
> Thanks for all the help everyone. My howto will be updated soon.
>
> Thanks,
> Diwelf
>
> On 08/12/06, Chris Glover <chris at glovercc.plus.com> wrote:
> > In this case, the machine was a spandsp virgin, it had never been
> > installed before.
> >
> > I made sure I ran ldconfig before and after building, and still no joy.
> >
> > I have managed to get iaxmodem and hylafax to work quite well though :-)
> >
> > Chris
> >
> > On Fri, 2006-12-08 at 12:43 +0000, Steve Davies wrote:
> > > The only time I have seen this problem myself is when Asterisk (and
> > > therefore rxfax) was built when the wrong spandsp header/library files
> > > were present on the system.
> > >
> > > The required order of events is:
> > >
> > > 1) Build spandsp
> > > 2) Install both spandsp binary libraries and includes, ensuring no old
> > > versions are present.
> > > 3) Rebuild asterisk from scratch
> > > 4) Profit... :)
> > >
> > > If that doesn't work, then there may be a more fundamental problem.
> > > Someone did comment a while back that the new code seemed to be
> > > freeing an already free chunk of memory - Perhaps Asterisk has changed
> > > behaviour and is freeing something that the app used to be required to
> > > clean up itself - AFAIK, the workaround was to comment out the "free"
> > > that caused the crash in app_rxfax.c.
> > >
> > > Cheers,
> > > Steve
> > >
> > > On 12/8/06, Matt Gibson <diwelf at gmail.com> wrote:
> > > > Update on this -
> > > >
> > > > I tried with the newest spandsp on the snapshots site still to no
> > > > avail. I also ensured no other copies of spandsp exist, and adding
> > > > SPANDSP_LIBS=-lspandsp to makeopts, but still getting the segfault
> > > > when rxfax is called.
> > > >
> > > >
> > > >
> > > > On 07/12/06, Matt Gibson <diwelf at gmail.com> wrote:
> > > > > Same thing occuring here, on gentoo as well :(
> > > > >
> > > > >
> > > > > On 07/12/06, Chris Glover <chris at glovercc.plus.com> wrote:
> > > > > > Hi,
> > > > > >
> > > > > > I have installed the latest version of asterisk(1.4.0-beta3), and built
> > > > > > app_rxfax/txfax. I'm using spandsp from here,
> > > > > >
> > > > > > http://www.soft-switch.org/downloads/snapshots/spandsp/spandsp-20061207.tar.gz
> > > > > >
> > > > > > Everything builds ok. I had to manually apply the patch from the site so
> > > > > > configure would spot spandsp libraries. However, when I try dialing my
> > > > > > virtual fax extension (either from a phone or fax machine) Asterisk
> > > > > > bombs out with the following message...
> > > > > >
> > > > > > Executing [402 at default:1] RxFAX("SIP/101-081d63d0", "/tmp/test.tif") in
> > > > > > new stack
> > > > > > asterisk: symbol lookup error: /usr/lib/asterisk/modules/app_rxfax.so:
> > > > > > undefined symbol: span_set_message_handler
> > > > > >
> > > > > > This was me dialing from a normal sip extension, hoping to hear fax
> > > > > > tones. I did try the latest ebuild Gentoo have (1.2.13), this gave me
> > > > > > perfect fax tones, but completely refused to include chan_zap, so I
> > > > > > can't win :-)
> > > > > >
> > > > > > Please somebody tell me where I'm going wrong, been trying to get this
> > > > > > to work for hours. I've got rid of all the old libraries, recompiled...
> > > > > > my next step is to sacrifice a goat!
> > > > > >
> > > > > > Any help greatly appreciated.
> > > > > >
> > > > > > Chris
> > > > > >
> > > > > > --
> > > > > > Chris
> > > > > > ----------------------------------
> > > > > > E Mail: chris at glovercc.plus.com
> > > > > > SIP: 84411389 at voiptalk.org
> > > > > > IAXTEL: 17003366726
> > > > > >
> > > > > >
> > > > > > _______________________________________________
> > > > > > --Bandwidth and Colocation provided by Easynews.com --
> > > > > >
> > > > > > asterisk-users mailing list
> > > > > > To UNSUBSCRIBE or update options visit:
> > > > > > http://lists.digium.com/mailman/listinfo/asterisk-users
> > > > > >
> > > > >
> > > > _______________________________________________
> > > > --Bandwidth and Colocation provided by Easynews.com --
> > > >
> > > > asterisk-users mailing list
> > > > To UNSUBSCRIBE or update options visit:
> > > > http://lists.digium.com/mailman/listinfo/asterisk-users
> > > >
> > > _______________________________________________
> > > --Bandwidth and Colocation provided by Easynews.com --
> > >
> > > asterisk-users mailing list
> > > To UNSUBSCRIBE or update options visit:
> > > http://lists.digium.com/mailman/listinfo/asterisk-users
> > --
> > Chris
> > ----------------------------------
> > E Mail: chris at glovercc.plus.com
> > SIP: 84411389 at voiptalk.org
> > IAXTEL: 17003366726
> >
> > _______________________________________________
> > --Bandwidth and Colocation provided by Easynews.com --
> >
> > asterisk-users mailing list
> > To UNSUBSCRIBE or update options visit:
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> >
>
More information about the asterisk-users
mailing list