On 2023-10-16 04:36 +0200, Vincent Lefevre wrote:

> Package: libncursesw6
> Version: 6.4+20231007-1
> Severity: grave
> Justification: renders package unusable
>
> With libncursesw6 6.4+20231007-1, I get the following issue:
>
> $ screen -dRR mutt /usr/bin/mutt
> [screen is terminating]
>
> after a few seconds (or immediately "[screen is terminating]" when
> I hit a key). When rebuilding Mutt with debug support, this shows
> that Mutt is actually running, but with no output, and I don't know
> why it terminates.

The strace output you sent gives a hint.

> 659013 write(2, "Error opening terminal: screen.xterm-256color.\n", 47) = 47

This message is coming from ncurses' initscr() function, which
terminates the program if it cannot setup the terminal.

> Downgrading the ncurses packages to 6.4+20230625-2 makes this problem
> disappear.

Since I was able to reproduce the problem, I bisected it and found the
following change as the culprit:

,----
| 20231001
|       + modify setupterm to provide for using ANSI cursor-position report (in
|         user6/user7 terminfo capabilities) to obtain screensize if neither
|         environment variables or ioctl is used.  The ncurses test-program
|         with options "-E -T" demonstrates this feature.
`----

Reverting ncurses/tinfo/lib_setup.c to the 20230923 patchlevel made the
problem disappear.  I'll leave it to Thomas to work out the details.

Cheers,
       Sven

Reply via email to