#758934 xserver-xorg: Segfault with Rage 128 driving VGA monitor on powerpc (works on Wheezy)

Package:
xserver-xorg
Source:
xorg
Description:
X.Org X server
Submitter:
Chris Tillman
Date:
2022-01-13 18:21:03 UTC
Severity:
important
Tags:
#758934#5
Date:
2014-08-23 04:02:31 UTC
From:
To:
Dear Maintainer,

   * What led up to the situation?
First, I tried booting without creating an xorg.conf. The result was a
repeating loop of the last 3 lines:
[   267.863] (==) RandR enabled
[   268.004] (II) SELinux: Disabled on system
[   268.028] (II) AIGLX: Screen 0 is not DRI2 capable
[   268.028] (EE) AIGLX: reverting to software rendering
[   268.085] (II) AIGLX: Loaded and initialized swrast
[   268.086] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[   268.324] (EE) R128(0): R128CCEWaitForIdle: CCE idle -9
[   268.324] (EE) R128(0): Idle timed out, resetting engine...
[   268.324] (EE) R128(0): R128CCEWaitForIdle: CCE stop -9
[   268.325] (EE) R128(0): R128CCEWaitForIdle: CCE start -9
[   268.325] (EE) R128(0): R128CCEWaitForIdle: CCE idle -9
Next, I tried generating a config with X -configure. Same reult. Finally,
I tried substituting the config which works under Wheezy on the same machine.
That resulted in the reported segfault.
   * What exactly did you do (or not do) that was effective (or
     ineffective)? Nothing was effective to get X started.
   * What was the outcome of this action? No GUI
   * What outcome did you expect instead? GUI

The segfault (full log attached below by reportbug):

[   127.035] (II) R128(0): Page flipping disabled
[   127.035] (!!) R128(0): For information on using the multimedia capabilities
        of this adapter, please see http://gatos.sf.net.
[   127.035] (--) Depth 24 pixmap format is 32 bpp
[   127.035] (II) R128(0): Acceleration of RENDER operations will be enabled
upon successful loading of DRI and EXA
[   127.041] (WW) R128(0): Acceleration disabled, not initializing the DRI
[   127.042] (II) R128(0): Filling in EXA memory info
[   127.042] (II) R128(0): Acceleration disabled
[   127.042] (EE)
[   127.042] (EE) Backtrace:
[   127.043] (EE) 0: /usr/bin/X (xorg_backtrace+0x60) [0x20437130]
[   127.043] (EE) 1: /usr/bin/X (0x20234000+0x2085c0) [0x2043c5c0]
[   127.043] (EE) 2: linux-vdso32.so.1 (__kernel_sigtramp_rt32+0x0) [0x1003a0]
[   127.043] (EE) 3: /usr/lib/xorg/modules/drivers/r128_drv.so
(0x1f508000+0xc718) [0x1f514718]
[   127.044] (EE) 4: /usr/lib/xorg/modules/drivers/r128_drv.so
(0x1f508000+0xc700) [0x1f514700]
[   127.044] (EE) 5: /usr/bin/X (AddScreen+0x100) [0x2028bc90]
[   127.044] (EE) 6: /usr/bin/X (InitOutput+0x330) [0x202df880]
[   127.045] (EE) 7: /usr/bin/X (0x20234000+0x5c568) [0x20290568]
[   127.045] (EE) 8: /usr/bin/X (0x20234000+0x425a4) [0x202765a4]
[   127.045] (EE) 9: /lib/powerpc-linux-gnu/libc.so.6 (0x1fc7b000+0x232f4)
[0x1fc9e2f4]
[   127.046] (EE) 10: /lib/powerpc-linux-gnu/libc.so.6 (0x1fc7b000+0x234b4)
[0x1fc9e4b4]
[   127.046] (EE)
[   127.046] (EE) Segmentation fault at address 0xc
[   127.046] (EE)
Fatal server error:
[   127.046] (EE) Caught signal 11 (Segmentation fault). Server aborting
[   127.047] (EE)
[   127.047] (EE)

I get the same result using startx with this conf.

Here is the conf.

Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
#       Screen      1  "Screen1" RightOf "Screen0"
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        ModulePath   "/usr/lib/xorg/modules"
        FontPath     "/usr/share/fonts/X11/misc"
        FontPath     "/usr/share/fonts/X11/cyrillic"
        FontPath     "/usr/share/fonts/X11/100dpi/:unscaled"
        FontPath     "/usr/share/fonts/X11/75dpi/:unscaled"
        FontPath     "/usr/share/fonts/X11/Type1"
        FontPath     "/usr/share/fonts/X11/100dpi"
        FontPath     "/usr/share/fonts/X11/75dpi"
        FontPath     "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
        FontPath     "built-ins"
EndSection

Section "Module"
        Load  "dbe"
        Load  "dri2"
        Load  "record"
        Load  "glx"
        Load  "dri"
        Load  "extmod"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
        Modeline "1024x768x60.0"   65.00  1024 1048 1184 1344  768 771 777 806
-hsync -vsync
EndSection

#Section "Monitor"
#       Identifier   "Monitor1"
#       VendorName   "Monitor Vendor"
#       ModelName    "Monitor Model"
#EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        Option     "NoAccel" "True"             # [<bool>]
        #Option     "SWcursor"                  # [<bool>]
        #Option     "Dac6Bit"                   # [<bool>]
        #Option     "Dac8Bit"                   # [<bool>]
        #Option     "DMAForXv"                  # [<bool>]
        #Option     "ForcePCIMode"              # [<bool>]
        #Option     "CCEPIOMode"                # [<bool>]
        #Option     "CCENoSecurity"             # [<bool>]
        #Option     "CCEusecTimeout"            # <i>
        #Option     "AGPMode"                   # <i>
        #Option     "AGPSize"                   # <i>
        #Option     "RingSize"                  # <i>
        #Option     "BufferSize"                # <i>
        #Option     "EnablePageFlip"            # [<bool>]
        #Option     "Display"                   # <str>
        #Option     "PanelWidth"                # <i>
        #Option     "PanelHeight"               # <i>
        #Option     "ProgramFPRegs"             # [<bool>]
        Option     "UseFBDev"  "False"          # [<bool>]
        #Option     "VideoKey"                  # <i>
        #Option     "ShowCache"                 # [<bool>]
        #Option     "VGAAccess"                 # [<bool>]
        Identifier  "Card0"
        Driver      "r128"
        BusID       "PCI:0:16:0"

EndSection

#Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "ShadowFB"                  # [<bool>]
        #Option     "Rotate"                    # <str>
        #Option     "fbdev"                     # <str>
        #Option     "debug"                     # [<bool>]
#       Identifier  "Card1"
#       Driver      "fbdev"
#       BusID       "PCI:0:16:0"
#EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultDepth 24
        SubSection "Display"
                Viewport   0 0
                Depth     16
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes "1024x768x60.0"
        EndSubSection
EndSection


Here is output from lspci -v for the Rage 128 card.

0000:00:0b.0 Host bridge: Apple Inc. UniNorth AGP
        Flags: bus master, 66MHz, medium devsel, latency 16
        Capabilities: [80] AGP version 1.0
        Kernel driver in use: agpgart-uninorth

0000:00:10.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI]
Rage 128 PRO AGP 4x TMDS (prog-if 00 [VGA controller])
        Flags: bus master, stepping, 66MHz, medium devsel, latency 255, IRQ 48
        Memory at 94000000 (32-bit, prefetchable) [size=64M]
        I/O ports at 0400 [size=256]
        Memory at 90000000 (32-bit, non-prefetchable) [size=16K]
        Expansion ROM at 90020000 [size=128K]
        Capabilities: [50] AGP version 2.0
        Capabilities: [5c] Power Management version 2
        Kernel driver in use: aty128fb

#758934#10
Date:
2014-08-29 22:03:51 UTC
From:
To:
The segfault results when I set the "NoAccel" option under "Device". to
"False". It does not occur if I set it to "True" or don't set it. So I
guess that must mean it's in acceleration code.

#758934#15
Date:
2014-08-29 22:40:10 UTC
From:
To:
Correction: It's when I set NoAccel to "True", not "False" that the
segfault occurs.

#758934#20
Date:
2022-01-13 17:17:25 UTC
From:
To:
Hello Shopper,

Thank you for your interest in our products.

Your Annual product subscription for NORTON FAMILY [ALL DEVICE] has been
renewed and updated successfully.

*PRODUCT NAME* *Finish Date* *Quantity* *Total Amount* *Method of Payment*
NORTON FAMILY [ALL DEVICE] In One year 1 $354.00 USD Debit from account
Order No. DONZ41772WP
Invoice Date: 2022-01-13


*If you require urgent assistance, please call our Experts for refund and
settlement issue on ** +1 – ( 816 ) – ( 744 ) – 8849*