This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Leaks in gdb readline (old) version 6.2, fixed in readline 7
- From: Philippe Waroquiers <philippe dot waroquiers at skynet dot be>
- To: Tom Tromey <tom at tromey dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Sun, 30 Dec 2018 22:39:59 +0100
- Subject: Re: Leaks in gdb readline (old) version 6.2, fixed in readline 7
- References: <1546074915.1671.1.camel@skynet.be> <87sgygkkt6.fsf@tromey.com>
On Sat, 2018-12-29 at 15:52 -0700, Tom Tromey wrote:
> > > > > > "Philippe" == Philippe Waroquiers <philippe.waroquiers@skynet.be> writes:
>
> Philippe> On my system (debian 9.6), the leaks are fixed by using
> Philippe> --with-system-readline=yes
> Philippe> with the system readline version being 7.0-3
>
> Philippe> Switching to this readline version causes the following checks to fail:
> Philippe> FAIL: gdb.gdb/selftest.exp: send SIGINT signal to child process (timeout)
> Philippe> FAIL: gdb.gdb/selftest.exp: thread 1 (timeout)
> Philippe> FAIL: gdb.gdb/selftest.exp: backtrace through signal handler (timeout)
>
> The branch submit/readline-upgrade from my github upgrades to readline
> 7.0 patch 5.
The debian readline is 7.0, with upstream patches 1, 2 and 3.
The patches 4 and 5 seem not related to the above failure (not very
understandable: manually trying the command works ...).
One somewhat strange thing: when using --with-system-readline=yes,
the command 'show configuration' does not show this option,
while ldd shows gdb is effectively linked with libreadline.so.7.
philippe@md:gdb$ ldd ./gdb | grep readline
libreadline.so.7 => /lib/x86_64-linux-gnu/libreadline.so.7 (0x00007f79a62d7000)
philippe@md:gdb$ ./gdb -ex 'show configuration' --batch | grep readline
philippe@md:gdb$
So, the configuration string seems to be partial ?
Philippe