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

macOS 12 Beta fatal error #33

Open
adamyonk opened this issue Jun 8, 2021 · 7 comments
Open

macOS 12 Beta fatal error #33

adamyonk opened this issue Jun 8, 2021 · 7 comments

Comments

@adamyonk
Copy link

adamyonk commented Jun 8, 2021

Testing on the macOS Beta results in:

 ➜ sga-guard -V
fatal error: runtime: bsdthread_register error

runtime stack:
runtime.throw(0x12ac359, 0x21)
        /usr/local/go/src/runtime/panic.go:596 +0x95 fp=0x5456750 sp=0x5456730
runtime.goenvs()
        /usr/local/go/src/runtime/os_darwin.go:108 +0xa0 fp=0x5456780 sp=0x5456750
runtime.schedinit()
        /usr/local/go/src/runtime/proc.go:486 +0xa1 fp=0x54567c0 sp=0x5456780
runtime.rt0_go(0x54567f0, 0x4, 0x54567f0, 0x1000000, 0x4, 0x5456bf8, 0x5456c06, 0x5456c1e, 0x5456c36, 0x0, ...)
        /usr/local/go/src/runtime/asm_amd64.s:158 +0x183 fp=0x54567c8 sp=0x54567c0

This is guardian agent installed via homebrew.

@dimakogan
Copy link
Collaborator

Thanks for reporting this! Unfortunately I don't have access to a macOS system. Would you mind checking if building from source works?

@adamyonk
Copy link
Author

adamyonk commented Jun 11, 2021

@dimakogan sorry for the delay! Can confirm that installing directly:

go get github.com/StanfordSNR/guardian-agent/...
cd $GOPATH/src/github.com/StanfordSNR/guardian-agent
./scripts/sga-guard <host>

does work as expected.

@dimakogan
Copy link
Collaborator

Thanks for checking!
There have been barely any changes between the release used by brew and HEAD, so perhaps the difference is due to the fact that the release used by brew was compiled using an older go version.
I will build a new release and send a pull request to the person that maintains the brew tap.

Thanks for raising this issue!

@jBRNDnl
Copy link

jBRNDnl commented Oct 25, 2021

Dima, is there perhaps an update on the rebuild release on brew? The release of macOS Monterey will happen soon and it is not possible to use guardian-agent on macOS on this release now.

@dancrossnyc
Copy link

Sadly, this guardian-agent appears to have fallen into disrepair and no longer builds with recent Go versions and libraries, let alone on macOS.

I understand this was the product of an academic project that has been completed, but is there any plan for ongoing maintenance?

@yihongang
Copy link

The building from source instructions worked for me on macOS Monterey with go1.15.15

@defulmere
Copy link

@dancrossnyc to get this working on macOS Monterey (on a M1 system) with go1.18.1 from homebrew I had to build like this:

export GOPATH=$HOME/go
mkdir -p $GOPATH/{bin,pkg,src}
GO111MODULE=off go get github.com/StanfordSNR/guardian-agent/...

# copy these out to a location on PATH
# $GOPATH/bin/{sga-guard-bin,sga-ssh,sga-stub}
# $GOPATH/src/github.com/StanfordSNR/guardian-agent/scripts/{sga-guard,sga-env.sh}

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

No branches or pull requests

6 participants