-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Segmentation fault: 11 on macOS #44219
Comments
The problem seems to go away when I comment out imports of @comake/skql-js-engine (which I authored), but it's not clear to me why importing that causes a segmentation fault. |
Perhaps "components.js" is monkey patching or messing with module loader internals in a way that's not compatible? |
Yeah, not sure because I have other projects which use components.js that don't seg fault. What kinds of things would I look up to see if it's "messing with module loader internals"? |
I was able to reproduce the error in a github workflow test of an application running my module @comake/skql-js-engine. Thus, this error does not have anything to do with Components.js as I thought previously. Here you can see the test fails on macos-latest (macOS Big Sur 11) but passes on ubuntu-latest: Here you can see the test fails on macos-12 (macOS Monterey 12) but passes on ubuntu-latest, windows-latest, and macos-latest: On a subsequent run of the tests it passes on all OSs (macos-latest, ubuntu-latest, windows-latest, and mac-12). On my local machine running macOS Monterey 12.4 the error happens most times that the test is run but not 100% of the time. The test is run by |
This issue is very likely a duplicate of #43205. I'll go ahead and close it out. |
Version
v16.16.0
Platform
Locally:
macOS Monterey 12.4
Darwin 20.6.0
Reproduced in a github workflow:
macOS Big Sur 11
Darwin 20.?
Subsystem
No response
What steps will reproduce the bug?
I have a node application which uses the Components.js dependency injection framework. As soon as the call is made to instantiate my application (like this) I get a
Segmentation fault: 11
.Full trace using the Segfault handler package:
I am also getting
Segmentation fault: 11
when running a script withnode ./dist/index.js
that does not use Components.js.I'm not sure what I should do to debug further.
This seems related to: #25424, #44211, or #43205?
How often does it reproduce? Is there a required condition?
Sometimes if I restart my computer it works.
What is the expected behavior?
No segmentation fault and the application doesn't crash
What do you see instead?
The application crashes
Additional information
No response
The text was updated successfully, but these errors were encountered: