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
PyPy3: tests sometimes fail with "double free detected in tcache 2" #510
Comments
Thanks for posting this. I'm seeing
Everything works as expected before 7.3.
I wouldn't be surprised if there's a bug somewhere in Wand, BUT when pytest is invoked with |
Crashed after 81 runs:
|
Okay. I think I have the issue identified, and it seems to be a related to memory chunks sitting in the garbage collector. |
Thanks, it's a cold morning so I'm going to attempt to heat up the room by running tests from that branch continuously :) I'm at run 45 and no crash so far. |
Bad news, it's been stuck at run 47 for 2 hours:
I'm attaching a debug log, is there anything else you'd like me to try before I cancel this job? |
Don't know what else I can do. I've made it as high as 155 iterations before killing the docker instance. FYI: running the original docker script without
If anyone else has some wisdom, or extra CPU, a little help would be nice. |
Hit 133 iterations in 20min, and still going strong. Memory jumps between 64MB and 404MB. Some additional thoughts:
I'll keep the current test running for the better part of the day, then repeat with CPython to verify. After which I'll reboot some old memory profile testing. |
Thanks for your work, it's still much better than the master branch. I don't really know why it hanged earlier, maybe it was something on my end. At the moment, I'm done with run 112 of my Dockerfile (which is the same as yours) and it hasn't stopped. |
I'm now at run 628 and it's still fine. I doubt the problem will appear again. I'm going to stop the container. |
Great! Both PyPy & CPython ran over 600 iterations without issue, so I think the original issue was resolved. I'll keep this ticket open as I continue regression tests + memory profiling, and will close it when the |
Thanks a lot, will you release v0.6.5 today? |
Probably in the next 12 hours, but yes, 0.6.5 will be released shortly. |
Wand 0.6.5 released. Thanks for all your testing help! |
Hi,
I have noticed that tests sometimes fail with PyPy3 with a
double free detected in tcache 2
error.It's not always the same test that fails but the problem is always caused by objects being freed (
"/wand/wand/cdefs/wandtypes.py", line 23 in __del__
).I used this Dockerfile to reproduce it, it might take a few dozen runs to trigger it but I have seen it fail on two systems:
Here is the log from the last iteration of the loop, when tests fail.
I have also seen this error after the tests end, which might be related. However, I cannot reproduce it with the Docker image, I only see it on Gentoo:
The text was updated successfully, but these errors were encountered: