develooper Front page | perl.perl5.porters | Postings from June 2004

[perl #30443] cat | perl fails!

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
June 24, 2004 06:32
Subject:
[perl #30443] cat | perl fails!
Message ID:
rt-3.0.9-30443-91308.18.7666584401696@perl.org
# New Ticket Created by  Nicholas Clark 
# Please include the string:  [perl #30443]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org:80/rt3/Ticket/Display.html?id=30443 >



This is a build failure report for perl from nick@ccl4.org,
generated with the help of perlbug 1.35 running under perl v5.8.4.


-----------------------------------------------------------------
[Please enter your report here]

PerlIO buggy:

$ cat | ./perl
cat: stdin: Resource temporarily unavailable

This is from a regular login session. I'm not sure how PerlIO manages to
confuse the tty sufficiently to mess up cat. Sometimes I have to press return
once before I get the error, so it appears to be some sort of race condition.

sed appears to suffer the same problems, but it doesn't issue an error
message. I wonder if it's buggy and doesn't check ferror() when it gets
EOF. I guess I need to install sedbug to report this. :-)

Bug also present in blead.

Nicholas Clark

[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=install
    severity=none
---
Site configuration information for perl v5.8.4:

Configured by nick at Wed Jun 23 17:02:25 BST 2004.

Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
  Platform:
    osname=freebsd, osvers=5.2.1-release-p8, archname=i386-freebsd-thread-multi
    uname='freebsd saigo.etla.org 5.2.1-release-p8 freebsd 5.2.1-release-p8 #2: thu may 27 10:31:37 bst 2004 root@saigo.etla.org:usrobjusrsrcsyssaigo i386 '
    config_args='-Dusedevel=y -Dcc=ccache gcc -Dld=gcc -Ubincompat5005 -Uinstallusrbinperl -Dcf_email=nick@ccl4.org -Dperladmin=nick@ccl4.org -Dinc_version_list=  -Dinc_version_list_init=0 -Doptimize=-g -O2 -Dusethreads=y -Uuse64bitint -Dprefix=~/Sandpit/snap5.8.x- -Dinstallman1dir=none -Dinstallman3dir=none -de'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='ccache gcc', ccflags ='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include',
    optimize='-g -O2',
    cppflags='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include'
    ccversion='', gccversion='3.3.3 [FreeBSD] 20031106', 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='gcc', ldflags ='-Wl,-E  -L/usr/local/lib'
    libpth=/usr/lib /usr/local/lib
    libs=-lm -lcrypt -lutil -lc_r
    perllibs=-lm -lcrypt -lutil -lc_r
    libc=, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-DPIC -fPIC', lddlflags='-shared  -L/usr/local/lib'

Locally applied patches:
    MAINT22869

---
@INC for perl v5.8.4:
    lib
    /home/nick/Sandpit/snap5.8.x-/lib/perl5/5.8.4/i386-freebsd-thread-multi
    /home/nick/Sandpit/snap5.8.x-/lib/perl5/5.8.4
    /home/nick/Sandpit/snap5.8.x-/lib/perl5/site_perl/5.8.4/i386-freebsd-thread-multi
    /home/nick/Sandpit/snap5.8.x-/lib/perl5/site_perl/5.8.4
    /home/nick/Sandpit/snap5.8.x-/lib/perl5/site_perl
    .

---
Environment for perl v5.8.4:
    HOME=/home/nick
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/nick/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/home/nick/bin:/usr/local/sbin:/sbin:/usr/sbin
    PERL_BADLANG (unset)
    SHELL=/usr/local/bin/bash


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About