[asterisk-bugs] [JIRA] (ASTERISK-18923) res_fax_spandsp usage counter is wrong

Niklas Larsson (JIRA) noreply at issues.asterisk.org
Mon Feb 4 09:55:58 CST 2013


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

Niklas Larsson commented on ASTERISK-18923:
-------------------------------------------

I added REF_DEBUG to res_fax.c and res_fax_spandsp.c, sent a fax through (GATEWAY mode) and run refcounter:
{code}
==============
Problem: net Refcount not zero for object 28102f78
Object 28102f78 history:
   0x7f5e28102f78 =1   res_fax.c:981:fax_session_new ()
   0x7f5e28102f78 +1   res_fax.c:1052:fax_session_new () [@1]
   0x7f5e28102f78 +1   res_fax_spandsp.c:750:spandsp_fax_gw_gen_alloc () [@2]
   0x7f5e28102f78 +1   res_fax.c:967:fax_session_new () [@3]
   0x7f5e28102f78 +1   res_fax.c:1052:fax_session_new () [@4]
   0x7f5e28102f78 -1   res_fax.c:2582:fax_gateway_start () [@5]
   0x7f5e28102f78 -1   res_fax_spandsp.c:755:spandsp_fax_gw_gen_release () [@4]
   0x7f5e28102f78 +1   res_fax_spandsp.c:750:spandsp_fax_gw_gen_alloc () [@3]
   0x7f5e28102f78 -1   res_fax_spandsp.c:755:spandsp_fax_gw_gen_release () [@4]
   0x7f5e28102f78 -1   res_fax.c:2506:destroy_gateway () [@3]
   0x7f5e28102f78 -1   res_fax.c:2509:destroy_gateway () [@2]
==============
{code}
                
> res_fax_spandsp usage counter is wrong
> --------------------------------------
>
>                 Key: ASTERISK-18923
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-18923
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_fax_spandsp
>    Affects Versions: 1.8.7.1
>            Reporter: Grigoriy Puzankin
>            Severity: Minor
>         Attachments: Screen Shot 2012-12-17 at 2.17.33 PM copy.png
>
>
> When I send fax using SendFAX (from res_fax_spandsp) it increases module usage counter by 2. When fax completes it decreases module usage by 1. So after each iteration counter grows by 1.
> {noformat}
> Module                         Description                              Use Count
> res_fax.so                     Generic FAX Applications                 1         
> res_fax_spandsp.so             Spandsp G.711 and T.38 FAX Technologies  11        
> 2 modules loaded
> Current FAX Sessions:
> Channel              Tech       FAXID      Type  Operation  State           File(s)                       
> 0 FAX sessions
> {noformat}

--
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