Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25883 - Emerging Perl-5.8.0-rc12 dies at ext/IO/lib/IO/t/io_sock during perl TEST
Summary: Emerging Perl-5.8.0-rc12 dies at ext/IO/lib/IO/t/io_sock during perl TEST
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
: 33695 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-08-04 10:03 UTC by poeir.geo
Modified: 2004-05-11 13:08 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description poeir.geo 2003-08-04 10:03:15 UTC
When attempting to emerge -u perl, emerge perl, or emerge -u world, Perl's
ebuild results in "ext/IO/lib/IO/t/io_sock..............Died at
../ext/IO/lib/IO/t/io_sock.t line 35, <GEN5> line 2."  Line 35 is the commented one,
"eval {
    $SIG{ALRM} = sub { die; }; # Line 35
    alarm 120;
};"

Attempting changing arch=~x86 does not provide a more recent version of Perl. 
I'm not discounting the possibility that there's something I should have changed
and haven't, but a Google and Bugzilla search has only resulted in finding the
same source code that I already had.  It's possible this is related to bug
#24991, but there's not enough detail there for me to determine if that's the
case.  This also occurs using 5.8.1-rc2

I'm not sure if this will be necessary, but it can't hurt to include.  This is
on an AMD Athlon. 

Reproducible: Always
Steps to Reproduce:
1.  Attempt to emerge [-u] perl, or emerge perl as a consequence of emerging
another program
Actual Results:  
This is identical to a portion of "details."

"ext/IO/lib/IO/t/io_sock..............Died at ../ext/IO/lib/IO/t/io_sock.t line
35, <GEN5> line 2."  is printed; line 35 is the commented one
"eval {
    $SIG{ALRM} = sub { die; };  # Line 35
    alarm 120;
};"

Expected Results:  
The check should have been routine, resulting in "ok" for io_sock.t.

This is on an AMD Athlon system.  perl --version results in "This is perl,
v5.8.0 built for i686-linux"

emerge info:

Portage 2.0.48-r5 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-gentoo-r5 i686 AMD Athlon(tm) Processor
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="apm encode foomaticdb gnome libg++ mad mikmod mpeg ncurses nls spell xml2
xmms xv zlib gtkhtml gdbm berkdb slang readline arts aalib bonobo svga ggi tcltk
guile mysql sdl gpm tcpd pam libwww ssl imlib gtk motif X kde qt cups 3dnow avi
cdr crypt dvd esd gif ipv6 java jpeg junit mozilla mmx oggvorbis opengl oss
pdflib perl png python quicktime tetex tiff truetype usb x86"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=athlon -O3 -pipe -fomit-frame-pointer -m3dnow"
CXXFLAGS="-mcpu=athlon -O3 -pipe -fomit-frame-pointer -m3dnow"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 poeir.geo 2003-08-06 14:03:11 UTC
I altered part of the code to read "local $SIG{ALARM}" instead of just "$SIG{ALRM}" and found that it was outputingg "Failed at test 12."  I haven't yet figured out what test 12 actually is, as 12 is a counter which makes reference to several variables in different places.

The only thing I could turn up through a Google search was attempting to recompile gcc or glibc (different pages said different things).  I tried reemerging both, but that got the same result, as did emerge -e world.
Comment 2 Robert Coie (RETIRED) gentoo-dev 2003-08-13 10:56:13 UTC
Test 12 in io_sock seems to be sending UDP packets to localhost.  Do you have
iptables installed, or is there some reason why UDP packets would not be sendable
to 127.0.0.1?
Comment 3 poeir.geo 2003-08-20 09:44:01 UTC
IP tables was not installed.  Not sure about having been unable to send or receive UDP packets.  Ultimately, I wound up reinstalling because too many things depended on Perl.
Comment 4 Robert Coie (RETIRED) gentoo-dev 2003-08-22 15:27:06 UTC
This is a shot in the dark, but can anybody affected with this problem check
and/or enable the real-time clock in their kernel?
Comment 5 Austin Frank 2003-11-13 08:09:43 UTC
I also have a similar problem.  I also have an athlon.  I _do_ have rtc enabled.  I _do_ have iptables built as a module, but don't believe I have any services started that have loaded the module.

