This is the mail archive of the
mailing list for the GDB project.
Re: quadratic slowdown in 'where' command
- From: Tom Tromey <tromey at redhat dot com>
- To: ppluzhnikov at google dot com (Paul Pluzhnikov)
- Cc: gdb at sourceware dot org
- Date: Sat, 03 Jan 2009 12:20:43 -0700
- Subject: Re: quadratic slowdown in 'where' command
- References: <20081104235737.CD4763A6B0B@localhost>
- Reply-to: tromey at redhat dot com
>>>>> "Paul" == Paul Pluzhnikov <email@example.com> writes:
Paul> While debugging something else, I noticed extreme slowdown of
Paul> 'where' command for a deeply recursive stack trace, and was able
Paul> to reproduce it on a small example (below).
FWIW, I'm able to reproduce this as well.
Paul> The results are also rather interesting: running 'where' by hand
Paul> shows that GDB prints all levels except the last one rather fast,
Paul> but then 'freezes' for a long time printing the last level.
I wasn't able to reproduce this. That is, I ran the test a number of
times, and sometimes I saw this effect, but sometimes I did not.
Could you file this in bugzilla?