[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-ncurses] Yet na other problem with ncurses 6.0
From: |
Dr. Werner Fink |
Subject: |
Re: [bug-ncurses] Yet na other problem with ncurses 6.0 |
Date: |
Mon, 6 Jul 2015 16:57:54 +0200 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Mon, Jul 06, 2015 at 03:49:02PM +0200, Werner Fink wrote:
> Hi,
>
> this is what I see
>
> [ 84s] "../misc/terminfo.src", line 6163, col 15, terminal 'screen.rxvt':
> unknown capability 'XT'
> [ 84s] "../misc/terminfo.src", line 6257, col 62, terminal 'tmux': unknown
> capability 'Ms'
> [ 84s] "../misc/terminfo.src", line 7120, col 21, terminal 'djgpp204':
> unknown capability 'AX'
> [ 85s] *** Error in
> `/home/abuild/rpmbuild/BUILD/ncurses-5.9/ncurses/../progs/tic.build': free():
> invalid pointer: 0x000000000062ddf6 ***
> [ 85s] ======= Backtrace: =========
> [ 85s] /lib64/libc.so.6(+0x730bf)[0x7f17f0cd30bf]
> [ 85s] /lib64/libc.so.6(+0x7892e)[0x7f17f0cd892e]
> [ 85s]
> /home/abuild/rpmbuild/BUILD/ncurses-5.9/ncurses/../progs/tic.build[0x409a7d]
> [ 85s]
> /home/abuild/rpmbuild/BUILD/ncurses-5.9/ncurses/../progs/tic.build[0x409b7a]
> [ 85s]
> /home/abuild/rpmbuild/BUILD/ncurses-5.9/ncurses/../progs/tic.build[0x4032f4]
> [ 85s] /lib64/libc.so.6(__libc_start_main+0xf5)[0x7f17f0c81b05]
> [ 85s]
> /home/abuild/rpmbuild/BUILD/ncurses-5.9/ncurses/../progs/tic.build[0x403ad9]
> [ 85s] ======= Memory map: ========
> [ 85s] 00400000-00411000 r-xp 00000000 08:07 289229351
> /home/abuild/rpmbuild/BUILD/ncurses-5.9/progs/tic.build
> [ 85s] 00610000-00611000 r--p 00010000 08:07 289229351
> /home/abuild/rpmbuild/BUILD/ncurses-5.9/progs/tic.build
> [ 85s] 00611000-00612000 rw-p 00011000 08:07 289229351
> /home/abuild/rpmbuild/BUILD/ncurses-5.9/progs/tic.build
> [ 85s] 00612000-00e52000 rw-p 00000000 00:00 0
> [heap]
> [ 85s] 7f17f0a49000-7f17f0a5f000 r-xp 00000000 08:07 282070569
> /lib64/libgcc_s.so.1
> [ 85s] 7f17f0a5f000-7f17f0c5e000 ---p 00016000 08:07 282070569
> /lib64/libgcc_s.so.1
> [ 85s] 7f17f0c5e000-7f17f0c5f000 r--p 00015000 08:07 282070569
> /lib64/libgcc_s.so.1
> [ 85s] 7f17f0c5f000-7f17f0c60000 rw-p 00016000 08:07 282070569
> /lib64/libgcc_s.so.1
> [ 85s] 7f17f0c60000-7f17f0dfe000 r-xp 00000000 08:07 279369959
> /lib64/libc-2.19.so
> [ 85s] 7f17f0dfe000-7f17f0ffe000 ---p 0019e000 08:07 279369959
> /lib64/libc-2.19.so
> [ 85s] 7f17f0ffe000-7f17f1002000 r--p 0019e000 08:07 279369959
> /lib64/libc-2.19.so
> [ 85s] 7f17f1002000-7f17f1004000 rw-p 001a2000 08:07 279369959
> /lib64/libc-2.19.so
> [ 85s] 7f17f1004000-7f17f1008000 rw-p 00000000 00:00 0
> [ 85s] 7f17f1008000-7f17f102d000 r-xp 00000000 08:07 603327257
> /home/abuild/rpmbuild/BUILDROOT/ncurses-6.0-0.x86_64/lib64/libtinfo.so.6.0
> [ 85s] 7f17f102d000-7f17f122c000 ---p 00025000 08:07 603327257
> /home/abuild/rpmbuild/BUILDROOT/ncurses-6.0-0.x86_64/lib64/libtinfo.so.6.0
> [ 85s] 7f17f122c000-7f17f122d000 r--p 00024000 08:07 603327257
> /home/abuild/rpmbuild/BUILDROOT/ncurses-6.0-0.x86_64/lib64/libtinfo.so.6.0
> [ 85s] 7f17f122d000-7f17f1232000 rw-p 00025000 08:07 603327257
> /home/abuild/rpmbuild/BUILDROOT/ncurses-6.0-0.x86_64/lib64/libtinfo.so.6.0
> [ 85s] 7f17f1232000-7f17f1240000 r-xp 00000000 08:07 603327260
>
> /home/abuild/rpmbuild/BUILDROOT/ncurses-6.0-0.x86_64/usr/lib64/libtic.so.6.0
> [ 85s] 7f17f1240000-7f17f143f000 ---p 0000e000 08:07 603327260
>
> /home/abuild/rpmbuild/BUILDROOT/ncurses-6.0-0.x86_64/usr/lib64/libtic.so.6.0
> [ 85s] 7f17f143f000-7f17f1440000 r--p 0000d000 08:07 603327260
>
> /home/abuild/rpmbuild/BUILDROOT/ncurses-6.0-0.x86_64/usr/lib64/libtic.so.6.0
> [ 85s] 7f17f1440000-7f17f1441000 rw-p 0000e000 08:07 603327260
>
> /home/abuild/rpmbuild/BUILDROOT/ncurses-6.0-0.x86_64/usr/lib64/libtic.so.6.0
> [ 85s] 7f17f1441000-7f17f1461000 r-xp 00000000 08:07 279369950
> /lib64/ld-2.19.so
> [ 85s] 7f17f1659000-7f17f165d000 rw-p 00000000 00:00 0
> [ 85s] 7f17f165d000-7f17f1661000 rw-p 00000000 00:00 0
> [ 85s] 7f17f1661000-7f17f1662000 r--p 00020000 08:07 279369950
> /lib64/ld-2.19.so
> [ 85s] 7f17f1662000-7f17f1663000 rw-p 00021000 08:07 279369950
> /lib64/ld-2.19.so
> [ 85s] 7f17f1663000-7f17f1664000 rw-p 00000000 00:00 0
> [ 85s] 7fff7b6cf000-7fff7b6f0000 rw-p 00000000 00:00 0
> [stack]
> [ 85s] 7fff7b7df000-7fff7b7e0000 r-xp 00000000 00:00 0
> [vdso]
> [ 85s] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0
> [vsyscall]
> [ 85s] error: Bad exit status from /var/tmp/rpm-tmp.ngwEyH (%install)
>
> Werner
The attached patch fixes the issue
Werner
--
"Having a smoking section in a restaurant is like having
a peeing section in a swimming pool." -- Edward Burr
--- progs/dump_entry.c
+++ progs/dump_entry.c 2015-07-06 14:53:52.417518527 +0000
@@ -778,8 +778,10 @@ fmt_entry(TERMTYPE *tterm,
trimmed_sgr0 = _nc_trim_sgr0(tterm);
if (strcmp(capability, trimmed_sgr0))
capability = trimmed_sgr0;
- else
- free(trimmed_sgr0);
+ else {
+ if (trimmed_sgr0 != exit_attribute_mode)
+ free(trimmed_sgr0);
+ }
set_attributes = my_sgr;
}
signature.asc
Description: Digital signature