[Asterisk-Users] rxfax crashing asterisk and YES I'm using an approved libtiff :-)

Andrew Kohlsmith akohlsmith-asterisk at benshaw.com
Fri Jun 4 09:16:47 MST 2004


I'm running asterisk CVS HEAD from 20040601 with spandsp 0.0.1k and libtiff 
3.6.0 (no other copies are installed).  

I've put the audio files up at 
http://www.mixdown.ca/~andrew/dump/akohlsmith-faxsegfault.tgz -- the machine 
I am faxing from is a Canon IR3300 printer/copier/fax, but I get similar 
crashes from $29.95 fax machines too.  :-)

I'm trying to get a decent backtrace but my corefiles are always stripped.

Fax is coming in on a POTS line to an Adit600 Channel bank to a T100P.  Echo 
cancellation is turned off (set to 0, with no echo training).  This is on a 
Xeon 2.4 (tried both with HT on and off in the BIOS), Slackware 9.1 system.

Now one thing I see at the bottom of the output of rxfax below is that 
compression is there -- I did *not* install the lzw stuff on the libtiff 
webpage.  I'm going to try that next.

What the make for app_rxfax looks like (just for reference):

make[1]: Entering directory `/src/asterisk/asterisk/apps'
gcc -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes 
-Wmissing-declarations -g  -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE  
-O6 -march=i686  -DZAPTEL_OPTIMIZATIONS 
-DASTERISK_VERSION=\"CVS-04/27/04-23:48:08\" -DINSTALL_PREFIX=\"\" 
-DASTETCDIR=\"/etc/asterisk\" -DASTLIBDIR=\"/usr/lib/asterisk\" 
-DASTVARLIBDIR=\"/var/lib/asterisk\" -DASTVARRUNDIR=\"/var/run\" 
-DASTSPOOLDIR=\"/var/spool/asterisk\" -DASTLOGDIR=\"/var/log/asterisk\" 
-DASTCONFPATH=\"/etc/asterisk/asterisk.conf\" 
-DASTMODDIR=\"/usr/lib/asterisk/modules\" 
-DASTAGIDIR=\"/var/lib/asterisk/agi-bin\"     -DBUSYDETECT_MARTIN     
-DNEW_PRI_HANGUP  -fPIC -g   -c -o app_rxfax.o app_rxfax.c
app_rxfax.c:50: warning: no previous prototype for `t30_flush'
app_rxfax.c:57: warning: no previous prototype for `phase_e_handler'

And what my console output looks like:

Asterisk Ready.
    -- Starting simple switch on 'Zap/19-1'
Jun  4 12:09:00 NOTICE[213006]: chan_zap.c:4773 ss_thread: Got event 2 
(Ring/Answered)...
    -- Executing Answer("Zap/19-1", "") in new stack
    -- Executing Wait("Zap/19-1", "5") in new stack
    -- Redirecting Zap/19-1 to fax extension
  == Spawn extension (fxo, fax, 0) exited non-zero on 'Zap/19-1'
    -- Executing RxFAX("Zap/19-1", "/tmp/faxfile.tiff") in new stack
Changed from phase 0 to 1
Slow carrier up
Slow carrier down
Slow carrier up
Slow carrier down
Slow carrier up
Slow carrier down
Start receiving document
Changed from phase 1 to 4
Sending ident
>>> CSI: 40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
DIS:
Preferred octets: 256
Can receive fax
Supported data signalling rates: V.27ter and V.29
R8x7.7lines/mm and/or 200x200pels/25.4mm OK
2D coding OK
Scan line length: 215mm
Recording length: A4 (297mm)
Receiver's minimum scan line time: 0ms at 3.85 l/mm: T7.7 = T3.85
R8x15.4lines/mm OK
Minimum scan line time for higher resolutions: T15.4 = T7.7
>>> DIS: 80 00 ce f0 80 80 01
HDLC underflow in state 9
Changed from phase 4 to 3
Slow carrier up
Slow carrier down
Slow carrier up
<<< DCS: 83 00 86 90 00
DCS with final frame tag
In state 9
DCS:
Can receive fax
Selected data signalling rate: V.29, 9600bps
2D coding OK
Scan line length: 215mm
Recording length: A4 (297mm)
Minimum scan line time: 5ms
Get at 9600
Changed from phase 3 to 5
Fast carrier up
Coarse carrier frequency 1699.95 (48)
Training error 35.626009
Training succeeded (constellation mismatch 34.276778)
Fast carrier trained
Fast carrier down
Trainability test failed - longest run of zeros was 31
>>> FTT: 44
Fast carrier up
Training failed (sequence failed)
Fast carrier training failed
Fast carrier down
Fast carrier up
Coarse carrier frequency 1699.98 (46)
Training error 27.901500
Training succeeded (constellation mismatch 30.159227)
Fast carrier trained
Fast carrier down
Changed from phase 5 to 4
Start rx document - compression 2
Start rx page
Segmentation fault




More information about the asterisk-users mailing list