Skip to content

Some lines missing when execing with a tty #1838

@EmilyShepherd

Description

@EmilyShepherd

When exec'ing into a container with "terminal": true some lines do not display properly in a few circumstances.

A bisect suggests that this behaviour appeared in 8b972be.

Compilation Details

Dynamically linked against musl. Behaviour observed from musl v1.2.3 and v1.2.5.

> /tmp/crun --version
crun version 1.21
commit: 10269840aa07fb7e6b7e1acff6198692d8ff5c88
rundir: /run/crun
spec: 1.0.0
+SELINUX +APPARMOR +CAP +SECCOMP +EBPF +YAJL

Examples

Control

In this example, all lines will display as expected:

> cat etc/protocols | while read line; do echo $line; done;

# Internet (IP) protocols
#
# Updated from http://www.iana.org/assignments/protocol-numbers and other
# sources.
...

Standard Cat

In this example, the output will appear truncated, seemingly at random. On some runs all lines will show, on others only a subset, as if "tail" or similar had been used:

> cat etc/protocols
class 4 [RFC905]
dccp	33	DCCP		# Datagram Congestion Control Prot. [RFC4340]
xtp	36	XTP		# Xpress Transfer Protocol
...

Less / Vim

In interactive shell programs, some lines may appear missing, lines appear jumbled and overriding each other. Editing a line causes it to "refresh" with the correct value.

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