-
Notifications
You must be signed in to change notification settings - Fork 363
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
Multithreading brokes memory? #3846
Comments
Thank you for the report. Can you also give us a hint about the config used for compilation, especially releaseMode and LTO. Does this issue exist also in the other GCs? |
@WojciechMazur I uses default settings and only switched Anyway, I still do not roll out possibility that my code is bad and brokes it, I'm reviewing and rewriting it, but it crashes the same way, and this aplication depends on random numbers and uses a lot of them, and each start has different behaviour which include different amount of network traffic, packet size and so on. => issue inside SN is quite possible, but I not 100% sure yet, need more time to confirm it. |
I finish to rewriting my code to be thread safe and multithreading ready. Now it fails inside some scala level allocation. So, I almsot 100% sure that it isn't C-level, and it is something else. |
Well, without Also, under gdb it brokes stack trace and prints different output for |
Here an example of test program which uses libuv to implement network and timers.
This program is very CPU and memory intensive and produces some memory footpring.
When I run it without multithreading everything works fine.
With multithreading (and UV loop is running in dedicated thread) it start to have a random crashes.
For example with Boehm GC and commented all
stdlib.free
for dynamic memory (yep, it leaks):P.S. I'm using 0.5.0-RC2
The text was updated successfully, but these errors were encountered: