-
Notifications
You must be signed in to change notification settings - Fork 4
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
Signal handling causes segfault #26
Comments
Hi zenker. The problem might be located in the task manager attempting to re-stop an already stopped thread while "collecting" the OPC UA Server thread during shutdown. We need to include a mutex to prevent multiple stop-operations running on the task manager at the same time. |
I am still seeing this issue. I think it is also related to fishy memory management / destructor calls. For instance, the My advice would be to change the memory management to use smart pointers rather than plain pointers with new/delete, where necessary. Where possible, pointers should be completely avoided and instead just ordinary object instances should be used. For instance the aforementioned |
* project-template: use lib install dir defined by GNUInstallDirs this should fix library search problems on Tumbleweed project-template installs cmake-config files to library destination note, individual projects also need to be changed, for installation of actual libs
project-template: use lib install dir defined by GNUInstallDirs (#26)
* project-template: use lib install dir defined by GNUInstallDirs this should fix library search problems on Tumbleweed project-template installs cmake-config files to library destination note, individual projects also need to be changed, for installation of actual libs
I just discovered that the OPC-UA adapter crashes when receiving two times a SIGINT signal in series. I did not investigate the reason for the crash. Maybe you could have a look.
The text was updated successfully, but these errors were encountered: