URL:
  <http://savannah.gnu.org/bugs/?35757>

                 Summary: Switching from altscreen after window resize causes
segfault in resize.c:750
                 Project: GNU Screen
            Submitted by: None
            Submitted on: Thu 08 Mar 2012 06:18:21 AM UTC
                Category: Crash/Freeze/Infloop
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: Cur Dev Sources
           Fixed Release: None
         Planned Release: None
           Work Required: None

    _______________________________________________________

Details:

The crash happens in the function ChangeWindowSize() at resize.c:750 while
trying to dereference a structure's member.

f9535294 is the first bad commit

Steps to reproduce:
0. Launch screen and set ":altscreen on" (use the attached crash.screenrc)
1. Split into two regions
2. Launch a program that will use the altscreen (eg. vim)
3. Execute :only to kill the other region; now vim is using the entire screen
4. Exit vim. (that's :q for you Emacs folks).  Screen segfaults at this
point.

This is the code at the point of the problem:

749               ml = OLDWIN(yy);
750               if (ml->image[p->w_width] == ' ')

OLDWIN returns NULL in this case.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 08 Mar 2012 06:18:21 AM UTC  Name: crash.screenrc  Size: 47B   By:
None

<http://savannah.gnu.org/bugs/download.php?file_id=25292>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?35757>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


Reply via email to