[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: delscreen problem with ncurses 6.4
From: |
Thomas Dickey |
Subject: |
Re: delscreen problem with ncurses 6.4 |
Date: |
Mon, 18 Sep 2023 18:32:02 -0400 |
On Mon, Sep 18, 2023 at 04:12:17PM +0000, Frédéric BOITEUX wrote:
> Hello,
>
> I've recently upgraded a server from Debian 11 to Debian 12, and rebuilt an
> application using ncurses on it, using now Debian package in version 6.4-4,
> instead of 6.2+20201114-2+deb11u1 with previous system version.
>
> I've rebuilt the application, without problem, but now I'm facing memory
> error (going to a core dump).
> This application uses multiple terminal, using newterm() / delscreen() calls.
> It can work correctly with some terminals, but as soon as one is closed
> (using delscreen() ), all other ones can't work anymore : trying to access to
> any of their windows lead to a crash !
hmm - offhand, the only program I've used with multiple terminals (test/ditto)
wouldn't have run into this problem.
It seemed like a good idea at the time (will amend that):
20220813
+ modify delscreen to more effectively delete all windows on the given
screen.
+ amend portability note for delwin in manual page.
+ adapt test/test_delwin.c from example by Bill Gray.
+ account for prescreen data if freeing leaks in pthread-configuration
+ split-out _nc_set_read_thread(), to reduce compiler warnings about
pthread_self(), which may/may not be a weak symbol.
+ improve pthread-configuration for test/worm.c
> I've looked at the code, and rebuilt the library with « trace » mode, adding
> some more traces, and it seems that the window list walked by delscreen is a
> global one, instead of each screen having a specific one : this latter
> behavior seems to be activated only when compiling with --enable-term-driver,
> used on MinGW platform but not on Linux Debian .
>
> Do you have some clues to help me resolve this problem ?
...aside from waiting for an updated library, no (actually I'm starting
to consider where to cut-off for the next release).
--
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net
signature.asc
Description: PGP signature