[PATCH] Make interrupting tab-completion safe.

Jan Kratochvil jan.kratochvil@redhat.com
Sun Jun 12 12:12:00 GMT 2011


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



More information about the Gdb-patches mailing list