s390x autopkgtest hangs

Bug #2026878 reported by Benjamin Drung
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nvme-stas (Ubuntu)
Fix Released
Undecided
Mateus Rodrigues de Morais

Bug Description

The s390x autopkgtest hangs [1]. The issue happens when executing the test test_get_interface [2] and the execution freezes on sock.recv(8192) in line 82 [3] until the test times out.

[1] https://autopkgtest.ubuntu.com/results/autopkgtest-mantic/mantic/s390x/n/nvme-stas/20230711_031309_d317c@/log.gz
[2] https://salsa.debian.org/debian/nvme-stas/-/blob/debian/sid/test/test-iputil.py#L31
[3] https://salsa.debian.org/debian/nvme-stas/-/blob/debian/sid/staslib/iputil.py#L82

Related branches

Changed in nvme-stas (Ubuntu):
assignee: nobody → Mateus Rodrigues de Morais (mateus-morais)
Changed in nvme-stas (Ubuntu):
status: New → In Progress
Revision history for this message
Mateus Rodrigues de Morais (mateus-morais) wrote :

This issue was caused by a hard-coded byteorder='little' on a big-endian architecture (s390x), which resulted in garbage messages being sent to the Netlink socket. As these are ignored, nothing was then being received on recv(), causing the subsequent hang and, ultimately, the autopkgtest timeout.

A fix has been proposed at https://code.launchpad.net/~mateus-morais/ubuntu/+source/nvme-stas/+git/nvme-stas/+merge/450606.

Revision history for this message
Benjamin Drung (bdrung) wrote :

Fixed in 2.2.2-2.

Changed in nvme-stas (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nvme-stas - 2.2.2-2

---------------
nvme-stas (2.2.2-2) unstable; urgency=medium

  [ Mateus Rodrigues de Morais ]
  * d/p/Fix-byte-ordering-in-iputil-operations.patch: make byteorder
    architecture-aware in order to fix s390x autopkgtest failures.
    (LP: #2026878)

 -- Benjamin Drung <email address hidden> Tue, 05 Sep 2023 13:45:22 +0200

Changed in nvme-stas (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Olivier Gayot (ogayot) wrote :

Sadly, the fix for this bug was dropped when Debian moved to nvme-stas 2.3-1.

I filed it again as bug 2045000 (the code had slightly changed in the meantime) and the fix is now merged upstream.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.