Skip to content

readline sometimes produces lines with \r in them #45992

Closed
@alecmev

Description

@alecmev

Version

19.3.0

Platform

6.1.1-arch1-1 x86_64 GNU/Linux

Subsystem

readline

What steps will reproduce the bug?

Unfortunately, the files readline has trouble with are proprietary and I can't share them. I have some ideas on how to craft one, but it would take some time, so I'd like to see first if it will be needed at all.

How often does it reproduce? Is there a required condition?

Consistently. Isn't present in 19.2.0 and earlier.

What is the expected behavior?

No \r in any of the lines.

What do you see instead?

Some of the files (not all) produce 1-3 lines with an \r in it. In one file it happens 21870 lines in (109243 preceding characters), in another 75432, in another 120396. I see no pattern, but it's deterministic.

Additional information

Here are a few lines from one of the files:

  0
VERTEX
  8
14
 10
22.0936
 20
12.9141
  0
VERTEX
  8
14
 10
22.8017
 20
12.4141
  0
VERTEX
  8
14
 10
23.6255
 20
11.9128
  0

The lines are \r\n-delimited. Could be caused by #45614? Not sure why only a couple of lines get affected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    readlineIssues and PRs related to the built-in readline module.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions