Segfault in finalizer with native addon on Macosx Ventura #45393
-
After upgrading Macosx to v13.0 Ventura, we are receiving a segfault when using AWS SDKs or AWS CDK. In all of these cases it seems to be due to the shared native addons in awslabs/aws-crt-nodejs. Since it very much seems to be related to the Ventura upgrade, I figured I'd start a discussion here instead of opening scattershot issues in various repos.
To repro:
The segfault trace above was captured on Node 18/19. On 14 and 16 we were not able to grab a segfault trace using ddopson/node-segfault-handler. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
@nodejs/platform-macos |
Beta Was this translation helpful? Give feedback.
-
Probably something in that add-on. That s_napi_context_finalize function is misleadingly named because it's not a n-api function, it's from the add-on: I'd start by opening an issue over there. |
Beta Was this translation helpful? Give feedback.
-
Ah, sorry, should have looked harder at the source there. Thanks, will open an issue there. |
Beta Was this translation helpful? Give feedback.
Probably something in that add-on. That s_napi_context_finalize function is misleadingly named because it's not a n-api function, it's from the add-on:
https://github.com/awslabs/aws-crt-nodejs/blob/b31d0c20ba6a7d10dbf4aa5c46a16f455296328c/source/module.c#L881-L905
I'd start by opening an issue over there.