From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 19GfKY+XRWKxewAAWB0awg (envelope-from ) for ; Thu, 31 Mar 2022 07:59:11 -0400 Received: by simark.ca (Postfix, from userid 112) id 988851F163; Thu, 31 Mar 2022 07:59:11 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (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 simark.ca (Postfix) with ESMTPS id 0B8CF1E150 for ; Thu, 31 Mar 2022 07:59:11 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5D3A0383943C for ; Thu, 31 Mar 2022 11:59:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5D3A0383943C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1648727950; bh=xmu08+Qwop9Z+B/UNbQPuGPunJRoMQbS5e/obLAbDCI=; h=Date:To:In-Reply-To:Subject:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=R8m0BMNEf9sFaeLbL5JymNbrC+UCpiaIJFK7KBkvM0evJgwe8ARL9P6KP1fk81xoh eoO7Ude/n2Gm6N2b36M70XC/wGhHmlsENndVZluiN/8EiGb7U2Qiyv7siV5GnGBYMB gIcR3tRy/sTbXP3TMBmNTmp1QT5XIo+5ZxB2kQlc= Received: from eggs.gnu.org (eggs.gnu.org [209.51.188.92]) by sourceware.org (Postfix) with ESMTPS id C4B933857C50 for ; Thu, 31 Mar 2022 11:58:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C4B933857C50 Received: from [2001:470:142:3::e] (port=55696 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZtRy-00012k-9r; Thu, 31 Mar 2022 07:58:51 -0400 Received: from [87.69.77.57] (port=2862 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZtRs-0001px-EB; Thu, 31 Mar 2022 07:58:47 -0400 Date: Thu, 31 Mar 2022 14:58:54 +0300 Message-Id: <83czi272pt.fsf@gnu.org> To: Pedro Alves In-Reply-To: <4f1b387d-8b63-47d6-79aa-93b27a2cdb9d@palves.net> (message from Pedro Alves on Thu, 31 Mar 2022 10:44:21 +0100) Subject: Re: GDB 12.0.90 available for testing References: <20220320055815.2A90FA4D6C@takamaka.home> <83sfr4a93r.fsf@gnu.org> <83o81m7icz.fsf@gnu.org> <4f1b387d-8b63-47d6-79aa-93b27a2cdb9d@palves.net> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Eli Zaretskii via Gdb-patches Reply-To: Eli Zaretskii Cc: gdb-patches@sourceware.org, brobecker@adacore.com Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" > Date: Thu, 31 Mar 2022 10:44:21 +0100 > Cc: gdb-patches@sourceware.org > From: Pedro Alves > > On 2022-03-31 07:21, Eli Zaretskii via Gdb-patches wrote: > >> Date: Sat, 26 Mar 2022 20:59:04 +0300 > >> From: Eli Zaretskii via Gdb-patches > >> Cc: gdb-patches@sourceware.org > >> > >> Second, one of the selftests fails: > >> > >> Running selftest dw2_expand_symtabs_matching. > >> warning: charset conversion failure for 'u8fun├º├úo'. > >> You may have the wrong value for 'set ada source-charset'. > >> warning: could not convert 'yfunc ' from the host encoding (CP1255) to UTF-32. > >> This normally should not happen, please file a bug report. > >> > >> AFAIU, this is because the names of these two functions are, > >> respectively, in UTF-8 and in Latin-1, but the charset conversion > >> thinks they are in CP1255. Where does the test tell the conversion > >> functions what is the source encoding? > > > > Ping! Can someone please help me debugging this selftest failure? > > Where should I look for the definitions of the host charset used by > > this selftest? > > This is not really a failure, it's just a warning, though the message > gdb prints sounds scary. I chatted with Tromey about it last week, and the > issue is that there's a unit test that always exercises a symbol with a > latin-1 character (0xff). I added that testcase originally, and IIRC, that > was about making sure that the name lookup index was able to sort > strings properly with the 0xff character, because the code > does "ch+1" at some point in the sorting/lookup algorithm, which overflows > in that case. > > It may be that fix is to make the unit test temporarily set the > host charset, and also to remove that "should not happen" warning, as > I think that it should be possible to come up with such symbol names > with escape codes, thus it's not always really a bug. Does this test fail on GNU/Linux? If not, can you (or someone else) tell what is the difference between GNU/Linux and Windows for this purpose? Neither is using Latin-1 as the default host charset, right? > But in nutshell, this isn't really a GDB bug, and it shouldn't block the release. I didn't want to imply that the release should be blocked. I'm just trying to use the pretest for what i's intended: to find bugs and fix them, preferably before the release. TIA