Bug 948617 - Segfault in alternate screen handling
Summary: Segfault in alternate screen handling
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: screen
Version: 18
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Petr Hracek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-04 20:14 UTC by Eskild Hustvedt
Modified: 2013-07-18 05:58 UTC (History)
2 users (show)

Fixed In Version: screen-4.1.0-0.16.20120314git3c2946.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-06-27 01:52:35 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
My .screenrc (1.69 KB, text/plain)
2013-04-04 20:14 UTC, Eskild Hustvedt
no flags Details

Description Eskild Hustvedt 2013-04-04 20:14:11 UTC
Created attachment 731717 [details]
My .screenrc

Description of problem:
Occasionally screen will segfault. It appears to happen when alternate screen support is on ("altscreen on") and an application that is using the alternate screen does "something" (ie. exits).

Version-Release number of selected component (if applicable):
[0 zerodogg@firefly ~]$ rpm -qv screen
screen-4.1.0-0.14.20120314git3c2946.fc18.x86_64

How reproducible:
I've been unable to reliably reproduce it. It has happened several times, on two different boxes - both running F18.

Additional info:
The last time it crashed I had a gdb attached to the screen process, so I was able to get a backtrace:

Program received signal SIGSEGV, Segmentation fault.
0x00007f158483c3cc in ChangeWindowSize ()
(gdb) bt
#0  0x00007f158483c3cc in ChangeWindowSize ()
#1  0x00007f158483cbd4 in LeaveAltScreen ()
#2  0x00007f1584832818 in DoCSI ()
#3  0x00007f1584835138 in WriteString ()
#4  0x00007f1584844d0b in win_readev_fn ()
#5  0x00007f158487131a in sched ()
#6  0x00007f158482986a in main ()

I also have a coredump, but I am a bit wary of uploading that publicly since I had programs with personal information (ie. mutt, which was the one that triggered the segfault this time). I'll be happy to share it privately, however.

Comment 1 Petr Hracek 2013-05-14 11:48:27 UTC
I have tried that patch:
http://savannah.gnu.org/bugs/?35757

And it seems to be working.
But problem occurs sporadically.

Here is patched scren SRPM 
http://phracek.fedorapeople.org/screen/screen-4.1.0-0.14.20120314git3c2946.fc18.src.rpm

Comment 2 Petr Hracek 2013-05-14 12:20:16 UTC
Sorry I meant that problem occurs sporadically.
Patch after applying patch I was not able to reproduce it.

Comment 3 Petr Hracek 2013-06-18 14:08:33 UTC
Patch was applied.

scm-commit (https://lists.fedoraproject.org/pipermail/scm-commits/Week-of-Mon-20130617/1041521.html) -> MODIFIED

Comment 4 Fedora Update System 2013-06-18 14:15:18 UTC
screen-4.1.0-0.15.20120314git3c2946.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/screen-4.1.0-0.15.20120314git3c2946.fc18

Comment 5 Fedora Update System 2013-06-18 14:32:57 UTC
screen-4.1.0-0.16.20120314git3c2946.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/screen-4.1.0-0.16.20120314git3c2946.fc19

Comment 6 Fedora Update System 2013-06-18 19:40:35 UTC
Package screen-4.1.0-0.16.20120314git3c2946.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing screen-4.1.0-0.16.20120314git3c2946.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-11154/screen-4.1.0-0.16.20120314git3c2946.fc19
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2013-06-27 01:52:35 UTC
screen-4.1.0-0.15.20120314git3c2946.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2013-07-18 05:58:07 UTC
screen-4.1.0-0.16.20120314git3c2946.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.