Skip to content

Spooky action-at-a-distance #179

@FGasper

Description

@FGasper

The following hangs:

> perl -Mstrict -Mwarnings -MSocket -e'use Test::MockFile; socketpair my $r, my $w, AF_UNIX, SOCK_STREAM, 0; my $fd = fileno $w; do { open my $w2, "<&=", $fd; -S $w2 }; close $w; <$r>'

… but without T::MF it finishes.

Also if you remove the -S $w2, or if you `stat "===" after it, the program will finish.

I suspect it has to do with the Overload::FileCheck::mock_stat() call; there’s probably a reference to the passed filehandle being kept around.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions