Stefan Kangas <stefankangas@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Lars Ingebrigtsen <larsi@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 50629) by debbugs.gnu.org; 29 Aug 2022 15:28:55 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 29 11:28:55 2022 Received: from localhost ([127.0.0.1]:33483 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oSgh5-0003kB-Dz for submit <at> debbugs.gnu.org; Mon, 29 Aug 2022 11:28:55 -0400 Received: from quimby.gnus.org ([95.216.78.240]:48248) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1oSgh3-0003jz-Lr for 50629 <at> debbugs.gnu.org; Mon, 29 Aug 2022 11:28:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=tnbhozYuvbCmwdP1Ri83V14K/eYCmRzHoOmb2kkZQH4=; b=XTcU7TL3gPdVY6XsbaT3xkDRb+ qPStPM5GW5bvzXB93bUNJTAi6EMlBFpbZUBaYtjMEkEYiCsYH5t8gS+A8QDt9Bm+crnHP/UhqwjqO aqiLyMkI/zCM8oJU/qE8JfLJ3TgkufMfsUrzYgMam9SCuEwH0f1PFDOR2kwuBm7cA620=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1oSggv-0007WS-5T; Mon, 29 Aug 2022 17:28:47 +0200 From: Lars Ingebrigtsen <larsi@HIDDEN> To: Gerd =?utf-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN> Subject: Re: bug#50629: 28.0.50; hard to debug an uncaught error with ert In-Reply-To: <m2v8qb5b6k.fsf@HIDDEN> ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Mon, 29 Aug 2022 17:20:03 +0200") References: <15445.1631834888@alto> <87pmgncjvg.fsf@HIDDEN> <m2r113qfgw.fsf@HIDDEN> <871qt1aklk.fsf@HIDDEN> <m2ler94x8z.fsf@HIDDEN> <875yid94k2.fsf@HIDDEN> <m2wnatixwp.fsf@HIDDEN> <871qt192vj.fsf@HIDDEN> <040ecbba-3db2-44dc-b398-8365c7542dd3@HIDDEN> <87ilmdduxu.fsf@localhost> <m2czck90re.fsf@HIDDEN> <875yicptwk.fsf@HIDDEN> <m27d2s8xs7.fsf@HIDDEN> <87v8qbnm4i.fsf@HIDDEN> <m2v8qb5b6k.fsf@HIDDEN> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEX9+dr58sz+/ej1 7cn+/vny7NH///9QINfkAAAAAWJLR0QGYWa4fQAAAAd0SU1FB+YIHQ8bGVjLstsAAADLSURBVDjL vZTRDYMwDESNu0BQF4iuniTyAO0H+69SO4HCh12JVuKIhMPLxQEjE5Wp0EFMDKA+LKzoqmDsmogQ qu6gbYGqrkAskGZTFX8mA7CtEF/lkvXeHIi2MW+6a4BNB9JwBPoPUM8hsYNCB0Aly5ECykBy3HoN QASQAXOUGCBx6Onk+ktpkeWgDLAmINkqy2HHjV9DvznOg6we4ARwBFpWWv9DOfq8cBBl7450q/C8 3hlq/XSK3hfs6r3kdZ9nG0TL8qRl9CQbtzfH7gLyNmZrKgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAy Mi0wOC0yOVQxNToyNzoyNSswMDowMAin9OkAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjItMDgtMjlU MTU6Mjc6MjUrMDA6MDB5+kxVAAAAAElFTkSuQmCC X-Now-Playing: Girls's _Reunion_: "These Things" Date: Mon, 29 Aug 2022 17:28:44 +0200 Message-ID: <87sflfm5lf.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Gerd Möllmann <gerd.moellmann@HIDDEN> writes: > I'm afraid that's too late. The stack frames of the error have already > been unwound when we are back in the condition-case. Darn. I thought I remembered there was a way to get at the backtrace while in an error handler in a condition-case, but that I just couldn't remember how. :-/ Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 50629 Cc: Mike Kupfer <mkupfer@HIDDEN>, Ihor Radchenko <yantar92@HIDDEN>, 50629 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes: > I'm afraid that's too late. The stack frames of the error have already > been unwound when we are back in the condition-case. Darn. I thought I remembered there was a way to get at the backtrace while in an error handler in a condition-case, but that I just couldn't remember how. :-/
bug-gnu-emacs@HIDDEN
:bug#50629
; Package emacs
.
Full text available.Received: (at 50629) by debbugs.gnu.org; 29 Aug 2022 15:20:14 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 29 11:20:14 2022 Received: from localhost ([127.0.0.1]:33427 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oSgYg-0003Rh-2i for submit <at> debbugs.gnu.org; Mon, 29 Aug 2022 11:20:14 -0400 Received: from mail-ej1-f49.google.com ([209.85.218.49]:47056) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <gerd.moellmann@HIDDEN>) id 1oSgYc-0003RR-R3 for 50629 <at> debbugs.gnu.org; Mon, 29 Aug 2022 11:20:12 -0400 Received: by mail-ej1-f49.google.com with SMTP id bj12so16347595ejb.13 for <50629 <at> debbugs.gnu.org>; Mon, 29 Aug 2022 08:20:10 -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=pPO5W9DL6WARL7pCg1xC/fF4hpYkJ/BWA+UAstkmAW0=; b=EjIjEllkx1x9P7tuGujT6PP+4FL4sNPHP49953BFfmDhAXkefYOFPqev2ZqkLzrrDn rqYRF9AEbwGJiM+GKHZl9SsUmRQ/ftmIXM9+kzuFbIQTlATgq6LLjGJPOhTyVGnXxRCQ vIdcG4wV/c08sW0WpDcytEqJ9vJo9059ZYFVRABVIXM2g4ndrAM1aUya+eFjQ1J5Fd1g BatgjBY2g+1i58yZXBnJd15SfCTzroxZpebVnkvkHttHyooD80g7yJwKuNe2f8MdSl5/ EPSYTe6EdFp0gRH5CdlzuI+oTjXSdyxDt68Su99m4nam3Xu5iO4sAdXaRMtd6a/CgO2C bwXA== 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=pPO5W9DL6WARL7pCg1xC/fF4hpYkJ/BWA+UAstkmAW0=; b=EPpb+xAqD8JEgeZlm8LP6/p1pdRUIZBh8Bad/tr28ziv47s9wo7KTO2uhfNzptiNC6 wRPXlTnxvIeiKMatTSABwlsDZCM6da03lHRGR1xrbDHIa6Y3Qizy31CYZgMpdE/IkNrq NQprOQVPH4xaLsHSQRWHK7+LuDH7UOvpwuIz1tZwA9PjcdwbGd4s5ygFT/fv72CBb85k s/aRotmr6Q36fcQdUpMiX5MeG+85uEVPoXmcOmHxjNdN50K02fgMTpTjZQ5VEINpM8ly ydlHykUTRKIBblWt5AqsJ3G2m/pzVYlokb7+xSE+xUKOqFgfX23Ddncxg/1C8U409b2p SjGQ== X-Gm-Message-State: ACgBeo3iu3D5phZSMGjNzpJ4SDIKADs522z8uQusJUBcvSohy69QCAXQ jkb7H3W936bznGdE6GKRPNU= X-Google-Smtp-Source: AA6agR4jFN6NNnm3NS7YZNBtikhIybTEf8UP9wBB92One7sa0NbbOueGcDO+3f8HgXZhkwj3epqPcA== X-Received: by 2002:a17:906:4d9a:b0:73d:b425:d6b8 with SMTP id s26-20020a1709064d9a00b0073db425d6b8mr13830463eju.120.1661786405006; Mon, 29 Aug 2022 08:20:05 -0700 (PDT) Received: from Mini.fritz.box (pd9e36666.dip0.t-ipconnect.de. [217.227.102.102]) by smtp.gmail.com with ESMTPSA id r23-20020a50aad7000000b004424429afd4sm5844014edc.16.2022.08.29.08.20.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Aug 2022 08:20:04 -0700 (PDT) From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN> To: Lars Ingebrigtsen <larsi@HIDDEN> Subject: Re: bug#50629: 28.0.50; hard to debug an uncaught error with ert In-Reply-To: <87v8qbnm4i.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Mon, 29 Aug 2022 16:46:21 +0200") References: <15445.1631834888@alto> <87pmgncjvg.fsf@HIDDEN> <m2r113qfgw.fsf@HIDDEN> <871qt1aklk.fsf@HIDDEN> <m2ler94x8z.fsf@HIDDEN> <875yid94k2.fsf@HIDDEN> <m2wnatixwp.fsf@HIDDEN> <871qt192vj.fsf@HIDDEN> <040ecbba-3db2-44dc-b398-8365c7542dd3@HIDDEN> <87ilmdduxu.fsf@localhost> <m2czck90re.fsf@HIDDEN> <875yicptwk.fsf@HIDDEN> <m27d2s8xs7.fsf@HIDDEN> <87v8qbnm4i.fsf@HIDDEN> Date: Mon, 29 Aug 2022 17:20:03 +0200 Message-ID: <m2v8qb5b6k.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 50629 Cc: Mike Kupfer <mkupfer@HIDDEN>, Ihor Radchenko <yantar92@HIDDEN>, 50629 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Lars Ingebrigtsen <larsi@HIDDEN> writes: > Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes: >> You mean the signal-hook-function? It is invoked, so one can do >> something there. > > No, I was thinking in the > > (args-574 (condition-case err (let ( foo) > (list 42 (foo))) > (error (progn > (setq fn-573 #'signal) > > `error' handler here... I'm afraid that's too late. The stack frames of the error have already been unwound when we are back in the condition-case.
bug-gnu-emacs@HIDDEN
:bug#50629
; Package emacs
.
Full text available.Received: (at 50629) by debbugs.gnu.org; 29 Aug 2022 14:46:33 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 29 10:46:33 2022 Received: from localhost ([127.0.0.1]:33363 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oSg24-0002Vz-TM for submit <at> debbugs.gnu.org; Mon, 29 Aug 2022 10:46:33 -0400 Received: from quimby.gnus.org ([95.216.78.240]:47754) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1oSg23-0002Vm-AO for 50629 <at> debbugs.gnu.org; Mon, 29 Aug 2022 10:46:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=b3qY1H+wYMx3qfajcqyWu2W2euyRC1X17tWuzSVbMX4=; b=dvImFL6l6sZ9bW//t8PRwoHLpD 4QWzQQKisygn/p2+Me/E2dqaBy7vMwQe61FA+vvzNMseZfyEdSta6gQTGcuvs4SA5e29sTfPTHkCP o+QGLAoYr4XD/PqJVDYSJU1y5uNTtQegyjmac9IHqTdmnYLLxULgX8ft3UtLPc1Hi49k=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1oSg1t-0007C6-S0; Mon, 29 Aug 2022 16:46:24 +0200 From: Lars Ingebrigtsen <larsi@HIDDEN> To: Gerd =?utf-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN> Subject: Re: bug#50629: 28.0.50; hard to debug an uncaught error with ert In-Reply-To: <m27d2s8xs7.fsf@HIDDEN> ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Sun, 28 Aug 2022 12:31:20 +0200") References: <15445.1631834888@alto> <87pmgncjvg.fsf@HIDDEN> <m2r113qfgw.fsf@HIDDEN> <871qt1aklk.fsf@HIDDEN> <m2ler94x8z.fsf@HIDDEN> <875yid94k2.fsf@HIDDEN> <m2wnatixwp.fsf@HIDDEN> <871qt192vj.fsf@HIDDEN> <040ecbba-3db2-44dc-b398-8365c7542dd3@HIDDEN> <87ilmdduxu.fsf@localhost> <m2czck90re.fsf@HIDDEN> <875yicptwk.fsf@HIDDEN> <m27d2s8xs7.fsf@HIDDEN> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAG1BMVEU+RoM3R4Uscq4n hsItS41TWpOwr8o1iL7///9ogBk0AAAAAWJLR0QIht6VegAAAAd0SU1FB+YIHQ4sOmtpCaoAAAGs SURBVDjLdZNLcoMwDIbJDWJad49c2nWtCex7A+iYPcngrBtm8PUr+QFOQkVMHH2W5N+xikI824FG sQfYikMJoJAGBNNK00sciwO8VgDvJXxDJQDKqvScQPVcgdLQgL0KIPIIabp9YITMAUgjDZuggI6/ AxBgognZmYknlFCJwtTR3wljhlGGKQNng9E6Y6eYlXQMGRjsFLNSDbusgFLR43MxaLaIt8EOIabc wEQChxX4VBd7ZUDirJkGS+6+zoCVspNm9AA8aC6uZeAPy1jeWAAfF2xjcSKSgTqFiBk9CEc7rGC5 IPpdxTM3D0AkQARjKpy9jPX/6vHU+4gZFzvmQNes3HrQZeBH16lGY/Ob0OsoEPFj+ge0d8Ak0GI7 5qBOOtoZfzN/qTOQ39MXDAKXc3vDrwyoFSCizgAmQLtCteUq6ecqMA9R92AN4QCsVRTIVm1+ijim CDLuoFJl4KxQaepP1BCXRHDzLas2N6Vl0MzeC/TB1jlHY44ANT6YB8uVlrlb7P8KPmnaMXDpTse2 5A7rWaDzpoC2xbVoD5omfBlSd6zd7ht3H3RH8QdZYeMm+rfuuwAAACV0RVh0ZGF0ZTpjcmVhdGUA MjAyMi0wOC0yOVQxNDo0NDo1OCswMDowML2hNPUAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjItMDgt MjlUMTQ6NDQ6NTgrMDA6MDDM/IxJAAAAAElFTkSuQmCC X-Now-Playing: Brigid Mae Power's _Head Above the Water_: "The Blacksmith" Date: Mon, 29 Aug 2022 16:46:21 +0200 Message-ID: <87v8qbnm4i.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Gerd Möllmann <gerd.moellmann@HIDDEN> writes: >> 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 [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 50629 Cc: Mike Kupfer <mkupfer@HIDDEN>, Ihor Radchenko <yantar92@HIDDEN>, 50629 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes: >> 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. No, I was thinking in the (args-574 (condition-case err (let ( foo) (list 42 (foo))) (error (progn (setq fn-573 #'signal) `error' handler here...
bug-gnu-emacs@HIDDEN
:bug#50629
; Package emacs
.
Full text available.Received: (at 50629) by debbugs.gnu.org; 28 Aug 2022 12:26:05 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 28 08:26:05 2022 Received: from localhost ([127.0.0.1]:57735 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oSHMa-0005YH-Ox for submit <at> debbugs.gnu.org; Sun, 28 Aug 2022 08:26:04 -0400 Received: from mail-wr1-f48.google.com ([209.85.221.48]:38806) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <gerd.moellmann@HIDDEN>) id 1oSHMY-0005Xm-V0 for 50629 <at> debbugs.gnu.org; Sun, 28 Aug 2022 08:26:03 -0400 Received: by mail-wr1-f48.google.com with SMTP id b5so7009015wrr.5 for <50629 <at> debbugs.gnu.org>; Sun, 28 Aug 2022 05:26:02 -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=6tpG0LIULdft0hpj2lUSfVkMXbyhX7iZaqYVZUZgwIE=; b=IFTpTva3s8nLwkme0Bnr3RvTq8WLY6/YuVD2K+zKgEAdG817MNt+DDv+hmW/8xwY3S v/psyiMZswN2kdyZ9Z0Ywjts0n16clKtbhYf9UeiTIRXIYT9hgbqGE18NUzwbL6pZ2nI HkvUI6QYAsjDYbyK52Xx77cY721O9JrCLGu+iVsp6YA+eXc8S1jazeuzDtlaimhUxY4l hEAqj7zF2TyDZixAiC/zgKGbg5TyuV8Q/kN0pjybEgQKB7Yz+ZDMO5GBjZt1OB+fjC67 vE8B1sJHrN2dgvyYGIDJlEUuuXINbDCyYnbK3FNVkfK1QfDVK+sFsHtwR2CVwvxDqjKR Y9dw== 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=6tpG0LIULdft0hpj2lUSfVkMXbyhX7iZaqYVZUZgwIE=; b=mCarM5xnpCWzpblC2DT/mcfrLttJ4T3yR8RDQ9ry/giGAcH2dZU9eWHtfixup9LiGE xU5nv1hea6iDPBW2wcG/ExOGfPqUhbU1s2KbfpJbMep94P25bWA0x1l3fCMlxz6T5vp+ 5yOCjwttUeTSAs3iixbG/uLr94Gec1Dott42Eq5mgu8jEby4mwH+XjX00FoQbLzYDAGA uE2BY9Sm6VYU7+7YPRdrjyfRmj6qrl7jb+9u/x+JKB1S4+G7bHOZXX8FwvVfXP556cI4 Bq/NAcpEJCbp0n2OVfEq+34VqUGH9qhG6Bh9qHzqmcSp+Q//u4Fa75PMx3M+WSNJU4AM iTPw== X-Gm-Message-State: ACgBeo056WVFKhT5xhpLlzFv49MKIAfZIfCV8jnWtOI8QNIVdOMLjWhh 12IpL2sXRfh6ZqqoLHHJNptnH4iyw2+smg== X-Google-Smtp-Source: AA6agR7cNtTRxHtAi5FMGCw8TlP0NPRJGMGlWFJzF1zrGZuzioy2FCNKjk6lxNy5YPDkl1Zz++l11A== X-Received: by 2002:a5d:6d0b:0:b0:222:955a:8774 with SMTP id e11-20020a5d6d0b000000b00222955a8774mr3819090wrq.129.1661689556606; Sun, 28 Aug 2022 05:25:56 -0700 (PDT) Received: from Mini.fritz.box (p4fe3a09f.dip0.t-ipconnect.de. [79.227.160.159]) by smtp.gmail.com with ESMTPSA id bh7-20020a05600c3d0700b003a4f1385f0asm5877429wmb.24.2022.08.28.05.25.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Aug 2022 05:25:55 -0700 (PDT) From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN> To: Lars Ingebrigtsen <larsi@HIDDEN> Subject: Re: bug#50629: 28.0.50; hard to debug an uncaught error with ert In-Reply-To: <m27d2s8xs7.fsf@HIDDEN> ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Sun, 28 Aug 2022 12:31:20 +0200") References: <15445.1631834888@alto> <87pmgncjvg.fsf@HIDDEN> <m2r113qfgw.fsf@HIDDEN> <871qt1aklk.fsf@HIDDEN> <m2ler94x8z.fsf@HIDDEN> <875yid94k2.fsf@HIDDEN> <m2wnatixwp.fsf@HIDDEN> <871qt192vj.fsf@HIDDEN> <040ecbba-3db2-44dc-b398-8365c7542dd3@HIDDEN> <87ilmdduxu.fsf@localhost> <m2czck90re.fsf@HIDDEN> <875yicptwk.fsf@HIDDEN> <m27d2s8xs7.fsf@HIDDEN> Date: Sun, 28 Aug 2022 14:25:54 +0200 Message-ID: <m2zgfo7dwt.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 50629 Cc: 50629 <at> debbugs.gnu.org, Ihor Radchenko <yantar92@HIDDEN>, Mike Kupfer <mkupfer@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes: > 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. I take that back after trying it. I'll let this rest, maybe I get some other idea. (I think using only a debugger function like now and neither a signal-hook-function nor condition-case could work better, but for that one has to rewrite a lot, and that's a bit too much programming for me, ATM.)
bug-gnu-emacs@HIDDEN
:bug#50629
; Package emacs
.
Full text available.Received: (at 50629) by debbugs.gnu.org; 28 Aug 2022 10:43:34 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 28 06:43:34 2022 Received: from localhost ([127.0.0.1]:57664 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oSFlL-0000oP-NT for submit <at> debbugs.gnu.org; Sun, 28 Aug 2022 06:43:34 -0400 Received: from mail-wr1-f48.google.com ([209.85.221.48]:43554) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <gerd.moellmann@HIDDEN>) id 1oSFlG-0000o9-Rk for 50629 <at> debbugs.gnu.org; Sun, 28 Aug 2022 06:43:30 -0400 Received: by mail-wr1-f48.google.com with SMTP id z16so6824077wrh.10 for <50629 <at> debbugs.gnu.org>; Sun, 28 Aug 2022 03:43:26 -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=Rr3FJ7MhHBBoacrB6zXn4H7AbRZPOpwdikMraGZs8NE=; b=UTtLA/ejHVqpeuXPq3RjXS6Qcn+/fdKfr/MLZR1sRjLRBSHS3wAOBxd0Fyu3j6JXLF NFhUsxwrhbn1vbFNyCTjCGcbLT/TczX4b8+gD2m2LrIOIuR38kl8RFTU6p+esgHFYUA7 lL1n+SVrOE6VMCZSSQqGG/IGtuDA/AZwf24u1UDB0y6Afu0lg8T9pCvNxCD0pTlzTGH7 G1S2L8Sp1y4Gae7cVkISTN6IlEHMFBb4VyNWFwBrpwrqPwXd0wban3DzCdJnVNIob3kK 4dHOsBeHXMI81hMgDSVePKNrKltFbcPLj6HIEIkcAq5PwRAPdieoxfBYyAlwdOSIUeTH o7Sw== 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=Rr3FJ7MhHBBoacrB6zXn4H7AbRZPOpwdikMraGZs8NE=; b=z9brAGErANwC9AFmOmyU85PY5oCk2RRTdd8+Q5ZAprdh1TvqVwVzhi8boAIOOKr7zq jQkjmTtj5wCqXLpwDLXrdf0ccemxTLLs/9k52zqhOkMwihk2aiUs7AHp4p/NHc7eHeln 4UuBGkju1mhmmrJd9oIkDCXmnjhBjvCNtzY3nFARk61Gzg5qpR77Vs0Xi+BZsAJCKkpe W53He5IyJg9vICu16LC9GmMJqzCTYwc1kIzl3U/m2q/rrS8eYcj7qLIGSi9aXejSyXJy a4kJZME/4WwjoiDLudIK4foM5XYd2hjPXyxt7NnYzrtDKwlZdlZADYfgXrKizUxYlEUg nrWA== X-Gm-Message-State: ACgBeo3cuWmTrcReZG4kWfNr669pxNQBygTw4xtZ8qmy2afLLCTuF4E4 lBDSi7XAPz3cew57S2LYN/E1Ic6MV1rUIw== X-Google-Smtp-Source: AA6agR7SNWFkdr4VpVu9Sgr89QUrXjYU3sX04gLsvodqStC3J8Q82wfA6aek4EahSyRRcG/uYRzgFg== X-Received: by 2002:a5d:514d:0:b0:225:3507:79e6 with SMTP id u13-20020a5d514d000000b00225350779e6mr3780666wrt.85.1661683400488; Sun, 28 Aug 2022 03:43:20 -0700 (PDT) Received: from Mini.fritz.box (p4fe3a09f.dip0.t-ipconnect.de. [79.227.160.159]) by smtp.gmail.com with ESMTPSA id r38-20020a05600c322600b003a536d5aa2esm5194015wmp.11.2022.08.28.03.43.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Aug 2022 03:43:19 -0700 (PDT) From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN> To: Lars Ingebrigtsen <larsi@HIDDEN> Subject: Re: bug#50629: 28.0.50; hard to debug an uncaught error with ert In-Reply-To: <m27d2s8xs7.fsf@HIDDEN> ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Sun, 28 Aug 2022 12:31:20 +0200") References: <15445.1631834888@alto> <87pmgncjvg.fsf@HIDDEN> <m2r113qfgw.fsf@HIDDEN> <871qt1aklk.fsf@HIDDEN> <m2ler94x8z.fsf@HIDDEN> <875yid94k2.fsf@HIDDEN> <m2wnatixwp.fsf@HIDDEN> <871qt192vj.fsf@HIDDEN> <040ecbba-3db2-44dc-b398-8365c7542dd3@HIDDEN> <87ilmdduxu.fsf@localhost> <m2czck90re.fsf@HIDDEN> <875yicptwk.fsf@HIDDEN> <m27d2s8xs7.fsf@HIDDEN> Date: Sun, 28 Aug 2022 12:43:18 +0200 Message-ID: <m24jxw8x89.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 50629 Cc: 50629 <at> debbugs.gnu.org, Ihor Radchenko <yantar92@HIDDEN>, Mike Kupfer <mkupfer@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes: > Lars Ingebrigtsen <larsi@HIDDEN> writes: >> 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'll check with elcs removed between runs later. Before I forget this, I did it rather now, and indeed I see more errors with condition-case-unless-debug. The output with condition-case shows only 2 errors Ran 6582 tests, 6415 results as expected, 2 unexpected, 165 skipped
bug-gnu-emacs@HIDDEN
:bug#50629
; Package emacs
.
Full text available.Received: (at 50629) by debbugs.gnu.org; 28 Aug 2022 10:31:29 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 28 06:31:29 2022 Received: from localhost ([127.0.0.1]:57656 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oSFZh-0000VF-Bu for submit <at> debbugs.gnu.org; Sun, 28 Aug 2022 06:31:29 -0400 Received: from mail-wm1-f43.google.com ([209.85.128.43]:39478) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <gerd.moellmann@HIDDEN>) id 1oSFZg-0000V2-9P for 50629 <at> debbugs.gnu.org; Sun, 28 Aug 2022 06:31:28 -0400 Received: by mail-wm1-f43.google.com with SMTP id i188-20020a1c3bc5000000b003a7b6ae4eb2so1718435wma.4 for <50629 <at> 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) 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) From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN> To: Lars Ingebrigtsen <larsi@HIDDEN> Subject: Re: bug#50629: 28.0.50; hard to debug an uncaught error with ert In-Reply-To: <875yicptwk.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Sun, 28 Aug 2022 12:03:07 +0200") References: <15445.1631834888@alto> <87pmgncjvg.fsf@HIDDEN> <m2r113qfgw.fsf@HIDDEN> <871qt1aklk.fsf@HIDDEN> <m2ler94x8z.fsf@HIDDEN> <875yid94k2.fsf@HIDDEN> <m2wnatixwp.fsf@HIDDEN> <871qt192vj.fsf@HIDDEN> <040ecbba-3db2-44dc-b398-8365c7542dd3@HIDDEN> <87ilmdduxu.fsf@localhost> <m2czck90re.fsf@HIDDEN> <875yicptwk.fsf@HIDDEN> Date: Sun, 28 Aug 2022 12:31:20 +0200 Message-ID: <m27d2s8xs7.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 50629 Cc: Mike Kupfer <mkupfer@HIDDEN>, Ihor Radchenko <yantar92@HIDDEN>, 50629 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Lars Ingebrigtsen <larsi@HIDDEN> writes: > Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> 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.
bug-gnu-emacs@HIDDEN
:bug#50629
; Package emacs
.
Full text available.Received: (at 50629) by debbugs.gnu.org; 28 Aug 2022 10:03:22 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 28 06:03:22 2022 Received: from localhost ([127.0.0.1]:57624 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oSF8U-00085G-5O for submit <at> debbugs.gnu.org; Sun, 28 Aug 2022 06:03:22 -0400 Received: from quimby.gnus.org ([95.216.78.240]:35422) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1oSF8Q-00084y-Fb for 50629 <at> debbugs.gnu.org; Sun, 28 Aug 2022 06:03:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Ynghaq923Fe8aeaMxFX6G8LV5moh1lQaBRWUVyxh3Z8=; b=MCz0GmmPTWKduMly0opW3AQ97G V9T/BhXdMV/s981wdiXpEmFCBiWisEUuSzgtUSQEnH7cX/vyOXvOVpX4Gtw84ULlTw4yuWItiVXeA ahxL8pourAB1hHQQpMHGeSBlFA2g06Fd5v9bs7T9P8d85rWmfqr6K6Kdfw8DYMsFy91Q=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1oSF8G-0003fK-Ii; Sun, 28 Aug 2022 12:03:10 +0200 From: Lars Ingebrigtsen <larsi@HIDDEN> To: Gerd =?utf-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN> Subject: Re: bug#50629: 28.0.50; hard to debug an uncaught error with ert In-Reply-To: <m2czck90re.fsf@HIDDEN> ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Sun, 28 Aug 2022 11:27:01 +0200") References: <15445.1631834888@alto> <87pmgncjvg.fsf@HIDDEN> <m2r113qfgw.fsf@HIDDEN> <871qt1aklk.fsf@HIDDEN> <m2ler94x8z.fsf@HIDDEN> <875yid94k2.fsf@HIDDEN> <m2wnatixwp.fsf@HIDDEN> <871qt192vj.fsf@HIDDEN> <040ecbba-3db2-44dc-b398-8365c7542dd3@HIDDEN> <87ilmdduxu.fsf@localhost> <m2czck90re.fsf@HIDDEN> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEXYebPYd7KtYpCK TnJHKDvwyeL////KdnvEAAAAAWJLR0QGYWa4fQAAAAlwSFlzAAAAZAAAAGQAD5bF3QAAAAd0SU1F B+YIHAk5CV7//0gAAAGlSURBVDjLbZNtjoQgDIYLM/wHXP8reIDNlBMMHABnw/2vsgVEUaeJIekj Lf14Aa7GZmYRw80PWhobXAB1GJOKaWOGgC4ESCKmmEQiExBFNPOyAbKYimUaP9p58lcgs3MsYFqH UKyANbMKIlvCcSN24IPdDZYSbED8uQ5AAzHND4e4hyrRMvibjEVvMRx1xCSjsM5jNk8EjqJVjY4F 9r3SW9rgTb5x2BJ668DzDHICpSR93J8AVUCFUVtFpLY2t2t1xFz16uyWfe/VuJaBPOu73kstMHdo pQqpymjyz78lRxwrYKX9+oXO/xzJRZ0t/cEx2KO7dYjF4LE/t05btjPn9/wC6NEy+0EPe6h28vwq MOCAhkHpRT3HRA17M1gsgsqTYKqes6IdkQD8xU/rrCVYQ36QFKwHw8Symyma/AlwyYsOtEV3AlKa ogN91YdRE+GJW3cB3FB8rcrGndWk6KFNOBfjryaciy2zvq1P3TqKFNwXwEmy3wCzFr+GotJIm3gD A70H0d5AESxpwJ23veogq4Ng30TVdED6OPVqaBvtLznaRlX7B5KPsgegCyajAAAAJXRFWHRkYXRl OmNyZWF0ZQAyMDIyLTA4LTI4VDA5OjU3OjA5KzAwOjAwDcRFfwAAACV0RVh0ZGF0ZTptb2RpZnkA MjAyMi0wOC0yOFQwOTo1NzowOSswMDowMHyZ/cMAAAAASUVORK5CYII= X-Now-Playing: Hexting's _Post Post Rock Rock_: "Annie Lennox Shreds" Date: Sun, 28 Aug 2022 12:03:07 +0200 Message-ID: <875yicptwk.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Gerd Möllmann <gerd.moellmann@HIDDEN> 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. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 50629 Cc: Mike Kupfer <mkupfer@HIDDEN>, Ihor Radchenko <yantar92@HIDDEN>, 50629 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> 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. Anyway, that condition-case is presumably there to allow checking for failures? I.e., the :expected stuff. Instead of altering removing the condition-case there, wouldn't it be possible to output the backtrace explicitly in the handler?
bug-gnu-emacs@HIDDEN
:bug#50629
; Package emacs
.
Full text available.Received: (at 50629) by debbugs.gnu.org; 28 Aug 2022 09:27:14 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 28 05:27:14 2022 Received: from localhost ([127.0.0.1]:57602 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oSEZW-0007B5-0E for submit <at> debbugs.gnu.org; Sun, 28 Aug 2022 05:27:14 -0400 Received: from mail-wm1-f42.google.com ([209.85.128.42]:37715) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <gerd.moellmann@HIDDEN>) id 1oSEZR-0007Ao-Ak for 50629 <at> debbugs.gnu.org; Sun, 28 Aug 2022 05:27:12 -0400 Received: by mail-wm1-f42.google.com with SMTP id c187-20020a1c35c4000000b003a30d88fe8eso6644045wma.2 for <50629 <at> debbugs.gnu.org>; Sun, 28 Aug 2022 02:27:09 -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=gVvPzLr+GBJaT1rak8QW5TMSOic8JLgKy3EHBo5mw90=; b=hZVU0rje2+cHEd0p4lD6Wk40o28TCLYCVot2Xt80+79I1BXqxSUVJiltgwhXz0DuAW kWMMdWr5jjV5o7Uhf8pxsHz+K7eCa8JhbnSBtIHbF0VZGocURGLfxPGRP934kiOtqH9x N4XkbwwsqW86thov0hR7/xRDLE1N7kIwkeFDcGBQzMW+ajfmo+QO+KTkXnzfAqgJIcj0 PhWlf8MBum4zlpnAGGK4XNwxg8OL+H3OH6VDyqzUfuhJbi76DH3V902nQwnYfMRXPPEA iYSE4nvQmugDUdmYDOaLMBphF7OEWPuh7fTDRITQJzPZna6bvC4AmJbWqlD4//6gZ9Tj GMlg== 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=gVvPzLr+GBJaT1rak8QW5TMSOic8JLgKy3EHBo5mw90=; b=o/SFStoXX5lkEHe3u+Rk0y9k+IiwcVLK22kF2z4f1lPDv8VSDVFET7LqNMNHyO6p3b Cj6iPdDB60ZNmiJZQQ1Q3IFd56eUamd04jBI2wQv1ppqBQgA3ks5p8kQpJs/40QosdoQ KfxmpaZ+OZyWfiNK2TbNqOs0i09iJdGN5lh3zNnP5hkitIaGb+IoFtfLA9VCOm0owC2N A5deSJ2lzFQBRtl82hyfKkLddsRHuWki1KupqYTAZQfKg8KnG9F/aZMfquLczl4Qj6rG 9+yIFuiHz8jrjUBBdwJdoMDjeDUCmgPYZuKSY7Ev0fFLgq13o+4CFRUeeC34jLnRwNA/ wZUQ== X-Gm-Message-State: ACgBeo1t7aYMYLh3qr1+aY4ILdFveJkSw3Fggl/e3ilKQgsREyDGSLcU 97npRZ4FqUxAjyJd3DYLw2I= X-Google-Smtp-Source: AA6agR5fTooEB1JhVLYS1dqxFMvhngwwaF8rGoMJhIHC3MkvffaI0X3npCUu4Ax8vqGLavu0XQZXiA== X-Received: by 2002:a05:600c:4ec6:b0:3a5:ff4e:54d4 with SMTP id g6-20020a05600c4ec600b003a5ff4e54d4mr4033125wmq.25.1661678823077; Sun, 28 Aug 2022 02:27:03 -0700 (PDT) Received: from Mini.fritz.box (p4fe3a09f.dip0.t-ipconnect.de. [79.227.160.159]) by smtp.gmail.com with ESMTPSA id l14-20020adfe58e000000b0022377df817fsm4096766wrm.58.2022.08.28.02.27.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Aug 2022 02:27:02 -0700 (PDT) From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN> To: Ihor Radchenko <yantar92@HIDDEN> Subject: Re: bug#50629: 28.0.50; hard to debug an uncaught error with ert In-Reply-To: <87ilmdduxu.fsf@localhost> (Ihor Radchenko's message of "Sun, 28 Aug 2022 09:21:33 +0800") References: <15445.1631834888@alto> <87pmgncjvg.fsf@HIDDEN> <m2r113qfgw.fsf@HIDDEN> <871qt1aklk.fsf@HIDDEN> <m2ler94x8z.fsf@HIDDEN> <875yid94k2.fsf@HIDDEN> <m2wnatixwp.fsf@HIDDEN> <871qt192vj.fsf@HIDDEN> <040ecbba-3db2-44dc-b398-8365c7542dd3@HIDDEN> <87ilmdduxu.fsf@localhost> Date: Sun, 28 Aug 2022 11:27:01 +0200 Message-ID: <m2czck90re.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 50629 Cc: Lars Ingebrigtsen <larsi@HIDDEN>, Mike Kupfer <mkupfer@HIDDEN>, 50629 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Ihor Radchenko <yantar92@HIDDEN> writes: > Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes: > >> On 22-08-27 16:29 , Lars Ingebrigtsen wrote: >>> (args-574 (condition-case err (let ( foo) >>> (list 42 (foo))) >> >> Sorry, you are right, but then the condition-case "swallows" the error. >> Not sure what can be done about that. > > condition-case-unless-debug? Well, that's a nice fretwork :-) When I expand the er-deftest form I get something like this (progn (ert-set-test 'f (record 'ert-test 'f nil #'(lambda nil (setq debug-on-error t) (defalias 'foo #'(lambda nil (bar))) (defalias 'bar #'(lambda nil (zot))) (let* ((fn-339 #'equal) (args-340 (condition-case err (let ((signal-hook-function #'ert--should-signal-hook)) (list 42 (foo))) (error (progn (setq fn-339 #'signal) (list (car err) (cdr err))))))) ... Note the binding of signal-hook-function, which is missing from Lars' expansion result, where is says (let* ((fn-573 #'equal) (args-574 (condition-case err (let ( foo) (list 42 (foo))) (error (progn (setq fn-573 #'signal) (list (car err) (cdr err))))))) I can't explain that. Anyway, let's assume that signal-hook-function is set. and the test is run. This is done in ert--run-test-internal. That function binds debug-on-error to t, and debugger to a lambda invoking ert--run-test-debugger. When our error is signaled, ert--should-signal-hook does nothing because the error is not one of (ert-test-failed ert-test-skipped). So ert--run-test-debugger is not run during the original signal. Not from the signal-hook-function, because it doesn't want to, and not otherwise because of the condition-case. Instead, this part of the test expansion comes into play: (let ((value-341 'ert-form-evaluation-aborted-342)) (let (form-description-343) (if (unwind-protect (setq value-341 (apply fn-339 args-340)) Note that fn-339 has been set to signal in the condition-case. Since debug-on-error is t, the apply in the last line calls signal and we land in ert--run-test-debugger. The debugger than records the backtrace, which is of course not the original backtrace. So, what can we do? I assume there is a good reason that the signal hook function doesn't invoke the debugger? Or in other words, what breaks when the debugger is always invoked, which it would with condition-case-unless-error? (That would be when ert-fail or ert-skip are used in tests.) I don't know. Interestingly with condition-case-unless I get one less error with make check: With condition-case-unless-debug: SUMMARY OF TEST RESULTS ----------------------- Files examined: 445 Ran 6582 tests, 6410 results as expected, 7 unexpected, 165 skipped 5 files contained unexpected results: lisp/subr-tests.log lisp/ls-lisp-tests.log lisp/emacs-lisp/ert-tests.log lisp/emacs-lisp/edebug-tests.log With condition-case: SUMMARY OF TEST RESULTS ----------------------- Files examined: 445 Ran 6582 tests, 6409 results as expected, 8 unexpected, 165 skipped 6 files contained unexpected results: src/process-tests.log lisp/subr-tests.log lisp/ls-lisp-tests.log lisp/emacs-lisp/ert-tests.log lisp/emacs-lisp/edebug-tests.log lisp/emacs-lisp/cl-lib-tests.log Could others try this on their platforms/with their test suites? From 8154955c5ff056d60b6bcd0b4b2dd234c33f0a75 Mon Sep 17 00:00:00 2001 From: =3D?UTF-8?q?Gerd=3D20M=3DC3=3DB6llmann?=3D <gerd@HIDDEN> Date: Sun, 28 Aug 2022 11:23:00 +0200 Subject: [PATCH] Let ERT test definitions use condition-case-unless-debug * lisp/emacs-lisp/ert.el (ert--expand-should-1): Use condition-case-unless-debug in test expansion (bug#50629). --- lisp/emacs-lisp/ert.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/ert.el b/lisp/emacs-lisp/ert.el index 047b0069bb..a8fe14aa6d 100644 --- a/lisp/emacs-lisp/ert.el +++ b/lisp/emacs-lisp/ert.el @@ -319,7 +319,9 @@ ert--expand-should-1 (value (gensym "value-")) (default-value (gensym "ert-form-evaluation-aborted-"))) `(let* ((,fn (function ,fn-name)) - (,args (condition-case err + ;; Use condition-case-unless-debug to let the debugger r= ecord + ;; the original backtrace when a signal occurs. + (,args (condition-case-unless-debug err (let ((signal-hook-function #'ert--should-sig= nal-hook)) (list ,@arg-forms)) (error (progn (setq ,fn #'signal) --=20 2.37.2
bug-gnu-emacs@HIDDEN
:bug#50629
; Package emacs
.
Full text available.Received: (at 50629) by debbugs.gnu.org; 28 Aug 2022 01:20:42 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 27 21:20:42 2022 Received: from localhost ([127.0.0.1]:57338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oS6yg-0003ET-Cg for submit <at> debbugs.gnu.org; Sat, 27 Aug 2022 21:20:42 -0400 Received: from mail-pj1-f48.google.com ([209.85.216.48]:51998) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <yantar92@HIDDEN>) id 1oS6ye-0003EF-NT for 50629 <at> debbugs.gnu.org; Sat, 27 Aug 2022 21:20:41 -0400 Received: by mail-pj1-f48.google.com with SMTP id e19so4891551pju.1 for <50629 <at> debbugs.gnu.org>; Sat, 27 Aug 2022 18:20:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc; bh=tNZToE+aHBG0xU2H2qsPnSdYSerDvLyl3AUtDhvzsBA=; b=Zf+vVARmlaP4YIqq4bLsJNSsR6t6hI9RCWfX4UV8TFqX81ZtvNBOBZF/7ZHLP0f2cl OhGjRvK4QvsGKV1eKijIT8Xzx+YkwEWWFvm9Ua5INNP/uT75zT3GQVPcTuyZBwftc8JP WU6zSe97UdWqytmlnV8NLBjwMpbQ8B1IjLlZEZtXokRdEU5iLcrCVfKXk/DErf/03PtE a8q4RS7hsGaYY4L/ne8kF+VHqHKFNF0+zltwoRZsZq/52SdZf97F5iYF7VfGjNiCgnjt o7bT1uwP6urLt21I3YYRjqbGFOYFvBPFOjmcZxJ5xR3Sds2iVnEHqXSYgx+gkuL7oYgI z5xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=tNZToE+aHBG0xU2H2qsPnSdYSerDvLyl3AUtDhvzsBA=; b=yaMbQ60NOzp7/uaMZdJequxukMtgkYvFWx94a4dzf41+XdhZ+pAAJFPHHMKXgpmpvR xDYcWSBmLt8VacEvAkwMjf9AbI+J+sKyBtA4EtOo5zBDCxLBR4VBLG3IBVPr59B/nZS5 RUoHpdyAPeuOYaFQiadX1dx+k//jxJEjnEFTr4CVpVOWA49K6MiEux7hexaZBJ031t0G P6XmZS1DLJjmyJFc0oqJFe02HaWTIWOMy8/CDX2K3ka07yR0rAOm3iRR1lbUCLD51hsi y5FR/L53JfGHuVbx6F8vSxF84SHkfhHdm7LkUyw2kanH5y91joBj53VJeyTayaX/gugA nrZw== X-Gm-Message-State: ACgBeo3oOlxvzyAIsBlVQCUZLgIxzgcdwe9ESd8okNVvay2Hz/Mpiujb 0JT9qw3CQnrkVYTfXE7+U9E= X-Google-Smtp-Source: AA6agR5CSlyeCsNkGHhFCIQ+Nrr9L9f5nFB+nRjt4eo871B+qgpTDZd2fad/jHfJaXD3JB9BfCB7Fw== X-Received: by 2002:a17:903:2406:b0:172:a576:51c1 with SMTP id e6-20020a170903240600b00172a57651c1mr10537361plo.106.1661649632753; Sat, 27 Aug 2022 18:20:32 -0700 (PDT) Received: from localhost ([2409:8a70:2b3:c8a0:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id c6-20020a170903234600b00172feb2bab8sm4318376plh.159.2022.08.27.18.20.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Aug 2022 18:20:32 -0700 (PDT) From: Ihor Radchenko <yantar92@HIDDEN> To: Gerd =?utf-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN> Subject: Re: bug#50629: 28.0.50; hard to debug an uncaught error with ert In-Reply-To: <040ecbba-3db2-44dc-b398-8365c7542dd3@HIDDEN> References: <15445.1631834888@alto> <87pmgncjvg.fsf@HIDDEN> <m2r113qfgw.fsf@HIDDEN> <871qt1aklk.fsf@HIDDEN> <m2ler94x8z.fsf@HIDDEN> <875yid94k2.fsf@HIDDEN> <m2wnatixwp.fsf@HIDDEN> <871qt192vj.fsf@HIDDEN> <040ecbba-3db2-44dc-b398-8365c7542dd3@HIDDEN> Date: Sun, 28 Aug 2022 09:21:33 +0800 Message-ID: <87ilmdduxu.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 50629 Cc: Lars Ingebrigtsen <larsi@HIDDEN>, 50629 <at> debbugs.gnu.org, Mike Kupfer <mkupfer@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.7 (/) Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes: > On 22-08-27 16:29 , Lars Ingebrigtsen wrote: >> (args-574 (condition-case err (let ( foo) >> (list 42 (foo))) > > Sorry, you are right, but then the condition-case "swallows" the error. > Not sure what can be done about that. condition-case-unless-debug? --=20 Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92
bug-gnu-emacs@HIDDEN
:bug#50629
; Package emacs
.
Full text available.Received: (at 50629) by debbugs.gnu.org; 27 Aug 2022 15:13:25 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 27 11:13:25 2022 Received: from localhost ([127.0.0.1]:56789 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oRxUz-0000OO-1k for submit <at> debbugs.gnu.org; Sat, 27 Aug 2022 11:13:25 -0400 Received: from mail-wr1-f47.google.com ([209.85.221.47]:34774) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <gerd.moellmann@HIDDEN>) id 1oRxUw-0000OA-4d for 50629 <at> debbugs.gnu.org; Sat, 27 Aug 2022 11:13:24 -0400 Received: by mail-wr1-f47.google.com with SMTP id e13so4130423wrm.1 for <50629 <at> debbugs.gnu.org>; Sat, 27 Aug 2022 08:13:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=VCLsO9WOzwIOHWpNBppdv2rqsqRI/RhshSiYB1ihfUA=; b=WHRkQaUEqh4RSgRiV3pNUsTsGJlFNKWq4HmlbNJynZHHW47v+LxKyohiA6iDyaQe4G YJo/Z0iKxp178AD/79AZyT6uhvg8qcMwTw/nE83md2n0FHT0/TOeYeLcNUJHAnqVAqDV kioijl8qCjzk0cXvcWf0x6I62AInKFJ9g9lqweB4PTy/iJwgNXCdUyi5D/P3ZzVmrTTR FpTOhPv5XI1Y750x9iXEkv8pldoEDcZAMHGW7ZIzN54RFkLCkqMN2W7COfkqSkOzLyfa ry7I+69vwXy2MSqR+JbabzWDoFUdwjl9LllUkJr2L/AoIxHzfHGFtbFi/JtNdliV2VBd Mlvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=VCLsO9WOzwIOHWpNBppdv2rqsqRI/RhshSiYB1ihfUA=; b=AiqKZCl1ZN36HQGoGllD0C+BZuP0N56S9eECrrX+LRHLRfvwps7u0ZNOPvsRKya4jA x5a5a9P0QKaJVTYMICYPDPuDj+NSEX4fnagY/3pdsU+sNqhmPPQpWmI8rs5Af96Nb/UM S+7hSwTrdS1k++OBeBraen4cTbqk34nRQLPsh4jfE/d7EMiwPyzL4oJ3FUUugXXYh7EG Pdkcz9O3GIKTOlLHmC0pFc31YmRsQX9FU0QhZgY/z2Qzh2cSbptC6m7SBk+pGSP9Jpqc tmgGfPE+ZYBtbHGWAHugSndfk3/6N1g3cxJ7uyXJMtGaZHE+9hhyWE1lpUgLXWQNUncv ticA== X-Gm-Message-State: ACgBeo2XUhuWOo98xCm0aF8FUPlZi12sLU1Uj9xkPbvxzJx/H/in4mcu A9teBCyTjuE2/JqFRAfGJ1o= X-Google-Smtp-Source: AA6agR7E0KQ1l65iuz8JE8ErWCDpGswrC7+O9/lbkwXCtThhucPvrT4OxrrrE+tWXbHDUUCCKDEY8A== X-Received: by 2002:a5d:6da5:0:b0:222:4634:6a4e with SMTP id u5-20020a5d6da5000000b0022246346a4emr2463432wrs.172.1661613196348; Sat, 27 Aug 2022 08:13:16 -0700 (PDT) Received: from [192.168.178.21] (p54b0c4c1.dip0.t-ipconnect.de. [84.176.196.193]) by smtp.gmail.com with ESMTPSA id r14-20020a0560001b8e00b0021d80f53324sm2547105wru.7.2022.08.27.08.13.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 27 Aug 2022 08:13:15 -0700 (PDT) Message-ID: <040ecbba-3db2-44dc-b398-8365c7542dd3@HIDDEN> Date: Sat, 27 Aug 2022 17:13:15 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: bug#50629: 28.0.50; hard to debug an uncaught error with ert Content-Language: en-US To: Lars Ingebrigtsen <larsi@HIDDEN> References: <15445.1631834888@alto> <87pmgncjvg.fsf@HIDDEN> <m2r113qfgw.fsf@HIDDEN> <871qt1aklk.fsf@HIDDEN> <m2ler94x8z.fsf@HIDDEN> <875yid94k2.fsf@HIDDEN> <m2wnatixwp.fsf@HIDDEN> <871qt192vj.fsf@HIDDEN> From: =?UTF-8?Q?Gerd_M=c3=b6llmann?= <gerd.moellmann@HIDDEN> In-Reply-To: <871qt192vj.fsf@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 50629 Cc: Mike Kupfer <mkupfer@HIDDEN>, 50629 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On 22-08-27 16:29 , Lars Ingebrigtsen wrote: > (args-574 (condition-case err (let ( foo) > (list 42 (foo))) Sorry, you are right, but then the condition-case "swallows" the error. Not sure what can be done about that.
bug-gnu-emacs@HIDDEN
:bug#50629
; Package emacs
.
Full text available.Received: (at 50629) by debbugs.gnu.org; 27 Aug 2022 14:40:36 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 27 10:40:36 2022 Received: from localhost ([127.0.0.1]:56761 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oRwzE-0005p0-Iv for submit <at> debbugs.gnu.org; Sat, 27 Aug 2022 10:40:36 -0400 Received: from quimby.gnus.org ([95.216.78.240]:55664) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1oRwzC-0005om-CV for 50629 <at> debbugs.gnu.org; Sat, 27 Aug 2022 10:40:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=UHNArFQ8QPuH/6ge37DWFsLKfzXBNsd+1Uo3xXiyOiY=; b=czdq5G7cwh2mh5Cou+Jw6y/aCh J85sSyNWG+fT6k8pvXu8buo2nIWzBNnh0WKSQVkTwQDoPsaNsjzj+RPRzvdMArxXX67c8yGHSpG7n HvExa+ieokgwZIVA9XBjH9+QB6r4rH4ef6fRJpfJlaDZ0IS7KfxbqdylxgsqiRHgXeMY=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1oRwz3-0003XK-Mb; Sat, 27 Aug 2022 16:40:27 +0200 From: Lars Ingebrigtsen <larsi@HIDDEN> To: Mike Kupfer <mkupfer@HIDDEN> Subject: Re: bug#50629: 28.0.50; hard to debug an uncaught error with ert In-Reply-To: <7120.1661611121@alto> (Mike Kupfer's message of "Sat, 27 Aug 2022 07:38:41 -0700") References: <7120.1661611121@alto> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACVBMVEVaUk7g2c/////b GQZfAAAAAWJLR0QCZgt8ZAAAAAd0SU1FB+YIGw4cG90tcNsAAAEZSURBVCjPRVHRisAwCLPQvncw /6fC+V5B//9XLtrubrCOLLHRSJM5wqIe2ufLBeSCJGng2C1GMcXvUBxER+XjAgcwu8BauAMVWMQe V+aPHNuVoHWF7oIXXhpHZj2Njyl+9BY8nAvIfHCLaoE2R0gSANaWhsoBuy3GBLiRcfV+I3IqBxPU Yr38lCw7aZaU1jzOYse0Bo2i6Ebj+wP5vPyfGybIdMZJJMXE64Js9Cer7LwkfFL3GULzuwBu9Kb4 iWH+OA32Q2QNa1nUgijrsZKf06iHrzWkTDtliAKg2NzUxuatYXTSMEWZ+LBacKYO3JPBOQC8IyqG WFIZg9LGdnWrNSnv7AOm2ZnKtx/Ubp/8lxv2oV9vbBoV0i91tJoJh+Nc6gAAACV0RVh0ZGF0ZTpj cmVhdGUAMjAyMi0wOC0yN1QxNDoyODoyNiswMDowMDVQmtcAAAAldEVYdGRhdGU6bW9kaWZ5ADIw MjItMDgtMjdUMTQ6Mjg6MjYrMDA6MDBEDSJrAAAAAElFTkSuQmCC X-Now-Playing: Stereolab's _Switched On Vol. 4: Electrically Possessed (2)_: "Solar Throw-Away" Date: Sat, 27 Aug 2022 16:40:25 +0200 Message-ID: <87h71x7ns6.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Mike Kupfer <mkupfer@HIDDEN> writes: >> The foo->bar->zot calling sequence is preserved. > > Er, where? (Or did you mean to write that it's not preserved?) It's preserved in the code, and not in the backtrace. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 50629 Cc: Gerd =?utf-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN>, 50629 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Mike Kupfer <mkupfer@HIDDEN> writes: >> The foo->bar->zot calling sequence is preserved. > > Er, where? (Or did you mean to write that it's not preserved?) It's preserved in the code, and not in the backtrace. So, yes, and no. =F0=9F=98=80
bug-gnu-emacs@HIDDEN
:bug#50629
; Package emacs
.
Full text available.Received: (at 50629) by debbugs.gnu.org; 27 Aug 2022 14:38:51 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 27 10:38:51 2022 Received: from localhost ([127.0.0.1]:56756 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oRwxX-0005lr-9l for submit <at> debbugs.gnu.org; Sat, 27 Aug 2022 10:38:51 -0400 Received: from shell1.rawbw.com ([198.144.192.42]:36300 ident=root) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <mkupfer@HIDDEN>) id 1oRwxV-0005li-KW for 50629 <at> debbugs.gnu.org; Sat, 27 Aug 2022 10:38:50 -0400 Received: from alto (135-180-174-133.dsl.dynamic.sonic.net [135.180.174.133] (may be forged)) (authenticated bits=0) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTPSA id 27REcffp097625 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 27 Aug 2022 07:38:47 -0700 (PDT) (envelope-from mkupfer@HIDDEN) X-Authentication-Warning: shell1.rawbw.com: Host 135-180-174-133.dsl.dynamic.sonic.net [135.180.174.133] (may be forged) claimed to be alto From: Mike Kupfer <mkupfer@HIDDEN> To: Lars Ingebrigtsen <larsi@HIDDEN> Subject: Re: bug#50629: 28.0.50; hard to debug an uncaught error with ert In-Reply-To: Your message of "Sat, 27 Aug 2022 16:29:04 +0200." <871qt192vj.fsf@HIDDEN> X-Mailer: MH-E 8.6+git; nmh 1.7.1; Emacs 29.0.50 MIME-Version: 1.0 Content-Type: text/plain Date: Sat, 27 Aug 2022 07:38:41 -0700 Message-ID: <7120.1661611121@alto> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 50629 Cc: Gerd =?utf-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN>, 50629 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Lars Ingebrigtsen wrote: > The foo->bar->zot calling sequence is preserved. Er, where? (Or did you mean to write that it's not preserved?) mike
bug-gnu-emacs@HIDDEN
:bug#50629
; Package emacs
.
Full text available.Received: (at 50629) by debbugs.gnu.org; 27 Aug 2022 14:29:17 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 27 10:29:17 2022 Received: from localhost ([127.0.0.1]:56734 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oRwoH-0005VO-0M for submit <at> debbugs.gnu.org; Sat, 27 Aug 2022 10:29:17 -0400 Received: from quimby.gnus.org ([95.216.78.240]:55434) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1oRwoE-0005V8-9u for 50629 <at> debbugs.gnu.org; Sat, 27 Aug 2022 10:29:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=KxgZQ5LOgg+EIB0vNtTS+6Ds0wy6ZOZIb+NIMr8mitg=; b=cV7PV9A0u3F0/+ZEA8MeHby4yn FNUjN3nEUiPkQb7Wh1JkqR33kflnh0f92Mf5DZfrtLtlKU2xbiqFyYq8jQylno8pal+oM2Yy17fS/ AyCELdzHYbQZHa4B2yQw7RCCSGg0teH9waxAXgSFQInzElTzyfg5VmDjY+OY2x1XqMi4=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1oRwo4-0003Ro-Nz; Sat, 27 Aug 2022 16:29:06 +0200 From: Lars Ingebrigtsen <larsi@HIDDEN> To: Gerd =?utf-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN> Subject: Re: bug#50629: 28.0.50; hard to debug an uncaught error with ert In-Reply-To: <m2wnatixwp.fsf@HIDDEN> ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Sat, 27 Aug 2022 16:06:14 +0200") References: <15445.1631834888@alto> <87pmgncjvg.fsf@HIDDEN> <m2r113qfgw.fsf@HIDDEN> <871qt1aklk.fsf@HIDDEN> <m2ler94x8z.fsf@HIDDEN> <875yid94k2.fsf@HIDDEN> <m2wnatixwp.fsf@HIDDEN> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACVBMVEVaUk7g2c/////b GQZfAAAAAWJLR0QCZgt8ZAAAAAd0SU1FB+YIGw4cG90tcNsAAAEZSURBVCjPRVHRisAwCLPQvncw /6fC+V5B//9XLtrubrCOLLHRSJM5wqIe2ufLBeSCJGng2C1GMcXvUBxER+XjAgcwu8BauAMVWMQe V+aPHNuVoHWF7oIXXhpHZj2Njyl+9BY8nAvIfHCLaoE2R0gSANaWhsoBuy3GBLiRcfV+I3IqBxPU Yr38lCw7aZaU1jzOYse0Bo2i6Ebj+wP5vPyfGybIdMZJJMXE64Js9Cer7LwkfFL3GULzuwBu9Kb4 iWH+OA32Q2QNa1nUgijrsZKf06iHrzWkTDtliAKg2NzUxuatYXTSMEWZ+LBacKYO3JPBOQC8IyqG WFIZg9LGdnWrNSnv7AOm2ZnKtx/Ubp/8lxv2oV9vbBoV0i91tJoJh+Nc6gAAACV0RVh0ZGF0ZTpj cmVhdGUAMjAyMi0wOC0yN1QxNDoyODoyNiswMDowMDVQmtcAAAAldEVYdGRhdGU6bW9kaWZ5ADIw MjItMDgtMjdUMTQ6Mjg6MjYrMDA6MDBEDSJrAAAAAElFTkSuQmCC X-Now-Playing: Stereolab's _Switched On Vol. 4: Electrically Possessed (2)_: "Variation One" Date: Sat, 27 Aug 2022 16:29:04 +0200 Message-ID: <871qt192vj.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Gerd Möllmann <gerd.moellmann@HIDDEN> writes: > That's what I meant with macrology. Please macroexpand and look at > what's actually executed. This is what macroexpand-all says is executed: Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 50629 Cc: Mike Kupfer <mkupfer@HIDDEN>, 50629 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes: > That's what I meant with macrology. Please macroexpand and look at > what's actually executed. This is what macroexpand-all says is executed: (progn (ert-set-test 'f (record 'ert-test 'f nil #'(lambda () (defalias 'foo #'(lambda () (bar))) (defalias 'bar #'(lambda () (zot))) (let* ((fn-573 #'equal) (args-574 (condition-case err (let ( foo) (list 42 (foo))) (error (progn (setq fn-573 #'signal) (list (car err) (cdr err))))))) (let ((value-575 'ert-form-evaluation-aborted-576)) (let ( form-description-577) (if (unwind-protect (setq value-575 (apply fn-573 args-574)) (setq form-description-577 (nconc (list '(should (equal 42 (foo)))) (list :form (cons fn-573 args-574)) (if (eql value-575 'ert-form-evaluation-aborted-576) () (list :value value-575)) (if (eql value-575 'ert-form-evaluation-aborted-576) () (let* ((-explainer- (and t (ert--get-explainer 'equal)))) (if -explainer- (list :explanation (apply -explainer- args-574)) nil))))) (ert--signal-should-execution form-description-577)) () (ert-fail form-description-577))) value-575))) nil ':passed 'nil nil)) 'f) The foo->bar->zot calling sequence is preserved.
bug-gnu-emacs@HIDDEN
:bug#50629
; Package emacs
.
Full text available.Received: (at 50629) by debbugs.gnu.org; 27 Aug 2022 14:06:27 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 27 10:06:27 2022 Received: from localhost ([127.0.0.1]:56707 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oRwSB-0004wy-1b for submit <at> debbugs.gnu.org; Sat, 27 Aug 2022 10:06:27 -0400 Received: from mail-wr1-f49.google.com ([209.85.221.49]:43759) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <gerd.moellmann@HIDDEN>) id 1oRwS6-0004wh-3P for 50629 <at> debbugs.gnu.org; Sat, 27 Aug 2022 10:06:26 -0400 Received: by mail-wr1-f49.google.com with SMTP id z16so4902007wrh.10 for <50629 <at> debbugs.gnu.org>; Sat, 27 Aug 2022 07:06:22 -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=9QiaCYqMHCI9PYA+voXxJRkn8pLzIobC1YKMzvXqBhg=; b=URnynAoOMC3XoNgbYh6CrK51aAV3wzTR0MiHtpfke5oh3UGh1vjD9mB5wJ+i8EVvis icVqCgiSPNJFc8/ycjKw38MWZwcf9IbYI9GgumhTI6Qg9S0eBXBkmfBYLB2jOJz+p5nk +ETQZH2LdG4h77i9abCm22LegqvTFZjksH9oI8GOzFJRHfw3BGDEE6bI3aBViwhVsXUu CjAoX22EOn5pC5/cM3LcpMo8BudCyV3+qHAYkHPGihqmTHc63MvQh422mjRykX0+a3h/ L1eps63Ma3dyoLMl+0+YiwOt4BgN8m+fgQG6uFNSZrTmfayhQsSaQKJ2GFvO6ll3VfTc cjtw== 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=9QiaCYqMHCI9PYA+voXxJRkn8pLzIobC1YKMzvXqBhg=; b=hQNVmUR2LcjEt6NHuvVkvaebsO4CGGi0JDU+aQN9ZsOdOdyjauZKD/Fk1kpbn3xpZi 7C7evgj9Eo17HGwzqbKyxBTeR5gYY0LgJFNy1ddVzIUVPcY0hqzvGkDXh3QCeRZfd8GA S1Cq8Lv0UlDTLqN+t2BdT1VIc4U0RSjPcsy6qfcTNfMD2vs0+jbdAkAA+A6uZpdRhhjU HGOXx52LHrhx+mFCVmYDJOdhOk+avpNQTwhZPjMT7XdgR416CT6yy5DAT2aZxbC/KluC KF/Zv2LfwCEQhLS8wecjD0lY4xG3OxcOfBRJUC9j7P/GKlrdO3agpuGyNMCKK9aKXNYm PQYg== X-Gm-Message-State: ACgBeo1Iksi5Ty40fq5d1L0D9SuAlqG86ZpwkbIaMsFcjlcDWKXYcWuN aHEE8uhyhRYS3NfW/3XzHb4= X-Google-Smtp-Source: AA6agR5VTNJvE0Asb7V49L8rt0QD0xKIGwwrNiKQMqGQJmSI+vm/m+/zrczHv2HfXkvaTybkwriZHg== X-Received: by 2002:a5d:6c6a:0:b0:225:6138:5b9d with SMTP id r10-20020a5d6c6a000000b0022561385b9dmr2238626wrz.451.1661609176177; Sat, 27 Aug 2022 07:06:16 -0700 (PDT) Received: from Mini.fritz.box (p54b0c4c1.dip0.t-ipconnect.de. [84.176.196.193]) by smtp.gmail.com with ESMTPSA id m5-20020a5d4a05000000b00225213fd4a9sm2412548wrq.33.2022.08.27.07.06.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Aug 2022 07:06:15 -0700 (PDT) From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN> To: Lars Ingebrigtsen <larsi@HIDDEN> Subject: Re: bug#50629: 28.0.50; hard to debug an uncaught error with ert In-Reply-To: <875yid94k2.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Sat, 27 Aug 2022 15:52:45 +0200") References: <15445.1631834888@alto> <87pmgncjvg.fsf@HIDDEN> <m2r113qfgw.fsf@HIDDEN> <871qt1aklk.fsf@HIDDEN> <m2ler94x8z.fsf@HIDDEN> <875yid94k2.fsf@HIDDEN> Date: Sat, 27 Aug 2022 16:06:14 +0200 Message-ID: <m2wnatixwp.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 50629 Cc: Mike Kupfer <mkupfer@HIDDEN>, 50629 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Lars Ingebrigtsen <larsi@HIDDEN> writes: > Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes: > >> The backtrace we have already. It's the "unreadable" stuff that ERT >> prints. > > No, that's not the backtrace (that we're interested in). > > With this example: > > emake; ./src/emacs -Q -batch -l ert -eval '(ert-deftest f () (setq > debug-on-error t) (defun foo () (bar)) (defun bar () (zot)) (should > (equal 42 (foo))))' -f ert-run-tests-batch-and-exit > > We'd like to see a backtrace that mentions that zot was called by bar, > and that bar was called by foo. Instead we get: > > Test f backtrace: > signal(void-function (zot)) > apply(signal (void-function (zot))) > (setq value-2 (apply fn-0 args-1)) > (unwind-protect (setq value-2 (apply fn-0 args-1)) (setq form-descri > > Note that there's no mention of foo or bar. That's what I meant with macrology. Please macroexpand and look at what's actually executed.
bug-gnu-emacs@HIDDEN
:bug#50629
; Package emacs
.
Full text available.Received: (at 50629) by debbugs.gnu.org; 27 Aug 2022 13:52:57 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 27 09:52:56 2022 Received: from localhost ([127.0.0.1]:55528 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oRwF6-0002Ax-NR for submit <at> debbugs.gnu.org; Sat, 27 Aug 2022 09:52:56 -0400 Received: from quimby.gnus.org ([95.216.78.240]:55182) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1oRwF4-0002Aj-95 for 50629 <at> debbugs.gnu.org; Sat, 27 Aug 2022 09:52:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=NIfcsvw7AIrS09gjhB+wIkzDl0uYbdm1ohgSYytMcNI=; b=SHwd6Oy4FY6FPPRIdPpwjVLAyB gbCQBCo74vL3J1wNwtF+eUincGjb3b8YT73FHR1o177Z7DHazyWSI9IrOwscz5xYT0gNRQnVvMM3a x8jXkeP8vrKlwJohzTwIJQqnbSBGXGptGqonZ8mDzQX/Y1oGoEcoT5Gtb/8Fzt+/GKAU=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1oRwEv-0003DD-Lq; Sat, 27 Aug 2022 15:52:47 +0200 From: Lars Ingebrigtsen <larsi@HIDDEN> To: Gerd =?utf-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN> Subject: Re: bug#50629: 28.0.50; hard to debug an uncaught error with ert In-Reply-To: <m2ler94x8z.fsf@HIDDEN> ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Sat, 27 Aug 2022 15:44:12 +0200") References: <15445.1631834888@alto> <87pmgncjvg.fsf@HIDDEN> <m2r113qfgw.fsf@HIDDEN> <871qt1aklk.fsf@HIDDEN> <m2ler94x8z.fsf@HIDDEN> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEX6y7bxjHTcJyP7 y7X///+D+PafAAAAAWJLR0QEj2jZUQAAAAd0SU1FB+YIGw0EDamk44oAAAGUSURBVDjLjZNbesQg CIWxbEBkA9VsAMP+99aD0Vxmpl/rS6K/XDwAUWmt1VpbKUVqbI5FVGqRY+H7ACIwwFnwO8DWx5J3 IOp0/MjD1bg2ji09gq//+gLax/VPUNVXYg9QDclxeQPjfJE70AOYlyfIMs6pW3+AmvIBWOPsAqo0 V4p3XqBnp9AyTPgGNmFzRGcn60jsBJKdjd0NPOX9At0sXLEbLkg6QRXG1QgNV/B1gk0dhBhBYJKs LKAWrhi1ItzgGyA3G41BYWl7gCihYWtcIUhGDKIBtgOw9VwEgkQSfVrAgTOVNKT0BRoYRUz5Qnr9 BXBnkh223S4gfwK4+pYRfJ/v2IgTE5RoGVnpBRA8OdJNmpQt46kLQA7PLsYSAqMfliTYmHJH40Na Jj3V1QxRo7SM2Mw3oLgHf1AejlK/6oEUUdWoOUi/Sot3GR9dEp7OZiiN43yUFjH62T7ScsgYFpbM v25gi2qP9tGUV4sWgBaBjy6R1dR1yjVXz3MM6hxum80uac35y0DxL6P2YQZjaL3P/Q/JWHHnimfg 0AAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMi0wOC0yN1QxMzowNDoxMyswMDowMNbE7YQAAAAldEVY dGRhdGU6bW9kaWZ5ADIwMjItMDgtMjdUMTM6MDQ6MTMrMDA6MDCnmVU4AAAAAElFTkSuQmCC X-Now-Playing: Stereolab's _Switched On Vol. 4: Electrically Possessed (1)_: "Retrograde Mirror Form" Date: Sat, 27 Aug 2022 15:52:45 +0200 Message-ID: <875yid94k2.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Gerd Möllmann <gerd.moellmann@HIDDEN> writes: > The backtrace we have already. It's the "unreadable" stuff that ERT > prints. No, that's not the backtrace (that we're interested in). Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 50629 Cc: Mike Kupfer <mkupfer@HIDDEN>, 50629 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes: > The backtrace we have already. It's the "unreadable" stuff that ERT > prints. No, that's not the backtrace (that we're interested in). With this example: emake; ./src/emacs -Q -batch -l ert -eval '(ert-deftest f () (setq debug-on= -error t) (defun foo () (bar)) (defun bar () (zot)) (should (equal 42 (foo)= )))' -f ert-run-tests-batch-and-exit We'd like to see a backtrace that mentions that zot was called by bar, and that bar was called by foo. Instead we get: Test f backtrace: signal(void-function (zot)) apply(signal (void-function (zot))) (setq value-2 (apply fn-0 args-1)) (unwind-protect (setq value-2 (apply fn-0 args-1)) (setq form-descri Note that there's no mention of foo or bar.
bug-gnu-emacs@HIDDEN
:bug#50629
; Package emacs
.
Full text available.Received: (at 50629) by debbugs.gnu.org; 27 Aug 2022 13:44:22 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 27 09:44:22 2022 Received: from localhost ([127.0.0.1]:55492 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oRw6o-00088a-6h for submit <at> debbugs.gnu.org; Sat, 27 Aug 2022 09:44:22 -0400 Received: from mail-wr1-f53.google.com ([209.85.221.53]:46941) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <gerd.moellmann@HIDDEN>) id 1oRw6m-00088N-3V for 50629 <at> debbugs.gnu.org; Sat, 27 Aug 2022 09:44:20 -0400 Received: by mail-wr1-f53.google.com with SMTP id e20so4844561wri.13 for <50629 <at> debbugs.gnu.org>; Sat, 27 Aug 2022 06:44:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc; bh=tF59rFgJUu7oVp7yqINMPN1pTZ5f7+n/oQNttYNVAz8=; b=a+OepwN3IYP8DQjwgFVG/fe+SuyljbonKoDC7WRJJ5Tqt+GkG8j3gUyVMyxFzCwkSk ezK/8kroTDNvWjD3FZe77+nn5f+/YUkiyY0kdJf3M43ABabSrJTjwHZJaYjqqizFOi9z 4V5a6wJlgSfNTnm3Zo3LBQnoin93zHbySsXKcFpbObnWG8G6k7u9n20srMoETt2LkcWc Ckx2WQ/YwQbGlqqeH9xYmi7Vu7LMsdVvh4fzq1E4PZdhKkftVsR1ot4w16uo2aoIeAhD WPdw0FR5JUDb/4sJLpAE6sX7/1LvyvoHKVe+F5VHyrK0eXmFXa4cRLHuRAbJkA8HKcf6 hefw== 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; bh=tF59rFgJUu7oVp7yqINMPN1pTZ5f7+n/oQNttYNVAz8=; b=aay6db4fR76wQOd7azBS1u+NRFptB6EOKRqXr3dZumMlZEJSFQLwf8TqHnD71e0Cgf p5zauDnV5GoKTteB5z6htJceKt293dHJnQDZ8x4W7vCVv9dkL038QoVeeVpw7ItFRk+l BiJC0cfa/x+IrcPKOGSpWUqCc3ULd3sL5Sp1KVH0dtSnqDvfMVnuQ0XzqUWSBAZNsIC6 VjwsZCU4VGD6ElAG50OnrpkyQ8PZAs2Wy5jgzLa0y9TjAOb93Fli1BoCsLWErudgZ0YE s7nIHDcGukXtEAAwTPg6CP+W7zFG3Px7K+hsRth/P+tNXrKXuZd0TPN3kfOMiwFOMLzM H8Iw== X-Gm-Message-State: ACgBeo0Z7inCoVCbSUGBSEa9KadDs6AEtPWLCKbQ2/1kAzRIwF7cRyeb fbGoBdIFpZIwwJebgpjWE+k= X-Google-Smtp-Source: AA6agR5rb2n+6V+AmZ+cH6HzJyie1/YcpvZyV/k0hUnUakRYOCrmH3qCgWES2Jo9lCkpNZ7McSx9pg== X-Received: by 2002:a05:6000:1a87:b0:222:2c85:2f5b with SMTP id f7-20020a0560001a8700b002222c852f5bmr2278726wry.654.1661607854062; Sat, 27 Aug 2022 06:44:14 -0700 (PDT) Received: from Mini.fritz.box (p54b0c4c1.dip0.t-ipconnect.de. [84.176.196.193]) by smtp.gmail.com with ESMTPSA id g11-20020a05600c4ecb00b003a4c6e67f01sm3306182wmq.6.2022.08.27.06.44.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Aug 2022 06:44:13 -0700 (PDT) From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN> To: Lars Ingebrigtsen <larsi@HIDDEN> Subject: Re: bug#50629: 28.0.50; hard to debug an uncaught error with ert In-Reply-To: <871qt1aklk.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Sat, 27 Aug 2022 15:20:55 +0200") References: <15445.1631834888@alto> <87pmgncjvg.fsf@HIDDEN> <m2r113qfgw.fsf@HIDDEN> <871qt1aklk.fsf@HIDDEN> Date: Sat, 27 Aug 2022 15:44:12 +0200 Message-ID: <m2ler94x8z.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 50629 Cc: Mike Kupfer <mkupfer@HIDDEN>, 50629 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Lars Ingebrigtsen <larsi@HIDDEN> writes: > Hm, yes... But it'd be really useful to have the complete backtrace > instead of just the signal form, because the errors that this would be > most helpful for are often way down in the call stack. The backtrace we have already. It's the "unreadable" stuff that ERT prints. It's hard to make sense of because of the macrology involved. If you macroexpand the ert-deftest form that Mike provided, you'll see what I mean. And that's also what one will see in a debugger. (There's an ert-debug-on-error, BTW. I think someone asked.) Don't know, maybe you could change ert-deftest to expand into something more readable?
bug-gnu-emacs@HIDDEN
:bug#50629
; Package emacs
.
Full text available.Received: (at 50629) by debbugs.gnu.org; 27 Aug 2022 13:21:06 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 27 09:21:06 2022 Received: from localhost ([127.0.0.1]:55460 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oRvkI-0007Z7-B5 for submit <at> debbugs.gnu.org; Sat, 27 Aug 2022 09:21:06 -0400 Received: from quimby.gnus.org ([95.216.78.240]:54686) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1oRvkG-0007YK-Os for 50629 <at> debbugs.gnu.org; Sat, 27 Aug 2022 09:21:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=eMvcVTE9b6JetAKzz93bl6IORUtM/7q4bTFk+x2sZ+4=; b=DV436d+8nsRVKkQ9O8k6vWonca 306FIojTXvqIkhlz6vmYta2ib6THKPig2VQzcLE/GtHiAtF/WxlKQqejUUUnxCxFOhDLCxvHWzgvx NnafPNaLfoyRUcWo3hv7THNO3HH+vTJ1KR80IC7a4dxu249NdotdD5g90VXWsGa1qP80=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1oRvk8-0002yx-7b; Sat, 27 Aug 2022 15:20:58 +0200 From: Lars Ingebrigtsen <larsi@HIDDEN> To: Gerd =?utf-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN> Subject: Re: bug#50629: 28.0.50; hard to debug an uncaught error with ert In-Reply-To: <m2r113qfgw.fsf@HIDDEN> ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Fri, 26 Aug 2022 15:52:47 +0200") References: <15445.1631834888@alto> <87pmgncjvg.fsf@HIDDEN> <m2r113qfgw.fsf@HIDDEN> X-Now-Playing: Stereolab's _Switched On Vol. 4: Electrically Possessed (1)_: "Noumus Et Phusis" Date: Sat, 27 Aug 2022 15:20:55 +0200 Message-ID: <871qt1aklk.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Gerd Möllmann <gerd.moellmann@HIDDEN> writes: >> Anybody more familiar with ert.el know how this can be achieved? > > Not exactly this, I guess, but maybe as source of an idea? [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 50629 Cc: 50629 <at> debbugs.gnu.org, Mike Kupfer <mkupfer@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes: >> Anybody more familiar with ert.el know how this can be achieved? > > Not exactly this, I guess, but maybe as source of an idea? [...] > + (ert--pp-with-indentation-and-newline > + (ert-test-result-with-condition-should-forms result)) > (ert--pp-with-indentation-and-newline > (ert-test-result-with-condition-condition result))) > (goto-char (1- (point-max))) > > leads to output > > Test f condition: > (((should > (equal 42 > (foo))) > :form > (signal void-function > (bar)))) > (void-function bar) Hm, yes... But it'd be really useful to have the complete backtrace instead of just the signal form, because the errors that this would be most helpful for are often way down in the call stack.
bug-gnu-emacs@HIDDEN
:bug#50629
; Package emacs
.
Full text available.Received: (at 50629) by debbugs.gnu.org; 26 Aug 2022 13:52:58 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 26 09:52:58 2022 Received: from localhost ([127.0.0.1]:52765 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oRZlZ-0003uV-PA for submit <at> debbugs.gnu.org; Fri, 26 Aug 2022 09:52:58 -0400 Received: from mail-ej1-f44.google.com ([209.85.218.44]:42939) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <gerd.moellmann@HIDDEN>) id 1oRZlY-0003uD-8H for 50629 <at> debbugs.gnu.org; Fri, 26 Aug 2022 09:52:56 -0400 Received: by mail-ej1-f44.google.com with SMTP id p16so167516ejb.9 for <50629 <at> debbugs.gnu.org>; Fri, 26 Aug 2022 06:52:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc; bh=R3/uPoiRFXFt/f2yiejOPgrOFngfL5Ktc64c0xH2HUo=; b=G9Gh1oeN8+H9k7P+WdQo7dCM7+IcnlyXLMbRlCkhRABFawEqAmbBC9kew4QtrUq361 VSCF9oh2IZ2m8tfflr17NU8ILqVBvloIIaV1AnrBiUdfPWIaZkHkpwuuFoGOMAcjTe5N tirh3sQPEya2oExwhWAYPEMJ3YF7RvUu0O0pe19vsJL4jh04FeBcyrtvBPVKnfgHoNcb AhVbc3Kjw8G28uo7LHTsYFS2lyQY9SL/YSKoUaptQr5Mi4hAiFGsbRcwzVq9lwBEkSRb 15P6cCQ6LYtvZCfUsxmDvWWIuK6ZQgyLerTvwokotzGAmOxm2DkfvadsP4K8tWYp6Ewd fvqw== 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; bh=R3/uPoiRFXFt/f2yiejOPgrOFngfL5Ktc64c0xH2HUo=; b=I8j5Q1KjkK1MgCDA4U9CqrHf+Uf/MBUgd9sLwL01zdKNBnVjKGdw97kDlcnAON0OPL McGBIBfBMb12ixZ48dNF2GLmBuRdcQ3QJfgh+1IFbUYYBXp0Ppl72I//b3AidqjQd13O Evb08J/AK/ufRJlV5ncpHcQhbXKC3bMc8iMoT1OrHTH2FXaGCYfSpFCsgqUfnIGCqVAh iRwpIfuiV1AtyLFtVXRfsq+sBHVgqS21L7QIZrUVV3b6mTZmOyQLVt2FBbQCSM1Jr63+ c/jybwGYWnoFzlBl8qL/GJTyM0Bq8w6O1jkOzPGLMPVqsL2pBBesMy7RHoBxS0VAcOaF PuEA== X-Gm-Message-State: ACgBeo0hzc1qGhdIdz086ZAvZX97Xm+Pwv3i/iUg9XOzH4i3wGSlV/yT AEvoq82xoVZP8SI+869bklV02vtdfmzKXw== X-Google-Smtp-Source: AA6agR735VRS9mTe7QQXG0aWECXxPIedXgSh7qwOLMeviat3+lSx2LOD1Jh8Ojz1EfILUtA8l/pEoQ== X-Received: by 2002:a17:906:d550:b0:733:8e1a:f7 with SMTP id cr16-20020a170906d55000b007338e1a00f7mr5769934ejc.580.1661521969734; Fri, 26 Aug 2022 06:52:49 -0700 (PDT) Received: from Mini.fritz.box (pd9e36414.dip0.t-ipconnect.de. [217.227.100.20]) by smtp.gmail.com with ESMTPSA id w20-20020a05640234d400b00447c2c1b9a0sm1315776edc.91.2022.08.26.06.52.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Aug 2022 06:52:49 -0700 (PDT) From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN> To: Lars Ingebrigtsen <larsi@HIDDEN> Subject: Re: bug#50629: 28.0.50; hard to debug an uncaught error with ert In-Reply-To: <87pmgncjvg.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Fri, 26 Aug 2022 13:41:23 +0200") References: <15445.1631834888@alto> <87pmgncjvg.fsf@HIDDEN> Date: Fri, 26 Aug 2022 15:52:47 +0200 Message-ID: <m2r113qfgw.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 50629 Cc: 50629 <at> debbugs.gnu.org, Mike Kupfer <mkupfer@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Lars Ingebrigtsen <larsi@HIDDEN> writes: > Mike Kupfer <mkupfer@HIDDEN> writes: > >> Knowing that error "bar" was raised is helpful, but in a more realistic >> test scenario, it can take some time to figure out where the error was >> raised. Setting debug-on-error to t doesn't help (does ert hijack the >> normal error handling mechanisms?). > > (I'm going through old bug reports that unfortunately weren't resolved > at the time.) > > I'm not that familiar with ert internals, but yes, I think that's > basically what ert does -- it hijacks the error/debug reporting system > to implement the `should' macros. > > I've briefly poked at this now, but without any success in getting > better backtraces for actual errors (which would indeed be very nice to > have). > > Anybody more familiar with ert.el know how this can be achieved? Not exactly this, I guess, but maybe as source of an idea? diff --git a/lisp/emacs-lisp/ert.el b/lisp/emacs-lisp/ert.el index 047b0069bb..1ffa0b5929 100644 --- a/lisp/emacs-lisp/ert.el +++ b/lisp/emacs-lisp/ert.el @@ -1495,6 +1495,8 @@ ert-run-tests-batch (let ((print-escape-newlines t) (print-level ert-batch-print-level) (print-length ert-batch-print-length)) + (ert--pp-with-indentation-and-newline + (ert-test-result-with-condition-should-forms result)) (ert--pp-with-indentation-and-newline (ert-test-result-with-condition-condition result))) (goto-char (1- (point-max))) leads to output Test f condition: (((should (equal 42 (foo))) :form (signal void-function (bar)))) (void-function bar)
bug-gnu-emacs@HIDDEN
:bug#50629
; Package emacs
.
Full text available.Lars Ingebrigtsen <larsi@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 50629) by debbugs.gnu.org; 26 Aug 2022 11:41:37 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 26 07:41:37 2022 Received: from localhost ([127.0.0.1]:52479 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oRXiT-000455-0J for submit <at> debbugs.gnu.org; Fri, 26 Aug 2022 07:41:37 -0400 Received: from quimby.gnus.org ([95.216.78.240]:43206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1oRXiQ-00044n-Su for 50629 <at> debbugs.gnu.org; Fri, 26 Aug 2022 07:41:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Y8BVf9ZuQC23OMCaS7jau/j69ltsTjWhwEof9MpakYc=; b=cIWo0HnrK7WMH4WHgbOiysfuLf gdNxevyO0dlNg1qA7Dty+mgw7Q9L7FCFG0MDlJ3ZLxWTlsJ6+q0BqYJZrq4MMrAJ9wVtUdbm2pTwz n8f+vrR8NnQSHxfBsbBYhSNuQQLahYjO4Rl8YHQg685Y1GkQUcz/CGtHuSeWdDcXHEi4=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1oRXiH-0000fD-JC; Fri, 26 Aug 2022 13:41:27 +0200 From: Lars Ingebrigtsen <larsi@HIDDEN> To: Mike Kupfer <mkupfer@HIDDEN> Subject: Re: bug#50629: 28.0.50; hard to debug an uncaught error with ert In-Reply-To: <15445.1631834888@alto> (Mike Kupfer's message of "Thu, 16 Sep 2021 16:28:08 -0700") References: <15445.1631834888@alto> X-Now-Playing: David Sylvian's _Dead Bees on a Cake_: "Dobro #1" Date: Fri, 26 Aug 2022 13:41:23 +0200 Message-ID: <87pmgncjvg.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Mike Kupfer <mkupfer@HIDDEN> writes: > Knowing that error "bar" was raised is helpful, but in a more realistic > test scenario, it can take some time to figure out where the error was > raised. Setting debug-on-error to t doesn't help (d [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 50629 Cc: 50629 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Mike Kupfer <mkupfer@HIDDEN> writes: > Knowing that error "bar" was raised is helpful, but in a more realistic > test scenario, it can take some time to figure out where the error was > raised. Setting debug-on-error to t doesn't help (does ert hijack the > normal error handling mechanisms?). (I'm going through old bug reports that unfortunately weren't resolved at the time.) I'm not that familiar with ert internals, but yes, I think that's basically what ert does -- it hijacks the error/debug reporting system to implement the `should' macros. I've briefly poked at this now, but without any success in getting better backtraces for actual errors (which would indeed be very nice to have). Anybody more familiar with ert.el know how this can be achieved?
bug-gnu-emacs@HIDDEN
:bug#50629
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 16 Sep 2021 23:28:23 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 16 19:28:23 2021 Received: from localhost ([127.0.0.1]:57828 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mR0nm-0004Gs-Kx for submit <at> debbugs.gnu.org; Thu, 16 Sep 2021 19:28:23 -0400 Received: from lists.gnu.org ([209.51.188.17]:46800) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <mkupfer@HIDDEN>) id 1mR0ni-0004Gj-TQ for submit <at> debbugs.gnu.org; Thu, 16 Sep 2021 19:28:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51046) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <mkupfer@HIDDEN>) id 1mR0ni-0006t2-OY for bug-gnu-emacs@HIDDEN; Thu, 16 Sep 2021 19:28:18 -0400 Received: from shell1.rawbw.com ([198.144.192.42]:13847) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from <mkupfer@HIDDEN>) id 1mR0ng-0003oZ-I5 for bug-gnu-emacs@HIDDEN; Thu, 16 Sep 2021 19:28:18 -0400 Received: from alto (96-95-200-133-static.hfc.comcastbusiness.net [96.95.200.133]) (authenticated bits=0) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTPSA id 18GNS8K8060534 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for <bug-gnu-emacs@HIDDEN>; Thu, 16 Sep 2021 16:28:14 -0700 (PDT) (envelope-from mkupfer@HIDDEN) X-Authentication-Warning: shell1.rawbw.com: Host 96-95-200-133-static.hfc.comcastbusiness.net [96.95.200.133] claimed to be alto From: Mike Kupfer <mkupfer@HIDDEN> To: bug-gnu-emacs@HIDDEN Subject: 28.0.50; hard to debug an uncaught error with ert X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 28.0.50 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 16 Sep 2021 16:28:08 -0700 Message-ID: <15445.1631834888@alto> Received-SPF: none client-ip=198.144.192.42; envelope-from=mkupfer@HIDDEN; helo=shell1.rawbw.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) (This is similar to bug#49805, but I'm filing a new bug in case this issue needs a different resolution than #49805.) Consider the following stripped-down test case: $ emacs -Q -batch -l ert -eval '(ert-deftest f () (defun foo () (bar)) (def= un bar () (error "bar")) (should (equal 42 (foo))))' -f ert-run-tests-batch= -and-exit It produces -----8<-----8<----- Running 1 tests (2021-09-16 15:55:17-0700) Test f backtrace: signal(error ("bar")) apply(signal (error ("bar"))) (setq value-2 (apply fn-0 args-1)) (unwind-protect (setq value-2 (apply fn-0 args-1)) (setq form-descri (if (unwind-protect (setq value-2 (apply fn-0 args-1)) (setq form-de (let (form-description-4) (if (unwind-protect (setq value-2 (apply f (let ((value-2 'ert-form-evaluation-aborted-3)) (let (form-descripti (let* ((fn-0 (function equal)) (args-1 (condition-case err (let ((si (lambda nil (defalias 'foo (function (lambda nil (bar)))) (defalias=20 ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test ert-run-test(#s(ert-test :name f :documentation nil :body (lambda ni ert-run-or-rerun-test(#s(ert--stats :selector t :tests [#s(ert-test=20 ert-run-tests(t #f(compiled-function (event-type &rest event-args) # ert-run-tests-batch(nil) ert-run-tests-batch-and-exit() command-line-1(("-l" "ert" "-eval" "(ert-deftest f () (defun foo ()=20 command-line() normal-top-level() Test f condition: (error "bar") FAILED 1/1 f Ran 1 tests, 0 results as expected, 1 unexpected (2021-09-16 15:55:17-0700) 1 unexpected results: FAILED f ----->8----->8----- Knowing that error "bar" was raised is helpful, but in a more realistic test scenario, it can take some time to figure out where the error was raised. Setting debug-on-error to t doesn't help (does ert hijack the normal error handling mechanisms?). The only way I know of to track it down is to run the test multiple times, and use #'message at key points in the code to record execution progress. I ran into this while running some (not-yet-integrated) ert tests for MH-E. The message in the *ert* buffer looked like F mh-folder-completion-function-10-plus-slash-abs-folder Test =E2=80=98mh-folder-completion-function=E2=80=99 with =E2=80=98+/= abso-folder=E2=80=99. (args-out-of-range "folder/bar" 44 nil) The backtrace produced by ert was over 1MB long, and I was unable to use it to determine where the error was coming from. Here are two suggestions for how to make this better. 1. When ert detects an uncaught error, capture the backtrace at that time and include the backtrace in the results. 2. Provide a way for an interactive user to disable whatever ert is doing that lets it capture errors and drive on. Instead, just let the error be raised, and let the user use the Lisp debugger to investigate. In GNU Emacs 28.0.50 (build 2, x86_64-pc-linux-gnu, X toolkit, cairo versio= n 1.16.0, Xaw scroll bars) of 2021-09-02 built on deb10 Repository revision: 6885c62a104dcf52378860d8f951dbdce52b73c5 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12004000 System Description: Debian GNU/Linux 10 (buster) Configured using: 'configure --prefix=3D/usr/new' Configured features: CAIRO FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG LIBSELINUX LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM LUCID ZLIB Important settings: value of $LC_TIME: C value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: ERT-Results Minor modes in effect: shell-dirtrack-mode: t delete-selection-mode: t global-eldoc-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t indent-tabs-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow mh-mime mh-identity mh-tool-bar mh-letter mh-show goto-addr gnus-cite gnus-art mm-uu mml2015 gnus-sum shr kinsoku svg dom browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse url-vars gnus-group gnus-undo gnus-start gnus-dbus dbus xml gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo parse-time iso8601 gnus-spec gnus-int gnus-win gnus-range mh-xface mh-comp mh-scan mh-gnus mm-view mml-smime smime dig mailcap emacsbug eieio-opt speedbar ezimage dframe shortdoc apropos thingatpt help-fns radix-tree mule-util jka-compr info misearch multi-isearch ediff-vers ediff ediff-merg ediff-mult ediff-wind ediff-diff ediff-help ediff-init ediff-util smerge-mode diff whitespace cl-extra gnus nnheader wid-edit mdk-mail smtpmail sendmail message rmc puny rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail rmail-loaddefs auth-source eieio eieio-core eieio-loaddefs password-cache json map text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mail-utils gmm-utils mailheader cl-macs mh-utils mh-e mh-compat mailabbrev mh-buffers mh-loaddefs ert pp ewoc debug backtrace help-mode find-func vc-git diff-mode bug-reference dired-aux dired-x seq gv dired dired-loaddefs server noutline outline easy-mmode cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs byte-opt bytecomp byte-compile cconv shell pcomplete comint ansi-color ring xcscope advice delsel cl-seq vc vc-dispatcher timeclock cl-loaddefs cl-lib mdk-hacks iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads inotify dynamic-setting system-font-setting font-render-setting cairo x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 314657 10561) (symbols 48 22275 4) (strings 32 75491 1172) (string-bytes 1 2515695) (vectors 16 38901) (vector-slots 8 438662 8550) (floats 8 300 273) (intervals 56 27726 0) (buffers 992 25))
Mike Kupfer <mkupfer@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#50629
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.