Re: [LARTC] IMQ crash dump

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Alexander,

Alexander Trotsai wrote:

Hi

I try setup imq pseudo device for shaping
I'm work such script
#!/bin/sh

TC=/sbin/tc

/sbin/modprobe imq numdevs=1
/sbin/ip link set imq0 up
$TC qdisc add dev imq0 handle 1: root htb default 1
$TC class add dev imq0 parent 1: classid 1:1 htb rate 10mbit
# client1 tunnel tunnel
$TC class add dev imq0 parent 1: classid 1:2 htb rate 256kbit
$TC filter add dev imq0 protocol ip parent 1:0 prio 5 u32 match ip src 10.255.255.40/30 flowid 1:2
$TC filter add dev imq0 protocol ip parent 1:0 prio 5 u32 match ip src 10.255.255.52/30 flowid 1:2
# client2
$TC class add dev imq0 parent 1: classid 1:3 htb rate 128kbit
$TC filter add dev imq0 protocol ip parent 1:0 prio 5 u32 match ip src x.x.x.x/30 flowid 1:3
# client3
$TC class add dev imq0 parent 1: classid 1:4 htb rate 64kbit
$TC filter add dev imq0 protocol ip parent 1:0 prio 5 u32 match ip src x.x.x.x/30 flowid 1:4
# client4
$TC class add dev imq0 parent 1: classid 1:5 htb rate 64kbit ceil 768kbit
$TC filter add dev imq0 protocol ip parent 1:0 prio 5 u32 match ip src x.x.x.x/30 flowid 1:5

# send to intarface all from eth0.9 (clients)
/sbin/iptables -t mangle -A PREROUTING -i eth0.9 -j IMQ

All patches I get from http://luxik.cdi.cz/~patrick/imq/
iptables and kernel modules compiled and loaded successfully
But after run last line
/sbin/iptables -t mangle -A PREROUTING -i eth0.9 -j IMQ
I got kernel crush and register stack
I can't save it because kernel frezze

Thats bad, i can't really help you without at least the registers and the corresponding symbols ...
You could try two things: use serial console to capture the output or use kdb to obtain a backtrace
and the registers after it crashed. kdb requires recompiling the kernel, but if you are used to using
debuggers it can give you alot more information.




O, my kernel is Linux watcher 2.4.19-pre8-ac5 #2 Wed Jul 10 10:08:55 EEST 2002 i686 unknown

May be I do something wrong or any other ideas?

Hmm there's not much to do wrong, everything seems to be ok .... seems to be imq's fault.
If you send me your config (off-list please) i can compile a kernel with it and try it myself ..


Bye,
Patrick




[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux