[asterisk-bugs] [JIRA] (ASTERISK-20949) Core dump on ReceiveFax

Steven Haigh (JIRA) noreply at issues.asterisk.org
Thu Jan 17 22:48:20 CST 2013


    [ https://issues.asterisk.org/jira/browse/ASTERISK-20949?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=201787#comment-201787 ] 

Steven Haigh edited comment on ASTERISK-20949 at 1/17/13 10:47 PM:
-------------------------------------------------------------------

Interestingly, I recompiled with DONT_OPTIMIZE and BETTER_BACKTRACES and I don't get a core dump now.

I do notice that ReceiveFax still exits non-zero and does not create a tiff file as specified.

Trying to receive a fax with verbose 50, debug 50, fax set debug on:
  == Using SIP RTP CoS mark 5
    -- Executing [104 at phones:1] Goto("SIP/103-00000002", "fax,s,1") in new stack
    -- Goto (fax,s,1)
    -- Executing [s at fax:1] NoOp("SIP/103-00000002", "Incoming Fax") in new stack
    -- Executing [s at fax:2] Set("SIP/103-00000002", "FAXFILE=/faxes/103_2013-01-18-1544_2020657138.tiff") in new stack
    -- Executing [s at fax:3] NoOp("SIP/103-00000002", "**** Setting FAX Options ****") in new stack
    -- Executing [s at fax:4] Set("SIP/103-00000002", "LOCALHEADERINFO=STEVEN HAIGH") in new stack
    -- Executing [s at fax:5] Set("SIP/103-00000002", "LOCALSTATIONID=+613 8338 0299") in new stack
    -- Executing [s at fax:6] NoOp("SIP/103-00000002", "**** Receiving Fax : /faxes/103_2013-01-18-1544_2020657138.tiff ****") in new stack
    -- Executing [s at fax:7] Wait("SIP/103-00000002", "1") in new stack
    -- Executing [s at fax:8] Answer("SIP/103-00000002", "2000") in new stack
    -- Executing [s at fax:9] ReceiveFAX("SIP/103-00000002", "/faxes/103_2013-01-18-1544_2020657138.tiff,df") in new stack
    -- Channel 'SIP/103-00000002' receiving FAX '/faxes/103_2013-01-18-1544_2020657138.tiff'
  == Spawn extension (fax, s, 9) exited non-zero on 'SIP/103-00000002'
    -- Executing [h at fax:1] NoOp("SIP/103-00000002", "Fax transmission completed.") in new stack
    -- Executing [h at fax:2] AGI("SIP/103-00000002", "email-fax.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/email-fax.agi
    -- <SIP/103-00000002>AGI Script email-fax.agi completed, returning 0
    -- Executing [h at fax:3] Hangup("SIP/103-00000002", "") in new stack
  == Spawn extension (fax, h, 3) exited non-zero on 'SIP/103-00000002'

No file was created in /faxes/ (which is rwxrwxrwx) and no real information as to why anything failed :(

asterisk*CLI> fax show stats

FAX Statistics:
---------------

Current Sessions     : 0
Reserved Sessions    : 0
Transmit Attempts    : 0
Receive Attempts     : 3
Completed FAXes      : 0
Failed FAXes         : 0

Spandsp G.711
Success              : 0
Switched to T.38     : 0
Call Dropped         : 0
No FAX               : 0
Negotiation Failed   : 0
Train Failure        : 0
Retries Exceeded     : 0
Protocol Error       : 0
TX Protocol Error    : 0
RX Protocol Error    : 0
File Error           : 0
Memory Error         : 0
Unknown Error        : 0

Spandsp T.38
Success              : 0
Call Dropped         : 0
No FAX               : 0
Negotiation Failed   : 0
Train Failure        : 0
Retries Exceeded     : 0
Protocol Error       : 0
TX Protocol Error    : 0
RX Protocol Error    : 0
File Error           : 0
Memory Error         : 0
Unknown Error        : 0

Just noticed that FAXOPT(error) contains "T38_NEG_ERROR" - which is not very helpful :(
                
      was (Author: crcinau):
    Interestingly, I recompiled with DONT_OPTIMIZE and BETTER_BACKTRACES and I don't get a core dump now.

I do notice that ReceiveFax still exits non-zero and does not create a tiff file as specified.

Trying to receive a fax with verbose 50, debug 50, fax set debug on:
  == Using SIP RTP CoS mark 5
    -- Executing [104 at phones:1] Goto("SIP/103-00000002", "fax,s,1") in new stack
    -- Goto (fax,s,1)
    -- Executing [s at fax:1] NoOp("SIP/103-00000002", "Incoming Fax") in new stack
    -- Executing [s at fax:2] Set("SIP/103-00000002", "FAXFILE=/faxes/103_2013-01-18-1544_2020657138.tiff") in new stack
    -- Executing [s at fax:3] NoOp("SIP/103-00000002", "**** Setting FAX Options ****") in new stack
    -- Executing [s at fax:4] Set("SIP/103-00000002", "LOCALHEADERINFO=STEVEN HAIGH") in new stack
    -- Executing [s at fax:5] Set("SIP/103-00000002", "LOCALSTATIONID=+613 8338 0299") in new stack
    -- Executing [s at fax:6] NoOp("SIP/103-00000002", "**** Receiving Fax : /faxes/103_2013-01-18-1544_2020657138.tiff ****") in new stack
    -- Executing [s at fax:7] Wait("SIP/103-00000002", "1") in new stack
    -- Executing [s at fax:8] Answer("SIP/103-00000002", "2000") in new stack
    -- Executing [s at fax:9] ReceiveFAX("SIP/103-00000002", "/faxes/103_2013-01-18-1544_2020657138.tiff,df") in new stack
    -- Channel 'SIP/103-00000002' receiving FAX '/faxes/103_2013-01-18-1544_2020657138.tiff'
  == Spawn extension (fax, s, 9) exited non-zero on 'SIP/103-00000002'
    -- Executing [h at fax:1] NoOp("SIP/103-00000002", "Fax transmission completed.") in new stack
    -- Executing [h at fax:2] AGI("SIP/103-00000002", "email-fax.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/email-fax.agi
    -- <SIP/103-00000002>AGI Script email-fax.agi completed, returning 0
    -- Executing [h at fax:3] Hangup("SIP/103-00000002", "") in new stack
  == Spawn extension (fax, h, 3) exited non-zero on 'SIP/103-00000002'

No file was created in /faxes/ (which is rwxrwxrwx) and no real information as to why anything failed :(

asterisk*CLI> fax show stats

FAX Statistics:
---------------

Current Sessions     : 0
Reserved Sessions    : 0
Transmit Attempts    : 0
Receive Attempts     : 3
Completed FAXes      : 0
Failed FAXes         : 0

Spandsp G.711
Success              : 0
Switched to T.38     : 0
Call Dropped         : 0
No FAX               : 0
Negotiation Failed   : 0
Train Failure        : 0
Retries Exceeded     : 0
Protocol Error       : 0
TX Protocol Error    : 0
RX Protocol Error    : 0
File Error           : 0
Memory Error         : 0
Unknown Error        : 0

Spandsp T.38
Success              : 0
Call Dropped         : 0
No FAX               : 0
Negotiation Failed   : 0
Train Failure        : 0
Retries Exceeded     : 0
Protocol Error       : 0
TX Protocol Error    : 0
RX Protocol Error    : 0
File Error           : 0
Memory Error         : 0
Unknown Error        : 0

                  
> Core dump on ReceiveFax
> -----------------------
>
>                 Key: ASTERISK-20949
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20949
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_fax_spandsp
>    Affects Versions: 11.1.2, 11.2.0
>         Environment: EL6.3 x86_64
>            Reporter: Steven Haigh
>         Attachments: core.gz
>
>
> When receiving a fax via the res_fax_spandsp resource, Asterisk crashes with a core dump.
> Dialplan:
> [fax]
> exten => s,1,NoOp(Incoming Fax)
> exten => s,n,Set(FAXFILE=/faxes/${CALLERID(num)}_${STRFTIME(,,%F-%H%M)}_${RAND(2)}.tiff)
> exten => s,n,NoOp(**** Setting FAX Options ****)
> exten => s,n,Set(LOCALHEADERINFO=STEVEN HAIGH)
> exten => s,n,Set(LOCALSTATIONID=+613 8338 0299)
> exten => s,n,NoOp(**** Receiving Fax : ${FAXFILE} ****)
> exten => s,n,Wait(1)
> exten => s,n,Answer(2000)
> exten => s,n,ReceiveFAX(${FAXFILE},df)
> exten => h,1,NoOp(Fax transmission completed.)
> exten => h,n,AGI(email-fax.agi)
> exten => h,n,HangUp()
> # rpm -qa | grep spandsp
> spandsp-devel-0.0.6-0.8.pre21.el6.x86_64
> spandsp-0.0.6-0.8.pre21.el6.x86_64
> Will attach core dump.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list