[PATCH 0/3] Fix crash if connection drops in scoped_restore_current_thread's ctor
Simon Marchi
simark@simark.ca
Wed Jul 22 20:47:15 GMT 2020
On 2020-07-22 4:37 p.m., Pedro Alves wrote:
> I'm thinking that to fix this we will need a generation counter in
> reinit_frame_cache. Then in frame_unwind_try_unwinder, don't call
> frame_cleanup_after_sniffer if the generation is not the same as it was
> on entry.
>
> Something like this. Does it fix it for you? I can't seem to reproduce
> the crash here.
I don't have time to try, but the approach makes sense. It also crossed my mind,
but I thought it would be more complicated to implement than that.
Simon
More information about the Gdb-patches
mailing list