[Click] Problem while running OLSR on Click

Viet Do Thi Minh viet at q2s.ntnu.no
Fri Jan 14 11:28:02 EST 2011


Hi,

I think that is not a bug in OLSR code. Actually, I run OLSR with 
nsclick and I got that error when I wrote a new element. The error was 
fixed when I corrected the code of the new element.

Cheers,
Viet


On 1/14/2011 11:40 AM, Bart Braem wrote:
> Hi,
>
> If that's the bug in our OLSR code, would you mind sending a patch? It would help other future users.
>
> thanks,
> Bart
>
> On 14 Jan 2011, at 10:23, Viet, Do Thi Minh wrote:
>
>> Hi,
>>
>> I have installed and run OLSR successfully. I also got that error before
>> with OLSR. The problem is due to using wrong index i of a vector (i is out
>> of range [0,size_of_vector]). This may happen when you delete an element
>> of the vector inside the 'for loop' which accesses all element of that
>> vector.
>>
>> Regards,
>> Viet
>>
>>> Hi,
>>>
>>> I have been using the dsr routing implementation in Click. I met
>>> "assertion"
>>> failed problem before. I fixed it by checking the input of the function. I
>>> suggest you to look into the "vetor' code and  check when the fail
>>> happened,
>>> if "_n" or "i" here is a valid number. There might be some situation i is
>>> out of range [0,_n]. So you might just need to check on that to fix bug.
>>>
>>> Good luck,
>>> Zi
>>>
>>>
>>> --
>>> Zi Feng
>>> PhD student
>>> Department of Computer Science and Engineering, UCR
>>> Network Lab
>>>
>>> On Thu, Jan 13, 2011 at 11:57 PM, Bart Braem<bart.braem at ua.ac.be>  wrote:
>>>
>>>> Hi,
>>>>
>>>> On 14 Jan 2011, at 03:33, Abhishek Chanda wrote:
>>>>
>>>>> I am trying to run the Click implementation of OLSR. It did build and
>>>>> install successfully, but now when I try to run a click script that
>>>> has a
>>>>> FromDevice element, I am getting this error:
>>>>> "click: ../include/click/vector.hh:184: void*&
>>>>> Vector<void*>::operator[](int): Assertion `i>=0&&  i<_n' failed.
>>>>> Aborted”
>>>>> What is going wrong?
>>>>
>>>> Please use gdb or another debugger to provide a stacktrace. I thought
>>>> the
>>>> OLSR implementation we provide on github was working, but this could
>>>> point
>>>> to bugs.
>>>>
>>>> best regards,
>>>> Bart
>>>> --
>>>> Bart Braem
>>>> PATS research group - IBBT
>>>> Dept. of Mathematics and Computer Sciences
>>>> University of Antwerp
>>>> Campus Middelheim, G3.27
>>>> Middelheimlaan 1
>>>> B-2020 Antwerpen, Belgium
>>>> Phone: +32 (0)3 265.38.82
>>>> Fax: +32 (0)3 265.37.77
>>>> Web: www.pats.ua.ac.be
>>>>
>>>>
>>>> _______________________________________________
>>>> click mailing list
>>>> click at amsterdam.lcs.mit.edu
>>>> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>>>>
>>>>
>>> _______________________________________________
>>> click mailing list
>>> click at amsterdam.lcs.mit.edu
>>> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>>>
>>
>> -- 
>>
>>




More information about the click mailing list