From nobody Sat May 30 17:48:14 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=bugs.launchpad.net ARC-Seal: i=1; a=rsa-sha256; t=1780086406; cv=none; d=zohomail.com; s=zohoarc; b=HWw3BQrCp8Bo5E8mJexOdmF8TvsniGw6R3g+k4qv4OL1KnjsEdHdL3AB6+xYgDDNvy9PdlBcw8MGKnA8hFZaiH4EjXXTEdxD6UsA82NPthThHIzOI5pejGqdCOQ5tRkYITIZVaKgmIg6JwwllfKwxxxZsE+kVsFZedi4jkmFZbM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1780086406; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:References:Sender:Subject:Subject:To:To:Message-Id:Cc; bh=iGHX3m9UueyEO/wXYYnL5CzPc1OHg9EUZdW0EyGXLvs=; b=hjtk1xYsOYB9U0xBTMSHdD2VPPDB/mQ2vKd3vNX4FIoeDz2SkIOi/oN0AzWYg5eXEgMfa4euIV/YG0DZQ0BsRpj2GxYAwmPRZtFNuFpZ2xRIwq2oUHfVLtZ634AbJ8IgsyBNBOkpSM/ymUFGyRsRhz5zkzAuVMeyeKJKWPAgDYc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from=<2133804@bugs.launchpad.net> (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 178008640622181.7554327563463; Fri, 29 May 2026 13:26:46 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wT3mO-0003zk-0U; Fri, 29 May 2026 16:26:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wT3m8-0003wy-IM for qemu-devel@nongnu.org; Fri, 29 May 2026 16:25:48 -0400 Received: from smtp-relay-services-1.canonical.com ([185.125.188.251]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wT3lz-0005hJ-6f for qemu-devel@nongnu.org; Fri, 29 May 2026 16:25:48 -0400 Received: from scripts.lp.internal (scripts.lp.internal [10.131.215.246]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-services-1.canonical.com (Postfix) with ESMTPSA id 9B6BE47188 for ; Fri, 29 May 2026 20:25:29 +0000 (UTC) Received: from scripts.lp.internal (localhost [127.0.0.1]) by scripts.lp.internal (Postfix) with ESMTP id 919737F2DD for ; Fri, 29 May 2026 20:25:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=launchpad.net; s=20210803; t=1780086329; bh=iGHX3m9UueyEO/wXYYnL5CzPc1OHg9EUZdW0EyGXLvs=; h=MIME-Version:Content-Type:Date:From:To:Reply-To:References: Message-Id:Subject; b=Nh402fRWBKKUAi4IQeiW93BTtFJgJK3uFq41y9DurgsoQevZFU56YhWLcoj6oV4mo 4+JKNzIC1DT6CgLY6Zg4B+4dJN6T/GszgqbM/jLDMJvXgR54LeB+l3Fcn0ioz00agm N8C8/+a0XCBG8Ky0fid7Xxqli/KcjBBBAbXYHpwkD7Wu1g8UWHuGLmqpeeJaZLr0eQ UeEhWUVILwrDXcxJWHNNdiZjOX1XNhVQsOHNnNuTDEUUthNvlv46uEtArdB0RKx59U MyBmj1cpZDJ6dmk9IDbIEh2sP2JW1BFGv8+kaZ3FN8nbfuGYbsXIAjwFId+knGRoTV yduCey3m3vG8Q== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Fri, 29 May 2026 20:17:22 -0000 From: Andreas Hasenack <2133804@bugs.launchpad.net> To: qemu-devel@nongnu.org X-Launchpad-Notification-Type: bug X-Launchpad-Bug: product=qemu; status=Fix Released; importance=Unknown; assignee=None; X-Launchpad-Bug: distribution=ubuntu; sourcepackage=qemu; component=main; milestone=ubuntu-26.04; status=Fix Released; importance=High; assignee=hector.cao@canonical.com; X-Launchpad-Bug: distribution=ubuntu; distroseries=jammy; sourcepackage=qemu; component=main; status=Confirmed; importance=Medium; assignee=hector.cao@canonical.com; X-Launchpad-Bug: distribution=ubuntu; distroseries=noble; sourcepackage=qemu; component=main; milestone=ubuntu-24.04.4; status=Incomplete; importance=Medium; assignee=hector.cao@canonical.com; X-Launchpad-Bug: distribution=ubuntu; distroseries=plucky; sourcepackage=qemu; component=main; status=Won't Fix; importance=Medium; assignee=None; X-Launchpad-Bug: distribution=ubuntu; distroseries=questing; sourcepackage=qemu; component=main; status=Fix Committed; importance=Medium; assignee=hector.cao@canonical.com; X-Launchpad-Bug: distribution=ubuntu; distroseries=resolute; sourcepackage=qemu; component=main; milestone=ubuntu-26.04; status=Fix Released; importance=High; assignee=hector.cao@canonical.com; X-Launchpad-Bug-Tags: server-todo verification-needed-questing X-Launchpad-Bug-Information-Type: Public X-Launchpad-Bug-Private: no X-Launchpad-Bug-Security-Vulnerability: no X-Launchpad-Bug-Commenters: ahasenack hectorcao janitor mjt+launchpad-tls paelzer utkarsh xypron X-Launchpad-Bug-Reporter: Heinrich Schuchardt (xypron) X-Launchpad-Bug-Modifier: Andreas Hasenack (ahasenack) References: <176477927666.3767208.4954653462090539439.malonedeb@juju-98d295-prod-launchpad-3> Message-Id: <178008584253.3915221.9352376650762367440.malone@juju-98d295-prod-launchpad-7> Subject: [Bug 2133804] Re: QEMU does not emulate IOCTL TCGETS2 X-Launchpad-Message-Rationale: Subscriber (QEMU) @qemu-devel-ml X-Launchpad-Message-For: qemu-devel-ml Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="e655887187b0b1e1a70625cd2d210bb3cf47cd14"; Instance="launchpad-scripts" X-Launchpad-Hash: 6f3985c256aef9ff73256cd7a38ae6d7f295c4e5 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=185.125.188.251; envelope-from=noreply@launchpad.net; helo=smtp-relay-services-1.canonical.com X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Bug 2133804 <2133804@bugs.launchpad.net> Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @launchpad.net) X-ZM-MESSAGEID: 1780086410562154100 In the noble upload, why was python3-venv moved from Build-Depends-Arch to Build-Depends? This is not documented in d/changelog: --- a/debian/control +++ b/debian/control @@ -7,13 +7,13 @@ XSBC-Original-Maintainer: Debian QEMU Team Build-Depends: debhelper-compat (=3D 13), python3:any, + python3-venv, meson (>> 0.63.0~), ninja-build, flex, bison, Build-Depends-Arch: # In comments below we also specify (system-specific) arguments # to qemu's configure script, -- optional features which depend # on build-dependencies. - python3-venv, # --enable-docs # for python3-sphinx:native see #995622 texinfo, python3-sphinx:native, python3-sphinx-rtd-theme, ** Changed in: qemu (Ubuntu Noble) Status: In Progress =3D> Incomplete --=20 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/2133804 Title: QEMU does not emulate IOCTL TCGETS2 Status in QEMU: Fix Released Status in qemu package in Ubuntu: Fix Released Status in qemu source package in Jammy: Confirmed Status in qemu source package in Noble: Incomplete Status in qemu source package in Plucky: Won't Fix Status in qemu source package in Questing: Fix Committed Status in qemu source package in Resolute: Fix Released Bug description: [ Impact ] - Terminal prompt is missing for multiarch containers with qemu-user - Users cannot see the prompt but still can type the commands =C2=A0=C2=A0However the absence of the prompt can be misleading and make = users think that the container hangs. - this fix implements the missing ioctl TERMIOS2 [ Test Plan ] On an amd64 host $ sudo apt install -y docker.io qemu-user-static $ sudo usermod -aG docker ubuntu $ newgrp docker $ docker run --platform=3Dlinux/arm64 -it ubuntu:26.04 bash =C2=A0(this runs on AMD64 host, if you are runnig on ARM64, use -platform= =3Dlinux/riscv64 instead) After docker pulls the image and run the container, you cannot see the prompt ... Status: Downloaded newer image for ubuntu:26.04 ... $ docker run --platform=3Dlinux/arm64 -it ubuntu:24.04 bash Doing the same for Ubuntu Noble image works. $ docker run --platform=3Dlinux/arm64 -it ubuntu:24.04 bash Unable to find image 'ubuntu:24.04' locally 24.04: Pulling from library/ubuntu 818154cda96d: Pull complete 352b2c3faa58: Download complete Digest: sha256:c4a8d5503dfb2a3eb8ab5f807da5bc69a85730fb49b5cfca2330194ebc= c41c7b Status: Downloaded newer image for ubuntu:24.04 root@bf8124075385:/# With this fix, the users should see the prompt when they run bash interactively in the container: $ docker run --platform=3Dlinux/arm64 -it ubuntu:26.04 bash root@bf8124075385:/# [ Where problems could occur ] The fix is around the termios managament so regressions can happen there. There might be regressions on the prompt display. The prompt display is widely used so potential regressions should be visible quickly. [ Other Info ] None -- Original bug report --- In Ubuntu 25.10 we moved to glibc 2.42. Here glibc has changed the implementation of isatty(). It now uses IOCTL TCGETS2 instead of TCGETS. TCGETS2 is not emulated by static QEMU (qemu-riscv64, qemu- arm64, ...). This leads to failures in containers for foreign architectures. E.g. no c= onsole prompt is displayed. A detailed analysis is contained in LP #2133188. A proper implementation of the missing IOCTLs will include: Functions: in linux-user/syscall.c: host_to_target_termios2() target_to_host_termios2() print_termios2() Definitions: in linux-user/syscall.c #define termios2 host_termios2 in linux-user/syscall_types.h STRUCT_SPECIAL(termios2) in linux-user/ioctls.h: IOCTL(TCGETS2, IOC_R, MK_PTR(MK_STRUCT(STRUCT_termios2))) IOCTL(TCSETS2, IOC_W, MK_PTR(MK_STRUCT(STRUCT_termios2))) IOCTL(TCSETSF2, IOC_W, MK_PTR(MK_STRUCT(STRUCT_termios2))) IOCTL(TCSETSW2, IOC_W, MK_PTR(MK_STRUCT(STRUCT_termios2))) in linux-user/user-internals.h: void print_termios2(void *arg); To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/2133804/+subscriptions