From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from franke.ms (serveronline.org [78.46.86.77]) by sourceware.org (Postfix) with ESMTPS id 4B6D23858D1E for ; Mon, 18 Apr 2022 18:58:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4B6D23858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=franke.ms Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=franke.ms Received: from HP (i59F6C040.versanet.de [89.246.192.64]) by serveronline.org (BEJY V1.6.12-SNAPSHOT (c) 2000-2021 by BebboSoft, Stefan "Bebbo" Franke, all rights reserved) with SMTP id 1803e0a000fa8ce1df34309e756 from stefan@franke.ms for gcc-help@gcc.gnu.org; Mon, 18 Apr 2022 19:58:04 +0100 From: To: Subject: crash on system with maybe broken timers Date: Mon, 18 Apr 2022 20:58:04 +0200 Message-ID: <003901d85356$3bce2c50$b36a84f0$@franke.ms> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdhTVPyZsaR7syf4SnC9Y14uBL9VMg== Content-Language: de X-Spam-Status: No, score=0.7 required=5.0 tests=BAYES_20, HTML_MESSAGE, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Apr 2022 18:58:09 -0000 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