-
Notifications
You must be signed in to change notification settings - Fork 78
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
panic on FileSystemList.Get #166
Comments
This issue is related to present docker volumes in OS. When docker is turned off (service docker stop) then cockroach starts fine. |
This issue causes our graylog-sidecars to restart on build systems:
|
From what i can understand in the go code (my go is very minimal): err := readFile(getMountTableFileName(), func(line string) bool {
fields := strings.Fields(line)
... uses func readFile(file string, handler func(string) bool) error {
contents, err := ioutil.ReadFile(file)
if err != nil {
return err
}
reader := bufio.NewReader(bytes.NewBuffer(contents))
for {
line, _, err := reader.ReadLine()
if err == io.EOF {
... to read /etc/mtab https://pkg.go.dev/bufio#Reader.ReadLine states
The code calling ReadLine seems to discard isPrefix and on long lines is then surprised when the next line is a continuation of the last line (possibly containing less than 4 fields) |
If an entry in the mount table file doesn't have the options defined, then FileSystemList.Get can panic as shown.
The text was updated successfully, but these errors were encountered: