From: Eli Zaretskii <eliz@gnu.org>
To: Gregor Zattler <grfz@gmx.de>
Cc: larsi@gnus.org, 45246-done@debbugs.gnu.org
Subject: bug#45246: 28.0.50; etags assertion error
Date: Fri, 10 Jun 2022 10:25:52 +0300 [thread overview]
Message-ID: <8335gd0ykf.fsf@gnu.org> (raw)
In-Reply-To: <87mtelsc0s.fsf@no.workgroup> (message from Gregor Zattler on Fri, 10 Jun 2022 00:33:07 +0200)
> From: Gregor Zattler <grfz@gmx.de>
> Cc: 45246@debbugs.gnu.org
> Date: Fri, 10 Jun 2022 00:33:07 +0200
>
> >> > And indeed, invoking "etags -I" compiled with --enable-checking with
> >> > the original file avoids the assertion violation. And in a production
> >> > build, etags produces a valid TAGS file even if -I is omitted.
> >> >
> >> > So I think there's nothing to do here, and we should close this bug as
> >> > notabug. Does anyone disagree?
> >>
> >> I think that sounds correct.
>
> I confirm -I avoids the assertion.
>
> > Gregor, any objections to closing this bug?
>
> no.
OK, done.
> I must admit, I did not read the man pager closely but
> anyway I wouldn't have understood the consequences of
> setting vs not setting -I. Perhaps the documentation could
> be amended somehow?
I've added some notes about this to the manual and to the etags man
page, thanks.
> I assume this is a trade-of between speed and robustness?
No, I think it's more about the correctness of the produced TAGS file
than about speed. etags's C/C++ parser is extremely naïve and largely
ignores the complicated syntax of the C dialects. So using the
"closing brace in column zero ends all top-level definitions"
heuristic is useful for preventing 'etags' from being utterly confused
by some sophisticated use of C/C++ facilities, such as macros and the
more arcane syntactic constructs in modern C++: it makes sure the
confusion ends as early as possible.
> I do not have objections to closing this bug
> report, but I wonder why etags treats closing braces in
> the first column special if it does not speed up things?
See above. Whether this is a real problem, I don't know. I think
the only way to tell is to try. At least with our test suite for
'etags', using -I causes regressions, e.g. in cp-src/c.C some tags are
not created. So I think having this heuristic on by default is a good
thing, overall.
next prev parent reply other threads:[~2022-06-10 7:25 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-14 23:38 bug#45246: 28.0.50; etags assertion error Gregor Zattler
2022-06-07 11:35 ` Lars Ingebrigtsen
2022-06-07 14:26 ` Gregor Zattler
2022-06-07 15:58 ` Eli Zaretskii
2022-06-07 16:38 ` Andreas Schwab
2022-06-07 17:15 ` Eli Zaretskii
2022-06-07 17:34 ` Andreas Schwab
2022-06-07 18:25 ` Eli Zaretskii
2022-06-07 17:08 ` Eli Zaretskii
2022-06-09 17:42 ` Eli Zaretskii
2022-06-09 18:43 ` Lars Ingebrigtsen
2022-06-09 18:59 ` Eli Zaretskii
2022-06-09 22:33 ` Gregor Zattler
2022-06-10 7:25 ` Eli Zaretskii [this message]
2022-06-10 7:26 ` Eli Zaretskii
2022-06-10 14:01 ` Francesco Potortì
2022-06-07 17:13 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8335gd0ykf.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=45246-done@debbugs.gnu.org \
--cc=grfz@gmx.de \
--cc=larsi@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).