GDB and MacOS 11.4/BigSur

Simon Marchi simon.marchi@polymtl.ca
Sun Jun 27 04:00:00 GMT 2021


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


More information about the Gdb mailing list