[click] bug in classifier

Douglas S. J. De Couto decouto at lcs.mit.edu
Thu Nov 15 10:44:26 EST 2001


I think this case should either

1) fail to configure, or
2) not crash -- perhaps empty expressions (``foo/'') can be treated as 
matching anything?

I think alternative (1) is better.


[userlevel] bermuda% ./click -e \
"InfiniteSource -> Classifier(19/) -> Discard"

<expr>:1: While configuring `Classifier at 2 :: Classifier':
   pattern 0: value has less than 2 hex digits
assertion "i>=0 && i<_n" failed: file "../include/click/vector.hh", line 23
Abort (core dumped)
[userlevel] bermuda% gdb -c click.core click
<...gdb startup crap goes here...>

(gdb) bt
#0  0x282018e8 in kill () from /usr/lib/libc.so.4
#1  0x2823d646 in abort () from /usr/lib/libc.so.4
#2  0x2821a3e7 in __assert () from /usr/lib/libc.so.4
#3  0x80ae400 in Classifier::push (this=0x8145e80, p=0x8151280)
     at ../include/click/vector.hh:23
#4  0x80b0d44 in InfiniteSource::run_scheduled (this=0x814cb00)
     at ../include/click/element.hh:269
#5  0x80e7a41 in RouterThread::driver (this=0x8145e00)
     at ../include/click/task.hh:266
#6  0x80d0c0c in main (argc=3, argv=0xbfbff3e4) at click.cc:571
#7  0x807c061 in _start ()


-- 
Douglas S. J. De Couto    decouto at lcs.mit.edu





More information about the click mailing list