[Home]

Summary:ASTERISK-14781: Crash when doing chanspy
Reporter:Morten Tryfoss (mtryfoss)Labels:
Date Opened:2009-09-07 06:04:37Date Closed:2009-11-09 08:11:40.000-0600
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Applications/app_chanspy
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 1.6.10-rc1.txt
( 1) backtrace-20090907.txt
( 2) gdb_cms.txt
( 3) gdb-20090926.txt
Description:Simple setup:

Call comes from external asterisk server (pstn2) and then the call goes out with a simple dial through another server (pstn5).

After call is answered I call another extension to listen in on the first channel. This results in a crash every time.

Dialplan:
exten => 38708699,1,Dial(IAX2/pstn5/48999303)

exten => 38701506,1,ChanSpy(IAX2/pstn2-7258)

Se attached backtrace.
Comments:By: Chris Stone (habile) 2009-09-14 13:48:44

Have the same in 218184 when SIP spies on IAX and vice versa. Seems OK SIP/SIP. Not sure about IAX/IAX.

Just before the crash:

[Sep 14 19:43:27] DEBUG[9385] rtp_engine.c: Found code 8 at payload 8 on 0x99b0bd0
[Sep 14 19:43:27] DEBUG[9380] rtp_engine.c: Found code 8 at payload 8 on 0x99c6420
[Sep 14 19:43:27] DEBUG[9385] rtp_engine.c: Found code 8 at payload 8 on 0x99b0bd0
[Sep 14 19:43:27] DEBUG[9385] channel.c: Scheduling timer at (75 requested / 75 actual) timer ticks per second
[Sep 14 19:43:27] DEBUG[9380] rtp_engine.c: Found code 8 at payload 8 on 0x99c6420
[Sep 14 19:43:27] DEBUG[9385] channel.c: Scheduling timer at (0 requested / 0 actual) timer ticks per second
[Sep 14 19:43:27] DEBUG[9385] channel.c: Scheduling timer at (0 requested / 0 actual) timer ticks per second
[Sep 14 19:43:27] VERBOSE[9385] app_chanspy.c:   == Spying on channel SIP/1102-099bf460
[Sep 14 19:43:27] NOTICE[9385] app_chanspy.c: Attaching SIP/1247-099372f8 to SIP/1102-099bf460
[Sep 14 19:43:27] NOTICE[9385] app_chanspy.c: Attaching SIP/1247-099372f8 to SIP/1102-099bf460
[Sep 14 19:43:27] DEBUG[9385] autochan.c: Created autochan 0xb5964f90 to hold channel IAX2/BT-17893 (0x9934fa0)
[Sep 14 19:43:27] NOTICE[9385] app_chanspy.c: Attaching SIP/1247-099372f8 to IAX2/BT-17893
[Sep 14 19:43:27] DEBUG[9385] channel.c: Scheduling timer at (50 requested / 50 actual) timer ticks per second
[Sep 14 19:43:27] DEBUG[9380] rtp_engine.c: Found code 8 at payload 8 on 0x99c6420
[Sep 14 19:43:27] DEBUG[9385] channel.c: Internal timing is disabled (option_internal_timing=0 chan->timingfd=38)
[Sep 14 19:43:27] DEBUG[9385] channel.c: Generator got voice, switching to phase locked mode
[Sep 14 19:43:27] DEBUG[9385] channel.c: Scheduling timer at (0 requested / 0 actual) timer ticks per second
[Sep 14 19:43:27] DEBUG[9385] rtp_engine.c: Found code 8 at payload 8 on 0x99b0bd0



By: Leif Madsen (lmadsen) 2009-09-15 12:04:40

Please provide a proper backtrace per doc/backtraces.txt.

You will need to compile Asterisk with DONT_OPTIMIZE in the Compiler Flags options of menuselect.

Once you've reproduced the issue, please run the commands per backtraces.txt.

Thanks!

By: Chris Stone (habile) 2009-09-15 12:31:50

Take mine gdb_cms.txt - hope it's OK...

By: Morten Tryfoss (mtryfoss) 2009-09-26 11:55:07

Sorry for taking some time. I hope the backtrace is correct now.

By: Marcin Kowalczyk (kowalma) 2009-11-07 07:44:07.000-0600

1.6.1.10-rc1 crashes as well on chanspy and extenspy



By: Leif Madsen (lmadsen) 2009-11-07 14:12:25.000-0600

Only assigned to russell for review to determine if this is a blocker for 1.6.1.10, or whether it will need to wait for the next release cycle. Please set to the appropriate status after review. Marking this to you so I don't forget to mention it on Monday.

By: Chris Stone (habile) 2009-11-07 14:19:08.000-0600

Actually https://issues.asterisk.org/view.php?id=16045 has seemed to fix this for me!

By: Leif Madsen (lmadsen) 2009-11-09 08:11:22.000-0600

Thanks for reporting back! I'm going to mark this as a duplicate of 16045 and then close this issue. Please continue to track this issue at ASTERISK-14963