-
Notifications
You must be signed in to change notification settings - Fork 3
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
run error. #1
Comments
@bitcard can you post some details about your system, environment, which binary you are attempting to run, and any other information that might be useful? Thanks! |
macos 10.15.2, go 1.13, vscode, after go build, run cave. |
we haven't tested cave on MacOS yet, so this is uncharted territory for us. Theoretically it should work, but sometimes there's little things that need changed between Linux and MacOS. Are you getting any output during the build process that might indicate an issue? |
I build with make build. first I build success. but build it fail just now. the follow error:
use go build is same error. |
@bitcard im going to look into this further; thanks for providing the above info |
maybe libp2p version change cause this error. it use libp2p v0.13.0 |
1, run console:
chmod +x cave
./cave --mode=dev
-bash: ./cave: cannot execute binary file
2, debug in vscode
API server listening at: 127.0.0.1:31763
&{Mode:dev Cluster:{Port:2000 DiscoveryHost:10.0.0.134:2001 Host:10.0.0.134:2000 SyncPort:1999} KV:{Encryption:true DBPath:kv.db} API:{Enable:true Port:9000 Authentication:false EnableMetrics:true} UI:{Enable:true Port:80 Authentication:false} SSL:{Enable:false Certificate:ssl/bunker.crt Key:ssl/bunker.key} Perf:{EnableMetrics:true EnableHTTPLogs:true BufferSize:4096} Auth:{Provider:jwt} Plugin:{PluginPath:./plugins.d/ AllowUnsigned:true Blacklist:[] SocketPrefix:/tmp/}}
2020-12-23 23:14:21.098 CST [ DEBUG ] [ START ] Logger
Failed to continue - runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation]
Unable to propogate EXC_BAD_ACCESS signal to target process and panic (see go-delve/delve#852)
Last known immediate stacktrace (goroutine id 1):
/Users/kenny/Documents/tools/go/src/runtime/mbitmap.go:1173
runtime.heapBitsSetType
/Users/kenny/Documents/tools/go/src/runtime/malloc.go:1066
runtime.mallocgc
/Users/kenny/Documents/tools/go/src/runtime/malloc.go:1165
runtime.newobject
/Users/kenny/Documents/tools/go/src/os/stat_unix.go:30
os.statNolog
/Users/kenny/Documents/tools/go/src/os/stat.go:13
os.Stat
/Users/kenny/Documents/tools/go/src/os/exec/lp_unix.go:20
os/exec.findExecutable
/Users/kenny/Documents/tools/go/src/os/exec/lp_unix.go:53
os/exec.LookPath
/Users/kenny/Documents/tools/go/src/os/exec/exec.go:175
os/exec.Command
/Users/kenny/Documents/tools/go/pkg/mod/github.com/denisbrodbeck/[email protected]/helper.go:16
github.com/denisbrodbeck/machineid.run
/Users/kenny/Documents/tools/go/pkg/mod/github.com/denisbrodbeck/[email protected]/id_darwin.go:16
github.com/denisbrodbeck/machineid.machineID
/Users/kenny/Documents/tools/go/pkg/mod/github.com/denisbrodbeck/[email protected]/id.go:29
github.com/denisbrodbeck/machineid.ID
/Users/kenny/Documents/project/workspace-go/cave/crypto.go:101
main.(*Crypto).GenerateSystemAES
/Users/kenny/Documents/project/workspace-go/cave/crypto.go:57
main.newCrypto
/Users/kenny/Documents/project/workspace-go/cave/main.go:53
main.main
/Users/kenny/Documents/tools/go/src/runtime/proc.go:203
runtime.main
/Users/kenny/Documents/tools/go/src/runtime/asm_amd64.s:1373
runtime.goexit
Failed to continue - runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation]
Unable to propogate EXC_BAD_ACCESS signal to target process and panic (see go-delve/delve#852)
Last known immediate stacktrace (goroutine id 1):
?:-1
/Users/kenny/Documents/tools/go/src/runtime/sys_darwin_amd64.s:547
runtime.pthread_cond_wait_trampoline
/Users/kenny/Documents/tools/go/src/runtime/asm_amd64.s:685
runtime.asmcgocall
Failed to get list local variables - unable to find function context
Last known immediate stacktrace (goroutine id 1):
?:-1
/Users/kenny/Documents/tools/go/src/runtime/sys_darwin_amd64.s:547
runtime.pthread_cond_wait_trampoline
/Users/kenny/Documents/tools/go/src/runtime/asm_amd64.s:685
runtime.asmcgocall
Process exiting with code: 0
The text was updated successfully, but these errors were encountered: