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

bzl is segfaulting #122

Open
jasonschroeder-sfdc opened this issue Mar 6, 2023 · 3 comments
Open

bzl is segfaulting #122

jasonschroeder-sfdc opened this issue Mar 6, 2023 · 3 comments

Comments

@jasonschroeder-sfdc
Copy link

Hi, I am trying to use bzl tool on macOS Ventura 13.2.1 but the CLI is segfault'ing. There's no additional information.

❯ ./bzl
[1]    38205 segmentation fault  ./bzl

The following versions are segfaulting (for me):

I tried to run it under lldb but only get assembly:

❯ lldb bzl
(lldb) target create "bzl"
Current executable set to '/Users/jschroeder/Downloads/bzl' (x86_64).
(lldb) run
Process 14378 launched: '/Users/jschroeder/Downloads/bzl' (x86_64)
Process 14378 stopped
* thread #1, stop reason = EXC_BAD_ACCESS (code=1, address=0x7ff7bff072fc)
    frame #0: 0x000000000742abb1
->  0x742abb1: cmpl   $0x19, (%rsi)
    0x742abb4: jne    0x742abff
    0x742abb6: movq   0x20(%rsi), %r8
    0x742abba: testq  %r8, %r8
Target 0: (bzl) stopped.
(lldb) bt
* thread #1, stop reason = EXC_BAD_ACCESS (code=1, address=0x7ff7bff072fc)
  * frame #0: 0x000000000742abb1
@pcj
Copy link
Member

pcj commented Mar 7, 2023

Hi @jasonschroeder-sfdc thanks for the report! Will try and repro. Is this an arm (m1) or intel-based processor?

@jasonschroeder-sfdc
Copy link
Author

jasonschroeder-sfdc commented Mar 7, 2023 via email

@jasonschroeder-sfdc
Copy link
Author

Hi @pcj,

I see v1.4.16 has been released (https://get.bzl.io/darwin_arm64/bzl and https://get.bzl.io/darwin_amd64/bzl) and it doesn't crash 🎉 .

But I still cannot use it from within VS Code extension. When I set

"bsv.bzl.server.release": "v1.4.16"

in the VSCode Extension settings, then the following URLs fail with a 404

https://get.bzl.io/darwin_amd64/v1.4.16/bzl
https://get.bzl.io/darwin_arm64/v1.4.16/bzl

Does something need to be updated on the download site?
Thanks in advance!

UPDATE:
I found that I could set "bsv.bzl.server.executable" to whatever binary I downloaded. So I'm unblocked 🎉

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

2 participants