Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re^2: ActivePerl socket crashes on Checked Build Windows

by raandom (Acolyte)
on Jun 09, 2013 at 18:42 UTC ( #1037946=note: print w/replies, xml ) Need Help??

in reply to Re: ActivePerl socket crashes on Checked Build Windows
in thread ActivePerl socket crashes on Checked Build Windows

Thanks for advise: I will repair confusing syntax in my code. But it won't help. Even this code crashes:
use strict; use Socket; socket(my $socket, PF_INET, SOCK_STREAM, 0) or die "socket: $!"; # crashes here: close($socket);
I wrote to ActiveState support. Will see what they say.

Replies are listed 'Best First'.
Re^3: ActivePerl socket crashes on Checked Build Windows
by syphilis (Chancellor) on Jun 10, 2013 at 09:20 UTC
    I couldn't reproduce any problem with that code and any of my ActivePerl installations.
    I tried both 32-bit and 64-bit versions of build 1600 (perl-5.16.0), build 1200 (perl-5.12.0) and build 1005 (perl-5.10.0).
    And that (second lot of) code you provided ran silently and successfully.

    What do you get when you run:
    perl -MSocket -e "print $Socket::VERSION;"
      Socket version is 1.94. The thing is to run Perl under AppVerifier or on Checked Build Windows.

      ActiveState pointed on confusing syntax and said: "...Behavior on a socket crash then depends on how the perlio library was compiled. ActivePerl binaries are built with MSoft compilers (On Win64, we use the 2003 SDK toolchain). Strawberry binaries are built with different options and with MinGW compilers, so Strawberry does behave a bit differently, even though the code in both versions is the same.
      ...ActivePerl 5.18 for Win64 will be a departure from our current compiler practice, as it is the first ActivePerl to be switched to MinGW 64 (and that is one of the main reasons why there have been delays in getting 5.18 released)..."

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1037946]
[choroba]: Do you mean nettop?

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2018-04-20 19:25 GMT
Find Nodes?
    Voting Booth?