Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 144525 - arpping doesn't honour timeouts causing latest /etc/init.d/net.* scripts to hang.
Summary: arpping doesn't honour timeouts causing latest /etc/init.d/net.* scripts to h...
Status: VERIFIED DUPLICATE of bug 144526
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-20 07:00 UTC by erik quanstrom
Modified: 2006-08-20 08:30 UTC (History)
0 users

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


Attachments
arpping.c for iputils-021109-r3 with select replacing signals. (arping.c,11.61 KB, patch)
2006-08-20 07:16 UTC, erik quanstrom
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description erik quanstrom 2006-08-20 07:00:44 UTC
arpping -w $timeout $ipaddress
never finishes and the network is never configured.

# emerge --info
Portage 2.1-r2 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.17-gentoo-r4ewq i686)
=================================================================
System uname: 2.6.17-gentoo-r4ewq i686 Pentium III (Coppermine)
Gentoo Base System version 1.12.4
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
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-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /lib/rcscripts/addons /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/lib/portage /usr/share/X11/xkb /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/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig confcache distcc distlocks metadata-transfer nostrip sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=1800"
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 X acpi adns alsa apache2 apm arts avi berkdb bitmap-fonts blas browserplugin bzip2 bzlib cairo cdparanoia cdr cli crypt cups curl divx4linux dlloader dri dts dvd dvdr dvdread eds emboss encode esd foomaticdb fortran gdbm gif glut gnome gpm gstreamer gtk gtk2 imlib ipv6 isdnlog java jpeg kde lapack libcaca libg++ libwww mad mhash mikmod mmap mmx motif mozilla mozsvg mp3 mpeg ncurses nls nptl nvidia offensive ogg opengl oss pam pam_console pcre pdflib perl png pppd profile python qt3 qt4 quicktime readline real reflection rtc sdl session spell spl sse ssl theora tiff truetype truetype-fonts type1-fonts udev unicode usb vorbis xanim xml xmms xorg xpm xv xvid xvmc zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_nvidia video_cards_vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
Comment 1 erik quanstrom 2006-08-20 07:16:42 UTC
Created attachment 94695 [details, diff]
arpping.c for iputils-021109-r3 with select replacing signals.

this is a replacement for arpping.c rather than a patch because the changes were pretty extensive.  the changes, however, boil down to replacing signals
with select to implement timeouts.  this should be more reliable and more resistant to c library changes, operating system and the like.

one gotcha.  the manual says that arpping -c 1 quits after sending a single
packet.  i think it's a little strange, but that is what the man page says.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-08-20 08:29:48 UTC

*** This bug has been marked as a duplicate of 144526 ***
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-08-20 08:30:30 UTC
Dupe...