-
Notifications
You must be signed in to change notification settings - Fork 49
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
JS error when NaCl crashes and there's active client #823
Comments
Suspecting this to be unintended side effect of the refactoring in #794. Viktoriia, could you PTAL? Thanks. |
This was referenced Jul 18, 2023
ViktoriiaKovalova
added a commit
that referenced
this issue
Jul 21, 2023
emaxx-google
added a commit
that referenced
this issue
Sep 8, 2023
Add build target for //common/js/build/js_to_cxx_tests/, so that we can write tests for this common JS and C++ code. This is preparation for implementing a regression test for #823.
emaxx-google
added a commit
that referenced
this issue
Sep 8, 2023
Add build target for //common/js/build/js_to_cxx_tests/, so that we can write tests for this common JS and C++ code. This is preparation for implementing a regression test for #823.
emaxx-google
added a commit
that referenced
this issue
Sep 12, 2023
If sending a message failed, the Requester.postRequest() message should reject the returned promise instead of failing itself with an exception. A real example when this can happen is when sending a message that causes a crash in an Emscripten module, because in that case the exception is bubbled up synchronously. This is preparation for implementing a regression test for #823.
emaxx-google
added a commit
that referenced
this issue
Sep 13, 2023
Add a test that crash in a C++ executable module gets correctly handled on the JS side, in particular marks the module as disposed. This test verifies a slightly simpler scenario than the regression fixed in #823.
emaxx-google
added a commit
that referenced
this issue
Sep 14, 2023
Add a test that crash in a C++ executable module gets correctly handled on the JS side, in particular marks the module as disposed. This test verifies a slightly simpler scenario than the regression fixed in #823.
emaxx-google
added a commit
that referenced
this issue
Sep 14, 2023
Add a test that crash in a C++ executable module gets correctly handled on the JS side, in particular marks the module as disposed. This test verifies a slightly simpler scenario than the regression fixed in #823.
emaxx-google
added a commit
that referenced
this issue
Sep 14, 2023
Improve the JS Requester class to gracefully handle this edge case: the send() call triggers not only an exception, but also the disposal of the message channel. The bug was that we were trying to reject the same request twice (first during disposal, second while handling the exception). This is follow-up to the crash handling issue fixed in #823.
emaxx-google
added a commit
that referenced
this issue
Sep 14, 2023
Test that a C++ crash in the executable module gets correctly handled in case there's an active PC/SC client. The module and the client should get disposed of without any unexpected exceptions. This is a regression test for #823.
emaxx-google
added a commit
that referenced
this issue
Sep 14, 2023
Test that a C++ crash in the executable module gets correctly handled in case there's an active PC/SC client. The module and the client should get disposed of without any unexpected exceptions. This is a regression test for #823.
emaxx-google
added a commit
that referenced
this issue
Sep 14, 2023
Improve the JS Requester class to gracefully handle this edge case: the send() call triggers not only an exception, but also the disposal of the message channel. The bug was that we were trying to reject the same request twice (first during disposal, second while handling the exception). This is follow-up to the crash handling issue fixed in #823.
emaxx-google
added a commit
that referenced
this issue
Sep 14, 2023
Test that a C++ crash in the executable module gets correctly handled in case there's an active PC/SC client. The module and the client should get disposed of without any unexpected exceptions. This is a regression test for #823.
emaxx-google
added a commit
that referenced
this issue
Sep 15, 2023
Test that a C++ crash in the executable module gets correctly handled in case there's an active PC/SC client. The module and the client should get disposed of without any unexpected exceptions. This is a regression test for #823.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just observed this on a test device after the Connector's NaCl module crashed (for an unrelated reason):
The stack trace is obfuscated due to minification, but after comparing the minified and original code I think it's crashing in
ClientHandler.disposeInternal()
:chromeos_smart_card_connector/third_party/pcsc-lite/naclport/server_clients_management/src/client-handler.js
Line 211 in f4eb322
The text was updated successfully, but these errors were encountered: