Front page | perl.perl5.porters |
Postings from October 2003
[perl #24194] Bad file descriptor, Error after upgrade from 5.8.0 to 5.8.1
Thread Next
From:
perlbug-followup
Date:
October 12, 2003 16:15
Subject:
[perl #24194] Bad file descriptor, Error after upgrade from 5.8.0 to 5.8.1
Message ID:
rt-24194-65974.9.93820883314541@rt.perl.org
# New Ticket Created by stefan@puce.campus.luth.se
# Please include the string: [perl #24194]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=24194 >
This is a bug report for perl from stefan@puce.campus.luth.se,
generated with the help of perlbug 1.34 running under perl v5.8.1.
<CODE>
print 'Called from '. (join ' : ', caller ). ' at line '. __LINE__." \$!: $!.\n";
my $schack = <RSnaps>;
chomp $schack;
print "In Snaps1:\$!: $!. gameStatus: $gameStatus, Schack: $schack\n";
<\CODE>
<OUTPUT>
Called from Net::Telnet : /usr/local/lib/perl5/site_perl/5.8.1/Net/Telnet.pm : 2123 at line 103 $!: Interrupted system call.
In Snaps1:$!: Bad file descriptor. gameStatus: 3, Schack: oGame over
<\OUTPUT>
The code is called from a caught $SIG{USR1} not realy from Telnet.pm but the
script is usually waiting in a Telnet::getline() when the signal arrives.
This did not happen in 5.8.0 but it does with 5.8.1.
I have _fixed_ this with:
undef $! if $! eq 'Bad file descriptor';
It dies in the Telnet module if I leave it as it is.
/Stefan Lidman
stelid-6@student.luth.se
---
Flags:
category=core
severity=low
---
Site configuration information for perl v5.8.1:
Configured by stefan at Mon Oct 6 17:01:41 CEST 2003.
Summary of my perl5 (revision 5.0 version 8 subversion 1) configuration:
Platform:
osname=linux, osvers=2.4.21-0.13mdk, archname=i686-linux
uname='linux puce.campus.luth.se 2.4.21-0.13mdk #1 fri mar 14 15:08:06 est 2003 i686 unknown unknown gnulinux '
config_args='-de'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
optimize='-O3',
cppflags='-fno-strict-aliasing -I/usr/local/include -I/usr/include/gdbm'
ccversion='', gccversion='3.3.1', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lgdbm -ldl -lm -lcrypt -lutil -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.3.1.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.3.1'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
Locally applied patches:
---
@INC for perl v5.8.1:
/usr/local/lib/perl5/5.8.1/i686-linux
/usr/local/lib/perl5/5.8.1
/usr/local/lib/perl5/site_perl/5.8.1/i686-linux
/usr/local/lib/perl5/site_perl/5.8.1
/usr/local/lib/perl5/site_perl
.
---
Environment for perl v5.8.1:
HOME=/home/stefan
LANG=en_US
LANGUAGE=en_US:en
LC_ADDRESS=sv_SE
LC_COLLATE=en_US
LC_CTYPE=en_US
LC_IDENTIFICATION=sv_SE
LC_MEASUREMENT=sv_SE
LC_MESSAGES=en_US
LC_MONETARY=sv_SE
LC_NAME=sv_SE
LC_NUMERIC=sv_SE
LC_PAPER=sv_SE
LC_TELEPHONE=sv_SE
LC_TIME=en_US
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/usr/local/bin:/bin:/usr/bin:.:/usr/X11R6/bin:.:/usr/games:/home/stefan/bin:/usr/X11R6/bin:/home/stefan/bin:/usr/X11R6/bin
PERLDOC_PAGER=less -isRF
PERL_BADLANG (unset)
SHELL=/bin/bash
Thread Next
-
[perl #24194] Bad file descriptor, Error after upgrade from 5.8.0 to 5.8.1
by perlbug-followup