From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id Fe9gLS4MlGj+sAUAWB0awg (envelope-from ) for ; Wed, 06 Aug 2025 22:15:10 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=OS94MA9A; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id A53661E100; Wed, 6 Aug 2025 22:15:10 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-6.8 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, WEIRD_PORT autolearn=unavailable autolearn_force=no version=4.0.1 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 6D0B71E089 for ; Wed, 6 Aug 2025 22:15:09 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id EAFC03858C53 for ; Thu, 7 Aug 2025 02:15:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EAFC03858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1754532909; bh=TXA9VO4phUph1BAB+JgWXbob7kCM7kc6sno8YPLPkSk=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=OS94MA9AZVba3I0NJ+f4DorGVDbsXZcMAphMwtA0NmiQ31akw0+CEHzujGpAB6PmB ChlnAdIfRRQ9pkOLBmR/5mWb/3jFKSgXlX0B/M3j9mB9dBnoayeqc2kpkSMBR4YQ2K vY+ux+DgVgilOtSzZWUhi1WYpdzsPXiuLk3hJwoo= Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id DD4343858D21 for ; Thu, 7 Aug 2025 02:14:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DD4343858D21 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DD4343858D21 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1754532859; cv=none; b=RX1bl+TUpOr2wkY+OFETFl4ELZsMuNgLJ6mKeLxnJSJQNI168JRxmSYTTKRwgYAUkBxHe/7dOKgbUdw8P+52BYa65WzmirdgVGpl65MGCs1MXg2ND/5904iYghBopYhrODqWucAVYGHTjEUIShE12YaxVO0UDheJWhQvQ/7+3IY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1754532859; c=relaxed/simple; bh=Vh/8Rakh5fsqLiSjSGn2BC8R5R74zoosmNoW0njyYDg=; h=DKIM-Signature:DKIM-Signature:Message-ID:Date:MIME-Version: Subject:To:From; b=S02To+4RG0LV33z9+uqrVTTxMHBZKZlDjl+WpaIrQ8f0hQ4RlUD5T6fCLT1mZwuM7di+iUImZqOQ0zEXpNTnRESrtGbCTla2AxrhQkiSDIKtI9PlLW6bbCAeBViqo0VBCp6elZHoWaCGQIwbt+DPVA4t3GaZ7tzT3AG0DZ9RULE= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DD4343858D21 Received: by simark.ca (Postfix, from userid 112) id 9D62C1E11C; Wed, 6 Aug 2025 22:14:18 -0400 (EDT) Received: from [10.0.0.170] (modemcable238.237-201-24.mc.videotron.ca [24.201.237.238]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id C49BB1E089; Wed, 6 Aug 2025 22:14:10 -0400 (EDT) Message-ID: <23a81415-fb21-4786-aceb-66be264a0bb3@simark.ca> Date: Wed, 6 Aug 2025 22:14:10 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Isuse using GDB 16.3 on Illumos To: Carsten Grzemba , gdb@sourceware.org References: Content-Language: fr In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Simon Marchi via Gdb Reply-To: Simon Marchi Errors-To: gdb-bounces~public-inbox=simark.ca@sourceware.org Sender: "Gdb" On 8/6/25 11:32 AM, Carsten Grzemba via Gdb wrote: > On Openindiana we have GDB 14.2 working. > > I attempt to udate the gdb package to the recent version 16.3 > It builds well but I get problems with debugging corefiles (multi htread): > > > -- $ gdb > GNU gdb (GDB) 16.3 > Copyright (C) 2024 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-pc-solaris2.11". > 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". > (gdb) file /usr/lib/tracker-store > Reading symbols from /usr/lib/tracker-store... > (No debugging symbols found in /usr/lib/tracker-store) > (gdb) core-file /var/tmp/core.tracker-store.16526 > [New LWP 1] > [New LWP 2] > [New LWP 3] > [New LWP 4] > [New LWP 5] > [New LWP 6] > [New LWP 7] > [New LWP 8] > [New LWP 9] > [LWP 1 exited] > [New LWP 1] > [LWP 2 exited] > [New LWP 2] > [LWP 3 exited] > [New LWP 3] > [LWP 4 exited] > [New LWP 4] > [LWP 5 exited] > [New LWP 5] > [LWP 6 exited] > [New LWP 6] > [LWP 7 exited] > [New LWP 7] > [LWP 8 exited] > [New LWP 8] > [LWP 9 exited] > [New LWP 9] > [LWP 1 exited] > [New LWP 1] > [LWP 2 exited] > [New LWP 2] > [LWP 3 exited] > [New LWP 3] > [LWP 4 exited] > [New LWP 4] > [LWP 5 exited] > [New LWP 5] > --Type for more, q to quit, c to continue without paging--c > [LWP 6 exited] > [New LWP 6] > [LWP 7 exited] > [New LWP 7] > [LWP 8 exited] > [New LWP 8] > [LWP 9 exited] > [New LWP 9] > [LWP 1 exited] > [New LWP 1] > [LWP 2 exited] > [New LWP 2] > [LWP 3 exited] > [New LWP 3] > [LWP 4 exited] > [New LWP 4] > [LWP 5 exited] > [New LWP 5] > [LWP 6 exited] > [New LWP 6] > [LWP 7 exited] > [New LWP 7] > [LWP 8 exited] > [New LWP 8] > [LWP 9 exited] > [New LWP 9] > [LWP 1 exited] > [New LWP 1] > [LWP 2 exited] > [New LWP 2] > [LWP 3 exited] > [New LWP 3] > [LWP 4 exited] > [New LWP 4] > [LWP 5 exited] > [New LWP 5] > [LWP 6 exited] > [New LWP 6] > [LWP 7 exited] > [New LWP 7] > [LWP 8 exited] > [New LWP 8] > [LWP 9 exited] > [New LWP 9] > [LWP 1 exited] > [New LWP 1] > [LWP 2 exited] > [New LWP 2] > [LWP 3 exited] > [New LWP 3] > [LWP 4 exited] > [New LWP 4] > [LWP 5 exited] > [New LWP 5] > [LWP 6 exited] > [New LWP 6] > [LWP 7 exited] > [New LWP 7] > [LWP 8 exited] > [New LWP 8] > [LWP 9 exited] > [New LWP 9] > [LWP 1 exited] > [New LWP 1] > [LWP 2 exited] > [New LWP 2] > [LWP 3 exited] > [New LWP 3] > [LWP 4 exited] > [New LWP 4] > [LWP 5 exited] > [New LWP 5] > [LWP 6 exited] > [New LWP 6] > [LWP 7 exited] > [New LWP 7] > [LWP 8 exited] > [New LWP 8] > [LWP 9 exited] > [New LWP 9] > [LWP 1 exited] > [New LWP 1] > [LWP 2 exited] > [New LWP 2] > [LWP 3 exited] > [New LWP 3] > [LWP 4 exited] > [New LWP 4] > [LWP 5 exited] > [New LWP 5] > [LWP 6 exited] > [New LWP 6] > [LWP 7 exited] > [New LWP 7] > [LWP 8 exited] > [New LWP 8] > [LWP 9 exited] > [New LWP 9] > [LWP 1 exited] > [New LWP 1] > [LWP 2 exited] > [New LWP 2] > [LWP 3 exited] > [New LWP 3] > [LWP 4 exited] > [New LWP 4] > [LWP 5 exited] > [New LWP 5] > [LWP 6 exited] > [New LWP 6] > [LWP 7 exited] > [New LWP 7] > [LWP 8 exited] > [New LWP 8] > [LWP 9 exited] > [New LWP 9] > [LWP 1 exited] > [New LWP 1] > [LWP 2 exited] > [New LWP 2] > [LWP 3 exited] > [New LWP 3] > [LWP 4 exited] > [New LWP 4] > [LWP 5 exited] > [New LWP 5] > [LWP 6 exited] > [New LWP 6] > [LWP 7 exited] > [New LWP 7] > [LWP 8 exited] > [New LWP 8] > [LWP 9 exited] > [New LWP 9] > [LWP 1 exited] > [New LWP 1] > [LWP 2 exited] > [New LWP 2] > [LWP 3 exited] > [New LWP 3] > [LWP 4 exited] > [New LWP 4] > [LWP 5 exited] > [New LWP 5] > [LWP 6 exited] > [New LWP 6] > [LWP 7 exited] > [New LWP 7] > [LWP 8 exited] > [New LWP 8] > [LWP 9 exited] > [New LWP 9] > [LWP 1 exited] > [New LWP 1] > [LWP 2 exited] > [New LWP 2] > [LWP 3 exited] > [New LWP 3] > [LWP 4 exited] > [New LWP 4] > [LWP 5 exited] > [New LWP 5] > [LWP 6 exited] > [New LWP 6] > [LWP 7 exited] > [New LWP 7] > [LWP 8 exited] > [New LWP 8] > [LWP 9 exited] > [New LWP 9] > /code/github/oi-userland/components/developer/gdb/gdb-16.3/gdb/regcache.c:432: internal-error: get_thread_regcache: Assertion `thread->state != THREAD_EXITED' failed. > A problem internal to GDB has been detected, > further debugging may prove unreliable. > ----- Backtrace ----- > 0x7b5d3c gdb_internal_backtrace_1 > /code/github/oi-userland/components/developer/gdb/gdb-16.3/gdb/bt-utils.c:121 > 0x7b5d3c _Z22gdb_internal_backtracev > /code/github/oi-userland/components/developer/gdb/gdb-16.3/gdb/bt-utils.c:182 > 0xb95c84 internal_vproblem > /code/github/oi-userland/components/developer/gdb/gdb-16.3/gdb/utils.c:423 > 0xb95fe8 _Z15internal_verrorPKciS0_P13__va_list_tag > /code/github/oi-userland/components/developer/gdb/gdb-16.3/gdb/utils.c:503 > 0xce7bec _Z18internal_error_locPKciS0_z > /code/github/oi-userland/components/developer/gdb/gdb-16.3/gdbsupport/errors.cc:57 > 0xa6dfb5 _Z19get_thread_regcacheP11thread_info > /code/github/oi-userland/components/developer/gdb/gdb-16.3/gdb/regcache.c:432 > 0x94455e _Z20post_create_inferiori > /code/github/oi-userland/components/developer/gdb/gdb-16.3/gdb/infcmd.c:255 > 0x82b9a0 core_target_open > /code/github/oi-userland/components/developer/gdb/gdb-16.3/gdb/corelow.c:1154 > 0x7ee65c _Z8cmd_funcP16cmd_list_elementPKci > /code/github/oi-userland/components/developer/gdb/gdb-16.3/gdb/cli/cli-decode.c:2748 > 0xb4e13f _Z15execute_commandPKci > /code/github/oi-userland/components/developer/gdb/gdb-16.3/gdb/top.c:570 > 0x8dbf70 _Z15command_handlerPKc > /code/github/oi-userland/components/developer/gdb/gdb-16.3/gdb/event-top.c:613 > 0x8ddb85 _Z20command_line_handlerOSt10unique_ptrIcN3gdb13xfree_deleterIcEEE > /code/github/oi-userland/components/developer/gdb/gdb-16.3/gdb/event-top.c:849 > 0x8dcc3d gdb_rl_callback_handler > /code/github/oi-userland/components/developer/gdb/gdb-16.3/gdb/event-top.c:288 > 0xbe0560 rl_callback_read_char > /code/github/oi-userland/components/developer/gdb/gdb-16.3/readline/readline/callback.c:302 > 0x8dcdbd gdb_rl_callback_read_char_wrapper_sjlj > /code/github/oi-userland/components/developer/gdb/gdb-16.3/gdb/event-top.c:197 > 0x8dd02b gdb_rl_callback_read_char_wrapper_noexcept > /code/github/oi-userland/components/developer/gdb/gdb-16.3/gdb/event-top.c:240 > 0x8dd02b gdb_rl_callback_read_char_wrapper > /code/github/oi-userland/components/developer/gdb/gdb-16.3/gdb/event-top.c:252 > 0xb8f86f stdin_event_handler > /code/github/oi-userland/components/developer/gdb/gdb-16.3/gdb/ui.c:154 > 0xce8894 gdb_wait_for_event > /code/github/oi-userland/components/developer/gdb/gdb-16.3/gdbsupport/event-loop.cc:694 > 0xce9013 gdb_wait_for_event > /code/github/oi-userland/components/developer/gdb/gdb-16.3/gdbsupport/event-loop.cc:571 > 0xce9013 _Z16gdb_do_one_eventi > /code/github/oi-userland/components/developer/gdb/gdb-16.3/gdbsupport/event-loop.cc:263 > 0x997571 start_event_loop > /code/github/oi-userland/components/developer/gdb/gdb-16.3/gdb/main.c:402 > 0x997571 captured_command_loop > /code/github/oi-userland/components/developer/gdb/gdb-16.3/gdb/main.c:466 > 0x99a264 captured_main > /code/github/oi-userland/components/developer/gdb/gdb-16.3/gdb/main.c:1343 > 0x99a264 _Z8gdb_mainP18captured_main_args > /code/github/oi-userland/components/developer/gdb/gdb-16.3/gdb/main.c:1362 > 0x7140b9 main > /code/github/oi-userland/components/developer/gdb/gdb-16.3/gdb/gdb.c:38 > --------------------- > /code/github/oi-userland/components/developer/gdb/gdb-16.3/gdb/regcache.c:432: internal-error: get_thread_regcache: Assertion `thread->state != THREAD_EXITED' failed. > A problem internal to GDB has been detected, > further debugging may prove unreliable. > Quit this debugging session? (y or n) > > > The same works with GDB 14.2 in Openindiana package repository. The version 15.2 seems to have te same problem. > > > Debugging GDB with GDB seems to be a little bit tricky. > Can anyone give me a hint whats going wrong here? Which test in the testsuite is related this task? So it's this assert added here: https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=249d08128787e4e0a977079aa09516d73f196f77 For some reason, the threads created for your core are marked as exited (we can even see the [LWP n exited] notifications). That probably shouldn't happen for a core. It's really odd that the same threads keep exiting and reappearing. You'll need to dig into that. Can you open a bug on bugzilla for this? It would help if you could attach a core file and the associated binary. Simon