[asterisk-bugs] [JIRA] (ASTERISK-21311) CLI command 'module load' attempts to free unallocated memory on tab completion

Jonathan Rose (JIRA) noreply at issues.asterisk.org
Fri Mar 22 11:58:01 CDT 2013


     [ https://issues.asterisk.org/jira/browse/ASTERISK-21311?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Rose updated ASTERISK-21311:
-------------------------------------

    Description: 
I discovered this while working on something with don't optimize and malloc debug enabled. I can confirm that these warnings don't appear normally without malloc debug. Reproduction is simple:

1. run asterisk. type 'module load'
2. attempt to tab complete
3. watch the errors spew out at a rate of one per tab completed item

error messages appear in the following form:
WARNING: Freeing unregistered memory <address> by cli.c complete_fn() line 253

If you add some characters to reduce the number of matches against tab completion, the number of error messages decreases.

The problem does not occur in 1.8. It does occur in trunk r383579 (most recent version at the time of report) and in 11 r383601.

  was:
I discovered this while working on something with don't optimize and malloc debug enabled. I can confirm that these warnings don't appear normally without malloc debug. Reproduction is simple:

1. run asterisk. type 'module load'
2. attempt to tab complete
3. watch the errors spew out at a rate of one per tab completed item

If you add some characters to reduce the number of matches against tab completion, the number of error messages decreases.

The problem does not occur in 1.8. It does occur in trunk r383579 (most recent version at the time of report) and in 11 r383601.

    
> CLI command 'module load' attempts to free unallocated memory on tab completion
> -------------------------------------------------------------------------------
>
>                 Key: ASTERISK-21311
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-21311
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/General
>    Affects Versions: SVN
>            Reporter: Jonathan Rose
>
> I discovered this while working on something with don't optimize and malloc debug enabled. I can confirm that these warnings don't appear normally without malloc debug. Reproduction is simple:
> 1. run asterisk. type 'module load'
> 2. attempt to tab complete
> 3. watch the errors spew out at a rate of one per tab completed item
> error messages appear in the following form:
> WARNING: Freeing unregistered memory <address> by cli.c complete_fn() line 253
> If you add some characters to reduce the number of matches against tab completion, the number of error messages decreases.
> The problem does not occur in 1.8. It does occur in trunk r383579 (most recent version at the time of report) and in 11 r383601.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list