From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DE00B384EF6A; Fri, 25 Nov 2022 16:23:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DE00B384EF6A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1669393408; bh=0oYsoTyPSOoVsjCS5XaIp+g23S324zavD09+1wguG3o=; h=From:To:Subject:Date:In-Reply-To:References:From; b=g/MA44zMromD7JsFYgSMaU9H+sexXfgYeEYKroGfMs9pBzYQdVh1Gbnman/HHYToi Hof1daZCl3UpmuD7tHTyCr5Hhxuu0Z20p3N5+1UEWNNBcF2KAU48QqZBYZbD0lzBe9 0M5JtTBD1L/kJi3ty64LeXNjg7JwYY+iuyNPYMDc= From: "morrand276 at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug breakpoints/21497] FreeBSD: infrun.c:5565: internal-error: int finish_step_over(execution_control_state*): Assertion `ecs->event_thread->control.trap_expected' failed Date: Fri, 25 Nov 2022 16:23:27 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: breakpoints X-Bugzilla-Version: 7.12.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: morrand276 at gmail dot com X-Bugzilla-Status: UNCONFIRMED 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: cc 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D21497 Andrew Morris changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |morrand276 at gmail dot com --- Comment #6 from Andrew Morris --- Hate to comment on a five-year-old bug report, but this or something very m= uch like it is now coming up for me in GDB 12.1 coming from FreeBSD ports (where they call it 12.1_1). I do see a couple of other, more recent, bug reports = that sound similar (26819 and 27509 are what I have in my notes here) but as this one is specific to FreeBSD I wanted to file here rather than there. In the replay below, it's coming up pretty reliably when stepping around li= ne 597 of the code. I have also gotten it while stepping into the constructor there rather than stepping over it, but both times there was a "new LWP" no= tice right before the error. System says it's: FreeBSD [hostname] 12.3-RELEASE-p8 FreeBSD 12.3-RELEASE-p8 releng/12.3-n234239-458f3d1c51a4 EARL amd64 Compiler says it's: gcc version 10.3.0 (FreeBSD Ports Collection) The code under test at line 597 is me trying to fish out an unrelated error= and is not necessarily going to make any practical sense. --- earl:build_debug $ gdb salsa GNU gdb (GDB) 12.1 [GDB v12.1 for FreeBSD] Copyright (C) 2022 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-portbld-freebsd12.3". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from salsa... (gdb) br mapping.cpp:597 Breakpoint 1 at 0x4c99bc: file /home/morrand/salsa-1.15/src/gui/mapping.cpp, line 597. (gdb) r Starting program: /usr/home/morrand/salsa-1.15/build_debug/salsa=20 [New LWP 102353 of process 87800] [New LWP 102354 of process 87800] [Detaching after fork from child process 87802] [New LWP 102355 of process 87800] qt.svg: Cannot open file '/usr/home/morrand/salsa-1.15/data/marble/svg/mercurymap.svg', because: No = such file or directory [Other unfound files cut out for brevity] libGL error: No matching fbConfigs or visuals found warning: Temporarily disabling breakpoints for unloaded shared library "/usr/local/llvm13/lib/libLLVM-13.so" libGL error: failed to load driver: swrast [New LWP 102357 of process 87800] Thread 1 hit Breakpoint 1, Mapping::sortPointsInFolders (this=3D0x8056b7800= ) at /home/morrand/salsa-1.15/src/gui/mapping.cpp:597 597 Marble::GeoDataFolder *testOne =3D new GeoDataFolder; (gdb) info threads Id Target Id Frame=20 * 1 LWP 101791 of process 87800 Mapping::sortPointsInFolders ( this=3D0x8056b7800) at /home/morrand/salsa-1.15/src/gui/mapping.cpp:597 2 LWP 102353 of process 87800 _poll () at _poll.S:3 3 LWP 102354 of process 87800 _poll () at _poll.S:3 4 LWP 102355 of process 87800 _poll () at _poll.S:3 5 LWP 102357 of process 87800 thread_start (curthread=3D0x80bbf7f00) at /usr/src/lib/libthr/thread/thr_create.c:256 (gdb) l 592 } 593 594 void Mapping::sortPointsInFolders() 595 {=20=20=20=20 596 // The following is just some test code to see how all this works = and (I hope) why it doesn't. 597 Marble::GeoDataFolder *testOne =3D new GeoDataFolder; 598 Marble::GeoDataFolder *testTwo =3D new GeoDataFolder(); 599=20=20=20=20=20=20=20=20=20 600 testOne->setName(QString("Tweedledee")); 601 testTwo->setName(QString("Tweedledum")); (gdb) n [New LWP 102356 of process 87800] /usr/ports/devel/gdb/work-py39/gdb-12.1/gdb/infrun.c:5825: internal-error: finish_step_over: Assertion `ecs->event_thread->control.trap_expected' fail= ed. A problem internal to GDB has been detected, further debugging may prove unreliable. ----- Backtrace ----- 0x12b3e61 _ZL24gdb_internal_backtrace_1v /usr/ports/devel/gdb/work-py39/gdb-12.1/gdb/bt-utils.c:122 0x12b3e61 _Z22gdb_internal_backtracev /usr/ports/devel/gdb/work-py39/gdb-12.1/gdb/bt-utils.c:122 0x12b3e61 _Z22gdb_internal_backtracev /usr/ports/devel/gdb/work-py39/gdb-12.1/gdb/bt-utils.c:168 0x16cdd4d _ZL17internal_vproblemP16internal_problemPKciS2_P13__va_list_tag /usr/ports/devel/gdb/work-py39/gdb-12.1/gdb/utils.c:394 0x16cdbc8 _Z15internal_verrorPKciS0_P13__va_list_tag /usr/ports/devel/gdb/work-py39/gdb-12.1/gdb/utils.c:471 0x1b237f3 _Z14internal_errorPKciS0_z /usr/ports/devel/gdb/work-py39/gdb-12.1/gdbsupport/errors.cc:55 0x144d22a _ZL16finish_step_overP23execution_control_state /usr/ports/devel/gdb/work-py39/gdb-12.1/gdb/infrun.c:5825 0x144d22a _ZL18handle_signal_stopP23execution_control_state /usr/ports/devel/gdb/work-py39/gdb-12.1/gdb/infrun.c:5935 0x1442299 _ZL21handle_inferior_eventP23execution_control_state /usr/ports/devel/gdb/work-py39/gdb-12.1/gdb/infrun.c:5681 0x1440e4f _Z20fetch_inferior_eventv /usr/ports/devel/gdb/work-py39/gdb-12.1/gdb/infrun.c:4085 0x1b23eb2 _ZL18gdb_wait_for_eventi /usr/ports/devel/gdb/work-py39/gdb-12.1/gdbsupport/event-loop.cc:0 0x1b238f6 _Z16gdb_do_one_eventv /usr/ports/devel/gdb/work-py39/gdb-12.1/gdbsupport/event-loop.cc:212 0x148f854 _ZL16start_event_loopv /usr/ports/devel/gdb/work-py39/gdb-12.1/gdb/main.c:421 0x148f854 _ZL21captured_command_loopv /usr/ports/devel/gdb/work-py39/gdb-12.1/gdb/main.c:481 0x148c844 _ZL13captured_mainPv /usr/ports/devel/gdb/work-py39/gdb-12.1/gdb/main.c:1351 0x148c844 _Z8gdb_mainP18captured_main_args /usr/ports/devel/gdb/work-py39/gdb-12.1/gdb/main.c:1366 0x11e184d main /usr/ports/devel/gdb/work-py39/gdb-12.1/gdb/gdb.c:38 --------------------- /usr/ports/devel/gdb/work-py39/gdb-12.1/gdb/infrun.c:5825: internal-error: finish_step_over: Assertion `ecs->event_thread->control.trap_expected' fail= ed. A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session? (y or n) y=20=20=20 This is a bug, please report it. For instructions, see: . /usr/ports/devel/gdb/work-py39/gdb-12.1/gdb/infrun.c:5825: internal-error: finish_step_over: Assertion `ecs->event_thread->control.trap_expected' fail= ed. A problem internal to GDB has been detected, further debugging may prove unreliable. Create a core file of GDB? (y or n) y Abort trap (core dumped) --=20 You are receiving this mail because: You are on the CC list for the bug.=