From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id ADE4F3858D28; Wed, 20 Jul 2022 20:15:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ADE4F3858D28 From: "ks132 at yandex dot ru" To: gdb-prs@sourceware.org Subject: [Bug backtrace/29374] Internal-error when printing exception backtrace Date: Wed, 20 Jul 2022 20:15:38 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: backtrace X-Bugzilla-Version: 12.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ks132 at yandex dot ru 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: 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: Wed, 20 Jul 2022 20:15:38 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29374 --- Comment #1 from ks132 --- Also reproduced in master $ ~/build-gdb/gdb/gdb -batch -ex "catch throw" -ex r -ex bt a.out=20 Catchpoint 1 (throw) warning: Cannot parse .gnu_debugdata section; LZMA support was disabled at compile time warning: Cannot parse .gnu_debugdata section; LZMA support was disabled at compile time warning: Cannot parse .gnu_debugdata section; LZMA support was disabled at compile time [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Catchpoint 1 (exception thrown), 0x00007ffff7e256d1 in __cxa_throw () from /lib64/libstdc++.so.6 #0 0x00007ffff7e256d1 in __cxa_throw () from /lib64/libstdc++.so.6 #1 0x0000000000401430 in Handler::find (this=3Dthis@entry=3D0x7fffffffde90, ../../binutils-gdb/gdb/../gdbsupport/array-view.h:217: internal-error: copy: Assertion `dest.size () =3D=3D src.size ()' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. ----- Backtrace ----- 0x4b9b62 gdb_internal_backtrace_1 ../../binutils-gdb/gdb/bt-utils.c:122 0x4b9b62 _Z22gdb_internal_backtracev ../../binutils-gdb/gdb/bt-utils.c:168 0x7db474 internal_vproblem ../../binutils-gdb/gdb/utils.c:396 0x7db6b8 _Z15internal_verrorPKciS0_P13__va_list_tag ../../binutils-gdb/gdb/utils.c:476 0x8ef221 _Z14internal_errorPKciS0_z ../../binutils-gdb/gdbsupport/errors.cc:55 0x54d2e1 _ZN3gdb4copyIKhhEEvNS_10array_viewIT_EENS2_IT0_EE ../../binutils-gdb/gdb/../gdbsupport/array-view.h:217 0x54d2e1 _ZN3gdb4copyIKhhEEvNS_10array_viewIT_EENS2_IT0_EE ../../binutils-gdb/gdb/../gdbsupport/array-view.h:215 0x54d2e1 _ZN18dwarf_expr_context12fetch_resultEP4typeS1_lb ../../binutils-gdb/gdb/dwarf2/expr.c:1039 0x56398c dwarf2_evaluate_loc_desc_full ../../binutils-gdb/gdb/dwarf2/loc.c:1519 0x56603e _Z24dwarf2_evaluate_loc_descP4typeP10frame_infoPKhmP18dwarf2_per_cu_dataP18= dwarf2_per_objfileb ../../binutils-gdb/gdb/dwarf2/loc.c:1563 0x56603e dwarf_entry_parameter_to_value ../../binutils-gdb/gdb/dwarf2/loc.c:1269 0x56603e value_of_dwarf_reg_entry ../../binutils-gdb/gdb/dwarf2/loc.c:1366 0x56612c value_of_dwarf_block_entry ../../binutils-gdb/gdb/dwarf2/loc.c:1399 0x566217 loclist_read_variable_at_entry ../../binutils-gdb/gdb/dwarf2/loc.c:3920 0x736648 _Z14read_frame_argRK19frame_print_optionsP6symbolP10frame_infoP9frame_argS7_ ../../binutils-gdb/gdb/stack.c:560 0x736dee print_frame_args ../../binutils-gdb/gdb/stack.c:888 0x738611 print_frame ../../binutils-gdb/gdb/stack.c:1391 0x738611 _Z16print_frame_infoRK19frame_print_optionsP10frame_infoi10print_whatii ../../binutils-gdb/gdb/stack.c:1117 0x739dcf backtrace_command_1 ../../binutils-gdb/gdb/stack.c:2070 0x739dcf backtrace_command ../../binutils-gdb/gdb/stack.c:2189 0x4e9514 _Z8cmd_funcP16cmd_list_elementPKci ../../binutils-gdb/gdb/cli/cli-decode.c:2516 0x795b7a _Z15execute_commandPKci ../../binutils-gdb/gdb/top.c:699 0x667de1 catch_command_errors ../../binutils-gdb/gdb/main.c:513 0x667eaf execute_cmdargs ../../binutils-gdb/gdb/main.c:608 0x669c4c captured_main_1 ../../binutils-gdb/gdb/main.c:1298 0x66a73a captured_main ../../binutils-gdb/gdb/main.c:1319 0x66a73a _Z8gdb_mainP18captured_main_args ../../binutils-gdb/gdb/main.c:1344 0x428bf4 main ../../binutils-gdb/gdb/gdb.c:32 --------------------- This is a bug, please report it. For instructions, see: . Aborted (core dumped) --=20 You are receiving this mail because: You are on the CC list for the bug.=