Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#78846 - [home-assistant] producing core dumps / suspecting orjson

Attached to Project: Arch Linux
Opened by srgdts (srgdts) - Tuesday, 20 June 2023, 23:00 GMT
Last edited by Maxime Gauduin (Alucryd) - Thursday, 22 June 2023, 06:38 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Maxime Gauduin (Alucryd)
Alexander Epaneshnikov (alex19EP)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
The home-assistant restarting producing a core dump on a JSON POST request to /api/onboarding/users
Journalctl output: https://pastebin.com/raw/26AMLLv3
Coredump gdb bt output: https://pastebin.com/raw/fABUAz68
The orjson (3.8.12) shared library seems to cause the core dumps.

Additional info:
* package version(s): home-assistant 1:2023.6.2-1
* config and/or log files etc.: https://pastebin.com/raw/26AMLLv3, https://pastebin.com/raw/fABUAz68

Steps to reproduce:
Fresh home-assistant install (rm -rf /var/lib/hass before).
Navigate to the Web-UI, fill in /onboarding.html form, click "Create Account" button.
This task depends upon

Closed by  Maxime Gauduin (Alucryd)
Thursday, 22 June 2023, 06:38 GMT
Reason for closing:  Upstream
Additional comments about closing:  sudo -u hass /var/lib/hass/.venv/bin/pip install --force-reinstall --no-binary :all: orjson==3.8.12
Comment by Toolybird (Toolybird) - Wednesday, 21 June 2023, 08:30 GMT
Cannot repro.

> Program terminated with signal SIGILL, Illegal instruction.

That means your CPU tried to execute an instruction it doesn't understand. Now that a whole pile of foreign binary shite is downloaded into a venv, it's not surprising that errors like this can occur. Ugh, this whole hass thing smells a bit off to me..
Comment by Maxime Gauduin (Alucryd) - Wednesday, 21 June 2023, 15:44 GMT
Looking at the orjson release page, it seems the 3.8.12 wheel might have been compiled for x86_64-v2, the issue should go away as soon as hass upgrades to at least 3.8.14.

In the meantime, With the home-assistant service running (so the dynamic user is available), can you try:

sudo -u hass /var/lib/hass/.venv/bin/pip install --force-reinstall --no-binary python-orjson==3.8.12

Comment by srgdts (srgdts) - Wednesday, 21 June 2023, 19:49 GMT
Maxime, thank you for the hint.

The following command line did it:

sudo -u hass /var/lib/hass/.venv/bin/pip install --force-reinstall --no-binary :all: orjson==3.8.12
Comment by Maxime Gauduin (Alucryd) - Thursday, 22 June 2023, 06:38 GMT
Awesome, thanks for the feedback. Going to close as upstream then, hopefully they upgrade soon.

Loading...