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 errors in test_io #49864
Comments
The malloc warnings happen on OSX, with a fresh checkout of the python3 The issue goes away when running from the commandline, the "-E -bb" test_io Testing large file ops skipped on darwin. Testing large file ops skipped on darwin. |
What's more annoying: the error goes away while running in a debugger. The issue happens at least in tes_constructor: test_constructor (main.CBufferedWriterTest) ... |
Buffer_size is set to 0x7fffffffffffffff in BufferedWriter_init at the end I have no idea why this happens, but this definitly seems wrong to me. Setting this as a release blocker because arguments of a wrong magnitude |
Does this error occur even if you revert Modules/mmapmodule.c to r69214? |
I don't think this is related to Python's mmap module, the message says I'll test with the older version of mmap just in case. |
Sorry, this is not related to mmap module... Forgot my comments. |
If you look at test_io, calling malloc() with sys.maxsize is precisely |
PS: if the warnings are annoying, the test can be disabled selectively |
I can't believe that I completely missed that this is the purpose of the Disabling the test won't be necessary, I'm keeping this issue open for a |
Closing the issue as this is not a bug in python (as noted in the |
In Jupyter Notebook, I tried to pass a large amount of data (about 2.3 GB) to Statsmodels's KDEUnivariate.fit (https://www.statsmodels.org/dev/generated/statsmodels.nonparametric.kde.KDEUnivariate.fit.html#statsmodels.nonparametric.kde.KDEUnivariate.fit) with kernel='cos'. In the Notebook, I got a MemoryError exception and traceback (which unfortunately I have since lost). In the terminal where I was running the Jupyter server, the Python 3.7 kernel spat out: Python(86244,0x7fff91104380) malloc: *** mach_vm_map(size=465845322670080) failed (error code=3) The MemoryError coming up in the Notebook interface is the correct behavior, but I wanted to bring to your attention that the malloc junk on stderr happens even outside of Python's tests. I'm on macOS 10.13.5. |
The error is printed by libc, there's nothing we can do about that. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: