[asterisk-bugs] [Asterisk 0014661]: MOH Realtime crash

Asterisk Bug Tracker noreply at bugs.digium.com
Sun Mar 29 01:07:02 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14661 
====================================================================== 
Reported By:                sum
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   14661
Category:                   Resources/res_musiconhold
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           1.6.0.6 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-03-13 09:43 CDT
Last Modified:              2009-03-29 01:07 CDT
====================================================================== 
Summary:                    MOH Realtime crash
Description: 
Situation:

Queue realtime, musiconhold realtime class = prueba
I have default class on musiconhold.conf
When a call is made to the Queue checks that is not on memory so goes to
the db, I had 2 situations:

1)	If digit was #. Asterisk crash (check dump.txt)
2)	With no digit, when I check the classes (check memoryclasses.txt)

seems bad memory managment.

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

---------------------------------------------------------------------- 
 (0102350) sum (reporter) - 2009-03-29 01:07
 http://bugs.digium.com/view.php?id=14661#c102350 
---------------------------------------------------------------------- 
the problems seems to be with cachertclasses=yes, if I comment it out
evertything works ok, although I have in the cli this:

[Mar 28 08:09:08] ERROR[25247]: astobj2.c:110 INTERNAL_OBJ: user_data is
NULL
[Mar 28 08:09:08] DEBUG[25247]: res_musiconhold.c:747 get_mohbyname: Music
on Hold class 'prueba' not found in memory
    -- Started music on hold, class 'prueba', on SIP/1001-09a9d0f0
[Mar 28 08:09:08] ERROR[25247]: astobj2.c:110 INTERNAL_OBJ: user_data is
NULL

But there is no crash, could this be a problem of astobj2 to cache the moh
class to memory? if I check moh show clases after a first try with cache
enable I can see that the cached moh class is filled with garbage data, and
not the real data of the class, also after is cached the second time never
find it in memory (due to what I can see at moh show clasess) so it goes
feeling the moh clasess list until it crashes. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-03-29 01:07 sum            Note Added: 0102350                          
======================================================================




More information about the asterisk-bugs mailing list