Bug 987519

Summary: X segfaults with [SiS] 661/741/760 PCI/AGP or 662/761Gx PCIE VGA Display Adapter
Product: Red Hat Enterprise Linux 6 Reporter: David Juran <djuran>
Component: xorg-x11-drv-sisAssignee: Adam Jackson <ajax>
Status: CLOSED WONTFIX QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4CC: julius.schwartzenberg, massi.ergosum, ofourdan, pablo, tjackson, tpelka
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-06 12:07:12 UTC Type: Bug
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
Xorg log
none
Patch which solves the problem none

Description David Juran 2013-07-23 14:49:19 UTC
Created attachment 777355 [details]
Xorg log

Description of problem:
The HP T5725 thin-client comes with a SIS graphics chip that lspci identifies as
 Silicon Integrated Systems [SiS] 661/741/760 PCI/AGP or 662/761Gx PCIE VGA Display Adapter

When starting up X on RHEL6.4, it segfaults very soon after startup with the following backtrace:

Program received signal SIGSEGV, Segmentation fault.
0x00a92446 in __memcpy_ia32 () from /lib/libc.so.6
(gdb) bt
#0  0x00a92446 in __memcpy_ia32 () from /lib/libc.so.6
#1  0x00000040 in ?? ()
#2  0x00459fdc in SiS_libc_memcpy (dst=0xb65c67cc "", src=0x4a744 <Address 0x4a744 out of bounds>, size=1276) at /usr/include/bits/string3.h:52
#3  0x0043fb41 in SiSMemCopyFromVideoRam (pSiS=0x9b19628, to=0xb65c67cc "", from=0x4a744 <Address 0x4a744 out of bounds>, size=1276) at sis_driver.c:14031
#4  0x004331e5 in SiSDownloadFromScreen (pSrc=0xb657c008, x=0, y=239, w=256, h=<value optimized out>, dst=<value optimized out>, dst_pitch=1276) at sis310_accel.c:1967
#5  0x0024f6e2 in ?? () from /usr/lib/xorg/modules/libexa.so
#6  0x0024fcc3 in ?? () from /usr/lib/xorg/modules/libexa.so
#7  0x0024fdc0 in ?? () from /usr/lib/xorg/modules/libexa.so
#8  0x00250b22 in ?? () from /usr/lib/xorg/modules/libexa.so
#9  0x0024c451 in ?? () from /usr/lib/xorg/modules/libexa.so
#10 0x00255156 in ?? () from /usr/lib/xorg/modules/libexa.so
#11 0x00255ac8 in ?? () from /usr/lib/xorg/modules/libexa.so
#12 0x081e9d5a in miCopyRegion ()
#13 0x081ea3a0 in miDoCopy ()
#14 0x00253e0c in ?? () from /usr/lib/xorg/modules/libexa.so
#15 0x08189e0b in ?? ()
#16 0x0813b5f2 in ?? ()
#17 0x0813cd27 in ?? ()
#18 0x08078d25 in ?? ()
#19 0x080c27dc in ?? ()
#20 0x00a2dce6 in __libc_start_main () from /lib/libc.so.6
#21 0x08066101 in _start ()


Version-Release number of selected component (if applicable):
xorg-x11-drv-sis-0.10.7-2.el6
xorg-x11-server-Xorg-1.13.0-11.el6

X logfile attached

How reproducible:
Every time


Additional info:
On RHEL6.2, with xorg-x11-drv-sis-0.10.3-1.el6 and xorg-x11-server-Xorg-1.10.4-6.el6, everything worked fine

Comment 1 David Juran 2013-07-23 15:10:10 UTC
creating a file, /etc/X11/xorg.conf with the following content stops the crash (by disabling acceleration...)

Section "Device"
  Identifier "t5725"
  driver "sis"
  Option     "NoAccel"             "True"
EndSection

Comment 3 Julius Schwartzenberg 2014-02-15 22:07:32 UTC
Created attachment 863625 [details]
Patch which solves the problem

This is the same problem as described here:
https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-sis/+bug/1066464

It is still present in version 6.5.

The mentioned patch in the bug solves this problem. I have attached this patch here as well. SRPM and RPMs which solve the issue, can be found here:
https://drive.google.com/folderview?id=0B7qFWV1vXYQUX0lid0gzZXBzRlE
(built on CentOS 6.5)

Comment 8 Jan Kurik 2017-12-06 12:07:12 UTC
Red Hat Enterprise Linux 6 is in the Production 3 Phase. During the Production 3 Phase, Critical impact Security Advisories (RHSAs) and selected Urgent Priority Bug Fix Advisories (RHBAs) may be released as they become available.

The official life cycle policy can be reviewed here:

http://redhat.com/rhel/lifecycle

This issue does not meet the inclusion criteria for the Production 3 Phase and will be marked as CLOSED/WONTFIX. If this remains a critical requirement, please contact Red Hat Customer Support to request a re-evaluation of the issue, citing a clear business justification. Note that a strong business justification will be required for re-evaluation. Red Hat Customer Support can be contacted via the Red Hat Customer Portal at the following URL:

https://access.redhat.com/