From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#50629: 28.0.50; hard to debug an uncaught error with ert Date: Sat, 27 Aug 2022 16:06:14 +0200 Message-ID: References: <15445.1631834888@alto> <87pmgncjvg.fsf@gnus.org> <871qt1aklk.fsf@gnus.org> <875yid94k2.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7044"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) Cc: Mike Kupfer , 50629@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 27 16:07:19 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oRwT1-0001di-8a for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Aug 2022 16:07:19 +0200 Original-Received: from localhost ([::1]:60382 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oRwSz-0001wV-AF for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Aug 2022 10:07:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60112) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRwSm-0001wN-5n for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2022 10:07:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38725) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oRwSk-0000Ja-Ec for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2022 10:07:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oRwSj-0004xm-Tn for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2022 10:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Aug 2022 14:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50629 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 50629-submit@debbugs.gnu.org id=B50629.166160918719036 (code B ref 50629); Sat, 27 Aug 2022 14:07:01 +0000 Original-Received: (at 50629) by debbugs.gnu.org; 27 Aug 2022 14:06:27 +0000 Original-Received: from localhost ([127.0.0.1]:56707 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRwSB-0004wy-1b for submit@debbugs.gnu.org; Sat, 27 Aug 2022 10:06:27 -0400 Original-Received: from mail-wr1-f49.google.com ([209.85.221.49]:43759) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRwS6-0004wh-3P for 50629@debbugs.gnu.org; Sat, 27 Aug 2022 10:06:26 -0400 Original-Received: by mail-wr1-f49.google.com with SMTP id z16so4902007wrh.10 for <50629@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) Original-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) In-Reply-To: <875yid94k2.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 27 Aug 2022 15:52:45 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:240923 Archived-At: Lars Ingebrigtsen writes: > Gerd M=C3=B6llmann 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.