This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Leaks in gdb readline (old) version 6.2, fixed in readline 7


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]