From mboxrd@z Thu Jan 1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Philipp Stephani
Newsgroups: gmane.emacs.devel
Subject: Re: master 40e1174: Print a backtrace on unhandled errors in batch
mode (Bug#44942).
Date: Sat, 12 Dec 2020 15:36:25 +0100
Message-ID:
References: <20201206164942.28653.54315@vcs0.savannah.gnu.org>
<20201206164944.2472A205D7@vcs0.savannah.gnu.org>
<87czzlluoo.fsf@gnus.org> <83tusx8vme.fsf@gnu.org>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
logging-data="35985"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: Lars Ingebrigtsen , Stefan Kangas ,
Emacs developers
To: Eli Zaretskii
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 12 20:01:18 2020
Return-path:
Envelope-to: ged-emacs-devel@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 1koA8s-0009H5-Pu
for ged-emacs-devel@m.gmane-mx.org; Sat, 12 Dec 2020 20:01:18 +0100
Original-Received: from localhost ([::1]:56954 helo=lists1p.gnu.org)
by lists.gnu.org with esmtp (Exim 4.90_1)
(envelope-from )
id 1koA8r-0005QA-Ph
for ged-emacs-devel@m.gmane-mx.org; Sat, 12 Dec 2020 14:01:17 -0500
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39114)
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from )
id 1ko9mi-0008Nt-0s
for emacs-devel@gnu.org; Sat, 12 Dec 2020 13:38:25 -0500
Original-Received: from mail-ot1-x332.google.com ([2607:f8b0:4864:20::332]:44507)
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.90_1) (envelope-from )
id 1ko9mT-0000W5-3H; Sat, 12 Dec 2020 13:38:22 -0500
Original-Received: by mail-ot1-x332.google.com with SMTP id f16so11529163otl.11;
Sat, 12 Dec 2020 10:38:08 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:cc; bh=b6QARIQwOMQKuwbHJQ+xMsmL1/AVRtBv0wYkw4p37uQ=;
b=cQmhSMtOGiYAo4DkNrQwtlBcrZXqNVxokIExp9NrUiOxWz9miDRzcZrJMEAYVYWaer
6knPAlGqWTUbx0ht3a16TOR+bcNceqJ8xcheqxEZrk/ApHqnvuVfNPbz73USFCFkkFbk
lg0xy2/Fgy46luw4K3APciriC7LuyMxW0zis2XfZpSxoEg890l4QFM7gIsun2qjpZ70b
3W3AMe15prznxsUieiiyU2oFbN00cmeKAHVKU8roXKxMo+GMrtd+5GqWVKK/KB4w9ZvU
yI20xiNWa/gArf82GMSurLTCWygHJMwK7huyjeHodifLVgflZHIN9sGqb6axVcGuUuYe
XRtw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc;
bh=b6QARIQwOMQKuwbHJQ+xMsmL1/AVRtBv0wYkw4p37uQ=;
b=QUTu0MRroqm0U4Ecw66MCrRR44oR4p7rsTxPmX2CP7x0YEZJekKrpZZNmnbvc3yOEn
NPust/nfGE+oRMLhIEOwExuUOW9PfMeyvF07U5q5Yla5owum4405A2U1CZwOmpJt3dgH
SWm9u9GM3YbSvV0Qp1+CIpTG95OF/MdnvIQi3BYfy4U0PB0gQ9OJ78ZBlo7GsDkgHoc1
DnpMjkIUaUf/xuK+kzrehUOn0IPDn6YZ6vFsy87E5wC+r8RW09SDCNku4rYoQNdC24XV
QLsUdbRRUe+znhLJup0QMBxMaoGp1rxbLjZRdmR9t78ixGCbouFyq9sYWS0ZZmRHhdt4
2fnw==
X-Gm-Message-State: AOAM531AihPXYPVKSAgtc4SflWyhpec2fKgXam64GkDIgaPKuUb87Eq3
pgncPenFyZTl5yeREwyndjpexhpI7PILjKlRUUXEJ0vl
X-Google-Smtp-Source: ABdhPJzG3Xgy6w2/gAz+KSQmE4fx/aPTssy9iHSoJluwAgwhInqdD1afP4ybZtVBgKxV1GQTg6v0YDmoJU/x+qXwW18=
X-Received: by 2002:a9d:269:: with SMTP id 96mr13297633otb.174.1607783796433;
Sat, 12 Dec 2020 06:36:36 -0800 (PST)
In-Reply-To: <83tusx8vme.fsf@gnu.org>
Received-SPF: pass client-ip=2607:f8b0:4864:20::332;
envelope-from=p.stephani2@gmail.com; helo=mail-ot1-x332.google.com
X-Spam_score_int: -2
X-Spam_score: -0.3
X-Spam_bar: /
X-Spam_report: (-0.3 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_03_06=1.592,
DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,
RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: "Emacs development discussions."
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org
Original-Sender: "Emacs-devel"
Xref: news.gmane.io gmane.emacs.devel:260716
Archived-At:
Am Mo., 7. Dez. 2020 um 16:49 Uhr schrieb Eli Zaretskii :
>
> > From: Lars Ingebrigtsen
> > Date: Mon, 07 Dec 2020 12:30:47 +0100
> > Cc: Philipp Stephani , emacs-devel@gnu.org
> >
> > I think it would be good if there was a command line switch for this
> > (for instance, -backtrace).
> >
> > Outputting a backtrace in -batch mode is good, but I think having it on
> > by default will lead to too many regressions.
>
> IMO, we should first decide whether this new behavior should be the
> default, and only after that whether it should be controlled by a
> command-line switch. E.g., if we believe that most users will want
> the backtrace, i.e. the default behavior will be to produce a
> backtrace, then a command-line switch is hardly necessary or
> justified.
While I certainly can't speak for most/all users, I find it hard to
imagine why anybody would not want the backtrace. The backtrace is
only printed if there's no error handler. In case of a batch job (i.e.
a scripted/noninteractive invocation) that's almost always a bug or
runtime issue (expected file missing, etc.), and the backtrace is
often the only way to debug the issue.
I also don't believe that printing the backtrace by default will break
users: parsing error messages is brittle, and we can't realistically
guarantee stability in such an area.