valinor src # emerge -DU world
[...]
ext/IO/t/io_poll.....................ok
ext/IO/t/io_sel......................ok
ext/IO/t/io_sock.....................accept failed: Connection timed out at ../ext/IO/t/io_sock.t line 63.

(at this point it hangs and I cancel out of the emerge)
_________________

valinor src # emerge info
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r8, 2.6.0-test9-mm1)
=================================================================
System uname: 2.6.0-test9-mm1 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.4.3.11
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=athlon -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/ http://adelie.polymtl.ca/ http://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod mpeg ncurses pdflib png quicktime spell truetype xml2 xmms xv zlib directfb alsa gdbm berkdb slang readline tetex aalib svga java mysql postgres X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gtk qt motif opengl 3dnow apache2 athena cdr curl dga doc dvd emacs ethereal fbcon gd glut gmtfull gmthigh gmtsuppl gmttria gphoto2 gtk2 imagemagick innodb javascript lcms lua mcal moznocompose moznoirc moznomail oav objc odbc offensive pic plotutils samba sasl slp tiff unicode usb vim-with-x wmf wxwindows Xaw3d -arts -kde -gnome -nls"
________________

valinor src # zgrep RTC /proc/config.gz 
# CONFIG_HPET_EMULATE_RTC is not set
CONFIG_RTC=y
CONFIG_SND_RTCTIMER=m
________________

valinor src # zgrep IPTABLE /proc/config.gz 
CONFIG_IP_NF_IPTABLES=m
________________

valinor src # lsmod  
Module                  Size  Used by
nvidia               1701100  10 
snd_emu10k1            90564  3 
snd_util_mem            3520  1 snd_emu10k1
snd_hwdep               7584  1 snd_emu10k1
snd_ac97_codec         51460  1 snd_emu10k1
snd_rawmidi            20704  1 snd_emu10k1
snd_seq_device          6920  2 snd_emu10k1,snd_rawmidi
snd_pcm                87396  2 snd_emu10k1
snd_page_alloc          9220  2 snd_emu10k1,snd_pcm
snd_timer              22148  1 snd_pcm
snd                    46052  13 snd_emu10k1,snd_util_mem,snd_hwdep,snd_ac97_codec,snd_rawmidi,snd_seq_device,snd_pcm,snd_timer
soundcore               7040  1 snd
sd_mod                 11552  0 
sg                     29976  0 
ide_scsi               12096  0 
hostap                100296  0 
tulip                  43168  0 
crc32                   3840  1 tulip
ide_cd                 36868  1 
sr_mod                 12900  0 
cdrom                  32672  2 ide_cd,sr_mod
Comment 6 Robert Coie (RETIRED) gentoo-dev 2003-11-26 14:51:11 UTC
*** Bug 33695 has been marked as a duplicate of this bug. ***
Comment 7 Michael Cummings (RETIRED) gentoo-dev 2004-02-27 06:49:15 UTC
Please reopen this bug if it is still persisting in perl 5.8.2, which is the only unmasked perl in the tree now. That, and it's been many months since any activity and I'm cleaning up today :)
Comment 8 Sebastian 2004-04-25 06:56:46 UTC
I am just doing a stage 1 on my router and I ran into this problem, too (2004.0 live cd). I could get around setting up my /etc/hosts file (127.0.0.1 localhost). This is at least not mentioned in the x86 Quick install doc, I don't know about the other guides. Maybe there should be a default host file in the stage1 tarball?

cu
Sebastian
Comment 9 ben calvert 2004-04-29 01:44:45 UTC
got the same thing on a brand new 2004.1 ebuild... was also able to fix by entering something in /etc/hosts. perhaps we need a simple /etc/hosts in the stage1 tarball?
Comment 10 Gregg Casillo 2004-05-11 13:08:01 UTC
Same for me. 2004.1 installing perl-5.8.4. Creating a simple /etc/hosts file fixed the problem.