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

OpenBSD: (*Mem).Get() returns zero with no error #72

Open
knz opened this issue May 10, 2017 · 4 comments
Open

OpenBSD: (*Mem).Get() returns zero with no error #72

knz opened this issue May 10, 2017 · 4 comments
Labels

Comments

@knz
Copy link

knz commented May 10, 2017

Reported in cockroachdb/cockroach#15836

Using 64-bit OpenBSD
CockroachDB calls (*Mem).Get() and that returns zero with a nil error. The zero value is incorrect; an error should be returned instead.

@knz
Copy link
Author

knz commented May 10, 2017

cc @jasperla

@andrewkroh andrewkroh added the bug label May 10, 2017
@jasperla
Copy link

Ack, I'll investigate this weekend.

knz added a commit to knz/cockroach that referenced this issue May 12, 2017
If gosigar is told by a syscall there is 0 available memory, consider
this information as false even if there was no error.

Upstream issue: elastic/gosigar#72
mberhault pushed a commit to cockroachdb/cockroach that referenced this issue May 15, 2017
… by gosigar

If gosigar is told by a syscall there is 0 available memory, consider
this information as false even if there was no error.

Upstream issue: elastic/gosigar#72
mberhault pushed a commit to cockroachdb/cockroach that referenced this issue May 15, 2017
If gosigar is told by a syscall there is 0 available memory, consider
this information as false even if there was no error.

Upstream issue: elastic/gosigar#72
@jasperla
Copy link

The issue was due to the fact that the underlying kernel structure changed and suddenly we reported 0 npages in use. It didn't fail to retrieve the data, it merely got the wrong data back. I've submitted a fix and some hardening against this type of situation.

@gballet
Copy link

gballet commented Dec 2, 2019

Also submitted a fix in #125

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

No branches or pull requests

4 participants