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

package that use protobuf does not run after the build and crash after 2-3seconds #906

Open
dannywynn opened this issue Jan 9, 2025 · 1 comment

Comments

@dannywynn
Copy link

What version of Garble and Go are you using?

$ garble version
mvdan.cc/garble v0.0.0-20240930210450-41d8674f9666

Build settings:
      -buildmode pie
       -compiler gc
       -trimpath true
  DefaultGODEBUG asynctimerchan=1,gotypesalias=0,httpservecontentkeepheaders=1,tls3des=1,tlskyber=0,x509keypairleaf=0,x509negativeserial=1
     CGO_ENABLED 0
          GOARCH amd64
            GOOS linux
         GOAMD64 v1
             vcs git
    vcs.revision 41d8674f9666f8e91d5bdd43ac501feefa49bf06
        vcs.time 2024-09-30T21:04:50Z
    vcs.modified true

$ go version
go version go1.23.4 linux/amd64

What environment are you running Garble on?

go env Output
$ go env
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/home/dan/.cache/go-build'
GOENV='/home/dan/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/home/dan/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/home/dan/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/lib/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/lib/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.23.4'
GODEBUG=''
GOTELEMETRY='local'
GOTELEMETRYDIR='/home/dan/.config/go/telemetry'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/home/dan/whatsmeow-calls/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build1917568102=/tmp/go-build -gno-record-gcc-switches'

What did you do?

i built the code using the command garble build . the code runs for few seconds and then crash

What did you expect to see?

app runs perfectly fine

What did you see instead?

panic error

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x8e7b79]

goroutine 403 [running]:
tSL6AOO.OINFW0nhr(0x0, {0x1b59330, 0x278f740})
	U6AQBeCQEN.go:1 +0x59
tSL6AOO.BJNzUyCcZ0_(0xc0004e21e0, {0x1b59358, 0x278f740}, {0x1b59330, 0x278f740})
	j0tPUGmAY.go:1 +0x111
tSL6AOO.FYpOSdOHd({0xc0002a9500?, 0xc00049cbf0?, 0xe?}, {0x1b59358, 0x278f740}, {0x1b59330, 0x278f740})
	Wt4v864a4san.go:1 +0x68
G7Zovd91Tz.(*RcnCpaxd).LoadSession(0xc000406000, 0xc0006ce8e8)
	B__x4JgI.go:1 +0x2a7
Fp9pCmr_MlU.(*IdmRLXlms2).DecryptAndGetKey(0xc0006b7a70, 0xc000600600)
	G5OUpIwwAV.go:1 +0x63
Fp9pCmr_MlU.(*IdmRLXlms2).Decrypt(...)
	Wn_z4kF.go:1
qsO7vEB0Nx.(*EiRHZEB).yqlfPnY(0xc00040e008, 0xc0006b7d20, {{0xc00001f010, 0xc}, 0x0, 0x0, 0x0, {0x109f14a, 0xe}}, 0x0)
	iPYLGYzrT.go:1 +0x776
qsO7vEB0Nx.(*EiRHZEB).q3xskz1zUc(0xc00040e008, 0xc0005261a0, 0xc0005832c0)
	tAoZ1S3.go:1 +0x7e5
qsO7vEB0Nx.(*EiRHZEB).b4lASR3UzVbR(0xc00040e008, 0xc0005832c0)
	GC70myXYlRTs.go:1 +0x345
qsO7vEB0Nx.(*EiRHZEB).rXkqEe8.func1()
	_TP5kDS.go:1 +0x83
created by qsO7vEB0Nx.(*EiRHZEB).rXkqEe8 in goroutine 54
	oeKydV0Fz.go:2 +0x195
@dannywynn
Copy link
Author

i am using this package
https://github.com/tulir/whatsmeow

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