[asterisk-bugs] [Asterisk 0011782]: chanspy - crashes Asterisk

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Jan 22 17:30:59 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11782 
====================================================================== 
Reported By:                kowalma
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11782
Category:                   Applications/app_chanspy
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.17 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 97889 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             01-17-2008 04:12 CST
Last Modified:              01-22-2008 17:30 CST
====================================================================== 
Summary:                    chanspy - crashes Asterisk
Description: 
duplicated bug from: 0011770 and 11654

Issue 11654 have been closed with comment:

"Fixed in 1.4 as of revision 98975."

but svn reports no revison 98975. 

  svn co -r 98975 http://svn.digium.com/svn/asterisk/branches/1.4
asterisk-fixed
  svn: REPORT request failed on
'/svn/asterisk/!svn/bc/98956/branches/1.4'
  svn: No such revision 98975

I've updated to most recent version from:

svn co http://svn.digium.com/svn/asterisk/branches/1.4 asterisk-svn/ 

Asterisk SVN-branch-1.4-r97889

and it still crashes. I can't reopen issue 11654 so I create new one.



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

---------------------------------------------------------------------- 
 andrew - 01-22-08 17:30  
---------------------------------------------------------------------- 
Still crashes... SVN-branch-1.4-r99652M

Compled with DONT_OPTIMIZE.

Core was generated by `/usr/sbin/asterisk -vvvg -c'.
Program terminated with signal 11, Segmentation fault.
http://bugs.digium.com/view.php?id=0  0x080ee6f3 in ast_slinfactory_read
(sf=0xb6bd3990, buf=0xb6bd28c0,
    samples=160) at slinfactory.c:140
140 memcpy(sf->hold, frame_data, remain * sizeof(*offset));

http://bugs.digium.com/view.php?id=0  0x080ee6f3 in ast_slinfactory_read
(sf=0xb6bd3990, buf=0xb6bd28c0,
    samples=160) at slinfactory.c:140
http://bugs.digium.com/view.php?id=1  0x08072af7 in audiohook_read_frame_both
(audiohook=0xb6bd2f1c,
samples=160)
    at audiohook.c:213
http://bugs.digium.com/view.php?id=2  0x08072d81 in ast_audiohook_read_frame
(audiohook=0xb6bd2f1c,
samples=160,
    direction=AST_AUDIOHOOK_DIRECTION_BOTH, format=64) at audiohook.c:260
http://bugs.digium.com/view.php?id=3  0xb72b2686 in spy_generate
(chan=0x82f33f0, data=0xb6bd2f1c, len=0,
    samples=160) at app_chanspy.c:174
http://bugs.digium.com/view.php?id=4  0x08080cae in generator_force
(data=0x82f33f0) at channel.c:1563
http://bugs.digium.com/view.php?id=5  0x080821b6 in __ast_read (chan=0x82f33f0,
dropaudio=0) at
channel.c:1979
http://bugs.digium.com/view.php?id=6  0x080838d8 in ast_read (chan=0x82f33f0) at
channel.c:2295
http://bugs.digium.com/view.php?id=7  0xb72b2ac7 in channel_spy (chan=0x0,
spyee=0x0, volfactor=0x0, fd=0,
    flags=0x0) at app_chanspy.c:275
http://bugs.digium.com/view.php?id=8  0x00000000 in ?? ()


Asterisk freshly compiled and installed.
All calls using G.711 ulaw.
One SIP extension is running chanspy.
No other calls active.
One SIP call comes in (it's from a cisco AS5300 gateway)
The call is answered as it was to the main number.
The system runs an AGI to process CID and does a few other things.
Auto Attendant starts playing (office hours etc, using Background for
playback)
The AA message continues to the next step (using Background playback
again)
And then just as the next message should start playing, Asterisk crashes.
No error messages on the console.
No DTMF keys were dialed at any time.

Asterisk on the same system does not crash when NOT using chanspy.


full backtrace attached uploaded. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
01-22-08 17:30  andrew         Note Added: 0081052                          
======================================================================




More information about the asterisk-bugs mailing list