-
Notifications
You must be signed in to change notification settings - Fork 670
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
Support OpenBSD/adJ #2782
Comments
Hi! Thanks for the detailed post.
Yes. See: https://github.com/ava-labs/avalanchego/blob/master/SECURITY.md
I'm not aware of any grant programs for this.
We are yet to expand our supported platforms. If there is sufficient demand for the level of effort then I think it's reasonable. If all that OpenBSD takes to support is supporting the disk usage method and updating pebble (which we'll want to do anyways once coreth updates) then I'm very willing to do that.
Please feel free to open a PR for this. |
@StephenButtolph I wanted to inform:
|
@StephenButtolph I wanted to inform:
|
@StephenButtolph I see something called Avalanche Community Grants Program open now at https://forum.avax.network/c/avalanche-grants/11 Do you recommend me to apply with the open source porting of several ava-labs tools to OpenBSD/adJ? |
Blessings @StephenButtolph and community, since the effort of porting to OpenBSD has brought improvements in security I wanted you to notice that I applied for funding in the "Avalanche Community Grants Quadratic Funding Round One" to do a deeper audit of the sources of the fundamental tools of Avalanche, complete the porting and test more fully. Could you please vote for the project at: https://explorer.gitcoin.co/#/round/43114/4/28 ? |
Thanks to God, Avalanche Foundation and donors I received some funding to keep auditing and porting, see https://forum.avax.network/t/announcing-round-1-results/2376 Today, building the % ./scripts/build_test.sh
...
ok github.com/ava-labs/avalanchego/snow/networking/benchlist 0.403s coverage: 10.5% of statements
ok github.com/ava-labs/avalanchego/snow/networking/handler 0.096s coverage: 17.3% of statements
github.com/ava-labs/avalanchego/snow/snowtest coverage: 0.0% of statements
# github.com/ava-labs/avalanchego/tests/fixture/tmpnet
tests/fixture/tmpnet/node_process.go:118:2: undefined: configureDetachedProcess
FAIL github.com/ava-labs/avalanchego/tests/antithesis [build failed]
FAIL github.com/ava-labs/avalanchego/tests/antithesis/avalanchego/gencomposeconfig [build failed]
FAIL github.com/ava-labs/avalanchego/tests/antithesis/avalanchego [build failed]
github.com/ava-labs/avalanchego/tests coverage: 0.0% of statements
FAIL github.com/ava-labs/avalanchego/tests/antithesis/xsvm [build failed]
FAIL github.com/ava-labs/avalanchego/tests/antithesis/xsvm/gencomposeconfig [build failed]
FAIL github.com/ava-labs/avalanchego/tests/fixture/e2e [build failed]
FAIL github.com/ava-labs/avalanchego/tests/fixture/tmpnet [build failed]
FAIL github.com/ava-labs/avalanchego/tests/fixture/tmpnet/cmd [build failed]
FAIL github.com/ava-labs/avalanchego/tests/fixture/subnet [build failed]
github.com/ava-labs/avalanchego/trace coverage: 0.0% of statements
github.com/ava-labs/avalanchego/utils/formatting/address coverage: 0.0% of statements
github.com/ava-labs/avalanchego/utils/hashing coverage: 0.0% of statements
ok github.com/ava-labs/avalanchego/snow/networking/router 6.727s coverage: 13.5% of statements
ok github.com/ava-labs/avalanchego/snow/networking/sender 0.233s coverage: 16.3% of statements
... I noticed that the issue is with the recent file --- a/tests/fixture/tmpnet/detached_process_default.go
+++ b/tests/fixture/tmpnet/detached_process_default.go
@@ -1,7 +1,7 @@
// Copyright (C) 2019-2024, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
-//go:build linux || darwin
+//go:build linux || darwin || unix That is why I'm adding this change to the PR #2809 |
This issue has become stale because it has been open 60 days with no activity. Adding the |
After merging #2809 (thank you @StephenButtolph ), what is missing to support OpenBSD/adJ fully is:
|
Context and scope
I was following the Subnet architecture course that required installing
avalanche-cli
, then I tried to do it on my platform that is OpenBSD/adJ 7.4 but it didn't work.After some experiments that I described at ava-labs/avalanche-cli#1498 I was told by @arturrez to open this request here.
Discussion and alternatives
I was able to generate
build/avalanchego
by:utils/storage
as described by this commit vtamara@07de44d explained by syscall: Statfs_t on OpenBSD with f_ golang/go#47958vfs/disk_usage_openbsd.go
andvfs/disk_usage_unix.go
described at cockroachdb/pebble@v1.0.0...v1.1.0#diff-e80071db294208cc80f86aa6d7915a187eaa64a03a17ec7eec3a2d96bda5dbfbHowever when I runThe segmentation violation was produced by supranational/blst, I opened an issue and the author improved that library and nowbuild/avalanchego
, it produces a segmentatio violation:...build/avalanchego
runs without issue.In my humble opinion it is good for Avalanchego to:
pebble
that supports OpenBSD/adJ (greater than v1.1.0) or to fork the versionv0.0.0-20230209160836-829675f94811
currently used by Avalanchego to support more platforms, in particular to backport the support for OpenBSD added in versionv1.1.0
Reproduce and further investigate the segmentation violation produced during my experiments on OpenBSD/adJ 7.4, because one possibility is that it is pointing to an avalanchego implementation bug triggered by OpenBSD security features.Upgrade blst to version 0.3.12 as requested at Update blst to 0.3.12 #3079Open questions
The text was updated successfully, but these errors were encountered: