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: mcumgr process killed #103

Open
homburg opened this issue Dec 11, 2020 · 3 comments
Open

macos: mcumgr process killed #103

homburg opened this issue Dec 11, 2020 · 3 comments

Comments

@homburg
Copy link

homburg commented Dec 11, 2020

I am trying to connect with mcumgr, but the process seems to be killed, .eg

❯ ./mcumgr --loglevel debug --conntype ble --connstring peer_name=something echo conn_test
DEBU[2020-12-11 13:06:59.936] Using connection profile: name=unnamed type=ble connstring=peer_name=something
[1]    59676 killed     ./mcumgr --loglevel debug --conntype ble --connstring peer_name=something ech
Password:
DEBU[2020-12-11 13:11:35.413] Using connection profile: name=unnamed type=ble connstring=peer_name=something
[1]    60061 killed     sudo ./mcumgr --loglevel debug --conntype ble --connstring peer_name=somethin

Can you help with any explanation why the process might be killed?

Versions

go

go version go1.14.4 darwin/amd64

macOS

macOS Big Sur 11.0.1

Shell

zsh 5.8 (x86_64-apple-darwin19.3.0)

@homburg
Copy link
Author

homburg commented Dec 11, 2020

Might be this go issue: golang/go#19734 (comment)

Testing

Tried strategies from golang#19734 without success:

  • Updating/reinstalling go (to version 1.15.6)
  • Building with go build -ldflags -s

@paulrouget
Copy link

Running into the same issue. Any idea what's going on?

@kabbi
Copy link

kabbi commented Nov 21, 2021

Got the same issue. It's not related to golang bug of 2017, it's related (at least in my case) to bluetooth privacy changes in Big Sur. This is the instructions I've found in some other bluetooth-related project that helped me (part 2, enable bluetooth access for my terminal app)

To use Bluetooth on macOS Big Sur (11) or later, you need to either package your binary into an application bundle with an Info.plist including NSBluetoothAlwaysUsageDescription, or (for a command-line application such as the examples included with btleplug) enable the Bluetooth permission for your terminal. You can do the latter by going to System Preferences → Security & Privacy → Privacy → Bluetooth, clicking the '+' button, and selecting 'Terminal' (or iTerm or whichever terminal application you use).

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

3 participants