[asterisk-bugs] [Asterisk 0016511]: Asterisk Crashes when a fax comes in over nvfaxdetect

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Dec 23 15:30:13 CST 2009


The following issue has been SUBMITTED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16511 
====================================================================== 
Reported By:                mejor
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16511
Category:                   Addons/General
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     new
Asterisk Version:           1.6.1.12 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-12-23 15:30 CST
Last Modified:              2009-12-23 15:30 CST
====================================================================== 
Summary:                    Asterisk Crashes when a fax comes in over
nvfaxdetect
Description: 
I was on asterisk 1.6.1.1 and upgraded to asterisk 1.6.1.12. I reinstalled
spandsp and it kept reverting me back to 1.6.1.1. Now I have 1.6.1.12
installed and spandsp (I think). I verified the app_nv_faxdetect is showing
up in asterisk. Anytime a fax is comming inbound wether it be over SIP or a
pots line asterisk crashes with the following:

[2009-12-23 15:14:17] VERBOSE[6444] chan_dahdi.c:     -- Starting simple
switch on 'DAHDI/1-1'
[2009-12-23 15:14:21] NOTICE[6444] chan_dahdi.c: Got event 18 (Ring
Begin)...
[2009-12-23 15:14:23] NOTICE[6444] chan_dahdi.c: Got event 2
(Ring/Answered)...
[2009-12-23 15:14:23] VERBOSE[6444] pbx.c:     -- Executing
[s at from-pstn:1] Set("DAHDI/1-1", "__FROM_DID=s") in new stack
[2009-12-23 15:14:23] VERBOSE[6444] pbx.c:     -- Executing
[s at from-pstn:2] Gosub("DAHDI/1-1", "cidlookup,cidlookup_1,1") in new stack
[2009-12-23 15:14:23] VERBOSE[6446] manager.c:   == Manager 'admin' logged
on from 127.0.0.1
[2009-12-23 15:14:23] VERBOSE[6446] manager.c:   == Manager 'admin' logged
off from 127.0.0.1
[2009-12-23 15:14:23] VERBOSE[6444] pbx.c:     -- Executing
[cidlookup_1 at cidlookup:1] Set("DAHDI/1-1", "CALLERID(name)=USER") in new
stack
[2009-12-23 15:14:23] VERBOSE[6444] pbx.c:     -- Executing
[cidlookup_1 at cidlookup:2] Return("DAHDI/1-1", "") in new stack
[2009-12-23 15:14:23] VERBOSE[6444] pbx.c:     -- Executing
[s at from-pstn:3] Gosub("DAHDI/1-1", "app-blacklist-check,s,1") in new stack
[2009-12-23 15:14:23] VERBOSE[6444] pbx.c:     -- Executing
[s at app-blacklist-check:1] GotoIf("DAHDI/1-1", "0?blacklisted") in new
stack
[2009-12-23 15:14:23] VERBOSE[6444] pbx.c:     -- Executing
[s at app-blacklist-check:2] Set("DAHDI/1-1", "CALLED_BLACKLIST=1") in new
stack
[2009-12-23 15:14:23] VERBOSE[6444] pbx.c:     -- Executing
[s at app-blacklist-check:3] Return("DAHDI/1-1", "") in new stack
[2009-12-23 15:14:23] VERBOSE[6444] pbx.c:     -- Executing
[s at from-pstn:4] ExecIf("DAHDI/1-1", "0 ?Set(CALLERID(name)=3145551856)") in
new stack
[2009-12-23 15:14:23] VERBOSE[6444] pbx.c:     -- Executing
[s at from-pstn:5] Set("DAHDI/1-1", "FAX_RX=system") in new stack
[2009-12-23 15:14:23] VERBOSE[6444] pbx.c:     -- Executing
[s at from-pstn:6] Set("DAHDI/1-1", "FAX_RX_EMAIL=fax at goinet.com") in new
stack
[2009-12-23 15:14:23] VERBOSE[6444] pbx.c:     -- Executing
[s at from-pstn:7] Answer("DAHDI/1-1", "") in new stack
[2009-12-23 15:14:23] VERBOSE[6444] pbx.c:     -- Executing
[s at from-pstn:8] PlayTones("DAHDI/1-1", "ring") in new stack
[2009-12-23 15:14:23] VERBOSE[6444] pbx.c:     -- Executing
[s at from-pstn:9] NVFaxDetect("DAHDI/1-1", "6|t") in new stack
[2009-12-23 15:14:23] WARNING[6444] pbx.c: The application delimiter is
now the comma, not the pipe.  Did you forget to convert your dialplan? 
(NVFaxDetect(6|t))
[2009-12-23 15:14:23] DEBUG[6444] app_nv_faxdetect.c: Preparing detect of
fax (waitdur=6ms, sildur=1000ms, mindur=100ms, maxdur=-1ms)
[2009-12-23 15:14:27] DEBUG[6444] app_nv_faxdetect.c: Fax detected on
DAHDI/1-1
[2009-12-23 15:14:27] NOTICE[6444] app_nv_faxdetect.c: Redirecting
DAHDI/1-1 to fax extension
[2009-12-23 15:14:27] VERBOSE[6444] pbx.c:     -- Executing
[fax at from-pstn:1] Goto("DAHDI/1-1", "ext-fax,in_fax,1") in new stack
[2009-12-23 15:14:27] VERBOSE[6444] pbx.c:     -- Goto (ext-fax,in_fax,1)
[2009-12-23 15:14:27] VERBOSE[6444] pbx.c:     -- Executing
[in_fax at ext-fax:1] StopPlayTones("DAHDI/1-1", "") in new stack
[2009-12-23 15:14:27] VERBOSE[6444] pbx.c:     -- Executing
[in_fax at ext-fax:2] GotoIf("DAHDI/1-1", "1?3:analog_fax,1") in new stack
[2009-12-23 15:14:27] VERBOSE[6444] pbx.c:     -- Goto (ext-fax,in_fax,3)
[2009-12-23 15:14:27] VERBOSE[6444] pbx.c:     -- Executing
[in_fax at ext-fax:3] Macro("DAHDI/1-1", "faxreceive") in new stack
[2009-12-23 15:14:27] VERBOSE[6444] pbx.c:     -- Executing
[s at macro-faxreceive:1] Set("DAHDI/1-1",
"FAXFILE=/var/spool/asterisk/fax/1261602857.6.tif") in new stack
[2009-12-23 15:14:27] VERBOSE[6444] pbx.c:     -- Executing
[s at macro-faxreceive:2] Set("DAHDI/1-1", "EMAILADDR=fax at goinet.com") in new
stack
[2009-12-23 15:14:27] VERBOSE[6444] pbx.c:     -- Executing
[s at macro-faxreceive:3] ReceiveFAX("DAHDI/1-1",
"/var/spool/asterisk/fax/1261602857.6.tif") in new stack
[2009-12-23 15:14:27] NOTICE[6444] channel.c: Dropping incompatible voice
frame on DAHDI/1-1 of format slin since our native format has changed to
0x4 (ulaw)
*** glibc detected *** /usr/sbin/asterisk: corrupted double-linked list:
0xb77f8d40 ***
======= Backtrace: =========
/lib/libc.so.6[0x5fac1e]
/lib/libc.so.6(cfree+0x90)[0x5fe1e0]
/usr/sbin/asterisk[0x80cc15a]
/lib/libpthread.so.0[0x70ab7c]
/lib/libpthread.so.0[0x70b469]
/lib/libc.so.6(clone+0x5e)[0x662e5e]
======= Memory map: ========
00110000-00119000 r-xp 00000000 fd:00 30179369   /lib/libnss_files-2.5.so
00119000-0011a000 r-xp 00008000 fd:00 30179369   /lib/libnss_files-2.5.so
0011a000-0011b000 rwxp 00009000 fd:00 30179369   /lib/libnss_files-2.5.so
0011b000-0011f000 r-xp 00000000 fd:00 7998468   
/usr/lib/asterisk/modules/res_indications.so
0011f000-00120000 rwxp 00003000 fd:00 7998468   
/usr/lib/asterisk/modules/res_indications.so
00120000-00127000 r-xp 00000000 fd:00 7998472   
/usr/lib/asterisk/modules/res_phoneprov.so
00127000-00128000 rwxp 00006000 fd:00 7998472   
/usr/lib/asterisk/modules/res_phoneprov.so
00128000-0012e000 r-xp 00000000 fd:00 7998470   
/usr/lib/asterisk/modules/res_monitor.so


001a3000-001a5000 r-xp 00000000 fd:00 7998348   
/usr/lib/asterisk/modules/app_exec.so
001a5000-001a6000 rwxp 00001000 fd:00 7998348   
/usr/lib/asterisk/modules/app_exec.so
001a6000-001a7000 r-xp 001a6000 00:00 0          [vdso]
001a7000-001c1000 r-xp 00000000 fd:00 7998321   
/usr/lib/asterisk/modules/chan_unistim.so
001c1000-001c2000 rwxp 0001a000 fd:00 7998321   
/usr/lib/asterisk/modules/chan_unistim.so
001c2000-001c4000 r-xp 00000000 fd:00 7998338   
/usr/lib/asterisk/modules/app_dahdiras.so
001c4000-001c5000 rwxp 00002000 fd:00 7/usr/sbin/safe_asterisk: line 146: 
6340 Aborted                 (core dumped) nice -n $PRIORITY
${ASTSBINDIR}/asterisk -f ${CLIARGS} ${ASTARGS} > /dev/${TTY} 2>&1 <
/dev/${TTY}
Asterisk ended with exit status 134
Asterisk exited on signal 6.
cat: /var/run/asterisk.pid: No such file or directory
Automatically restarting Asterisk.
[2009-12-23 15:14:36] WARNING[6444] app_fax.c: Error transmitting fax.
result=5: The HDLC carrier did not stop in a timely manner.
[2009-12-23 15:14:36] WARNING[6444] app_fax.c: Transmission failed
[2009-12-23 15:14:36] VERBOSE[6444] pbx.c:     -- Executing
[in_fax at ext-fax:4] Hangup("DAHDI/1-1", "") in new stack
[2009-12-23 15:14:36] VERBOSE[6444] pbx.c:   == Spawn extension (ext-fax,
in_fax, 4) exited non-zero on 'DAHDI/1-1'
[2009-12-23 15:14:36] VERBOSE[6444] pbx.c:     -- Executing [h at ext-fax:1]
System("DAHDI/1-1", "/var/lib/asterisk/bin/fax-process.pl --to
fax at goinet.com --from fax at asterisk.goinet.com --dest "s" --subject "Fax
from 3144361818 GOINET%20INC" --attachment fax_3144361818.pdf --type
application/pdf --file /var/spool/asterisk/fax/1261602857.6.tif") in new
stack
[2009-12-23 15:14:36] VERBOSE[6444] pbx.c:     -- Executing [h at ext-fax:2]
Hangup("DAHDI/1-1", "") in new stack
[2009-12-23 15:14:36] VERBOSE[6444] pbx.c:   == Spawn extension (ext-fax,
h, 2) exited non-zero on 'DAHDI/1-1'
[2009-12-23 15:14:36] VERBOSE[6444] chan_dahdi.c:     -- Hungup
'DAHDI/1-1'
mpg123: no process killed
[2009-12-23 15:14:40] VERBOSE[6462] logger.c:  Asterisk Event Logger
Started /var/log/asterisk/event_log
[2009-12-23 15:14:40] VERBOSE[6462] loader.c:  Asterisk Dynamic Loader
Starting:
[2009-12-23 15:14:40] VERBOSE[6462] config.c:   == Parsing
'/etc/asterisk/modules.conf': [2009-12-23 15:14:40] VERBOSE[6462] config.c:
  == Found
[2009-12-23 15:14:40] VERBOSE[6462] manager.c:   == Manager registered
action Ping
[2009-12-23 15:14:40] VERBOSE[6462] manager.c:   == Manager registered
action Events
[2009-12-23 15:14:40] VERBOSE[6462] manager.c:   == Manager registered
action Logoff
[2009-12-23 15:14:40] VERBOSE[6462] manager.c:   == Manager registered
action Login
[2009-12-23 15:14:40] VERBOSE[6462] manager.c:   == Manager registered
action Challenge
[2009-12-23 15:14:40] VERBOSE[6462] manager.c:   == Manager registered
action Hangup
[2009-12-23 15:14:40] VERBOSE[6462] manager.c:   == Manager registered
action Status


Am I doing something else wrong?
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-12-23 15:30 mejor          New Issue                                    
2009-12-23 15:30 mejor          Asterisk Version          => 1.6.1.12        
2009-12-23 15:30 mejor          Regression                => No              
2009-12-23 15:30 mejor          SVN Branch (only for SVN checkouts, not tarball
releases) => N/A             
======================================================================




More information about the asterisk-bugs mailing list