Skip to content
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

"Error: Invalid argument" with cat_io_uring.c #23

Open
shawndx opened this issue May 22, 2023 · 1 comment
Open

"Error: Invalid argument" with cat_io_uring.c #23

shawndx opened this issue May 22, 2023 · 1 comment

Comments

@shawndx
Copy link

shawndx commented May 22, 2023

cat_io_uring.c raises the error in case the input file is large, 1MB seems to be a threshold.

Environment:

% cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=23.10
DISTRIB_CODENAME=mantic
DISTRIB_DESCRIPTION="Ubuntu Mantic Minotaur (development branch)"

% uname -a
Linux devbox 5.10.104-linuxkit #1 SMP Thu Mar 17 17:08:06 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Reproduce:

% for i in {1..100}; do cat cat_io_uring.c >> big.c; done
% gcc -o cat cat_io_uring.c
% ./cat big.c
Error: Invalid argument
@AoMYgod
Copy link

AoMYgod commented Apr 29, 2024

I met the same problem on my computer. It feels the issue of the programe. It runs ok with my test_24KB.txt but fails with test_24MB.txt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants