From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#50629: 28.0.50; hard to debug an uncaught error with ert Date: Sun, 28 Aug 2022 12:31:20 +0200 Message-ID: References: <15445.1631834888@alto> <87pmgncjvg.fsf@gnus.org> <871qt1aklk.fsf@gnus.org> <875yid94k2.fsf@gnus.org> <871qt192vj.fsf@gnus.org> <040ecbba-3db2-44dc-b398-8365c7542dd3@gmail.com> <87ilmdduxu.fsf@localhost> <875yicptwk.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14186"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) Cc: Mike Kupfer , Ihor Radchenko , 50629@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 28 12:32:12 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 1oSFaO-0003Xy-Pq for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Aug 2022 12:32:12 +0200 Original-Received: from localhost ([::1]:33720 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oSFaN-0002Y1-Lv for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Aug 2022 06:32:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46328) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSFaE-0002Vf-KQ for bug-gnu-emacs@gnu.org; Sun, 28 Aug 2022 06:32:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39674) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oSFaE-0001OU-4C for bug-gnu-emacs@gnu.org; Sun, 28 Aug 2022 06:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oSFaD-0000W0-VE for bug-gnu-emacs@gnu.org; Sun, 28 Aug 2022 06:32:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Aug 2022 10:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50629 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 50629-submit@debbugs.gnu.org id=B50629.16616826891942 (code B ref 50629); Sun, 28 Aug 2022 10:32:01 +0000 Original-Received: (at 50629) by debbugs.gnu.org; 28 Aug 2022 10:31:29 +0000 Original-Received: from localhost ([127.0.0.1]:57656 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oSFZh-0000VF-Bu for submit@debbugs.gnu.org; Sun, 28 Aug 2022 06:31:29 -0400 Original-Received: from mail-wm1-f43.google.com ([209.85.128.43]:39478) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oSFZg-0000V2-9P for 50629@debbugs.gnu.org; Sun, 28 Aug 2022 06:31:28 -0400 Original-Received: by mail-wm1-f43.google.com with SMTP id i188-20020a1c3bc5000000b003a7b6ae4eb2so1718435wma.4 for <50629@debbugs.gnu.org>; Sun, 28 Aug 2022 03:31:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc; bh=lot6k5wdrisFgv0V4XTN4qdXfvZuEr163dNZLnS9iLI=; b=cUr92Yt1vwtBOhXwaUI3Vsb05GpMAfRRzG26G+WPaazdVIz3lG1WgX204cXw5MfzZL ZtlRJ9KsvrqavK66PDl6FEF4EuBhHgOj5mOzjjD1je9lcjaHuSWvPPKjqwSEdlCiHb4F wTCcpk0Yp9XXlMRgZkcecrzES2A/inL1txH5+bZMl9XYMT8PoVq0ZVqcevm065opJeEp aujB944KUjSe4psoCzfCr4rtzdjxdhZJlSypKj4o7d6lSX31Jt7HuRK1BAXDTTs9Chcm jk7QUcPmOgDBR+hV2XS198yK7VXvhuEGidK73rqZHMYLRwHXUeW2+ccNWmsETK0wRDzZ q6Xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc; bh=lot6k5wdrisFgv0V4XTN4qdXfvZuEr163dNZLnS9iLI=; b=jmlVDVEBlF/QXbR2i6xHddeNQ7/SBmYCcDa23A4M7sLTh11TRo97HHpRO/0UPiTZXF bXbfEPhowtH9BjBSYdelJy0Z74/bVnFhXzBcjTE59cGGmD8JUbitnh0A2fYSsR2ownVu lshsn57DuvxA2HiAH6MKpegSsO5IP7zy4Ent0OEnnWtZfZMQbEEdWhKarAbMLe1TDFpW WkqHaoy1Df3fVbqgE4wjmJJLZuN1Wt7ORwxuyoWSwuDcmOo8HANaaEam9Y6vHfjGv1Hg xJ8HV7vUAsBfYQIOorgU9fXn54VEeyL/e98TKF0en6n8eIX5RgS566hklDE6SJBDw3gu tCGQ== X-Gm-Message-State: ACgBeo0oXyzUIPn5e0c+sZeLwLNGhsFBfKKtNrHf25ngRryT3HcCs9Db 9XiXgR85qU6hXstc7HkQDVc= X-Google-Smtp-Source: AA6agR4oLySk/m7KDRjUggIxRz7WgrfMJFp/Ij9j6fKe2kLNfwxfMxefVKNw1FxR+nOr9x1icAL5pQ== X-Received: by 2002:a05:600c:3b16:b0:3a6:169:d7f8 with SMTP id m22-20020a05600c3b1600b003a60169d7f8mr4176873wms.129.1661682682305; Sun, 28 Aug 2022 03:31:22 -0700 (PDT) Original-Received: from Mini.fritz.box (p4fe3a09f.dip0.t-ipconnect.de. [79.227.160.159]) by smtp.gmail.com with ESMTPSA id i29-20020adfaadd000000b002205a5de337sm4259167wrc.102.2022.08.28.03.31.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Aug 2022 03:31:21 -0700 (PDT) In-Reply-To: <875yicptwk.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 28 Aug 2022 12:03:07 +0200") 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:240980 Archived-At: Lars Ingebrigtsen writes: > Gerd M=C3=B6llmann writes: > >> Interestingly with condition-case-unless I get one less error with make >> check: > > Are you sure you removed all the .elc files under test first? Since > this is a change in an ert macro, you have to do that to get meaningful > results. I did a make -C test clean, but now that you say it I checked, and make clean does not remove elcs. Which I personally find surprising. I'll check with elcs removed between runs later. > Anyway, that condition-case is presumably there to allow checking for > failures? I.e., the :expected stuff. Ok. > Instead of altering removing the condition-case there, wouldn't it be > possible to output the backtrace explicitly in the handler? You mean the signal-hook-function? It is invoked, so one can do something there. If it would invoke the debugger, that would also work, I think, but I haven't checked. Directly outputting something there is probably not a good idea. If anything it should record the backtrace in ERT result structs, like ERT's debugger function.