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

=?UTF-8?B?W3BlcmwgIzEyNTQ2NV0gc2h1dGRvd24oKSBkb2VzbuKAmXQgZXJyb3Igd2hl?= =?UTF-8?B?biBzb2NrZXQgaXMgYWxyZWFkeSBjbG9zZWQ=?=

Thread Previous
From:
felipe @ felipegasper . com
Date:
June 23, 2015 15:08
Subject:
=?UTF-8?B?W3BlcmwgIzEyNTQ2NV0gc2h1dGRvd24oKSBkb2VzbuKAmXQgZXJyb3Igd2hl?= =?UTF-8?B?biBzb2NrZXQgaXMgYWxyZWFkeSBjbG9zZWQ=?=
Message ID:
rt-4.0.18-26946-1435072124-31.125465-75-0@perl.org
# New Ticket Created by  felipe@felipegasper.com 
# Please include the string:  [perl #125465]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=125465 >


This is a bug report for perl from felipe@felipegasper.com,
generated with the help of perlbug 1.40 running under perl 5.20.0.


-----------------------------------------------------------------
[Please describe your issue here]

Perl's shutdown() command indicates an error in most OSes, but
I find that, in NetBSD, it doesn't:

-------------
#!/usr/bin/env perl

use strict;
use warnings;
use autodie;

use Socket;

socketpair( my $skt1, my $skt2, &Socket::PF_UNIX, &Socket::SOCK_STREAM, &Socket::PF_UNSPEC );

shutdown( $skt1, &Socket::SHUT_WR );
print "ok$/";

shutdown( $skt1, &Socket::SHUT_WR );
print "ok 2$/";
------------

The above script errors at the second shutdown() in most OSes
but finishes without error in NetBSD.

It seems Perl should be consistent .. but I am unsure of whether this is
just a difference between the two platforms.

(Found while testing IO::Die)

[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=low
---
Site configuration information for perl 5.20.0:

Configured by smj at Sun Oct  5 19:43:12 UTC 2014.

Summary of my perl5 (revision 5 version 20 subversion 0) configuration:
   
  Platform:
    osname=netbsd, osvers=6.1_stable, archname=x86_64-netbsd-thread-multi
    uname='netbsd bjork 6.1_stable netbsd 6.1_stable (generic) #0: fri aug 30 02:42:57 jst 2013 msaitoh@amd64.execsw.org:varsourcesnetbsd-6srcsysarchamd64compilegeneric amd64 '
    config_args='-sde -Duseshrplib -Duseithreads -Uusemymalloc'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-O2 -pthread -I/usr/include -fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/pkg/include',
    optimize='-O2  -pthread  -I/usr/include',
    cppflags='-O2 -pthread -I/usr/include -fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/pkg/include'
    ccversion='', gccversion='4.5.3', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags ='-Wl,-rpath,/usr/pkg/lib -fstack-protector -L/usr/pkg/lib'
    libpth=/lib /usr/lib /usr/local/lib /usr/pkg/lib
    libs=-lm -lcrypt -lpthread
    perllibs=-lm -lcrypt -lpthread
    libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E  -Wl,-R/usr/pkg/lib/perl5/5.20.0/x86_64-netbsd-thread-multi/CORE'
    cccdlflags='-DPIC -fPIC ', lddlflags='-shared  -L/usr/local/lib -L/usr/pkg/lib -fstack-protector'


---
@INC for perl 5.20.0:
    /arpa/af/f/fgasper/.opt/lib/perl5/x86_64-netbsd-thread-multi
    /arpa/af/f/fgasper/.opt/lib/perl5
    /usr/pkg/lib/perl5/site_perl/5.20.0/x86_64-netbsd-thread-multi
    /usr/pkg/lib/perl5/site_perl/5.20.0
    /usr/pkg/lib/perl5/vendor_perl/5.20.0/x86_64-netbsd-thread-multi
    /usr/pkg/lib/perl5/vendor_perl/5.20.0
    /usr/pkg/lib/perl5/5.20.0/x86_64-netbsd-thread-multi
    /usr/pkg/lib/perl5/5.20.0
    .

---
Environment for perl 5.20.0:
    HOME=/arpa/af/f/fgasper
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH=/usr/pkg/lib
    LOGDIR (unset)
    PATH=/arpa/af/f/fgasper/.opt/bin:/usr/local/bin:/usr/pkg/bin:/bin:/usr/bin:/usr/pkg/games:/usr/pkg/X11R7/bin
    PERL5LIB=/arpa/af/f/fgasper/.opt/lib/perl5
    PERL_BADLANG (unset)
    SHELL=/usr/pkg/bin/tcsh


Thread Previous


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