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

runtime: cgocall "Attempted to use unknown class" on darwin/amd64 #50079

Closed
uptycs-rgoel opened this issue Dec 9, 2021 · 5 comments
Closed
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@uptycs-rgoel
Copy link

uptycs-rgoel commented Dec 9, 2021

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

$ go version
go version go1.17.5 darwin/amd64

Does this issue reproduce with the latest release?

Yes. I updated mac book pro (intel) yesterday to macOs Monterey and this issue started coming. I did not take backup, so I have to reset everything again. 2-3 days will go in it :(
I should have waited for 12.1 release. Also I though google is on top of things, so I did not expect this problem since Monterey was released long back.

Anyway, whatever happened, happened. Please provide solution ASAP.

What operating system and processor architecture are you using (go env)?

go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/rgoel/Library/Caches/go-build"
GOENV="/Users/rgoel/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/rgoel/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/rgoel/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.17.5"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/rgoel/gitlocal/uptycs-cloudquery/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/z3/jrxgd4k547g8rg3lhdh3gss80000gn/T/go-build192539296=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

Just upgraded my mac from Big Sur to the 12.0.1
My Mac conf:
MacBook Pro (15-inch, 2018)
6 core / 32 gb ram
Radeon Pro 560X 4 GB

I think it is a problem with cgo library which might be using dependencies from old mac version.

What did you expect to see?

make for our project successful

What did you see instead?

objc[1536]: Attempt to use unknown class 0x7ff8512fd360.
SIGABRT: abort
PC=0x7ff80fac9dfe m=0 sigcode=0
signal arrived during cgo execution
Terminal Saved Output-make-failing.log

@davecheney
Copy link
Contributor

How can someone reproduce your issue so they can investigate the cause?

@seankhliao
Copy link
Member

what does make do?

@seankhliao seankhliao added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Dec 9, 2021
@mdlayher mdlayher changed the title affected/package: go version go1.17.5 darwin/amd64 runtime: cgocall "Attempted to use unknown class" on darwin/amd64 Dec 9, 2021
@cherrymui
Copy link
Member

Maybe a dup of #49138 . Are use running with the race detector? Thanks.

@wvell
Copy link

wvell commented Jan 4, 2022

@uptycs-rgoel do you still have this problem when using gotip? Using gotip works for me.

@gopherbot
Copy link

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)

@golang golang locked and limited conversation to collaborators Jan 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

6 participants