From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id /DWIMPoGGmoi1ScAWB0awg (envelope-from ) for ; Fri, 29 May 2026 17:36:58 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=h21oYLwh; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id B504B1E0A3; Fri, 29 May 2026 17:36:58 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_SBL_CSS,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=no autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 2447F1E024 for ; Fri, 29 May 2026 17:36:58 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9071F4BA798A for ; Fri, 29 May 2026 21:36:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9071F4BA798A Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=h21oYLwh Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTP id B4CBF4BA23EF for ; Fri, 29 May 2026 21:36:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B4CBF4BA23EF Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B4CBF4BA23EF Authentication-Results: sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1780090590; cv=none; b=oo6LM/6sfqBq7DYWHdXW1INySs0TcKGM/kw+1aR1dL3Z/3lApuhfWZIZAGsPw8Sxr9dkEOupWs1+jJVN0PjMg+khcHYO8TKzQYmQeLqy9v+9RjOmoCr8CRwJcX7JcnYUFFEQ9p2lWQphfkKVlzjqh4dZ4l8Nd965HJ8uVCfmT1E= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1780090590; c=relaxed/simple; bh=WR55VRZmDiEvWsUVt+BdUFBjhoWpxPFYC6ooQYhyZFI=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=q4/FojL8tMj0ZM/6XQhzj5vK1gA20OwbzwK+qdVf/1hH8U+3dT7+v4NEAeKnOvC+3h6IkWGLyczSLG+GPHKrdGVmWWunNX+9bDWMYYPIzFAohqR8xhOe0IjUHjxj6xEZakM6FhcGOHMPPmGm0ICk21nRLyRiazw+afAZqDGds30= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=h21oYLwh DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B4CBF4BA23EF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1780090590; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EbGaDpaHNqoQJ0mnRREekrZQV0wjFT8AcWwNIOqMao0=; b=h21oYLwhIAbw9z2JOBc+itoyLoTUiobqu2+4LS5PeIM7yhTz1uxFt1FO30brwSC/z3IfDx nuqOWpHtyUyMdYWmf63Nl7kpNXXX6/AI3mL3yi7LJvxIw8PFT+zcYakpsXUetPhJFfQuUS 7YJ6vtigmTicRUUyE118hf6vKQIXwlI= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-120-TRS7ClosPuawTUjAuVQ3-A-1; Fri, 29 May 2026 17:36:28 -0400 X-MC-Unique: TRS7ClosPuawTUjAuVQ3-A-1 X-Mimecast-MFC-AGG-ID: TRS7ClosPuawTUjAuVQ3-A_1780090588 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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 mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 078891956089 for ; Fri, 29 May 2026 21:36:28 +0000 (UTC) Received: from f42-zbm-amd (unknown [10.22.64.64]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 6D8AB1955F22 for ; Fri, 29 May 2026 21:36:27 +0000 (UTC) Date: Fri, 29 May 2026 14:36:24 -0700 From: Kevin Buettner To: gdb-patches@sourceware.org Subject: Re: [PATCH v2] [gdb/testsuite, Tcl 9] Fix EILSEQ problems for UTF8 related tests Message-ID: <20260529143624.4882c16b@f42-zbm-amd> In-Reply-To: <20260526192701.3835262-2-kevinb@redhat.com> References: <20260526192701.3835262-2-kevinb@redhat.com> Organization: Red Hat MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: vQi6B0_ybSsxCFTz2x5nz4SE_0zPdIBLVQqXI09fne0_1780090588 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org On Tue, 26 May 2026 12:27:02 -0700 Kevin Buettner wrote: > On Fedora 44 and Rawhide (Fedora 45), these tests... > > gdb.ada/non-ascii-utf-8.exp > gdb.base/utf8-identifiers.exp > gdb.rust/unicode.exp > > ...all die due to these errors: > > Running ...gdb/testsuite/gdb.base/utf8-identifiers.exp ... > ERROR: tcl error sourcing > .../gdb/testsuite/gdb.base/utf8-identifiers.exp. ERROR: tcl error code > POSIX EILSEQ {invalid or incomplete multibyte or wide character} error > writing "file6": invalid or incomplete multibyte or wide character ... > > (I've shortened some of the pathnames for brevity.) > > These Fedora systems are using Tcl 9 and also an updated version of > dejagnu with this change applied: > > * Thu Apr 16 2026 Jakub Jelinek - 1:1.6.3-17 > - Apply full set of Tcl 9 compatibility fixes from upstream PR80674 > branch (#2448542) > > That runtest change is responsible for the POSIX EILSEQ errors on > machines with that change. The change to runtest causing the change > in behavior for GDB is the addition of these lines near the top of > the runtest script: > > # Ensure that DejaGnu will be run in the POSIX locale > LC_ALL=C > export LC_ALL > > Tcl 8 used a permissive encoding strategy: bytes that could not be > represented in the current encoding were silently mangled or > substituted. Tcl 9 changed this default to a strict profile, which > means that any attempt to write a character that cannot be expressed > in the channel's encoding raises a POSIX EILSEQ error ("invalid or > incomplete multibyte or wide character"). > > So, together, this Tcl 9 behavior combined with the dejagnu change > to runtest causes the EILSEQ error for the tests mentioned earlier. > > Fix it by using "fconfigure $handle -encoding utf-8 -profile replace" > in proc spawn_capture_tty_name, and proc gdb_stdin_log_init. Also, > the open_logs wrapper has been changed to invoke fconfigure using only > "-encoding utf-8". Testing showed that "-profile replace" wasn't > necessary there. > > Tested on Fedora 28 (Tcl 8.6.8), Fedora 43 (Tcl 9.0.2 / 8.6.16; expect > uses 8.6.16), Fedora 44 (Tcl 9.0.2 / 8.6.17; expect uses 9.0.2), and > Rawhide / Fedora 45 (Tcl 9.0.3 / 8.6.18; expect uses 9.0.3). > > With regard to the Bug noted below, I haven't been able to reproduce > the failures in gdb.ada/lazy-string.exp, but I've been informed that > this commit fixes it. > > Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=34146 > Reviewed-By: Tom de Vries I've pushed this change. Kevin