[asterisk-bugs] [Asterisk 0013566]: ast_moh_free_class in res_musiconhold.c:195

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Oct 1 06:27:06 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13566 
====================================================================== 
Reported By:                igorcarneiro
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13566
Category:                   Resources/res_musiconhold
Reproducibility:            sometimes
Severity:                   crash
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.6.0-rc6 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-09-26 13:41 CDT
Last Modified:              2008-10-01 06:27 CDT
====================================================================== 
Summary:                    ast_moh_free_class in   res_musiconhold.c:195
Description: 
Segment Fault on asterisk

the back trace is:
gdb /usr/sbin/asterisk /tmp/core.9128
------------------------------------------------------------------------------
Core was generated by `/usr/sbin/asterisk -f -U asterisk -G asterisk -vvvg
-c'.
Program terminated with signal 11, Segmentation fault.
http://bugs.digium.com/view.php?id=0  0x0016cd17 in ast_moh_free_class
(mohclass=0xb7620068) at
res_musiconhold.c:195
195             while ((member = AST_LIST_REMOVE_HEAD(&class->members,
list)))
------------------------------------------------------------------------------





the function with problema is ast_moh_free_class
 
section res_musiconhold.c:195
------------------------------------------------------------------------------
static void ast_moh_free_class(struct mohclass **mohclass)
{
        struct mohdata *member;
        struct mohclass *class = *mohclass;
        int i;

        while ((member = AST_LIST_REMOVE_HEAD(&class->members, list)))
                ast_free(member);

        if (class->thread) {
                pthread_cancel(class->thread);
                class->thread = 0;
        }

        if (class->filearray) {
                for (i = 0; i < class->total_files; i++)
                        ast_free(class->filearray[i]);
                ast_free(class->filearray);
        }

        ast_free(class);
        *mohclass = NULL;
}
------------------------------------------------------------------------------



====================================================================== 

---------------------------------------------------------------------- 
 (0093008) igorcarneiro (reporter) - 2008-10-01 06:27
 http://bugs.digium.com/view.php?id=13566#c93008 
---------------------------------------------------------------------- 
I can't upload core file, 
return to me this error:

---------------------------------------------------------------------
APPLICATION ERROR http://bugs.digium.com/view.php?id=401

Consulta ao banco-de-dados falhou. Erro recebido do banco-de-dados foi
http://bugs.digium.com/view.php?id=1153: "Got a packet bigger than
'max_allowed_packet' bytes" para a
consulta: "INSERT INTO mantis_bug_file_table
(bug_id, title, description, diskfile, filename, folder, filesize,
file_type, date_added, content)
VALUES
---------------------------------------------------------------------

ls core.9128.tbz2 -all
-rw-r--r-- 1 igor igor 1794390 2008-10-01 08:25 core.9128.tbz2
--------------------------------------------------------------------- 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-10-01 06:27 igorcarneiro   Note Added: 0093008                          
======================================================================




More information about the asterisk-bugs mailing list