Skip to content

wasm debug crash in lldb on MacOSX #2817

Description

@hardfist
  • Version: 14.5.0
  • Platform: Darwin C02CTBPHMD6M 19.4.0 Darwin Kernel Version 19.4.0: Wed Mar 4 22:28:40 PST 2020; root:xnu-6153.101.6~15/RELEASE_X86_64 x86_64
  • Subsystem:

What steps will reproduce the bug?

you can reproduce it in https://github.com/hardfist/wasm-demo,

image

How often does it reproduce? Is there a required condition?

What is the expected behavior?

What do you see instead?

Additional information

Activity

  1. bnoordhuis commented on Jul 2, 2020

    @bnoordhuis
    Member

    Your bug report is not very clear, I'm afraid. What does "debug crash" mean? I see "process exited with status -1", is that what you mean? Can you elaborate how that constitutes a crash?

  2. devsnek commented on Jul 2, 2020

    @devsnek
    Member

    More generally, I can't get lldb -- node to not exit -1 on macOS (10.15.5)

  3. hardfist commented on Jul 3, 2020

    @hardfist
    Author

    Your bug report is not very clear, I'm afraid. What does "debug crash" mean? I see "process exited with status -1", is that what you mean? Can you elaborate how that constitutes a crash?

    yeah, I mean process exited with status -1 and the program not working as expected

  4. bnoordhuis commented on Jul 3, 2020

    @bnoordhuis
    Member

    I can't reproduce on macos 10.14.6 with lldb 1001.0.13.3. The process exited with status -1 thing is probably something specific to macos 10.15 or the version of lldb you and @devsnek are using.

    the program not working as expected

    What do you mean? Is "the program" node or lldb and what specifically isn't working as expected?

  5. hardfist commented on Jul 3, 2020

    @hardfist
    Author

    I can't reproduce on macos 10.14.6 with lldb 1001.0.13.3. The process exited with status -1 thing is probably something specific to macos 10.15 or the version of lldb you and @devsnek are using.

    the program not working as expected

    What do you mean? Is "the program" node or lldb and what specifically isn't working as expected?

    it should print "res: 5", but as you see in the screenshot, it just exit with exitcode -1 ,and print nothing

  6. devsnek commented on Jul 3, 2020

    @devsnek
    Member

    @hardfist can you try running sudo DevToolsSecurity -enable and then testing this again?

  7. hardfist commented on Jul 3, 2020

    @hardfist
    Author

    sudo DevToolsSecurity -enable

    failed again
    image

  8. devsnek commented on Jul 3, 2020

    @devsnek
    Member

    I can't repro anymore after enabling developer mode.

  9. hardfist commented on Jul 3, 2020

    @hardfist
    Author

    I can't repro anymore after enabling developer mode.

    it works when using the latest node I build with source now , but the dwarf debug seems not working

    image

  10. transferred this issue fromnodejs/nodeon Jul 3, 2020
  11. bnoordhuis commented on Jul 3, 2020

    @bnoordhuis
    Member

    I've moved this to nodejs/help because it's likely a toolchain issue, almost certainly not an issue with node itself.

  12. ggreif commented on Jul 7, 2020

    @ggreif

    did you

    (lldb) settings set plugin.jit-loader.gdb.enable on
    

    ?

  13. hardfist commented on Jul 8, 2020

    @hardfist
    Author

    did you

    (lldb) settings set plugin.jit-loader.gdb.enable on
    

    ?

    yes, I set it on .lldbinit

  14. ggreif commented on Jul 8, 2020

    @ggreif

    I am asking because that made breakpoints of lldb-10 work for me, under wasmtime-0.17.

  15. hardfist commented on Jul 8, 2020

    @hardfist
    Author

    I am asking because that made breakpoints of lldb-10 work for me, under wasmtime-0.17.

    yes , it works well for wasmtime but not nodejs

  16. hardfist commented on Jul 30, 2020

    @hardfist
    Author

    @bnoordhuis I can debug node using lldb my built node(nodejs/node#34340) , but it seems that
    node still doesn't not support wasm debug
    image

  17. github-actions commented on Jul 31, 2023

    @github-actions

    There has been no activity on this issue for 3 years and it may no longer be relevant. It will be closed 1 month after the last non-automated comment.

  18. github-actions commented on Aug 31, 2023

    @github-actions

    There has been no activity on this issue and it is being closed. If you feel closing this issue is not the right thing to do, please leave a comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions