screen-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[screen-devel] [bug #35757] Switching from altscreen after window resize


From: Erik Falor
Subject: [screen-devel] [bug #35757] Switching from altscreen after window resize causes segfault in resize.c:750
Date: Wed, 14 Mar 2012 19:48:06 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0) Gecko/20100101 Firefox/4.0

Follow-up Comment #3, bug #35757 (project screen):

I hate to say it, but this fix covers only the case outlined in my original
Steps to Reproduce.  If you instead follow these steps, you'll get a segfault
again:

Steps to reproduce:
0. Launch screen and set ":altscreen on" (use the attached crash.screenrc)
1. Split into two regions
2. Use the 'screen' command to launch a program that will use the altscreen
(eg. C-a :screen 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.

When I probe the core file left behind, I see this:

(gdb) frame 4
#4  0x00000000004202d8 in ChangeWindowSize (p=0x24f1e60, wi=80, he=60,
hi=100)
    at resize.c:752
752               if (ml->image[p->w_width] == ' ')
(gdb) print *ml
$1 = {
  image = 0x2020202020202020 <Address 0x2020202020202020 out of bounds>,
  attr = 0x2020202020202020 <Address 0x2020202020202020 out of bounds>,
  font = 0x2020202020202020 <Address 0x2020202020202020 out of bounds>,
  color = 0x2020202020202020 <Address 0x2020202020202020 out of bounds>
}


Somehow (struct mline *) ml now contains a bunch of ASCII space characters.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]