bugGNU Screen - Bugs: bug #58259, Memory corruption by terminfo


bug #58259: Memory corruption by terminfo

Submitted by:  Victor Dmitriev <mrwitek>
Submitted on:  Mon 27 Apr 2020 03:14:12 PM UTC  
Category:  Crash/Freeze/Infloop Severity:  3 - Normal
Priority:  5 - Normal Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  4.8.0
Fixed Release:  None Planned Release:  None
Work Required:  None

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Mon 27 Apr 2020 03:14:12 PM UTC, original submission:  

In version 4.8.0 screen can corrupt memory when reading terminfo/termcap files.

I use st terminal with environment variable TERM=st-256color. If I have compiled st.info (with warnings) from the source with

tic -o "$HOME/.terminfo" st.info

trying to start screen results in one process becoming a zombie and another process blocking terminal until I press Ctrl+\.

If I have compiled st.info as recommended in st FAQ with

tic -o "$HOME/.terminfo" -x st.info

trying to reattach to screen session results in an infinite loop in _nc_find_type_entry in libncursesw.so.6 (bug #58132)

The problem is not present in version 4.7.0.
Workaround: add " -DTERMCAP_BUFSIZE=2048" to CPPFLAGS environment variable and reconfigure/rebuild. In that case problem is no longer present.

P.S. bugtracker misses 4.8.0 entry in the release field.

Victor Dmitriev <mrwitek>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by anaumov (Updated the item)
  • -email is unavailable- added by mrwitek (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-04-27 anaumov Release4.99.0 => 4.8.0

    Back to the top

    Powered by Savane 3.6