Closed ViRb3 closed 1 week ago
looks related to https://github.com/j4k0xb/webcrack/issues/83#issuecomment-2124128682 can you try the other command as well and make sure the global node version is correct?
That particular issue you linked is webcrack failing compilation on node 22. I ran into that as well, but when I switched to node 20, it compiled and ran fine. It's just during deobfuscation that it hits the segmentation fault. If you look at the docker commands, they run the exact same node version, and one segfaults while the other doesn't, so this must be an arm64 issue. Has anyone ever confirmed this works on arm64?
The crash happens in https://github.com/laverdet/isolated-vm It had an update recently, please try if the example works and otherwise it would be better to create an issue there
Did some more testing and found out a few interesting things:
isolated-vm
as you mentioned; node@20 crashes with the example too.--no-node-snapshot
workaround actually works with both. The correct command is:
NODE_OPTIONS=--no-node-snapshot webcrack ~/index.js
You mentioned this workaround in #18, but you missed the --
prefix, which is why it didn't work before. You may want to edit it just in case someone else finds it.
isolated-vm
. No crash and no workaround necessary.It may be worthwhile updating isolated-vm
and directing users to node@22, and/or documenting the node@20 workaround in README.
Anyway, I'm definitely unblocked now, thanks a lot!
Describe the bug
Using a MacBook Pro M3 Max, macOS 14.5, I seem to get segmentation fault unless I run under Docker with x64 emulation.
Crash 1:
Crash 2:
Works:
Expected Behaviour
Works
Code
Logs