[asterisk-bugs] [Asterisk 0016576]: [patch] PrivacyManager generates a core dump when testing

Asterisk Bug Tracker noreply at bugs.digium.com
Wed May 12 11:29:14 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16576 
====================================================================== 
Reported By:                uxbod
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   16576
Category:                   Applications/app_privacy
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     closed
Target Version:             1.6.2.9
Asterisk Version:           SVN 
JIRA:                       SWP-1166 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2010-01-11 10:21 CST
Last Modified:              2010-05-12 11:29 CDT
====================================================================== 
Summary:                    [patch] PrivacyManager generates a core dump when
testing
Description: 
Create a test dialplan extension:

exten => 8100,1,Set(CALLERID(num)="")
exten => 8100,n,Answer()
exten => 8100,n,PrivacyManager()
exten => 8100,n,GotoIf(${[${PRIVACYMGRSTATUS} = FAILED]}?:nocid)
exten => 8100,n,NoOp(Number is ${CALLERID(num)})
exten => 8100,n,Hangup()
exten => 8100,n(nocid),Playback(vm-goodbye)
exten => 8100,n,NoOp(Number is ${CALLERID(num)})
exten => 8100,n,Hangup()

Dial the extension and enter a number.  Once entered Asterisk core dumps;
and the following is within the console:

  == Using SIP RTP CoS mark 5
   -- Executing [8100 at test:1] Answer("SIP/1001-00000000", "") in new
stack
   -- Executing [8100 at test:2] Set("SIP/1001-00000000", "CALLERID(all)=""")
in new stack
   -- Executing [8100 at test:3] PrivacyManager("SIP/1001-00000000", "") in
new stack
   -- <SIP/1001-00000000> Playing 'privacy-unident.g729' (language 'en')
   -- <SIP/1001-00000000> Playing 'privacy-prompt.g729' (language 'en')
voip*CLI>
Disconnected from Asterisk server
/usr/sbin/safe_asterisk: line 146: 21648 Segmentation fault

A backtrace shows:

Core was generated by `asterisk -cvvvdg'.
Program terminated with signal 11, Segmentation fault.
[New process 22183]
[New process 22179]
[New process 22178]
[New process 22177]
[New process 22176]
[New process 22155]
[New process 22147]
[New process 22140]
[New process 22139]
[New process 22138]
[New process 22137]
[New process 22136]
[New process 22135]
[New process 22130]
[New process 22129]
[New process 22128]
[New process 22127]
[New process 22126]
[New process 22125]
[New process 22124]
[New process 22123]
[New process 22122]
[New process 22121]
[New process 22120]
[New process 22119]
[New process 22118]
[New process 22117]
[New process 22116]
[New process 22115]
[New process 22114]
[New process 22113]
[New process 22111]
[New process 22110]
[New process 22109]
[New process 22108]
[New process 22107]
[New process 22106]
[New process 22105]
[New process 22104]
[New process 22103]
[New process 22102]
[New process 22100]
https://issues.asterisk.org/view.php?id=0  0x006b6b58 in privacy_exec
(chan=0xb76a27a8, data=0x817c80e) at
/usr/src/build/asterisk-1.6.2.0/include/asterisk/strings.h:65
65		return (!s || (*s == '\0'));


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

---------------------------------------------------------------------- 
 (0121797) svnbot (reporter) - 2010-05-12 11:29
 https://issues.asterisk.org/view.php?id=16576#c121797 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 262659

_U  branches/1.6.2/
U   branches/1.6.2/apps/app_privacy.c

------------------------------------------------------------------------
r262659 | tilghman | 2010-05-12 11:29:14 -0500 (Wed, 12 May 2010) | 15
lines

Merged revisions 262656 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r262656 | tilghman | 2010-05-12 11:23:26 -0500 (Wed, 12 May 2010) | 8
lines
  
  Ensure the arguments are initialized.  Also miscellaneous CG cleanup.
  
  (closes issue https://issues.asterisk.org/view.php?id=16576)
   Reported by: uxbod
   Patches: 
         20100505__issue16576.diff.txt uploaded by tilghman (license 14)
   Tested by: uxbod
........

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-05-12 11:29 svnbot         Checkin                                      
2010-05-12 11:29 svnbot         Note Added: 0121797                          
======================================================================




More information about the asterisk-bugs mailing list