From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#58984: 29.0.50; M-x compile misinterprets libcheck error message format Date: Fri, 04 Nov 2022 19:08:04 +0200 Message-ID: <87edui3ax7.fsf@tcd.ie> References: <87a6589of4.fsf@tcd.ie> Reply-To: "Basil L. Contovounesios" Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39424"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 58984@debbugs.gnu.org To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 04 18:09:20 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1or0By-0009xk-G4 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Nov 2022 18:09:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1or0Bk-0005XU-4d; Fri, 04 Nov 2022 13:09:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1or0Bi-0005WO-ME for bug-gnu-emacs@gnu.org; Fri, 04 Nov 2022 13:09:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1or0Bi-0008Mi-EA for bug-gnu-emacs@gnu.org; Fri, 04 Nov 2022 13:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1or0Bi-0004hU-9h for bug-gnu-emacs@gnu.org; Fri, 04 Nov 2022 13:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Nov 2022 17:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58984 X-GNU-PR-Package: emacs Original-Received: via spool by 58984-submit@debbugs.gnu.org id=B58984.166758169718009 (code B ref 58984); Fri, 04 Nov 2022 17:09:02 +0000 Original-Received: (at 58984) by debbugs.gnu.org; 4 Nov 2022 17:08:17 +0000 Original-Received: from localhost ([127.0.0.1]:54704 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1or0Ay-0004gN-Nz for submit@debbugs.gnu.org; Fri, 04 Nov 2022 13:08:17 -0400 Original-Received: from mail-ed1-f47.google.com ([209.85.208.47]:46076) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1or0Av-0004g3-Af for 58984@debbugs.gnu.org; Fri, 04 Nov 2022 13:08:15 -0400 Original-Received: by mail-ed1-f47.google.com with SMTP id a67so8513583edf.12 for <58984@debbugs.gnu.org>; Fri, 04 Nov 2022 10:08:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=e16RRslDysXxmZbeCpgRKhFsTEkYx23SCGo43ATJjeY=; b=MSGxGVBIBJ6I6G+pEoqQ1liT3BRIa9jyzLZpQu+ecqWAeu9rS4cJn0eMLn+ic4RL+O urOnETi0oPTVRv+11yO4dJ1YX9Po38jzClEX5Z4MSB8Cx2j+VDnpruSyEXUXBYkTH6/E f3cSfUeOII2nOGd1J2pESJq9lHZl0zRRTaIrOySlYv79UTfDmDBsYhPQp1jPqrLTcYXV bWunM4UZIYW5yfp6iPOLAHVqJVgZ2fu0323czJ8h4HkKTabFYHrfTvWIOgTP0aHAjdA2 yMI1WXli8TqLg2+1n64jx7W9gulIkbGnQumLy43qpSLSR/TvvSKGZ6npB1yzooBitOf2 I8mA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=e16RRslDysXxmZbeCpgRKhFsTEkYx23SCGo43ATJjeY=; b=lU4f020clTqceinMZq5vwNBBLcKgWghi5XPErNCQPmp4S6m4L1RGVxcwBM8zGlpjZ6 aoZErsMe9oM74mRjpFKEZo3gH6SWmjyIJon26qhn/oYFSOAIvGEAR9lV151ObYnTmEJe OQh+xKPXt2+ALRFA2UVWW1avjdCRdLQPDtblHB+L5dIi9fE2gxaC4K5RNWCkOXZXWKTJ iIG8wnHBObOsnNMrk/03029c1Dgl1qcvUW+1rLEBr4Ts0FipMQz3AYCfmR9rooPHwBM6 RchQwrcdRMTsIC2N9IMd3jVMNS/oNiKo1QRC7UdAOKYliyLD0CIfZ9+wh5SBNgRNP4sp rGoA== X-Gm-Message-State: ACrzQf1d62Sg/EQfBfLX+SZ6hpoYhCnG3sUPzTV/AoqpAINEWU5PfseT KAYHMGb/QUfqnwqFOsRFKFC7sQ== X-Google-Smtp-Source: AMsMyM7KPXehSwZtvkLV+dq5tX6dqZkMGbMDO0HS+2ELChg11QrmmM6uAOQnnsnSpWsJanWsxkU2Ag== X-Received: by 2002:aa7:d341:0:b0:464:778:c3fe with SMTP id m1-20020aa7d341000000b004640778c3femr15194018edr.251.1667581687258; Fri, 04 Nov 2022 10:08:07 -0700 (PDT) Original-Received: from localhost ([2a02:587:320c:8829:23:8156:16ed:40c2]) by smtp.gmail.com with ESMTPSA id 1-20020a170906308100b00781b589a1afsm2023469ejv.159.2022.11.04.10.08.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Nov 2022 10:08:06 -0700 (PDT) In-Reply-To: ("Mattias =?UTF-8?Q?Engdeg=C3=A5rd?="'s message of "Fri, 4 Nov 2022 12:30:17 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:247099 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mattias Engdeg=C3=A5rd [2022-11-04 12:30 +0100] wrote: > Is this bug conditional on the patches you mentioned? Yes, but only inasmuch as the tests did not compile previously. Both referenced patches are in now, so anyone who has Check installed (in Debian the package is called... -moments pass- ...'check') should be able to run the tests and play with their output. > Can the bug be reproduced from a simple text file that, when presented in > compilation-mode, results in the incorrect behaviour? Like this compile log, for instance? --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=errors.txt -*- mode: compilation; default-directory: "~/.local/src/emacs-check/test/manual/noverlay/" -*- Compilation started at Fri Nov 4 19:00:15 make gcc -O0 -g3 -pthread -I ../../../src -c -o itree-tests.o itree-tests.c gcc itree-tests.o -lcheck_pic -pthread -lrt -lm -lsubunit -lm -o itree-tests ./itree-tests Running suite(s): basic ../../../src/itree.c:1359:eassert condition failed: g && g->running 92%: Checks: 51, Failures: 3, Errors: 1 itree-tests.c:71:F:insert1:test_insert_1:0: Assertion 'N_50.red' failed itree-tests.c:91:F:insert1:test_insert_2:0: Assertion 'N_50.right != NULL' failed: N_50.right == 0 itree-tests.c:740:F:remove3:test_remove_10:0: Assertion 'tree.size != 0' failed: tree.size == 0, 0 == 0 itree-tests.c:749:E:generator:test_generator_1:0: (after this point) Early exit with return value 1 make: *** [Makefile:36: check] Error 1 Compilation exited abnormally with code 2 at Fri Nov 4 19:00:16 --=-=-= Content-Type: text/plain I got it from applying this diff: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=errors.diff diff --git a/test/manual/noverlay/Makefile.in b/test/manual/noverlay/Makefile.in index 3c8dba1ce1..c0fa705174 100644 --- a/test/manual/noverlay/Makefile.in +++ b/test/manual/noverlay/Makefile.in @@ -33,7 +33,7 @@ .PHONY: all: check check: $(PROGRAM) - ./check-sanitize.sh ./$(PROGRAM) + ./$(PROGRAM) itree-tests.o: emacs-compat.h $(top_srcdir)/src/itree.c $(top_srcdir)/src/itree.h diff --git a/test/manual/noverlay/itree-tests.c b/test/manual/noverlay/itree-tests.c index 278e65f9bf..e3cbaffb0f 100644 --- a/test/manual/noverlay/itree-tests.c +++ b/test/manual/noverlay/itree-tests.c @@ -68,8 +68,8 @@ START_TEST (test_insert_1) */ interval_tree_insert (&tree, &N_50); - ck_assert (! N_50.red); - ck_assert_ptr_eq (&N_50, tree.root); + ck_assert (N_50.red); + ck_assert_ptr_ne (&N_50, tree.root); } END_TEST @@ -88,7 +88,7 @@ START_TEST (test_insert_2) ck_assert_ptr_eq (&N_50, tree.root); ck_assert_ptr_eq (N_30.parent, &N_50); ck_assert_ptr_eq (N_50.left, &N_30); - ck_assert_ptr_null (N_50.right); + ck_assert_ptr_nonnull (N_50.right); ck_assert_ptr_null (N_30.left); ck_assert_ptr_null (N_30.right); } @@ -737,7 +737,7 @@ START_TEST (test_remove_10) itree_remove (&tree, &nodes[index[i]]); } ck_assert_ptr_null (tree.root); - ck_assert_int_eq (tree.size, 0); + ck_assert_int_ne (tree.size, 0); } END_TEST @@ -749,11 +749,11 @@ START_TEST (test_remove_10) START_TEST (test_generator_1) { struct itree_node node, *n; - struct itree_iterator *g; + struct itree_iterator *g = NULL; interval_tree_init (&tree); itree_insert (&tree, &node, 10, 20); - g = itree_iterator_start (&tree, 0, 30, ITREE_ASCENDING, NULL, 0); + /* g = itree_iterator_start (&tree, 0, 30, ITREE_ASCENDING, NULL, 0); */ n = itree_iterator_next (g); ck_assert_ptr_eq (n, &node); ck_assert_int_eq (n->begin, 10); --=-=-= Content-Type: text/plain Then building Emacs and finally running 'make' in the test/manual/noverlay directory. > If not, what about a simple script that emits the text piecemeal with the > correct timing for the bug to occur and that can be run in M-x compile? Let me know if the information above is insufficient and I will try providing such a script. > (Not really going to OCR your screenshots to extract the text myself!) Sorry, that was just an attempt to convey fontification :). Thanks, -- Basil --=-=-=--