[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug found when freeing screen(s)
From: |
Frédéric Boiteux |
Subject: |
bug found when freeing screen(s) |
Date: |
Fri, 17 Sep 2010 10:27:19 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100805 Icedove/3.0.6 |
Hello,
When porting an own application using ncurses from an old 5.5 version to
a current 5.7 (from Debian Lenny system), I found a bug related to free
of screens (the application manages multiple terminals) : when the close
of terminals was in the same order they was created, the application
segfaulted or looped indefinitely. I identified the bug in the
delscreen() function, and more precisely in delink_screen() where the
global list of screens is incorrectly updated.
I've successfully tested my application with the simple patch attached.
I think the bug is already present in latest version of ncurses.
Could you validate my analyze and proposed resolution ?
with regards,
Fred
bug_free_delscreen.patch
Description: Text Data
- bug found when freeing screen(s),
Frédéric Boiteux <=