[Click] click-fastclassifier segfault

springbo at cs.wisc.edu springbo at cs.wisc.edu
Mon Feb 11 11:17:28 EST 2008


Hello,

click-fastclassifier was segfaulting on my machines. Further investigation
revealed add_line_directive in RouterT::unparse_declarations() was causing
the problem.

click-fastclassifier adds 'Idle' elements when creating the
classifiers_program. These 'Idle' elements do not have landmarks set.
add_line_directive segfaults when called on an element without a landmark.

The attached patch fixes click-fastclassifier's segfault by explicitly
setting a landmark for the 'Idle' elements.


~Kevin Springborn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fast-classifier.patch
Type: application/octet-stream
Size: 582 bytes
Desc: not available
Url : https://pdos.csail.mit.edu/pipermail/click/attachments/20080211/76d6970e/attachment.obj 


More information about the click mailing list