Summary: | sys-apps/iproute2-4.0.0 tc command gives "buffer overflow detected" message when using "show" argument | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | jamesrutledge |
Component: | [OLD] Core system | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | casta |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
URL: | http://git.kernel.org/cgit/linux/kernel/git/shemminger/iproute2.git/commit/?id=46679bbbe89699016d31486de7599590d02a5054 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
jamesrutledge
2015-04-17 18:20:21 UTC
It might be helpful if you could get a backtrace from gdb. https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces Below are the results from running gdb. There is no library "linux-vdso.so.1" on my system. Reading symbols from tc...done. (gdb) run Starting program: /sbin/tc -s qdisc show dev enp4s0 warning: Could not load shared library symbols for linux-vdso.so.1. Do you need "set solib-search-path" or "set sysroot"? qdisc htb 1: root refcnt 2 r2q 10 default 0 direct_packets_stat 257 direct_qlen 256 Sent 3598684 bytes 28190 pkt (dropped 0, overlimits 1868 requeues 0) backlog 0b 0p requeues 0 *** buffer overflow detected ***: tc terminated; report to <http://bugs.gentoo.org/> Program terminated with signal SIGKILL, Killed. The program no longer exists. (gdb) bt No stack. (gdb) quit (In reply to jamesrutledge from comment #2) before you run it, put break points on the exit locations: (gdb) b assert (gdb) b __chk_fail Adding the break points gave the same result. Now, I have reduced the CFLAGS in make.conf to be just CFLAGE="-march=native -O2 -pipe -mfpmath=sse -pipe" I have, now, also added "nostrip" to FEATURES. Now I am in the process of doing an "emerge -e world" This might make the binaries more "gdb" friendly. I think you can stop rebuilding. It’s fixed upstream: http://git.kernel.org/cgit/linux/kernel/git/shemminger/iproute2.git/commit/?id=46679bbbe89699016d31486de7599590d02a5054 should be all set now in the tree; thanks for the report! Commit message: Add fix from upstream for buffer overflows when running `tc qdisc show` http://sources.gentoo.org/sys-apps/iproute2/files/iproute2-4.0.0-tc-show-buffer-overflow.patch?rev=1.1 http://sources.gentoo.org/sys-apps/iproute2/iproute2-4.0.0-r1.ebuild?rev=1.1 Thank you! |