Bug#711134: libtinfo5: segfaults on a terminal with few capabilities

2013-06-07 Thread Thomas Dickey
On Thu, Jun 06, 2013 at 08:05:46PM +0200, Sven Joachim wrote: > On 2013-06-06 03:10 +0200, Thomas Dickey wrote: > > > On Wed, Jun 05, 2013 at 07:24:53PM +0200, Sven Joachim wrote: > >> No wonder that it segfaults, but why cur_term has these bogus values??? > >> you're the expert. :-) > > > > partl

Bug#711134: libtinfo5: segfaults on a terminal with few capabilities

2013-06-06 Thread Sven Joachim
On 2013-06-06 03:10 +0200, Thomas Dickey wrote: > On Wed, Jun 05, 2013 at 07:24:53PM +0200, Sven Joachim wrote: >> No wonder that it segfaults, but why cur_term has these bogus values??? >> you're the expert. :-) > > partly a blunder of course: I was fixing warnings from Coverity advising > of a m

Bug#711134: libtinfo5: segfaults on a terminal with few capabilities

2013-06-05 Thread Thomas Dickey
On Wed, Jun 05, 2013 at 07:24:53PM +0200, Sven Joachim wrote: > No wonder that it segfaults, but why cur_term has these bogus values??? > you're the expert. :-) partly a blunder of course: I was fixing warnings from Coverity advising of a memory leak. Here's a fix. diff -u -r1.156 ncurses/tinfo/

Bug#711134: libtinfo5: segfaults on a terminal with few capabilities

2013-06-05 Thread Thomas Dickey
On Wed, Jun 05, 2013 at 07:24:53PM +0200, Sven Joachim wrote: > No wonder that it segfaults, but why cur_term has these bogus values… > you're the expert. :-) I've narrowed it down to the 20121117 patch (will probably be obvious once I pinpoint it). -- Thomas E. Dickey http://invisible-island.n

Bug#711134: libtinfo5: segfaults on a terminal with few capabilities

2013-06-05 Thread Sven Joachim
On 2013-06-05 11:23 +0200, Thomas Dickey wrote: > On Wed, Jun 05, 2013 at 12:57:52AM +0200, Adam Borowski wrote: >> Package: libtinfo5 >> Version: 5.9+20130504-1 >> Severity: normal >> >> >> If you run a program that uses tgetent() -- at least bash and gdb, with > > They both use readline, which

Bug#711134: libtinfo5: segfaults on a terminal with few capabilities

2013-06-05 Thread Thomas Dickey
On Wed, Jun 05, 2013 at 12:57:52AM +0200, Adam Borowski wrote: > Package: libtinfo5 > Version: 5.9+20130504-1 > Severity: normal > > > If you run a program that uses tgetent() -- at least bash and gdb, with They both use readline, which has its own problems :-) > TERM=KBtin, it will segfault on

Bug#711134: libtinfo5: segfaults on a terminal with few capabilities

2013-06-04 Thread Adam Borowski
Package: libtinfo5 Version: 5.9+20130504-1 Severity: normal If you run a program that uses tgetent() -- at least bash and gdb, with TERM=KBtin, it will segfault on startup. Its terminfo definition can be found in package "kbtin", or by tic-ing: kbtin|KBtin|KBtin's spawned pseudo-terminal,