-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
readline
sometimes produces lines with \r
in them
#45992
Comments
Do you set |
Thanks for looking into this! I do have |
Can you open a PR to add a failing test case to |
Failing test added: #46075 |
PR-URL: #46075 Refs: #45992 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
Interestingly, it "just" works if the input file has 0x3333 lines, but fails as soon as it has 0x3334 or more. I'm investigating. The lines are each 5-byte long in the test case, and By using EDIT: I've simplified the test case to be minimal, and opened #46306 with a fix. |
Fixes: #45992 PR-URL: #46306 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]>
PR-URL: #46075 Refs: #45992 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
Fixes: #45992 PR-URL: #46306 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]>
PR-URL: #46075 Refs: #45992 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
Fixes: #45992 PR-URL: #46306 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]>
PR-URL: #46075 Refs: #45992 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
Fixes: #45992 PR-URL: #46306 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]>
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:
The lines are
\r\n
-delimited. Could be caused by #45614? Not sure why only a couple of lines get affected.The text was updated successfully, but these errors were encountered: