From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 70CF83858C53; Wed, 18 Oct 2023 17:03:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 70CF83858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1697648604; bh=EH5UXcyUYpHSQpE75g0sIZUBySlEvQZIi5q6K4cuABI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=hVskx6mrYJvfltfa1xQGhV8T93d9+E+OdywIrM4ZMpwpgG/F2tFTuFLxyHz6usu7+ 4dZOsTodyLm1vrnD91R12CTqmkWvygFkEvx2swUctVfA4pWT5KKy4v4MEM1Ef1L21L F6FfiWaLDPc+pd/xd8EkQpFAdILJCREQPLtA012A= From: "sgk at troutmask dot apl.washington.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/110644] Error in gfc_format_decoder Date: Wed, 18 Oct 2023 17:03:22 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 13.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sgk at troutmask dot apl.washington.edu X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110644 --- Comment #5 from Steve Kargl -= -- On Wed, Oct 18, 2023 at 03:56:32PM +0000, aluaces at udc dot es wrote: > --- Comment #4 from Alberto Luaces --- > I got the same error in almost the same circumstances (crash in error.cc:= 1078). >=20 > I have a large codebase and I could not prepare a minimal testcase, but I= have > built gfortran 13 from source with the aim to debug the crash. >=20 > Hoewever, even I set "set follow-fork-mode children", f951 crashes and I = cannot > navigate through the backtrace nor see the arguments of the functions. >=20 > Is there any reference for debugging gcc in order to send some useful > information to this bug? >=20 If you've built 13 and still have the source files and build=20 directory, then locate the installed l f951. For me, I have=20 ${HOME}/work/x/libexec/gcc/x86_64-unknown-freebsd14.0/14.0.0/f951 In following, I'm going to use ${PATH} for the above path. Go to the directory where your project dies. Suppose it is=20 compiling foo.f90 when it crashes. Do the following. gdb ${PATH}/f951 (gdb) b error.cc:1078 (gdb) run foo.f90 Line 1078 is=20 gcc_assert (loc->nextc - loc->lb->line >=3D 0); so the source file information looks corrupt. You may need to=20 continue the process a few to generate the crash, i.e., (gdb) c (gdb) bt This will generate a backtrace. Post that.=