[Click] Error in Uninstalling click

Eddie Kohler kohler at icir.org
Fri Aug 22 12:56:40 EDT 2003


Shilpi

https://www.pdos.lcs.mit.edu/pipermail/click/2002-April/001155.html

Please read that mail about cleanup().

Put click_chatter messages in your cleanup() method. Print out the
particular element pointer ('this'). You will see that the cleanup() method
is being called on *two different elements*. One of them (probably the
prototype element stored in the lexer, as I explained in email earlier this
week) is getting called with cleanup_stage CLEANUP_NO_ROUTER.

Obviously you wrote a bad cleanup() method. Pay attention to the
cleanup_stage argument. Do not attempt to delete random memory that you
never actually allocated (because configure() and/or initialize() was never
called). Do not dereference null pointers. Do not call "Packet::kill()" on
packets that do not exist.

E


More information about the click mailing list