autopkgtest fails on s390x with file 1:5.46-5build2

Bug #2143116 reported by Nadzeya Hutsko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
py3status (Ubuntu)
Fix Released
High
Nadzeya Hutsko

Bug Description

The `py3status` clock autopkgtest fails on s390x after `file` was rebuilt from 1:5.46-5build1 to 1:5.46-5build2

py3status calls `file --mime-encoding` via subprocess with no timeout at startup. With the new file build, the magic database is slow to load on s390x, causing the call to hang and py3status to produce no output within the test window.

Fix: add timeout=3 to the subprocess call and handle TimeoutExpired, falling back to utf-8. Also, increase the autopkgtest timeout from 1s to 5s.

Related branches

Nadzeya Hutsko (nadzeya)
tags: added: update-excuse
Changed in py3status (Ubuntu):
assignee: nobody → Nadzeya Hutsko (nadzeya)
status: New → In Progress
importance: Undecided → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package py3status - 3.63-2ubuntu1

---------------
py3status (3.63-2ubuntu1) resolute; urgency=medium

  * fix s390x hang where 'file --mime-encoding' blocks indefinitely when
    the magic database is slow to load (LP: #2143116)
    - d/p/fix-file-encoding-subprocess-timeout.patch add timeout
      to 'file' subprocess call in parse_config
    - debian/tests/clock: increase timeout from 1s to 5s

 -- Nadzeya Hutsko <email address hidden> Fri, 27 Feb 2026 16:43:36 +0100

Changed in py3status (Ubuntu):
status: In Progress → Fix Released
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.