Summary:ASTERISK-21311: CLI command 'module load' attempts to free unallocated memory on tab completion
Reporter:Jonathan Rose (jrose)Labels:
Date Opened:2013-03-22 11:50:47Date Closed:2013-10-16 12:23:38
Versions:SVN Frequency of
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.
Comments:By: Jonathan Rose (jrose) 2013-10-16 12:16:00.261-0500

This is no longer occurring on my box in SVN 12 r400905. It can probably just be closed.

By: Richard Mudgett (rmudgett) 2013-10-16 12:23:38.556-0500

This is apparently the result of a corrupted build workspace where some files did not get recompiled when MALLOC_DEBUG was enabled.