[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
Fri Nov 14 17:53:29 CST 2014


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

Rusty Newton commented on ASTERISK-24322:
-----------------------------------------

Just kidding! How about today?

Tested again on SVN-branch-11-r427874, still occurs.

Tested on Trunk r427932, same gcc version and OS versions, the issue *does not* occur.

My core pattern is the same on both the Ubuntu machines I use:

{noformat}
|/usr/share/apport/apport %p %s %c
{noformat}

With that pattern I get the core file dumped in the current working directory with any typical Asterisk crash.

For testing, I modified the pattern to simply {{core}} and there is still no core dumped.


> 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
>            Assignee: Rusty Newton
>            Severity: Critical
>         Attachments: asterisk.conf.txt, 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