You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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.
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 npm run test:package which executes a bash script validate-package.sh. The script packs my module and installs it into an example application in ./test/deploy and runs a node script. The segmentation fault is produced by the execution of the node script.
Activity
adlerfaulkner commentedon Aug 12, 2022
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.
mscdex commentedon Aug 12, 2022
Perhaps "components.js" is monkey patching or messing with module loader internals in a way that's not compatible?
adlerfaulkner commentedon Aug 12, 2022
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"?
adlerfaulkner commentedon Aug 14, 2022
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:
https://github.com/comake/skql-js-engine/runs/7830015283?check_suite_focus=true
Here you can see the test fails on macos-12 (macOS Monterey 12) but passes on ubuntu-latest, windows-latest, and macos-latest:
https://github.com/comake/skql-js-engine/runs/7830113462?check_suite_focus=true
On a subsequent run of the tests it passes on all OSs (macos-latest, ubuntu-latest, windows-latest, and mac-12).
https://github.com/comake/skql-js-engine/actions/runs/2857591843
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
npm run test:packagewhich executes a bash script validate-package.sh. The script packs my module and installs it into an example application in ./test/deploy and runs a node script. The segmentation fault is produced by the execution of the node script.[-]Segmentation fault: 11[/-][+]Segmentation fault: 11 on macOS[/+]bnoordhuis commentedon May 7, 2023
This issue is very likely a duplicate of #43205. I'll go ahead and close it out.