FS#73568 - [python-pandas] Importing pandas crashes python with SIGILL on AMD A6-7310

Attached to Project: Community Packages
Opened by Klaus Alexander Seistrup (kseistrup) - Sunday, 30 January 2022, 20:17 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:03 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Bruno Pagani (ArchangeGabriel)
Morten Linderud (Foxboron)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:

Just importing `pandas` crashes the python interpreter with a SIGILL (illegal instruction) on my AMD A6-7310 (CPU model 48) with the latest `core/python` and `community/python-pandas` installed.

I then built `python-pandas` from the official `PKGBUILD` file in the hope that `gcc` would pick compiler optimizations geared towards the specific CPU, with the same result: SIGILL.

(Importing `numpy` alone works.)

Interestingly, using `pip` to install `pandas` (`sudo pip install pandas`) gave me a working version of `pandas`. However, `pip` installs `numpy=1.22.1`, which is different from Arch's `extra/python-numpy 1.21.5-2`.

Additional info:
* package version(s)
** `community/python-pandas 1.4.0-1`
** `core/python 3.10.2-1`
* config and/or log files etc.
** Coredump listing: https://0bin.net/paste/QDe1O6cs#aY1jCcU7kf8ocKBwZLhiVrKT7iERiFkoHa1L-0BtHFJ
** Output from `lscpu`: https://0bin.net/paste/xRIDLdLx#AqXqLfcyJVBqAQdzVHu9cGmHSfzObRZLm-+5MH5DIvw
* link to upstream bug report, if any
** N/A as this seems to be ArchLinux specific

Steps to reproduce:

1. Install python and python-pandas
2. Start python interactively
3. At the prompt, type “import pandas“ and press RETURN
4. Python crashes, shell says “Illegal instruction (core dumped)” or similar, depending on actual shell.

----

Conversation on Reddit's `r/archlinux`:

* https://www.reddit.com/r/archlinux/comments/sfs18e/python_importing_pandas_crashes_python_with_sigill/
This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:03 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/python-pandas/issues/1
Comment by Joss Wright (tealeaf) - Wednesday, 02 February 2022, 16:42 GMT
I have the same issue, but I note that if I use `pip install pandas` I still get the illegal instruction when importing pandas if I have Arch's python-numpy installed. If, however, I uninstall python-numpy using pacman and then use `pip install pandas` (which pulls in the numpy dependency as mentioned via pip) then it works fine.

If I use Arch's python-numpy, I can import numpy itself without problems.

So there does seem to be some sort of clash between Arch's current python-numpy (python-numpy-1.21.5-2) and pandas.
Comment by Morten Linderud (Foxboron) - Tuesday, 23 August 2022, 18:01 GMT
Is this still an issue?
Comment by Klaus Alexander Seistrup (kseistrup) - Friday, 26 August 2022, 19:54 GMT
Yes, the python interpreter still crashes on “import pandas”.

Loading...