Re: [PATCH] Make interrupting tab-completion safe.

Jan Kratochvil
2011-06-12T12:12:37Z

On Sat, 11 Jun 2011 02:19:05 +0200, Sterling Augustine wrote:
> gdb <really big program>
> b <tab><tab>
> [ctrl-c before tab-completion is done]
> b <tab>
> (segmentation fault)

I do not have it reproducuble, does not happen for you for ./gdb -nx ./gdb?
Tried also Firefox, both processing runs long enough to CTRL-C it.

It would be good to have a testcase for regressions anyway.

> The problem comes because the dwarf2read.c tries to discover the full
> linkage name of symbols, and assumes that it won't be interrupted.

I had rather an idea to make it interruption-safe as this way another
forgotten or newly introduced QUIT may regression it. But I do not have
a reproducer to check where the crash happens.

Thanks,
Jan