-
Notifications
You must be signed in to change notification settings - Fork 10
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
Rwjs/session fix m11 - Fix for making sure that sessions are removed from session_map #1048
Conversation
… that a pointer to an end-of-life session can be removed from the SessionManager session map.
Modefined the way that sessions get deleted to make sure they all get removed from the SessionManager session map.
Made change to session deletion so that it is consistent in both cases when a WebSocket closes and when the last OnMessageTask referencing a session is deleted.
from the SessionManager session map.
What's the easiest way to reproduce this bug for testing purposes? The CI unit tests are all crashing (with a segfault in |
I get a segfault in |
This problem is likely due to the SessionManager pointer not being set in the testing backend. It looked to me that only some of the tests used the SessionManager so either one will have to be created for the testing backend, or an extra test will have to be put in the code to prevent that shared_ptr having the method called on it in ~OnMessageTask. When I tried the tests locally they seemed to be working, even though I was not expecting them to. If I can get the tests to fail I would likely be able to fix the problem. |
out that it behaves differently depending on what compiler settings are used with g++ v9.4.0.
@robsimmonds I know the Moment ICD tests on Ubuntu 20.04 and 21.10 appear to continuously fail on this branch and the |
OK, thanks it is strange. Is there a good way for me to download the complete set of test files so I can also see if they run on my ubuntu test system. I know they used to be in google, which I have problems downloading to from our research cluster, but could download them to my home machine. |
@robsimmonds Unfortunately we don't have a definitive list of the image files currently used by the ICD tests. We read from a folder called I will create a new issue on the ICD-test repository for us to make a list of the files that are actually used in the tests as it would be useful to know. For now I just checked the Moment tests. I put the images they use in a folder, and temporarily uploaded it to our ASIAA webserver (we can find a better location later). It is 28GB (20GB zipped)! It unzips to I tried running the Moment tests on an Ubuntu 20.04 server natively and the tests pass fine using your branch. So maybe the Ubuntu Docker containers don't have enough resources for some reason, even though they have been working fine before. If you would like to try it yourself, here is a recap on how to run the ICD tests:
Modify
|
@ajm-asiaa thanks for looking into this. It would be good if all the ICD test files were available for download, but that might be difficult given their size. It might be good to mention on the ICD tests github page that the ICD tests need a set of files that are not currently in a public repository just so people don't try to run the tests and think they are broken. |
No description provided.