guardian-agent icon indicating copy to clipboard operation
guardian-agent copied to clipboard

macOS 12 Beta fatal error

Open adamyonk opened this issue 4 years ago • 7 comments

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.

adamyonk avatar Jun 08 '21 19:06 adamyonk

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

dimakogan avatar Jun 08 '21 23:06 dimakogan

@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.

adamyonk avatar Jun 11 '21 14:06 adamyonk

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!

dimakogan avatar Jun 11 '21 16:06 dimakogan

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.

jBRNDnl avatar Oct 25 '21 15:10 jBRNDnl

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?

dancrossnyc avatar Dec 07 '21 15:12 dancrossnyc

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

yihongang avatar Mar 04 '22 11:03 yihongang

@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}

defulmere avatar May 10 '22 16:05 defulmere