LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   tc command gives segmentation fault (https://www.linuxquestions.org/questions/linux-networking-3/tc-command-gives-segmentation-fault-423205/)

galle 03-09-2006 11:29 AM

tc command gives segmentation fault
 
Hello!

I'm new to QoS so I'm not sure if I'm doing something wrong or what's happening. After a couple of tc commands I suddenly got a segmentation fault error:
Code:

ruter:/boot# tc qdisc add dev eth0 root handle 1: htb default 40
ruter:/boot# tc class add dev eth0 parent 1: classid 1:1 htb rate 824kbit burst 2k

ruter:/boot# tc class add dev eth0 parent 1:1 classid 1:10 htb rate 274kbit ceil 824kbit burst 2k
ruter:/boot# tc class add dev eth0 parent 1:1 classid 1:20 htb rate 274kbit ceil 824kbit burst 2k
ruter:/boot# tc class add dev eth0 parent 1:1 classid 1:30 htb rate 274kbit ceil 824kbit burst 2k
ruter:/boot# tc class add dev eth0 parent 1:1 classid 1:40 htb rate 2kbit ceil 824kbit burst 2k

ruter:/boot# tc qdisc add dev eth0 parent 1:10 handle 10: pfifo_fast
Segmentation fault

Is this my fault, or something in the program?

Cheers

unSpawn 03-09-2006 01:44 PM

LARTC mailinglist suggests checking if you're running iproute2 current since it fixes probs with segfaulting due to pfifo_fast. If that doesn't help run tc through strace in verbose mode. If errors are clear search for them else post to the iproute2 mailinglist / package maintainer.

galle 03-09-2006 04:20 PM

Great, thank you! I upgraded to the testing release of iproute and it worked. (Well as it turns out, pfifo_fast is only allowed as a root qdisc, but at least I got one step further :) ...)


All times are GMT -5. The time now is 02:43 AM.