Most easy way how to reproduce is:
ip link set imq0 up
ip link set imq1 up
tc qdisc add dev imq0 root handle 1: htb
tc qdisc add dev imq1 root handle 1: htb
iptables -t mangle -A PREROUTING -i eth0 -j IMQ --todev 0
iptables -t mangle -A POSTROUTING -o eth0 -j IMQ --todev 1
ip6tables -t mangle -A PREROUTING -i eth0 -j IMQ --todev 0
ip6tables -t mangle -A POSTROUTING -o eth0 -j IMQ --todev 1
Most easy way how to reproduce is: ip link set imq0 up ip link set imq1 up tc qdisc add dev imq0 root handle 1: htb tc qdisc add dev imq1 root handle 1: htb iptables -t mangle -A PREROUTING -i eth0 -j IMQ --todev 0 iptables -t mangle -A POSTROUTING -o eth0 -j IMQ --todev 1 ip6tables -t mangle -A PREROUTING -i eth0 -j IMQ --todev 0 ip6tables -t mangle -A POSTROUTING -o eth0 -j IMQ --todev 1
ifconfig eth0 down ifconfig eth0 up
The crash issue is caused by the IPv6 rules