From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 31E393AAA09E; Thu, 4 Feb 2021 07:53:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 31E393AAA09E From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug fortran/27341] [dwarf-5] FAIL: gdb.fortran/function-calls.exp: p derived_types_and_module_calls::pass_cart_nd(c_nd) Date: Thu, 04 Feb 2021 07:53:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: fortran X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot 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://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Feb 2021 07:53:08 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27341 --- Comment #1 from Tom de Vries --- $ gdb -iex "set trace-commands on" -batch \ outputs/gdb.fortran/function-calls/function-calls \ -ex "break 241" \ -ex "run" \ -ex "p c_nd" \ -ex "p derived_types_and_module_calls::pass_cart_nd(c_nd)" +break 241 Breakpoint 1 at 0x4018bc: file function-calls.f90, line 241. +run (2.09999990,3.29999995) 4 5 23 (2.09999990,3.29999995) 3.40000010=20=20=20=20 6 Breakpoint 1, function_calls () at function-calls.f90:241 241 deallocate(c_nd%d) ! post_init +p c_nd Cannot access memory at address 0x4 +p derived_types_and_module_calls::pass_cart_nd(c_nd) Program received signal SIGSEGV, Segmentation fault. 0x0000000000400f93 in derived_types_and_module_calls::pass_cart_nd (c=3D) at /home/vries/gdb_versions/devel/src/gdb/testsuite/gdb.fortran/function-calls= .f90:130 130 pass_cart_nd =3D ubound(c%d,1,4) The program being debugged was signaled while in a function called from GDB. GDB remains in the frame where the signal was received. To change this behavior use "set unwindonsignal on". Evaluation of the expression containing the function (derived_types_and_module_calls::pass_cart_nd) will be abandoned. When the function is done executing, GDB will silently stop. --=20 You are receiving this mail because: You are on the CC list for the bug.=