From: <stefan@franke.ms>
To: <gcc-help@gcc.gnu.org>
Subject: crash on system with maybe broken timers
Date: Mon, 18 Apr 2022 20:58:04 +0200 [thread overview]
Message-ID: <003901d85356$3bce2c50$b36a84f0$@franke.ms> (raw)
I just faced an issue, which I fixed locally, which happened while debugging
a remote target with an inaccurate timer.
What's happening is:
toplev::~toplev () calls g_timer->print (stderr);
timer::print (FILE *fp) calls validate_phases(fp);
timer::validate_phases (FILE *fp) const calls gcc_unreachable ();
gcc_unreachable () calls (fancy_abort (__FILE__, __LINE__, __FUNCTION__))
fancy_abort (const char *file, int line, const char *function) calls
internal_error ("in %s, at %s:%d", function, trim_filename (file), line);
internal_error (const char *gmsgid, ...) calls report_diagnostic
(&diagnostic);
diagnostic_report_diagnostic (diagnostic_context *context, diagnostic_info
*diagnostic) calls pp_format (context->printer, &diagnostic->message);
. I stop here, and you can see why it crashes;
context->printer was closed before entering the destructor of toplev in
toplev::main
diagnostic_finish (global_dc);
maybe someone wants to fix this.
Stefan
reply other threads:[~2022-04-18 18:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='003901d85356$3bce2c50$b36a84f0$@franke.ms' \
--to=stefan@franke.ms \
--cc=gcc-help@gcc.gnu.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.
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).