Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 144526 - arpping misses a signal for timeout causing latest /etc/init.d/net.* scripts to hang
Summary: arpping misses a signal for timeout causing latest /etc/init.d/net.* scripts ...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 144525 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-08-20 07:17 UTC by erik quanstrom
Modified: 2008-01-24 20:12 UTC (History)
1 user (show)

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


Attachments
new arping.c (arping.c,11.61 KB, text/plain)
2006-08-20 07:21 UTC, erik quanstrom
Details
arping diff -u (arping.diff,9.43 KB, patch)
2006-08-20 17:23 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:17:15 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:21:05 UTC
Created attachment 94696 [details]
new arping.c

this is a replacement rather than a patch because the code needed to be reorganized to use select.
Comment 2 erik quanstrom 2006-08-20 07:29:49 UTC
the exact location of the initscripts hangis /lib/rcscripts/net/arping.sh:68

[...]
    68		if [[-x /sbin/arping ]] ; then
    69			foundmac=$(arping -c 2 -w "${w}" -D -f -I "${iface}" \
    70				"${ip}" 2>/dev/null \
    71				| sed -n 's/.*\[\([^]]*\)\].*/\U\1/p')
    72		elif [[ -x /usr/sbin/arping2 ]] ; then
[...]

in my case, w=3, iface=eth0, ip=192.168.0.4 where eth0 is

02:0b.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)

using driver 8139too.o on 2.6.17-gentoo-r4.

Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-08-20 08:29:48 UTC
*** Bug 144525 has been marked as a duplicate of this bug. ***
Comment 4 SpanKY gentoo-dev 2006-08-20 14:07:26 UTC
Comment on attachment 94696 [details]
new arping.c

post a `diff -u`, not the complete file
Comment 5 erik quanstrom 2006-08-20 17:23:05 UTC
Created attachment 94734 [details, diff]
arping diff -u
Comment 6 Michaelian Ennis 2008-01-24 20:12:20 UTC
I've mentioned this issue in the net-dev list.  That is probably where it should be addressed.