Search the web
Sign In
New User? Sign Up
c-prog · C/C++ Programmer's Mailing List
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Bug finding contest for C experts   Message List  
Reply | Forward Message #70973 of 71513 |
Re: Bug finding contest for C experts

--- In c-prog@yahoogroups.com, "John Matthews" <jm5678@...> wrote:
>
> --- In c-prog@yahoogroups.com, Ravi Mishra <ravicse04@> wrote:
> >
> > for (delIndex = rachQIndex; delIndex < rachTxQueue->n; delIndex++) {
> > rachTxQueue->queue[(delIndex + rachTxQueue->start) %
> > (petMaxUEInstancePerProcess+1)]
> > = rachTxQueue->queue[(delIndex + rachTxQueue->start + 1) %
> > (petMaxUEInstancePerProcess+1)];
> > }
> > rachTxQueue->n--;
>
> If the queue is 0..n-1 then delIndex should be a maximum of n-2 ie. it should
be:
>
> for (delIndex = rachQIndex; delIndex < rachTxQueue->n - 1; delIndex++) {
>
> or you could decrement rachTxQueue->n before the loop.

Also, rachQIndex should *not* be incremented at the end of the loop if the UE is
deleted (this is probably what's causing the crash).





Wed Jul 15, 2009 8:06 am

johnmatthews...
Offline Offline
Send Email Send Email

Forward
Message #70973 of 71513 |
Expand Messages Author Sort by Date

Hi, I was analyzing a core dump and then narrow down the problem that there is a bug in C function. Then I thought lets have a contest who find the bug first. ...
Ravi Mishra
ravi_kec1
Offline Send Email
Jul 14, 2009
7:32 pm

... Apart from a missing closing brace, that single equals looks highly suspicious given what's on the left hand side of it. -- PJH ...
Paul Herring
shabble
Offline Send Email
Jul 14, 2009
7:43 pm

no that is not a coorect solution...pls find some other place ... [Non-text portions of this message have been removed]...
Ravi Mishra
ravi_kec1
Offline Send Email
Jul 15, 2009
4:59 am

ppls just share ur idea..this is just a basic C question. only 5 hr remaing after this i willshare ans....whatever u r thing just share..... ... [Non-text...
Ravi Mishra
ravi_kec1
Offline Send Email
Jul 15, 2009
11:22 am

awesome. do I get a prize if I win this contest? ... From: Ravi Mishra To: c-prog@yahoogroups.com Sent: Tuesday, July 14, 2009 1:29 PM Subject: [c-prog] Bug...
Tyler Littlefield
tyler@...
Send Email
Jul 14, 2009
8:03 pm

... If the queue is 0..n-1 then delIndex should be a maximum of n-2 ie. it should be: for (delIndex = rachQIndex; delIndex < rachTxQueue->n - 1; delIndex++) { ...
John Matthews
johnmatthews...
Offline Send Email
Jul 15, 2009
8:00 am

... Also, rachQIndex should *not* be incremented at the end of the loop if the UE is deleted (this is probably what's causing the crash)....
John Matthews
johnmatthews...
Offline Send Email
Jul 15, 2009
8:06 am

... ...or should there just be a break to exit the loop when the UE is deleted?...
John Matthews
johnmatthews...
Offline Send Email
Jul 15, 2009
8:57 am

I suggest that you use that 5 hours to complete your homework yourself. ... From: Ravi Mishra To: c-prog@yahoogroups.com Sent: Wednesday, July 15, 2009 1:29 AM...
Tyler Littlefield
tyler@...
Send Email
Jul 15, 2009
2:12 pm

No man !!This is just a C basic I have a core dump so i knew where is the problem but I want to knew people should know where is the problem comes in that of...
Ravi Mishra
ravi_kec1
Offline Send Email
Jul 15, 2009
3:09 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help