Andrew Kohlsmith
2004-Jun-04 09:16 UTC
[Asterisk-Users] rxfax crashing asterisk and YES I'm using an approved libtiff :-)
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 20DIS: 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 01HDLC 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: 44Fast 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
Andrew Kohlsmith
2004-Jun-04 09:28 UTC
[Asterisk-Users] rxfax crashing asterisk and YES I'm using an approved libtiff :-)
On Friday 04 June 2004 12:16, Andrew Kohlsmith wrote:> 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.And after enabling lzw in libtiff it doesn't crash anymore, although it doesn't work yet, either. :-) Regards, Andrew Asterisk Ready. -- Starting simple switch on 'Zap/19-1' Jun 4 12:25:24 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 20DIS: 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 01HDLC 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.98 (50) Training error 71.068958 Training failed (constellation mismatch 53.257488) Fast carrier training failed Fast carrier down Fast carrier up Coarse carrier frequency 1700.01 (52) Training error 37.021058 Training succeeded (constellation mismatch 39.232594) Fast carrier trained Fast carrier down Changed from phase 5 to 4 Start rx document - compression 2 Start rx page>>> CFR: 84HDLC underflow in state 5 Post trainability Changed from phase 4 to 5 Fast carrier up Coarse carrier frequency 1714.99 (46) Fast carrier down Fast carrier up Coarse carrier frequency 1699.98 (50) Training error 50.191974 Training succeeded (constellation mismatch 34.503801) Fast carrier trained Fast carrier down Fax3Decode2D: Warning, (FakeInput): Premature EOL at scanline 0 (got 0, expected 1728). Fax3Decode2D: (FakeInput): Bad code word at scanline 2 (x 1727). Fax3Decode2D: Warning, (FakeInput): Premature EOL at scanline 2 (got 1727, expected 1728). Fax3Decode2D: (FakeInput): Bad code word at scanline 3 (x 158). Fax3Decode2D: Warning, (FakeInput): Premature EOL at scanline 3 (got 158, expected 1728). Fax3Decode2D: (FakeInput): Bad code word at scanline 4 (x 82). Fax3Decode2D: Warning, (FakeInput): Premature EOL at scanline 4 (got 82, expected 1728). Fax3Decode2D: (FakeInput): Bad code word at scanline 5 (x 48). Fax3Decode2D: Warning, (FakeInput): Premature EOL at scanline 5 (got 48, expected 1728). Fax3Decode2D: (FakeInput): Bad code word at scanline 7 (x 0). Fax3Decode2D: Warning, (FakeInput): Premature EOL at scanline 7 (got 0, expected 1728). Fax3Decode2D: Warning, (FakeInput): Line length mismatch at scanline 8 (got 2196, expected 1728). Fax3Decode2D: Warning, (FakeInput): Line length mismatch at scanline 9 (got 3595, expected 1728). Fax3Decode2D: Warning, (FakeInput): Line length mismatch at scanline 10 (got 2617, expected 1728). Fax3Decode2D: Warning, (FakeInput): Premature EOL at scanline 11 (got 0, expected 1728). Page 1 of /tmp/faxfile.tiff: 12 rows received 0 total bad rows 0 max consecutive bad rows Changed from phase 5 to 3 Slow carrier up <<< DCN: fb DCN with final frame tag In state 5 Disconnecting Changed from phase 3 to 7 Changed from phase 7 to 8 -- Executing Hangup("Zap/19-1", "") in new stack == Spawn extension (fxo, fax, 2) exited non-zero on 'Zap/19-1' -- Executing Hangup("Zap/19-1", "") in new stack == Spawn extension (fxo, h, 1) exited non-zero on 'Zap/19-1' -- Hungup 'Zap/19-1' *CLI>