Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 679132

Summary: Xorg -configure crashes when running in VM
Product: Red Hat Enterprise Linux 6 Reporter: Matěj Cepl <mcepl>
Component: xorg-x11-drv-qxlAssignee: Søren Sandmann Pedersen <sandmann>
Status: CLOSED DUPLICATE QA Contact: desktop-bugs <desktop-bugs>
Severity: high Docs Contact:
Priority: medium    
Version: 6.0CC: kem, sandmann, tpelka
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-11 15:38:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
virsh dumpxml santiago
none
/var/log/Xorg.0.log with the backtrace none

Description Matěj Cepl 2011-02-21 17:18:13 UTC
Description of problem:
When I setup qxl as the graphics card of RHEL-6.0 VM (originally installed with cirrus), remove /etc/X11/xorg.conf, and run Xorg -configure, Xorg crashes with this backtrace (when run in gdb via ssh):

Program received signal SIGSEGV, Segmentation fault.
qxl_pre_init (pScrn=0x250dad0, flags=<value optimized out>)
    at qxl_driver.c:1313
1313	    pScrn->monitor = pScrn->confScreen->monitor;
(gdb) t a a bt

Thread 1 (Thread 0x7f9ef3b7d840 (LWP 1502)):
#0  qxl_pre_init (pScrn=0x250dad0, flags=<value optimized out>)
    at qxl_driver.c:1313
#1  0x0000000000520c2e in DoConfigure () at xf86Configure.c:832
#2  0x000000000047e6f6 in InitOutput (pScreenInfo=0x7db060, argc=2, 
    argv=0x7fffeec023a8) at xf86Init.c:621
#3  0x0000000000421eef in main (argc=<value optimized out>, 
    argv=0x7fffeec023a8, envp=<value optimized out>) at main.c:204
(gdb) 


Version-Release number of selected component (if applicable):
xorg-x11-server-Xorg-1.7.7-26.el6.x86_64
xorg-x11-drv-qxl-0.0.12-2.1.el6_0.1.x86_64

How reproducible:
100% (5 out of 5 attempts)

Steps to Reproduce:
1.remove /etc/X11/xorg.conf, setup qxl as the graphics card
2.Xorg -configure
3.
  
Actual results:
crash

Expected results:
no crash, good working configuration for qxl

Comment 1 Matěj Cepl 2011-02-21 17:20:15 UTC
Created attachment 479962 [details]
sosrerport of the virtual machine

Comment 2 Matěj Cepl 2011-02-21 17:20:38 UTC
Created attachment 479963 [details]
virsh dumpxml santiago

Comment 3 Matěj Cepl 2011-02-21 17:22:39 UTC
Created attachment 479964 [details]
/var/log/Xorg.0.log with the backtrace

Comment 5 Matěj Cepl 2011-02-21 17:34:35 UTC
Asked by alon for this:

(gdb) info locals
i = <value optimized out>
scrnIndex = 0
qxl = 0x12de060
clockRanges = 0x0
mode = <value optimized out>
max_x = 0
max_y = 0
(gdb) up
(gdb) info locals
ScreenPtr = <value optimized out>
i = <value optimized out>
j = <value optimized out>
screennum = <value optimized out>
home = <value optimized out>
filename = "/root/xorg.conf.new\000\006\000\000\000\360S\235\306\377\177\000\000\360S\235\306\377\177\000\000\340S\235\306\377\177\000\000!\000\000\000\000\000\000\000`U\235\306\377\177\000\000\030)a\235P\177\000\000\373\230\067\233P\177", '\000' <repeats 18 times>, "RT\000\237m\257\000\000\001\000\000\000\000\000\000\000\377\377\000\000`\000\a\000\a\000\000\000\000\000\000\000\374\275\003\b\366II\000\320R\235\306\377\177\000\000\000\000\000\000\000\000\000\000xS\235\306\377\177\000\000XS\235\306\377\177\000\000\000\000\000\000\000\000\000\000\374(a\235P\177\000\000<S\235\306\377\177", '\000' <repeats 22 times>"\274, \000\027\000\000\000\000\000\000\000\000\000\300N\235\306\377\177\000\000\240T\235\306\377\177\000\000\031\000\000\000\000\000\000\000\250R\235\306\377\177\000\000\342tX\000\000\000\000\000\060S\235\306\377\177\000\000\000\000\000\000\247R\235\306\024"...
addslash = <value optimized out>
xf86config = 0x12cb870
vlist = <value optimized out>
vl = <value optimized out>
dev2screen = 0x12dd8b0
(gdb) up
#2  0x000000000047e6f6 in InitOutput (pScreenInfo=0x7db060, argc=2, 
    argv=0x7fffc69d5f68) at xf86Init.c:621
621		DoConfigure();
(gdb) info locals
i = <value optimized out>
j = <value optimized out>
k = <value optimized out>
scr_index = <value optimized out>
modulelist = <value optimized out>
optionlist = <value optimized out>
layout = <value optimized out>
screenpix24 = <value optimized out>
pix24 = <value optimized out>
pix24From = X_DEFAULT
pix24Fail = 0
autoconfig = 0
configured_device = <value optimized out>
(gdb) up
#3  0x0000000000421eef in main (argc=<value optimized out>, 
    argv=0x7fffc69d5f68, envp=<value optimized out>) at main.c:204
204		InitOutput(&screenInfo, argc, argv);
(gdb) info locals
i = <value optimized out>
alwaysCheckForInput = {0, 1}
(gdb)

Comment 6 Søren Sandmann Pedersen 2011-03-11 15:29:47 UTC
Can you try reproducing with RHEL 6.1? Ie., xorg-x11-drv-qxl-0.0.12-5 or later.

Comment 7 Søren Sandmann Pedersen 2011-03-11 15:38:21 UTC
680865

*** This bug has been marked as a duplicate of bug 680865 ***