[asterisk-bugs] [Asterisk 0014974]: [patch] erros messages astobj2.c INTERNAL_OBJ

Asterisk Bug Tracker noreply at bugs.digium.com
Tue May 12 17:49:20 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=14974 
====================================================================== 
Reported By:                pj
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   14974
Category:                   Core/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 190545 
Request Review:              
====================================================================== 
Date Submitted:             2009-04-27 03:22 CDT
Last Modified:              2009-05-12 17:49 CDT
====================================================================== 
Summary:                    [patch] erros messages astobj2.c INTERNAL_OBJ
Description: 
after updating from Asterisk SVN-trunk-r183057 to Asterisk
SVN-trunk-r190545
a lot of errors like below appears on console during asterisk startup and
when sip peer registers (subscribe to hins)
it seems, that this issue doesn't affect normal asterisk operation.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0015088 [patch] Asterisk crash when logging out...
====================================================================== 

---------------------------------------------------------------------- 
 (0104640) svnbot (reporter) - 2009-05-12 17:49
 https://issues.asterisk.org/view.php?id=14974#c104640 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 194060

U   trunk/main/manager.c

------------------------------------------------------------------------
r194060 | eliel | 2009-05-12 17:49:18 -0500 (Tue, 12 May 2009) | 22 lines

Fix a crash when logging out from the AMI and avoid astobj2 warning
messages.

When the user logout the session was being destroyed twice and the file
descriptor was being closed twice. The sessions reference counter wasn't
used in a proper way.
The 'mansession' structure was being treated as an astobj2 and we were
calling ao2_lock/ao2_unlock causing astobj2 report a warning message and
not locking the structure.
Also we were using an ugly naming convention 'destroy_session',
'session_destroy', 'free_session', ... all this "duplicated" code was
merged.

(closes issue https://issues.asterisk.org/view.php?id=14974)
Reported by: pj
Patches:
      manager.diff2 uploaded by eliel (license 64)
      Tested by: dhubbard, eliel, mnicholson

(closes issue https://issues.asterisk.org/view.php?id=15088)
Reported by: eliel

Review: http://reviewboard.asterisk.org/r/248/

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=194060 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-05-12 17:49 svnbot         Checkin                                      
2009-05-12 17:49 svnbot         Note Added: 0104640                          
======================================================================




More information about the asterisk-bugs mailing list