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

BUG: constant 4294967295 overflows int on certain platforms (Badger V2 effected, Badger V1 OK) #1142

Closed
bonedaddy opened this issue Nov 29, 2019 · 1 comment

Comments

@bonedaddy
Copy link

What version of Go are you using (go version)?

go version: 1.13.4 

What version of Badger are you using?

v2.0.0

Does this issue reproduce with the latest master?

yes

What are the hardware specifications of the machine (RAM, OS, Disk)?

unsure, this error occurs in travis ci

What did you do?

build my backend service against certain 32bit, and linux based platforms.

What did you expect to see?

Builds to complete

What did you see instead?

Builds fail due to uint overflow

Problem Description

I'm currently unable to build dgraph-io/badger/v2 against 32-bit linux, and arm based platforms, when using badger v2. However the problem does not occur on badger v1.

Error Logs

--> freebsd/arm error: exit status 2
Stderr: # github.com/dgraph-io/badger/v2/table
../../../../pkg/mod/github.com/dgraph-io/badger/v2@v2.0.0/table/table.go:435:19: constant 4294967295 overflows int

--> openbsd/386 error: exit status 2
Stderr: # github.com/dgraph-io/badger/v2/table
../../../../pkg/mod/github.com/dgraph-io/badger/v2@v2.0.0/table/table.go:435:19: constant 4294967295 overflows int

--> linux/386 error: exit status 2
Stderr: # github.com/dgraph-io/badger/v2/table
../../../../pkg/mod/github.com/dgraph-io/badger/v2@v2.0.0/table/table.go:435:19: constant 4294967295 overflows int

--> linux/arm error: exit status 2
Stderr: # github.com/dgraph-io/badger/v2/table
../../../../pkg/mod/github.com/dgraph-io/badger/v2@v2.0.0/table/table.go:435:19: constant 4294967295 overflows int

--> freebsd/386 error: exit status 2
Stderr: # github.com/dgraph-io/badger/v2/table
../../../../pkg/mod/github.com/dgraph-io/badger/v2@v2.0.0/table/table.go:435:19: constant 4294967295 overflows int
@bonedaddy
Copy link
Author

wrong version of badger, it is fixed on master.

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

No branches or pull requests

1 participant