[Click] Segmentation fault in timer
Eddie Kohler
kohler at cs.ucla.edu
Sun Dec 19 14:58:30 EST 2004
Hi Bart,
The current Click timer code doesn't look like this. CVS... CVS... CVS... But
let us know if you find the problem, maybe the new code has a similar issue.
Eddie
Bart Braem wrote:
> Hello,
>
> I am extending my AODV simulations with random movement but that gives me a
> (reproducable) segmentation fault, in this unschedule:
> void
> Timer::unschedule()
> {
> if (scheduled()) {
> _head->acquire_lock();
> _prev->_next = _next; // SEGFAULT
> _next->_prev = _prev;
> _prev = _next = 0;
> _head->release_lock();
> }
> }
>
> When using ddd it says that it can't access the memory at the address
> _prev->_next. I guess that has something to do with me deleting timers when
> they are not necessary any more, altough every timer I delete is unscheduled
> first (which is the same thing the destructor does).
> I am certainly going to debug this problem myself but if anyone has
> encountered this problem before a solution would be very nice...
>
> Bart
More information about the click
mailing list