-
Notifications
You must be signed in to change notification settings - Fork 71
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
segfault with node v12.19.0 #713
Comments
I noticed the same issue when I tried to upgrade the Node.js to v12.19 for the CI, and after checking the dump file, the backtrace shows no rclnodejs related callings. I suggest we could verify this on the next stable release of Node.js, how do you think? |
I cannot reproduce it on v13.14.0 |
nodejs/node#35620 It looks like someone else has the same problem (I got the same stack trace). |
I try the latest Node.js LTS v14.15.0 #716 and it seems that there is a crash caused by #
# Fatal error in , line 0
# Check failed: result.second.
#
#
#
#FailureMessage Object: 0x7fff04fd3a70
1: 0xa70141 [node]
2: 0x19cf084 V8_Fatal(char const*, ...) [node]
3: 0xe594c9 v8::internal::GlobalBackingStoreRegistry::Register(std::shared_ptr<v8::internal::BackingStore>) [node]
4: 0xba4a18 v8::ArrayBuffer::GetBackingStore() [node]
5: 0x9c18f0 napi_get_typedarray_info [node]
6: 0x7fa130ce70ef [/root/rclnodejs/node_modules/ref-napi/prebuilds/linux-x64/node.napi.node]
7: 0x7fa130ce7918 [/root/rclnodejs/node_modules/ref-napi/prebuilds/linux-x64/node.napi.node]
8: 0x7fa130ce7bbb [/root/rclnodejs/node_modules/ref-napi/prebuilds/linux-x64/node.napi.node]
9: 0x7fa130cefceb Napi::details::CallbackData<void (*)(Napi::CallbackInfo const&), void>::Wrapper(napi_env__*, napi_callback_info__*) [/root/rclnodejs/node_modules/ref-napi/prebuilds/linux-x64/node.napi.node] |
I got that as well, I think it's unrelated, it seems more like some v8 changes that causes it instead. Btw, the offending commit that causes v12.19 to fail has been identified and I think they will be backporting the fix in the next release. I'll go ahead and close this issue. |
Segmentation fault still happens on node v12.19.1 when running
|
:( It's been removed on master https://github.com/nodejs/node/blob/08be03b7cba11ea3aa17a9881b6ead3d8936abe3/src/js_native_api_v8.cc#L246 |
Let's move to v14.x directly 😅 |
Actually v14 also segfaults |
Yeah, indeed. It seems node.js is not stable enough :( |
The segfaults has been fixed on the latest v12.20.0 👏 |
rclnodejs segfaults after a few seconds after receiving a subscription. It only happens with node v12.19, works fine in v12.18.4.
To reproduce:
Output:
$ node test.js { data: 'hello' } Segmentation fault (core dumped)
The text was updated successfully, but these errors were encountered: