GDB 15/16 crashing in add_thread_silent()
Tom Tromey
tom@tromey.com
Fri Nov 14 20:13:35 GMT 2025
>>>>> "Simon" == Simon Marchi via Gdb <gdb@sourceware.org> writes:
>> Earlier if the PID couldn't be found then pid is set to CORELOW_PID
>> anyway, so this works and prevents the crash (although, I think GDB
>> should check for the nullptr return and do _something_ non-crashy...
>> maybe?)
Simon> I agree that part seems clearly buggy, but I don't think you should
Simon> focus on that. The problem has already happened earlier in the
Simon> execution.
See this thread as well
https://inbox.sourceware.org/gdb-patches/20251024124208.1875651-1-tdevries@suse.de/
I wonder if the fix (assuming it arrives) should be in GDB 17.
Tom
More information about the Gdb
mailing list