bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Memory leaks in Ncurses 6.1


From: Jeffrey Walton
Subject: Memory leaks in Ncurses 6.1
Date: Wed, 17 Jun 2020 11:01:31 -0400

Hi Everyone,

I have a bunch of build scripts I use for testing. I can build
packages like cURL, Git, GnuPG, and Wget from the ground up. Most of
the packages indirectly depend upon Ncurses due to dependencies on
iConvert and GetText.

Some of the testing I perform includes Asan and UBsan. Asan requires
the target and all dependencies to be built with Asan, and the scripts
can do that. Asan seems to cause a lot of trouble for GNU software.

Ncurses was configured with --disable-leaks, but it is failing Asan
testing like shown below.

When Ncurses leaks it breaks the testing of all programs and shared
objects that depend on Ncurses. We can't test the target programs or
libraries. Also, the memory leaks cause resource exhaustion on
platforms like Android. Managed languages like Java and .Net will load
and unload shared objects repeatedly, and the leaks accumulate until
there's no more memory. (Just ask the OpenJDK guys about OpenSSL).

Is there any way to disable all memory leaks in Ncurses?

(I'm fine with patching Ncurses and adding a destructor to perform the cleanup).

=====

=================================================================
==13187==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 1672560 byte(s) in 505 object(s) allocated from:
    #0 0x7f87db7ddb40 in __interceptor_malloc
(/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb40)
    #1 0x7f87db494df9 in _nc_init_termtype ../ncurses/./tinfo/read_entry.c:218
    #2 0x7f87db4aa220 in _nc_parse_entry ../ncurses/./tinfo/parse_entry.c:238
    #3 0x7f87db4a22bf in _nc_read_entry_source
../ncurses/./tinfo/comp_parse.c:225
    #4 0x5592c728e76b in main ../progs/tic.c:961
    #5 0x7f87dae57b96 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

Direct leak of 67552 byte(s) in 20 object(s) allocated from:
    #0 0x7f87db7ddf30 in realloc
(/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdef30)
    #1 0x7f87db480943 in _nc_doalloc ../ncurses/./tinfo/doalloc.c:50
    #2 0x7f87db4ac156 in _nc_extend_names ../ncurses/./tinfo/parse_entry.c:162
    #3 0x7f87db4ac156 in _nc_parse_entry ../ncurses/./tinfo/parse_entry.c:389
    #4 0x7f87db4a22bf in _nc_read_entry_source
../ncurses/./tinfo/comp_parse.c:225
    #5 0x5592c728e76b in main ../progs/tic.c:961
    #6 0x7f87dae57b96 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

Direct leak of 40950 byte(s) in 525 object(s) allocated from:
    #0 0x7f87db7ddb40 in __interceptor_malloc
(/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb40)
    #1 0x7f87db494e49 in _nc_init_termtype ../ncurses/./tinfo/read_entry.c:216
    #2 0x7f87db4aa220 in _nc_parse_entry ../ncurses/./tinfo/parse_entry.c:238
    #3 0x7f87db4a22bf in _nc_read_entry_source
../ncurses/./tinfo/comp_parse.c:225
    #4 0x5592c728e76b in main ../progs/tic.c:961
    #5 0x7f87dae57b96 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

Direct leak of 22836 byte(s) in 519 object(s) allocated from:
    #0 0x7f87db7ddb40 in __interceptor_malloc
(/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb40)
    #1 0x7f87db494e29 in _nc_init_termtype ../ncurses/./tinfo/read_entry.c:214
    #2 0x7f87db4aa220 in _nc_parse_entry ../ncurses/./tinfo/parse_entry.c:238
    #3 0x7f87db4a22bf in _nc_read_entry_source
../ncurses/./tinfo/comp_parse.c:225
    #4 0x5592c728e76b in main ../progs/tic.c:961
    #5 0x7f87dae57b96 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

Direct leak of 1280 byte(s) in 15 object(s) allocated from:
    #0 0x7f87db7ddf30 in realloc
(/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdef30)
    #1 0x7f87db480943 in _nc_doalloc ../ncurses/./tinfo/doalloc.c:50
    #2 0x7f87db4abb8b in _nc_extend_names ../ncurses/./tinfo/parse_entry.c:168
    #3 0x7f87db4abb8b in _nc_parse_entry ../ncurses/./tinfo/parse_entry.c:389
    #4 0x7f87db4a22bf in _nc_read_entry_source
../ncurses/./tinfo/comp_parse.c:225
    #5 0x5592c728e76b in main ../progs/tic.c:961
    #6 0x7f87dae57b96 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

Direct leak of 1024 byte(s) in 1 object(s) allocated from:
    #0 0x7f87db7ddb40 in __interceptor_malloc
(/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb40)
    #1 0x7f87db4a3989 in _nc_resolve_uses2 ../ncurses/./tinfo/comp_parse.c:346
    #2 0x5592c728e05f in main ../progs/tic.c:969
    #3 0x7f87dae57b96 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

Direct leak of 270 byte(s) in 6 object(s) allocated from:
    #0 0x7f87db7ddf30 in realloc
(/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdef30)
    #1 0x7f87db480943 in _nc_doalloc ../ncurses/./tinfo/doalloc.c:50
    #2 0x7f87db4aba34 in _nc_extend_names ../ncurses/./tinfo/parse_entry.c:148
    #3 0x7f87db4aba34 in _nc_parse_entry ../ncurses/./tinfo/parse_entry.c:389
    #4 0x7f87db4a22bf in _nc_read_entry_source
../ncurses/./tinfo/comp_parse.c:225
    #5 0x5592c728e76b in main ../progs/tic.c:961
    #6 0x7f87dae57b96 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

Direct leak of 80 byte(s) in 10 object(s) allocated from:
    #0 0x7f87db7ddb40 in __interceptor_malloc
(/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb40)
    #1 0x7f87db4abb8b in _nc_extend_names ../ncurses/./tinfo/parse_entry.c:168
    #2 0x7f87db4abb8b in _nc_parse_entry ../ncurses/./tinfo/parse_entry.c:389
    #3 0x7f87db4a22bf in _nc_read_entry_source
../ncurses/./tinfo/comp_parse.c:225
    #4 0x5592c728e76b in main ../progs/tic.c:961
    #5 0x7f87dae57b96 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

Direct leak of 34 byte(s) in 1 object(s) allocated from:
    #0 0x7f87db776538 in strdup (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x77538)
    #1 0x7f87db4acf9b in _nc_set_writedir ../ncurses/./tinfo/write_entry.c:230
    #2 0x5592c728ee8d in main ../progs/tic.c:1007
    #3 0x7f87dae57b96 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

Indirect leak of 1901088 byte(s) in 574 object(s) allocated from:
    #0 0x7f87db7ddd28 in __interceptor_calloc
(/usr/lib/x86_64-linux-gnu/libasan.so.4+0xded28)
    #1 0x7f87db49599c in _nc_read_termtype ../ncurses/./tinfo/read_entry.c:357
    #2 0x7f87db4971e7 in _nc_read_file_entry ../ncurses/./tinfo/read_entry.c:547
    #3 0x7f87db497ab6 in _nc_read_tic_entry ../ncurses/./tinfo/read_entry.c:798
    #4 0x7f87db497dc0 in _nc_read_entry ../ncurses/./tinfo/read_entry.c:839
    #5 0x7f87db4a38ce in _nc_resolve_uses2 ../ncurses/./tinfo/comp_parse.c:342
    #6 0x5592c728e05f in main ../progs/tic.c:969
    #7 0x7f87dae57b96 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

Indirect leak of 780288 byte(s) in 762 object(s) allocated from:
    #0 0x7f87db7ddb40 in __interceptor_malloc
(/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb40)
    #1 0x7f87db4a3989 in _nc_resolve_uses2 ../ncurses/./tinfo/comp_parse.c:346
    #2 0x5592c728e05f in main ../progs/tic.c:969
    #3 0x7f87dae57b96 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

Indirect leak of 409792 byte(s) in 113 object(s) allocated from:
    #0 0x7f87db7ddf30 in realloc
(/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdef30)
    #1 0x7f87db480943 in _nc_doalloc ../ncurses/./tinfo/doalloc.c:50
    #2 0x7f87db47b18b in realign_data ../ncurses/./tinfo/alloc_ttype.c:136
    #3 0x7f87db47d29b in _nc_align_termtype ../ncurses/./tinfo/alloc_ttype.c:467
    #4 0x7f87db49ae91 in _nc_merge_entry ../ncurses/./tinfo/alloc_entry.c:233
    #5 0x7f87db4a2f9e in _nc_resolve_uses2 ../ncurses/./tinfo/comp_parse.c:416
    #6 0x5592c728e05f in main ../progs/tic.c:969
    #7 0x7f87dae57b96 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

Indirect leak of 186818 byte(s) in 763 object(s) allocated from:
    #0 0x7f87db7ddb40 in __interceptor_malloc
(/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb40)
    #1 0x7f87db49543b in _nc_read_termtype ../ncurses/./tinfo/read_entry.c:318
    #2 0x7f87db4971e7 in _nc_read_file_entry ../ncurses/./tinfo/read_entry.c:547
    #3 0x7f87db497ab6 in _nc_read_tic_entry ../ncurses/./tinfo/read_entry.c:798
    #4 0x7f87db497dc0 in _nc_read_entry ../ncurses/./tinfo/read_entry.c:839
    #5 0x7f87db4a38ce in _nc_resolve_uses2 ../ncurses/./tinfo/comp_parse.c:342
    #6 0x5592c728e05f in main ../progs/tic.c:969
    #7 0x7f87dae57b96 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

Indirect leak of 133464 byte(s) in 40 object(s) allocated from:
    #0 0x7f87db7ddf30 in realloc
(/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdef30)
    #1 0x7f87db480943 in _nc_doalloc ../ncurses/./tinfo/doalloc.c:50
    #2 0x7f87db49666b in _nc_read_termtype ../ncurses/./tinfo/read_entry.c:409
    #3 0x7f87db4971e7 in _nc_read_file_entry ../ncurses/./tinfo/read_entry.c:547
    #4 0x7f87db497ab6 in _nc_read_tic_entry ../ncurses/./tinfo/read_entry.c:798
    #5 0x7f87db497dc0 in _nc_read_entry ../ncurses/./tinfo/read_entry.c:839
    #6 0x7f87db4a38ce in _nc_resolve_uses2 ../ncurses/./tinfo/comp_parse.c:342
    #7 0x5592c728e05f in main ../progs/tic.c:969
    #8 0x7f87dae57b96 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

Indirect leak of 126728 byte(s) in 36 object(s) allocated from:
    #0 0x7f87db7ddf30 in realloc
(/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdef30)
    #1 0x7f87db480943 in _nc_doalloc ../ncurses/./tinfo/doalloc.c:50
    #2 0x7f87db47b18b in realign_data ../ncurses/./tinfo/alloc_ttype.c:136
    #3 0x7f87db47d162 in _nc_align_termtype ../ncurses/./tinfo/alloc_ttype.c:467
    #4 0x7f87db49ae91 in _nc_merge_entry ../ncurses/./tinfo/alloc_entry.c:233
    #5 0x7f87db4a2f9e in _nc_resolve_uses2 ../ncurses/./tinfo/comp_parse.c:416
    #6 0x5592c728e05f in main ../progs/tic.c:969
    #7 0x7f87dae57b96 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

Indirect leak of 48828 byte(s) in 626 object(s) allocated from:
    #0 0x7f87db7ddd28 in __interceptor_calloc
(/usr/lib/x86_64-linux-gnu/libasan.so.4+0xded28)
    #1 0x7f87db495787 in _nc_read_termtype ../ncurses/./tinfo/read_entry.c:351
    #2 0x7f87db4971e7 in _nc_read_file_entry ../ncurses/./tinfo/read_entry.c:547
    #3 0x7f87db497ab6 in _nc_read_tic_entry ../ncurses/./tinfo/read_entry.c:798
    #4 0x7f87db497dc0 in _nc_read_entry ../ncurses/./tinfo/read_entry.c:839
    #5 0x7f87db4a38ce in _nc_resolve_uses2 ../ncurses/./tinfo/comp_parse.c:342
    #6 0x5592c728e05f in main ../progs/tic.c:969
    #7 0x7f87dae57b96 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

Indirect leak of 26872 byte(s) in 100 object(s) allocated from:
    #0 0x7f87db7ddb40 in __interceptor_malloc
(/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb40)
    #1 0x7f87db47d2c5 in _nc_align_termtype ../ncurses/./tinfo/alloc_ttype.c:468
    #2 0x7f87db49ae91 in _nc_merge_entry ../ncurses/./tinfo/alloc_entry.c:233
    #3 0x7f87db4a2f9e in _nc_resolve_uses2 ../ncurses/./tinfo/comp_parse.c:416
    #4 0x5592c728e05f in main ../progs/tic.c:969
    #5 0x7f87dae57b96 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

Indirect leak of 25300 byte(s) in 575 object(s) allocated from:
    #0 0x7f87db7ddd28 in __interceptor_calloc
(/usr/lib/x86_64-linux-gnu/libasan.so.4+0xded28)
    #1 0x7f87db495627 in _nc_read_termtype ../ncurses/./tinfo/read_entry.c:336
    #2 0x7f87db4971e7 in _nc_read_file_entry ../ncurses/./tinfo/read_entry.c:547
    #3 0x7f87db497ab6 in _nc_read_tic_entry ../ncurses/./tinfo/read_entry.c:798
    #4 0x7f87db497dc0 in _nc_read_entry ../ncurses/./tinfo/read_entry.c:839
    #5 0x7f87db4a38ce in _nc_resolve_uses2 ../ncurses/./tinfo/comp_parse.c:342
    #6 0x5592c728e05f in main ../progs/tic.c:969
    #7 0x7f87dae57b96 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

Indirect leak of 11112 byte(s) in 23 object(s) allocated from:
    #0 0x7f87db7ddf30 in realloc
(/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdef30)
    #1 0x7f87db480943 in _nc_doalloc ../ncurses/./tinfo/doalloc.c:50
    #2 0x7f87db47d2c5 in _nc_align_termtype ../ncurses/./tinfo/alloc_ttype.c:468
    #3 0x7f87db49ae91 in _nc_merge_entry ../ncurses/./tinfo/alloc_entry.c:233
    #4 0x7f87db4a2f9e in _nc_resolve_uses2 ../ncurses/./tinfo/comp_parse.c:416
    #5 0x5592c728e05f in main ../progs/tic.c:969
    #6 0x7f87dae57b96 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

Indirect leak of 8936 byte(s) in 48 object(s) allocated from:
    #0 0x7f87db7ddf30 in realloc
(/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdef30)
    #1 0x7f87db480943 in _nc_doalloc ../ncurses/./tinfo/doalloc.c:50
    #2 0x7f87db47d185 in _nc_align_termtype ../ncurses/./tinfo/alloc_ttype.c:468
    #3 0x7f87db49ae91 in _nc_merge_entry ../ncurses/./tinfo/alloc_entry.c:233
    #4 0x7f87db4a2f9e in _nc_resolve_uses2 ../ncurses/./tinfo/comp_parse.c:416
    #5 0x5592c728e05f in main ../progs/tic.c:969
    #6 0x7f87dae57b96 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

Indirect leak of 6952 byte(s) in 98 object(s) allocated from:
    #0 0x7f87db7ddb40 in __interceptor_malloc
(/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb40)
    #1 0x7f87db496b47 in _nc_read_termtype ../ncurses/./tinfo/read_entry.c:448
    #2 0x7f87db4971e7 in _nc_read_file_entry ../ncurses/./tinfo/read_entry.c:547
    #3 0x7f87db497ab6 in _nc_read_tic_entry ../ncurses/./tinfo/read_entry.c:798
    #4 0x7f87db497dc0 in _nc_read_entry ../ncurses/./tinfo/read_entry.c:839
    #5 0x7f87db4a38ce in _nc_resolve_uses2 ../ncurses/./tinfo/comp_parse.c:342
    #6 0x5592c728e05f in main ../progs/tic.c:969
    #7 0x7f87dae57b96 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

Indirect leak of 5227 byte(s) in 113 object(s) allocated from:
    #0 0x7f87db7ddf30 in realloc
(/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdef30)
    #1 0x7f87db480943 in _nc_doalloc ../ncurses/./tinfo/doalloc.c:50
    #2 0x7f87db47b61a in realign_data ../ncurses/./tinfo/alloc_ttype.c:107
    #3 0x7f87db47d29b in _nc_align_termtype ../ncurses/./tinfo/alloc_ttype.c:467
    #4 0x7f87db49ae91 in _nc_merge_entry ../ncurses/./tinfo/alloc_entry.c:233
    #5 0x7f87db4a2f9e in _nc_resolve_uses2 ../ncurses/./tinfo/comp_parse.c:416
    #6 0x5592c728e05f in main ../progs/tic.c:969
    #7 0x7f87dae57b96 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

Indirect leak of 5226 byte(s) in 67 object(s) allocated from:
    #0 0x7f87db7ddf30 in realloc
(/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdef30)
    #1 0x7f87db480943 in _nc_doalloc ../ncurses/./tinfo/doalloc.c:50
    #2 0x7f87db4965c5 in _nc_read_termtype ../ncurses/./tinfo/read_entry.c:408
    #3 0x7f87db4971e7 in _nc_read_file_entry ../ncurses/./tinfo/read_entry.c:547
    #4 0x7f87db497ab6 in _nc_read_tic_entry ../ncurses/./tinfo/read_entry.c:798
    #5 0x7f87db497dc0 in _nc_read_entry ../ncurses/./tinfo/read_entry.c:839
    #6 0x7f87db4a38ce in _nc_resolve_uses2 ../ncurses/./tinfo/comp_parse.c:342
    #7 0x5592c728e05f in main ../progs/tic.c:969
    #8 0x7f87dae57b96 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

Indirect leak of 4080 byte(s) in 51 object(s) allocated from:
    #0 0x7f87db7ddf30 in realloc
(/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdef30)
    #1 0x7f87db480943 in _nc_doalloc ../ncurses/./tinfo/doalloc.c:50
    #2 0x7f87db47b3cf in realign_data ../ncurses/./tinfo/alloc_ttype.c:122
    #3 0x7f87db47d29b in _nc_align_termtype ../ncurses/./tinfo/alloc_ttype.c:467
    #4 0x7f87db49ae91 in _nc_merge_entry ../ncurses/./tinfo/alloc_entry.c:233
    #5 0x7f87db4a2f9e in _nc_resolve_uses2 ../ncurses/./tinfo/comp_parse.c:416
    #6 0x5592c728e05f in main ../progs/tic.c:969
    #7 0x7f87dae57b96 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

Indirect leak of 1942 byte(s) in 42 object(s) allocated from:
    #0 0x7f87db7ddf30 in realloc
(/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdef30)
    #1 0x7f87db480943 in _nc_doalloc ../ncurses/./tinfo/doalloc.c:50
    #2 0x7f87db47b61a in realign_data ../ncurses/./tinfo/alloc_ttype.c:107
    #3 0x7f87db47d162 in _nc_align_termtype ../ncurses/./tinfo/alloc_ttype.c:467
    #4 0x7f87db49ae91 in _nc_merge_entry ../ncurses/./tinfo/alloc_entry.c:233
    #5 0x7f87db4a2f9e in _nc_resolve_uses2 ../ncurses/./tinfo/comp_parse.c:416
    #6 0x5592c728e05f in main ../progs/tic.c:969
    #7 0x7f87dae57b96 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

Indirect leak of 1520 byte(s) in 19 object(s) allocated from:
    #0 0x7f87db7ddf30 in realloc
(/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdef30)
    #1 0x7f87db480943 in _nc_doalloc ../ncurses/./tinfo/doalloc.c:50
    #2 0x7f87db47b3cf in realign_data ../ncurses/./tinfo/alloc_ttype.c:122
    #3 0x7f87db47d162 in _nc_align_termtype ../ncurses/./tinfo/alloc_ttype.c:467
    #4 0x7f87db49ae91 in _nc_merge_entry ../ncurses/./tinfo/alloc_entry.c:233
    #5 0x7f87db4a2f9e in _nc_resolve_uses2 ../ncurses/./tinfo/comp_parse.c:416
    #6 0x5592c728e05f in main ../progs/tic.c:969
    #7 0x7f87dae57b96 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

Indirect leak of 1464 byte(s) in 33 object(s) allocated from:
    #0 0x7f87db7ddf30 in realloc
(/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdef30)
    #1 0x7f87db480943 in _nc_doalloc ../ncurses/./tinfo/doalloc.c:50
    #2 0x7f87db496520 in _nc_read_termtype ../ncurses/./tinfo/read_entry.c:407
    #3 0x7f87db4971e7 in _nc_read_file_entry ../ncurses/./tinfo/read_entry.c:547
    #4 0x7f87db497ab6 in _nc_read_tic_entry ../ncurses/./tinfo/read_entry.c:798
    #5 0x7f87db497dc0 in _nc_read_entry ../ncurses/./tinfo/read_entry.c:839
    #6 0x7f87db4a38ce in _nc_resolve_uses2 ../ncurses/./tinfo/comp_parse.c:342
    #7 0x5592c728e05f in main ../progs/tic.c:969
    #8 0x7f87dae57b96 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

Indirect leak of 841 byte(s) in 25 object(s) allocated from:
    #0 0x7f87db7ddb40 in __interceptor_malloc
(/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb40)
    #1 0x7f87db49ab6c in _nc_wrap_entry ../ncurses/./tinfo/alloc_entry.c:203
    #2 0x7f87db4aa6e0 in _nc_parse_entry ../ncurses/./tinfo/parse_entry.c:555
    #3 0x7f87db4a22bf in _nc_read_entry_source
../ncurses/./tinfo/comp_parse.c:225
    #4 0x5592c728e76b in main ../progs/tic.c:961
    #5 0x7f87dae57b96 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

Indirect leak of 544 byte(s) in 27 object(s) allocated from:
    #0 0x7f87db7ddd28 in __interceptor_calloc
(/usr/lib/x86_64-linux-gnu/libasan.so.4+0xded28)
    #1 0x7f87db496aa5 in _nc_read_termtype ../ncurses/./tinfo/read_entry.c:481
    #2 0x7f87db4971e7 in _nc_read_file_entry ../ncurses/./tinfo/read_entry.c:547
    #3 0x7f87db497ab6 in _nc_read_tic_entry ../ncurses/./tinfo/read_entry.c:798
    #4 0x7f87db497dc0 in _nc_read_entry ../ncurses/./tinfo/read_entry.c:839
    #5 0x7f87db4a38ce in _nc_resolve_uses2 ../ncurses/./tinfo/comp_parse.c:342
    #6 0x5592c728e05f in main ../progs/tic.c:969
    #7 0x7f87dae57b96 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

SUMMARY: AddressSanitizer: 5493608 byte(s) leaked in 5737 allocation(s).
? tic could not build /home/jwalton/tmp/ok2delete/share
Makefile:89: recipe for target 'install.data' failed
make[1]: *** [install.data] Error 1
make[1]: Leaving directory '/home/jwalton/Build-Scripts/ncurses-6.1/misc'
Makefile:113: recipe for target 'install' failed
make: *** [install] Error 2



reply via email to

[Prev in Thread] Current Thread [Next in Thread]