Skip to content

PTY mode: Input/output error #34945

@cheack

Description

@cheack

Symfony version(s) affected: v4.4.1

Description
When I set PTY mode for process, I get the following error:

fread(): read of 8192 bytes failed with errno=5 Input/output error

OS: official ubuntu:18.04 docker image.
PHP: 7.4.0 from ondrej/php PPA:

PHP 7.4.0 (cli) (built: Nov 28 2019 07:27:06) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.0, Copyright (c), by Zend Technologies
    with Xdebug v2.8.1, Copyright (c) 2002-2019, by Derick Rethans

How to reproduce
Here is a minimal example:

$process = new Process(['echo', '123']);
$process->setPty(true);
$process->run();

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions