Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139640 - net-analyzer/nettop crashes (patch)
Summary: net-analyzer/nettop crashes (patch)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-07 23:01 UTC by basic
Modified: 2007-02-01 19:18 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch with lots of context (nettop-crash.patch,9.32 KB, patch)
2006-07-07 23:06 UTC, basic
Details | Diff
patch v2 (nettop-crash.patch,856 bytes, patch)
2006-07-08 02:09 UTC, basic
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description basic 2006-07-07 23:01:46 UTC
nettop crashes when there are 24 sorted entries. I traced it to 595 in nettop.c when the value j == 24. Patch coming up.

emerge --info

Portage 2.1-r1 (default-linux/x86/2006.0, gcc-hardenednopie, glibc-2.3.6-r4, 2.6.16-gentoo-r9 i686)
=================================================================
System uname: 2.6.16-gentoo-r9 i686 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.15
ccache version 2.3 [enabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -gdwarf-2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /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/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe -gdwarf-2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache confcache distlocks metadata-transfer nostrip parallel-fetch sandbox sfperms strict stricter test userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X alsa apache2 apm ares async avi bash-completion berkdb bitmap-fonts bzip2 cjk cli crypt cups curl dlloader doc dri emboss encode fontconfig foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 hardened idn imlib isdnlog jbig jpeg jpeg2k kde lcms libg++ libwww mad mailwrapper mikmod mmx mng mp3 mpeg ncurses nls nptl numeric offensive ogg opengl pcre pdflib perl pic png pppd profile python qt qt4 quicktime readline reflection samba session socks5 spell spl ssl svg syslog tcpd test tetex tiff timidity truetype truetype-fonts type1-fonts udev unicode usb vorbis xft xml xmms xorg xpm xv zlib elibc_glibc input_devices_evdev input_devices_mouse input_devices_keyboard kernel_linux userland_GNU video_cards_none video_cards_nv video_cards_fbdev video_cards_nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 basic 2006-07-07 23:06:43 UTC
Created attachment 91191 [details, diff]
patch with lots of context

Here's a patch, includes fixes for other similar bugs in the file.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-07-08 00:54:03 UTC
Uhm, can you attach a patch without that [0;0m cruft, please? 
Comment 3 basic 2006-07-08 02:09:29 UTC
Created attachment 91199 [details, diff]
patch v2

oops, sorry about that
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-07-08 02:15:21 UTC
Much better, thanks. ;)
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-07-09 07:38:58 UTC
Please, post the following info to Bug 139662.

- portage, gcc-config and eselect-compiler versions
- the output of `eselect compiler show` and `gcc-config -c`

Thanks.
Comment 6 Markus Ullmann (RETIRED) gentoo-dev 2007-02-01 19:18:20 UTC
Fixed in CVS thanks for the nice patch :)