[asterisk-bugs] [Asterisk 0014111]: [patch] app_chanspy crashed so-as "chanspy_ds.lock" has random values

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Dec 19 09:02:58 CST 2008


The following issue has been RESOLVED. 
====================================================================== 
http://bugs.digium.com/view.php?id=14111 
====================================================================== 
Reported By:                ys
Assigned To:                russell
====================================================================== 
Project:                    Asterisk
Issue ID:                   14111
Category:                   Applications/app_chanspy
Reproducibility:            sometimes
Severity:                   minor
Priority:                   normal
Status:                     resolved
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 165881 
Disclaimer on File?:        N/A 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2008-12-19 05:32 CST
Last Modified:              2008-12-19 09:02 CST
====================================================================== 
Summary:                    [patch] app_chanspy crashed so-as "chanspy_ds.lock"
has random values
Description: 
Hi.

 Inside function common_exec() declared struct chanspy_ds chanspy_ds, that
contain "ast_mutex_t lock".

 This lock is not initialized and contain random values from stack heap.
This may cause random crash in call to:
ast_mutex_init(&chanspy_ds.lock);
or 
ast_mutex_lock(&chanspy_ds.lock);

In my BSD box with DEBUG_THREADS options enabled, this application crashed
permanently on exit in ast_mutex_lock(&chanspy_ds.lock); point. 






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

---------------------------------------------------------------------- 
 (0096709) svnbot (reporter) - 2008-12-19 09:02
 http://bugs.digium.com/view.php?id=14111#c96709 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 165889

U   branches/1.4/apps/app_chanspy.c

------------------------------------------------------------------------
r165889 | russell | 2008-12-19 09:02:57 -0600 (Fri, 19 Dec 2008) | 9 lines

Ensure that the chanspy datastore is fully initialized.

This patch resolved some random crash issues observed by a user on a BSD
system

(closes issue http://bugs.digium.com/view.php?id=14111)
Reported by: ys
Patches:
      app_chanspy.c.diff uploaded by ys (license 281)

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-12-19 09:02 svnbot         Note Added: 0096709                          
2008-12-19 09:02 svnbot         Status                   assigned => resolved
2008-12-19 09:02 svnbot         Resolution               open => fixed       
======================================================================




More information about the asterisk-bugs mailing list