From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id 086663870877 for ; Sun, 27 Jun 2021 04:00:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 086663870877 Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 15R400O8030997 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 27 Jun 2021 00:00:05 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 15R400O8030997 Received: from [10.0.0.11] (192-222-157-6.qc.cable.ebox.net [192.222.157.6]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 7EC101E54D; Sun, 27 Jun 2021 00:00:00 -0400 (EDT) Subject: Re: GDB and MacOS 11.4/BigSur To: Sam Warner Cc: gdb@sourceware.org References: <9717BBC8-70FA-47DD-8C62-33018D746003@me.com> <5180de47-136f-bad7-9f83-78ac02a323c6@polymtl.ca> From: Simon Marchi Message-ID: Date: Sun, 27 Jun 2021 00:00:00 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <5180de47-136f-bad7-9f83-78ac02a323c6@polymtl.ca> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Sun, 27 Jun 2021 04:00:00 +0000 X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jun 2021 04:00:09 -0000 On 2021-06-26 8:51 p.m., Simon Marchi via Gdb wrote:> > > On 2021-06-26 7:27 p.m., Sam Warner wrote: >> Hi Simon, >> :), perfect, how can I help? > > Specifically, with the bug you reported, you would need to figure out > why the global current_thread_ is nullptr at the point inferior_thread > is called. In fact, all this happens before you tried to run anything, > so it's expected that there is no current thread: there are no threads > at all yet. > > So, try to get a backtrace so we at least know which inferior_thread > call that is. You can try to attach a working GDB to the broken GDB > while it's at the "would you like to create a core dump" question. If > GDB is too broken, you can try lldb, whatever works. > > Once we have that, we figure out a solution :). Hi Sam, I had a bit of time, so I took a quick look and wrote a patch: https://sourceware.org/pipermail/gdb-patches/2021-June/180396.html This problem doesn't seem too complicated, but note that I won't always be able to look into macOS-related problems, especially if they are more difficult to fix than this one and require more platform-specific knowledge. I don't own a Mac myself, I just have access to a relatively slow VM that is a bit painful to use. So it would still be really awesome if we had someone to turn to for macOS-related problems. Simon