[Home]

Summary:ASTERISK-02250: Latest cvs causes asterisk to crash
Reporter:tan (tan)Labels:
Date Opened:2004-08-21 01:54:24Date Closed:2011-06-07 14:00:31
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) bug.21Aug2004.txt
Description:On latest cvs, asterisk crashes out each time I try and make a call. The context it seems to crash out in has a number of AGI calls, and also uses the GotoIf. If the info in the debug log isn't enough then I can submit part of the dialplan.

****** ADDITIONAL INFORMATION ******

Enclosed bug trace.
Comments:By: tan (tan) 2004-08-21 06:12:29

For clarification, this is the latest cvs-head version.

By: Tilghman Lesher (tilghman) 2004-08-21 10:26:40

Could you upload your extensions.conf?  Looks like that you have a weird extension in there.

By: Mark Spencer (markster) 2004-08-21 14:44:07

This is going to take some analysis on the core.

First, be sure you've done the obvious "make clean ; make install" and that there's nothing left.  Clearly either the stack is totally wrong or garbage is being sent to the comparision function -- even so the line number reference does not line up to an actual line number of code (it's a close brace), so i'm suspicious...

By: Mark Spencer (markster) 2004-08-22 11:06:50

Hello?  Are you still there?

By: tan (tan) 2004-08-23 08:13:36

The problem seems to be with our changes to app_dial.c. Not sure why it's crashing out but I guess it's our problem. You can close this.

Tan


*** 134
- static struct ast_channel *wait_for_answer(struct ast_channel *in, struct loca
luser *outgoing, int *to, int *allowredir_in, int *allowredir_out, int *allowdis
connect, int *sentringing, char *status, size_t statussize)
--- 134 -----
+ static struct ast_channel *wait_for_answer(struct ast_channel *in, struct loca
luser *outgoing, int *to, int *allowredir_in, int *allowredir_out, int *allowdis
connect, int *sentringing, char *status, size_t statussize, int maxduration)
***************
*** 846
-       peer = wait_for_answer(chan, outgoing, &to, &allowredir_in, &allowredir_
out, &allowdisconnect, &sentringing, status, sizeof(status));
--- 879 -----
+       peer = wait_for_answer(chan, outgoing, &to, &allowredir_in, &allowredir_
out, &allowdisconnect, &sentringing, status, sizeof(status), totallength);

By: Brian West (bkw918) 2004-08-23 09:36:46

Local changes to app_dial.c