Bug 461666 - Crash in X.org server during a resolution change (monitor hotplug) in VirtualBox
Summary: Crash in X.org server during a resolution change (monitor hotplug) in VirtualBox
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: xorg-x11-server
Version: 9
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Adam Jackson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-09-09 19:25 UTC by Michael T
Modified: 2008-09-16 23:27 UTC (History)
2 users (show)

Fixed In Version: 1.5.0 upstream
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-09-16 23:27:14 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Michael T 2008-09-09 19:25:18 UTC
Description of problem: Dynamically changing resolution (this uses xrandr after a simulated monitor change) in a Fedora 9 guest inside VirtualBox 2.0.2 with guest additions can cause the X server to segfault.  Fix below.


Version-Release number of selected component (if applicable):
1.4.99.902

How reproducible:
Easily

Steps to Reproduce:
1. Install Fedora 9 as a guest inside VirtualBox 2.0.2
2. Install the Guest Additions
3. Resize the VirtualBox window a few times, or switch into or out of seamless mode.
  
Actual results:
The X server crashes

Expected results:
No crash

Additional info:
The problem is in the function xf86SetScrnInfoModes() in xorg-server-1.4.99.902/hw/xfree86/modes/xf86Crtc.c

Lines 1707-1709 of the file read:
    for (mode = scrn->modes; mode; mode = mode->next)
        if (xf86ModesEqual (mode, &crtc->desiredMode))
            break;

However, the value of crtc can be NULL.  These lines should be prefixed with

if (crtc)

Note that this bug is fixed in the release version of X.org server 1.5.0.

Comment 1 Fedora Update System 2008-09-14 06:50:21 UTC
xorg-x11-server-1.5.0-1.fc9 has been pushed to the Fedora 9 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update xorg-x11-server'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2008-8032

Comment 2 Fedora Update System 2008-09-16 23:26:48 UTC
xorg-x11-server-1.5.0-1.fc9 has been pushed to the Fedora 9 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.