[asterisk-bugs] [JIRA] (ASTERISK-24322) Asterisk crashes on execution when compiled with MALLOC_DEBUG compiler flag - in region_data_wipe at astmm.c

Rusty Newton (JIRA) noreply at issues.asterisk.org
Thu Sep 11 18:44:29 CDT 2014


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

Rusty Newton updated ASTERISK-24322:
------------------------------------

    Description: 
h1. Reproduction:

 * Compile Asterisk SVN-branch-11-r422903 with MALLOC_DEBUG compiler flag.
 * Attempt to execute Asterisk with commands such as {{asterisk}} or {{asterisk -gcvvvv}}, both result in the same output of {{Segmentation fault (core dumped)}}
 * Asterisk crashes! Claims a core is dumped, but no core is dumped.

{noformat}
root at rnewton-office-lab:/tmp# asterisk -gcvvvvv
Privilege escalation protection disabled!
See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details.
Segmentation fault (core dumped)
{noformat}

I'm running as root, permissions are of course fine.

Recompiling with DONT_OPTIMIZE results in Asterisk running fine.
Recompiling without DONT_OPTIMIZE results in the crash again (MALLOC_DEBUG is still selected).
Recompiling without MALLOC_DEBUG results in Asterisk running fine.
Wiped config files, used samples made with "make samples", same crash.
Recompiled after a "make uninstall", same crash.

Attaching backtrace obtained from running Asterisk with gdb attached.

  was:
h1. Reproduction:

 * Compile Asterisk SVN-branch-11-r422903 with MALLOC_DEBUG compiler flag.
 * Attempt to execute Asterisk with commands such as {{asterisk}} or {{asterisk -gcvvvv}}, both result in the same output of {{Segmentation fault (core dumped)}}
 * Asterisk crashes! Claims a core is dumped, but no core is dumped.

{noformat}
root at rnewton-office-lab:/tmp# asterisk -gcvvvvv
Privilege escalation protection disabled!
See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details.
Segmentation fault (core dumped)
{noformat}

I'm running as root, permissions are of course fine.

Recompiling with DONT_OPTIMIZE results in Asterisk running fine.
Recompiling without DONT_OPTIMIZE results in the crash again (MALLOC_DEBUG is still selected).
Recompiling without MALLOC_DEBUG results in Asterisk running fine.

Attaching backtrace obtained from running Asterisk with gdb attached.


> Asterisk crashes on execution when compiled with MALLOC_DEBUG compiler flag - in region_data_wipe at astmm.c
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-24322
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24322
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/General
>    Affects Versions: SVN
>         Environment: Asterisk SVN-branch-11-r422903
> Description:	Ubuntu 12.04.4 LTS
> 3.5.0-54-generic #81~precise1-Ubuntu SMP Tue Jul 15 04:05:58 UTC 2014 i686 i686 i386 GNU/Linux
> gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
>            Reporter: Rusty Newton
>            Severity: Critical
>         Attachments: backtrace.txt
>
>
> h1. Reproduction:
>  * Compile Asterisk SVN-branch-11-r422903 with MALLOC_DEBUG compiler flag.
>  * Attempt to execute Asterisk with commands such as {{asterisk}} or {{asterisk -gcvvvv}}, both result in the same output of {{Segmentation fault (core dumped)}}
>  * Asterisk crashes! Claims a core is dumped, but no core is dumped.
> {noformat}
> root at rnewton-office-lab:/tmp# asterisk -gcvvvvv
> Privilege escalation protection disabled!
> See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details.
> Segmentation fault (core dumped)
> {noformat}
> I'm running as root, permissions are of course fine.
> Recompiling with DONT_OPTIMIZE results in Asterisk running fine.
> Recompiling without DONT_OPTIMIZE results in the crash again (MALLOC_DEBUG is still selected).
> Recompiling without MALLOC_DEBUG results in Asterisk running fine.
> Wiped config files, used samples made with "make samples", same crash.
> Recompiled after a "make uninstall", same crash.
> Attaching backtrace obtained from running Asterisk with gdb attached.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list