Everytime I try to add an pfifo_fast qdisc either ass root disk odr as leaf disk inside a htb tree tc crashes giving the an error of the following type: tc[1624]: segfault at 0000000000000000 rip 0000000000000000 rsp 00007fffffe29bd8 error 14 This is what strace gives: open("/proc/net/psched", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaaaaac1000 read(3, "0000070a 00000400 000f4240 00000"..., 1024) = 36 close(3) = 0 munmap(0x2aaaaaac1000, 4096) = 0 open("/usr/lib64/tc/q_pfifo_fast.so", O_RDONLY) = -1 ENOENT (No such file or directory) --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV +++ I tryed to debug but unfortunatly my glibc isn't build for debuging or i'm doing something diffrent wrong Reproducible: Always Steps to Reproduce: 1. tc qdisc add dev eth1 root handle 1: htb default 30 tc class add dev eth1 parent 1: classid 1:1 htb rate 6mbit burst 15k tc class add dev eth1 parent 1:1 classid 1:10 htb rate 5mbit burst 15k tc class add dev eth1 parent 1:1 classid 1:20 htb rate 3mbit ceil 6mbit burst 15k tc class add dev eth1 parent 1:1 classid 1:30 htb rate 1kbit ceil 6mbit burst 15k tc qdisc add dev eth1 parent 1:10 handle 10: pfifo_fast 2. 3. Actual Results: tc[1606]: segfault at 0000000000000000 rip 0000000000000000 rsp 00007fffffae2618 error 14
you neglected to post `emerge info` let alone the version of iproute2 you're using
Sorry: Portage 2.0.51.22-r3 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r2, 2.6 .12.5 x86_64) ================================================================= System uname: 2.6.12.5 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.6.13 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disab led] dev-lang/python: 2.3.5-r2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -fomit-frame-pointer -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share /config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib6 4/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/ share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/ tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=k8 -O2 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/ distributions/gentoo" LANG="de_DE@euro" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X a52 aac acpi acpi4linux alsa audiofile avi berkdb bitmap-fonts blue tooth bonobo cddb cdparanoia cdr crypt cups curl dbus dedicated dga dmx dvd dvdr ad dvdread emboss encode ext-png ext-zlib extensions faad fam fbcon ffmpeg firef ox flac flash foomaticdb fortran freetype gcj gdbm gif gimp gimpprint glut gnome gnome2 gstreamer gtk gtk2 hal howl imagemagick imap imlib irmc java jpeg junit kadu-modules kdeenablefinal lcms ldap libwww lzw lzw-tiff mad motif mp3 mpeg ncu rses nls nptl ogg oggvorbis opengl oss pam parse-clocks pdflib perl pic png ppds python qt qtmt quicktime readline real rtc samba sdl see speex spell ssl tag tc pd tetex theora tiff truetype truetype-fonts type1-fonts usb userlocales v4l v4l 2 vcd vorbis wifi wine32codecs wxwindows xine xinerama xml xml2 xpm xv xvid xvmc zlib zvbi userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS and: * sys-apps/iproute2 Latest version available: 2.6.11.20050310-r1 Latest version installed: 2.6.11.20050310-r1 Size of downloaded files: 333 kB Homepage: http://developer.osdl.org/dev/iproute2/ Description: kernel routing and traffic control utilities License: GPL-2
you didnt re-open :)
ok done ;-)
ok, issue is because pfifo_fast does not support option parsing, but the tc code doesnt check to see if the qdisc provides the parse_qopt() function before calling it should be fixed with iproute2-2.6.11.20050330-r1
(In reply to comment #5) > ok, issue is because pfifo_fast does not support option parsing, but the tc code > doesnt check to see if the qdisc provides the parse_qopt() function before > calling it > > should be fixed with iproute2-2.6.11.20050330-r1 The crash is gone now, but I'm unable the add the pfifo_fast qdisc I always get # tc qdisc add dev eth1 parent 1:10 handle 10: pfifo_fast qdisc 'pfifo_fast' does not support option parsing Jens
upstream indicates you should just use 'pfifo'