that crash is comming around in between 5 hr or 11 hr.
if i will debug by gdb it is always taking me at the line in if condition.

timerStopInst (mac->congestionTimerInstance[congInd->macDflow])

in given pice of code.

No braces prob with code other wise i can not able to make binary. that is
segementation fault.

please give me pointer.

Ravi

On Thu, Aug 13, 2009 at 7:27 PM, John Matthews <[email protected]> wrote:

>
>
> --- In [email protected] <c-prog%40yahoogroups.com>, Ravi Mishra
> <ravics...@...> wrote:
> >
> > Please help me and provide your suggetion for finding the cause of crash
> > dump.
>
> Suggestions:
>
> 1. Put comments in your code. Then we (and you) might all have a better
> chance of understanding what the code is doing.
>
> 2. Use the assert() macro.
>
> 3. The following should use a switch.
>
> > if (congInd->congestionStatus ==
> > no_congestion_AIS_IEsAIS_TnlCongestionStatus)
>
> The logic doesn't look correct here:
>
> > else if ((congInd->congestionStatus == delay_build_up_...
> > {
> >
> > if(mac->congestionCounter[congInd->macDflow] < mac->steps..
> > {
> > if(mac->congestionCounter[congInd->macDflow] > 0)
> > if(mac->congestionTimerInstance[congInd->macDflow])
> > {
> > timerStopInst(mac->congestion...
> >
> > mac->congestionTimerInstance[congInd->macDflow]=NULL;
> > }
> >
> > mac->congestionCounter[congInd->macDflow] += 1 ;
> >
> > mac->congestionTimerInstance[...] = timerStartInst..
>
> The Instance[] is only set to NULL is Counter[] > 0, so it might be
> non-NULL when it reaches the Instance[] = timerStartInst() line.
>
> Are there braces missing?
>
>  
>


[Non-text portions of this message have been removed]

Reply via email to