Hi,
OK, here is one last attempt, this time from source:
- Download & build latest dev ncurses (ncurses-6.4-20230610 fetched from https://invisible-island.net/ncurses/#download_ncurses)
./configure
make
- Copy the attached test.c to ncurses-6.4-20230610/lib/ and build:
gcc -O0 -g -o test test.c ./libncurses_g.a -I ../include/ - Setup modified terminfo file from previous email:
mkdir -p ~/.terminfo/x
cp xterm-256color ~/.terminfo/x/xterm-256color-2 - Run:
gdb ./test -ex 'set exec-wrapper env TERM=xterm-256color-2' -ex 'run' - This is the result I get at least:
Program received signal SIGSEGV, Segmentation fault.
tgetstr_sp (sp=<optimized out>, id=0x432838 "Ce", area=0x0) at ../ncurses/./tinfo/lib_termcap.c:361
361 if (same_tcname(id, capname) && ValidExt(capname)) {