-
Notifications
You must be signed in to change notification settings - Fork 68
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
"malloc(): unsorted double linked list corrupted" errors #453
Comments
The output of
|
Hello, I think this is connected to a recent change in systhreads in #439. It seems it trigger a kind of memory corruption and will eventually lead to the downfall of the forked process. I isolated a smaller case that trigger reliably enough.
For the crash to happen, there is a need for allocations, and the more threads are spun up by the parent process, the more likely it crashes, although all of this is still a bit blurry for now.
I will investigate this issue more, however I have no fix in the meantime. |
I've just installed a 4.10 multicore switch successfully. But after that, I struggled a lot to compile any ocaml code in it. Almost every time I try to build something, I get a
malloc(): unsorted double linked list corrupted
errors.All of this happens on a server with 40 cores, 256gb of ram, debian 10.3.
Switch installation command:
My goal was to compile https://github.com/shubhamkumar13/effects-examples/tree/migrate-to-dune. So once I got my switch I tried to install lwt. And got those errors. I had to run the
opam install lwt --yes
until it would actually pass. Basically every package that was being installed in the switch failed to build at least once.I never managed to install the
lwt
package until I didopam install lwt -j 1
.After that, I tried to compile the effects examples. Again, I have the malloc errors. On different files.
Again, by reducing the number of jobs I greattly increased to probably of the compilation working
The text was updated successfully, but these errors were encountered: