Summary:ASTERISK-08868: Asterisk server crash during Passive Listening - Core segmentation fault
Reporter:sathish (sathishsp)Labels:
Date Opened:2007-02-24 01:27:51.000-0600Date Closed:2007-03-04 23:56:08.000-0600
Versions:Frequency of
Environment:Attachments:( 0) OUTPUT.txt
Description:when we tried the Passive Listening (listening the users using the chanspy option) and when tried listening the users  the asterisk server getting crashed , and saying that core segmentation fault.
Scenario :=
1. 2 users are in Conversation,
2. tried listening the conversation by using he chanspy , i.e. by pressing * we can move to the another user and listen the conversation.
3. using '*' listened the first user and then pressed '*' to listen another user and then pressed '*' , now the server gets crashed by saying core Segmentation fault. .
4. But expected to listen the user 1.

This can be easily reproducible. In the additional information fault i have given the steps and other things. I have attached the "bt", "bt full" and "threads all apply" outputs.


Instructions for using passive listening :-

Passive listening 1 (listen to different users):

Dial the number 720 & enter the password.The person can hear the conversation for a user.Press the '*' button to change to listen to a different user.

Changes to extensions.conf:
exten => _720,1,Set(LANGUAGE()=fr)
exten => _720,n,Authenticate(1234)
exten => _720,n,ChanSpy(SIP/5,bq)
exten => _720,n,Hangup

Here is the asterisk console out put :-
[Feb 15 17:18:38] NOTICE[25548]: app_chanspy.c:202 start_spying: Attaching SIP/4000-4050b000 to SIP/506-08223380
 == Done Spying on channel SIP/506-08223380
 == Spying on channel SIP/502-0821f1b8
[Feb 15 17:19:20] NOTICE[25548]: app_chanspy.c:202 start_spying: Attaching SIP/4000-4050b000 to SIP/502-0821f1b8
 == Done Spying on channel SIP/502-0821f1b8
Segmentation fault
linuxDomain:/etc/asterisk #

Comments:By: Tilghman Lesher (tilghman) 2007-02-25 08:54:40.000-0600

Fixed in 56684, 56685, 56686.

By: sathish (sathishsp) 2007-02-25 23:39:38.000-0600

Thanks for your reply.AS you specified it is fixed in 56684,  I cannot able to find the rev 56684 .,
please could you help me in getting it.

By: Tilghman Lesher (tilghman) 2007-02-25 23:49:04.000-0600

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

By: sathish (sathishsp) 2007-03-04 22:46:20.000-0600

Thanks for your replies and for fixing the bug. I have checked with the changes made code and ow it seems to be working fine without any asterisk server crash (core segmentation fault).

While trying the passive listening (listening the conversation one by one by pressing '*' key ) , once i have listened all the users and then if i continued to listen from the first user , i am getting some  6 seconds delay to listen the user. Is this a normal functionality and the delay is normal ?? just need to confirm that .


By: Tilghman Lesher (tilghman) 2007-03-04 23:56:08.000-0600

I don't know.  Please ask any additional support questions via the asterisk-users list.  Please do not reopen a bug report to ask a support question, unless the bug has reappeared.