Open kapacuk opened 1 year ago
I'm struggling to reproduce this, but I suspect it's due to problems on my end...
Would you mind elaborating on the other error you get sometimes, and under what conditions you get the other error message?
Would you mind elaborating on the other error you get sometimes, and under what conditions you get the other error message?
I've just checked, I still get the munmap_chunk(): invalid pointer
error with gcc-12 and gcc-13, but with gcc-10 the error is different:
$ python -c "import pandas; import spam"
double free or corruption (out)
Aborted
$
Please let me know if you still have problems reproducing it, I can build a Docker container for you.
Pandas version checks
[X] I have checked that this issue has not already been reported.
[X] I have confirmed this bug exists on the latest version of pandas.
[x] I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
The above example is a trivial python module with no classes or methods. It does not even try to create a PyModule object, so if you import it on its own it throws this exception:
SystemError: initialization of spam failed without raising an exception
which is expected.However, if you import this module after pandas it crashes printing a single error message:
munmap_chunk(): invalid pointer
I tried it with python3.9, 3.10, and 3.11, and with gcc-11 and gcc-12. It crashes consistently, although sometimes I get a different the error message.
Expected Behavior
That example should throw the
SystemError
exception regardless of whether you import it before or after pandas.Installed Versions