-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Server stops with Segmentation Fault when we configure wrong security policy in PubSub subscriber #5984
Comments
I could reproduce this with tag 1.3.6, but not with the latest master. Seems to be fixed. |
Thanks @max65482 for the information,
|
I could now reproduce your issue with 1.3.9 after just 43 seconds. This is my stack trace:
The crash is caused by a misplaced call of open62541/src/pubsub/ua_pubsub_eventloop.c Lines 869 to 887 in cc5c7da
|
Thanks @max65482 for such a quick response. May I know the tentative release date of next tag of 1.4 which will contain this fix? Thanks, |
Description
If we configure subscriber with wrong policy than publisher(AES128CTR/AES256CTR), server gets stopped with segmentation fault.
Do you have any solution for not stopping the server?
If not, can you add some error handling mechanism and just stop the connection without stopping server?
Background Information / Reproduction Steps
Step 1: Start pubsub_publish_encrypted.exe with security mode as Sign and Encrypt and security Policy as AES128CTR
Step 2: Start pubsub_subscribe_encrypted.exe with security mode as Sign and Encrypt and security Policy as AES256CTR
OR Vice-versa
After few seconds of warnings, we get segmentation fault and server stops
Linux:
Windows:
Used CMake options:
cmake.exe .. -G "Visual Studio 17 2022" -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DUA_BUILD_EXAMPLES=ON -DUA_ENABLE_PUBSUB=ON -DUA_ENABLE_PUBSUB_MQTT=OFF -DUA_ENABLE_JSON_ENCODING=ON -DUA_ENABLE_DEBUG_SANITIZER=OFF -DUA_ENABLE_DISCOVERY_SEMAPHORE=OFF -DUA_ENABLE_HARDENING=OFF -DUA_ENABLE_NODEMANAGEMENT=OFF -DUA_ENABLE_NODESET_COMPILER_DESCRIPTIONS=OFF -DUA_ENABLE_PARSING=OFF -DUA_ENABLE_PUBSUB_DELTAFRAMES=OFF -DUA_ENABLE_PUBSUB_INFORMATIONMODEL=ON -DUA_ENABLE_PUBSUB_INFORMATIONMODEL_METHODS=OFF -DUA_ENABLE_STATUSCODE_DESCRIPTIONS=OFF -DUA_ENABLE_SUBSCRIPTIONS=OFF -DUA_ENABLE_SUBSCRIPTIONS_EVENTS=OFF -DUA_ENABLE_TYPEDESCRIPTION=ON -DUA_FORCE_WERROR=OFF -DUA_MSVC_FORCE_STATIC_CRT=OFF -DUA_ENABLE_ENCRYPTION_TPM2=OFF -DUA_LOGLEVEL=400 -DUA_ENABLE_ENCRYPTION=OPENSSL -DUA_ENABLE_PUBSUB_ENCRYPTION=ON
Checklist
Please provide the following information:
The text was updated successfully, but these errors were encountered: