-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
random OOM errors #13853
Comments
How did you build this? |
I used |
Which gcc is that and where did the libcurl come from? (on windows, mixing things is always a cause for problems and this has all the smells of exactly that) |
minGW was installed through chocolatey, and I believe I downloaded the 64 bit libcurl binaries from the website (the one named "the curl project"), and just copied everything into mingw's folder gcc --version: i'd also like to point out that I think I still have the old curl.exe somewhere in the System32 folder, cause curl -V outputs |
What matters in this case is the libcurl library linked by To tell for certain which libcurl this is, can you add this line to your test code and recompile? printf("libcurl version: |%s|\n", curl_version()); |
@vszakats this is what I got I also enabled verbose to see if that helps anything, and ran my code 10 times till finish or till it halted or crashed. This is all the types of errors I've encountered (so far):
A pretty common one
This one might actually be useful?
This one happened multiple times
|
OK, so this is the curl-for-win libcurl. Could not reproduce this with the C example (used [ Gentle request: Could replace "f** y**" with something more cheerful? Thanks. ] |
I replaced them with whoopsie daisy 😄
So it worked just fine on your machine? I guess I could try downloading libcurl again (perhaps trying the 32 bit version?) and see if that does anything differently. I also tried to spam But still, thank you for taking your time to test my code. |
Nice, thanks! Yes, got the binaries from https://curl.se/windows/dl-8.8.0_1/curl-8.8.0_1-win64-mingw.zip. Strictly speaking my build wasn't correct, because GCC uses MSVCRT by default, while the distributed libcurl DLL uses UCRT, so I repeated it with llvm-mingw using I suggest using llvm-mingw or a GCC configured for UCRT to avoid using two CRTs in one binary. |
I tried compiling it with llvm-mingw to see if it changes anything, and damn right it did. The errors are now gone, and the code runs flawlessly, even when I remove the 5 second cooldown between calls. Honestly this is my first time hearing about CRTs, but I guess learning new things is the whole purpose of trying out and experimenting with stuff... Thank you! |
I did this
I was experimenting with libcurl and I ran into an issue where I keep getting OOM errors like 9/10. Funniest part is that is seems to fix itself sometimes and succeed to print the output and I am so confused.
Code:
An example output:
I expected the following
No stupid "Out of Memory" and etc. errors.
curl/libcurl version
operating system
Windows 10
The text was updated successfully, but these errors were encountered: