Skip to content

Running ripgrep gives IO and invalid argument errors #1688

Answered by BurntSushi
CrookedJ asked this question in General
Discussion options

You must be logged in to vote

Dunno, sorry. Works on my system, and ripgrep is issuing standard syscalls:

$ rg foobar mem
mem: Permission denied (os error 13)
$ sudo rg foobar mem
$ sudo rg foobar mem --no-mmap
$ sudo rg foobar mem --mmap
$

Does the same problem occur with grep?

Also, it is a really bad idea to search / with sudo. There are issues where people have tried this before. The /proc and /dev directories in particular can be tricky, where even reading a file as root and cause a state change on your system.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by BurntSushi
Comment options

You must be logged in to vote
4 replies
@BurntSushi
Comment options

@CrookedJ
Comment options

@BurntSushi
Comment options

@CrookedJ
Comment options

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