pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Xorg segfaults as of xf86-video-ati-7.9.0 (with debug info)



On NetBSD/i386, my from-pkgsrc Xorg will crash on startup as of
xf86-video-ati-7.9.0 (that's rev 1.42 of x11/xf86-video-ati/Makefile)

Using the new driver, Xorg loads 'glamoregl' instead of 'exa',
and uses DRI3 instead of DRI2, one of those changes appears to
be responsible for the segfault.

Xorg version is 1.19.3
NetBSD kernel and userland were built from recent trunk (2017-08-15)
Video card is PCI 1002:68f9 aka ATI Radeon HD 5450 (r600)

Below is some debugging info, namely:
 - call stack (w/ debug symbols)
 - diff between Xorg logs using old and new driver

I can probably just use the old driver for now, but it'd be cool
if someone looked into this.

Cheers,
Timo

CC wiz because you committed the upgrade :)


-----8<------------------------------------------------------

# gdb /usr/pkg/bin/Xorg Xorg.core
[...]
Reading symbols from /usr/pkg/bin/Xorg...done.
[New process 1]
Core was generated by `Xorg'.
Program terminated with signal SIGABRT, Aborted.
#0  0xbb2102c7 in _lwp_kill () from /usr/lib/libc.so.12
(gdb) bt
#0  0xbb2102c7 in _lwp_kill () from /usr/lib/libc.so.12
#1  0xbb210266 in raise (s=6) at /usr/src/lib/libc/gen/raise.c:48
#2  0xbb20fbf8 in abort () at /usr/src/lib/libc/stdlib/abort.c:74
#3  0x0823da03 in OsAbort () at utils.c:1355
#4  0x080d1c85 in ddxGiveUp (error=EXIT_ERR_ABORT) at xf86Init.c:1010
#5  0x080d1d89 in AbortDDX (error=EXIT_ERR_ABORT) at xf86Init.c:1054
#6  0x082459d3 in AbortServer () at log.c:874
#7  0x08245d8e in FatalError (f=0x8274d78 "Caught signal %d (%s). Server aborting\n") at log.c:1015
#8  0x0823a0f4 in OsSigHandler (signo=11, sip=0xbf7fe3a0, unused=0xbf7fe420) at osinit.c:154
#9  <signal handler called>
#10 0xbae7689d in shared_dispatch_stub_72 () from /usr/pkg/lib/libglapi.so.0
#11 0xb9c0fc98 in dri2_make_current (drv=0xb9b290e0, disp=0xbaf06800, dsurf=0x0, rsurf=0x0, ctx=0x0) at drivers/dri2/egl_dri2.c:1191
#12 0xb9c0568d in eglMakeCurrent (dpy=0xbaf06800, draw=0x0, read=0x0, ctx=0x0) at main/eglapi.c:705
#13 0xbaba6b88 in glamor_egl_make_current (glamor_ctx=0xb99b5b1c) at ../../../glamor/glamor_egl.c:102
#14 0xbaba895e in glamor_make_current (glamor_priv=0xb99b3000) at glamor_utils.h:728
#15 0xbaba978b in glamor_init (screen=0xb9b8c400, flags=3) at glamor.c:509
#16 0xbac8c0ba in radeon_glamor_init (screen=0xb9b8c400) at radeon_glamor.c:434
#17 0xbac2eea7 in RADEONAccelInit (pScreen=0xb9b8c400) at radeon_accel.c:187
#18 0xbac7ee13 in RADEONScreenInit_KMS (pScreen=0xb9b8c400, argc=4, argv=0xbf7fea04) at radeon_kms.c:2298
#19 0x080d06b7 in xf86ScreenInit (pScreen=0xb9b8c400, argc=4, argv=0xbf7fea04) at xf86Init.c:369
#20 0x08079522 in AddScreen (pfnInit=0x80d066e <xf86ScreenInit>, argc=4, argv=0xbf7fea04) at dispatch.c:3911
#21 0x080d1859 in InitOutput (pScreenInfo=0x82dfda0 <screenInfo>, argc=4, argv=0xbf7fea04) at xf86Init.c:831
#22 0x0807e279 in dix_main (argc=4, argv=0xbf7fea04, envp=0xbf7fea18) at main.c:197
#23 0x080620ce in main (argc=4, argv=0xbf7fea04, envp=0xbf7fea18) at stubmain.c:34
(gdb) quit
# 


-----8<------------------------------------------------------

--- /tmp/Xorg.0.log.newdrv	2017-09-01 18:23:02.177238912 +0000
+++ /tmp/Xorg.0.log.olddrv	2017-09-01 18:22:52.962228123 +0000
@@ -119,13 +119,13 @@
 (II) LoadModule: "ati"
 (II) Loading /usr/pkg/lib/xorg/modules/drivers/ati_drv.so
 (II) Module ati: vendor="X.Org Foundation"
-	compiled for 1.19.3, module version = 7.9.0
+	compiled for 1.19.3, module version = 7.8.0
 	Module class: X.Org Video Driver
 	ABI class: X.Org Video Driver, version 23.0
 (II) LoadModule: "radeon"
 (II) Loading /usr/pkg/lib/xorg/modules/drivers/radeon_drv.so
 (II) Module radeon: vendor="X.Org Foundation"
-	compiled for 1.19.3, module version = 7.9.0
+	compiled for 1.19.3, module version = 7.8.0
 	Module class: X.Org Video Driver
 	ABI class: X.Org Video Driver, version 23.0
 (II) LoadModule: "fbdev"
@@ -294,19 +294,16 @@
 (II) Loading sub module "dri2"
 (II) LoadModule: "dri2"
 (II) Module "dri2" already built-in
-(II) Loading sub module "glamoregl"
-(II) LoadModule: "glamoregl"
-(II) Loading /usr/pkg/lib/xorg/modules/libglamoregl.so
-(II) Module glamoregl: vendor="X.Org Foundation"
-	compiled for 1.19.3, module version = 1.0.0
-	ABI class: X.Org ANSI C Emulation, version 0.4
-(II) glamor: OpenGL accelerated X.org driver based.
-(II) glamor: EGL version 1.4 (DRI2):
-(II) RADEON(0): glamor detected, initialising EGL layer.
+(II) Loading sub module "exa"
+(II) LoadModule: "exa"
+(II) Loading /usr/pkg/lib/xorg/modules/libexa.so
+(II) Module exa: vendor="X.Org Foundation"
+	compiled for 1.19.3, module version = 2.6.0
+	ABI class: X.Org Video Driver, version 23.0
 (II) RADEON(0): KMS Color Tiling: enabled
 (II) RADEON(0): KMS Color Tiling 2D: enabled
-(==) RADEON(0): TearFree property default: auto
 (II) RADEON(0): KMS Pageflipping: enabled
+(II) RADEON(0): SwapBuffers wait for vsync: enabled
 (II) RADEON(0): Initializing outputs ...
 (II) RADEON(0): Output HDMI-0 has no monitor section
 (II) RADEON(0): Output DVI-0 has no monitor section
@@ -498,6 +495,7 @@
 (II) RADEON(0): Output DVI-0 using initial mode 1280x1024 +1280+0
 (II) RADEON(0): Output VGA-0 using initial mode 1280x1024 +2560+0
 (II) RADEON(0): mem size init: gart size :3fdee000 vram size: s:40000000 visible:3fac0000
+(II) RADEON(0): EXA: Driver will allow EXA pixmaps in VRAM
 (==) RADEON(0): DPI set to (96, 96)
 (==) RADEON(0): Using gamma correction (1.0, 1.0, 1.0)
 (II) Loading sub module "ramdac"
@@ -509,23 +507,85 @@
 (II) RADEON(0): [DRI2]   VDPAU driver: r600
 (II) RADEON(0): Front buffer size: 15360K
 (II) RADEON(0): VRAM usage limit set to 924998K
-(II) RADEON(0): SYNC extension fences enabled
-(II) RADEON(0): Present extension enabled
-(==) RADEON(0): DRI3 enabled
+(==) RADEON(0): DRI3 disabled
 (==) RADEON(0): Backing store enabled
 (II) RADEON(0): Direct rendering enabled
 (II) RADEON(0): Initializing Acceleration
-(EE) Segmentation fault at address 0x8e5e0722
-(EE) 
-Fatal server error:
-(EE) Caught signal 11 (Segmentation fault). Server aborting
-(EE) 
-(EE) 
-Please consult the The X.Org Foundation support 
-	 at http://wiki.x.org
- for help. 
-(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
-(EE) 
+(II) EXA(0): Driver allocated offscreen pixmaps
+(II) EXA(0): Driver registered support for the following operations:
+(II)         Solid
+(II)         Copy
+(II)         Composite (RENDER acceleration)
+(II)         UploadToScreen
+(II)         DownloadFromScreen
+(II) RADEON(0): Acceleration enabled
+(II) RADEON(0): Initializing DPMS
+(==) RADEON(0): DPMS enabled
+(II) RADEON(0): Initializing Cursor
+(==) RADEON(0): Silken mouse enabled
+(II) RADEON(0): Initializing Xv
+(II) RADEON(0): Set up textured video
+(II) RADEON(0): [XvMC] Associated with Radeon Textured Video.
+(II) RADEON(0): [XvMC] Extension initialized.
+(II) RADEON(0): RandR 1.2 enabled, ignore the following RandR disabled message.
+(II) RADEON(0): Initializing kms color map
+(II) RADEON(0): RADEONScreenInit finished
+(--) RandR disabled
+(II) AIGLX: enabled GLX_MESA_copy_sub_buffer
+(II) AIGLX: enabled GLX_ARB_create_context
+(II) AIGLX: enabled GLX_ARB_create_context_profile
+(II) AIGLX: enabled GLX_EXT_create_context_es{,2}_profile
+(II) AIGLX: enabled GLX_INTEL_swap_event
+(II) AIGLX: enabled GLX_SGI_swap_control
+(II) AIGLX: enabled GLX_EXT_framebuffer_sRGB
+(II) AIGLX: enabled GLX_ARB_fbconfig_float
+(II) AIGLX: enabled GLX_EXT_fbconfig_packed_float
+(II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
+(II) AIGLX: Loaded and initialized r600
+(II) GLX: Initialized DRI2 GL provider for screen 0
+(II) RADEON(0): Setting screen physical size to 1015 x 270
+(II) XKB: Reusing cached keymap
+(II) Using input driver 'mouse' for '<default pointer>'
+	Option "CorePointer" "on"
+	Option "driver" "mouse"
+	Option "identifier" "<default pointer>"
+(**) Option "CorePointer" "on"
+(**) <default pointer>: always reports core events
+(WW) <default pointer>: No Device specified, looking for one...
+(II) <default pointer>: found Device "/dev/wsmouse"
+(--) <default pointer>: Device: "/dev/wsmouse"
+(==) <default pointer>: Protocol: "WSMouse"
+(**) Option "CorePointer" "on"
+(**) <default pointer>: always reports core events
+(**) Option "Device" "/dev/wsmouse"
+(==) <default pointer>: Emulate3Buttons, Emulate3Timeout: 50
+(**) <default pointer>: ZAxisMapping: buttons 4 and 5
+(**) <default pointer>: Buttons: 9
+(II) XINPUT: Adding extended input device "<default pointer>" (type: MOUSE, id 6)
+(**) <default pointer>: (accel) keeping acceleration scheme 1
+(**) <default pointer>: (accel) acceleration profile 0
+(**) <default pointer>: (accel) acceleration factor: 2.000
+(**) <default pointer>: (accel) acceleration threshold: 4
+(**) Option "Device" "/dev/wsmouse"
+(II) Using input driver 'kbd' for '<default keyboard>'
+	Option "CoreKeyboard" "on"
+	Option "driver" "kbd"
+	Option "identifier" "<default keyboard>"
+(**) Option "CoreKeyboard" "on"
+(**) <default keyboard>: always reports core events
+(**) Option "CoreKeyboard" "on"
+(**) <default keyboard>: always reports core events
+(**) Option "Protocol" "standard"
+(**) Option "XkbRules" "base"
+(**) Option "XkbModel" "pc105"
+(**) Option "XkbLayout" "us"
+(II) XINPUT: Adding extended input device "<default keyboard>" (type: KEYBOARD, id 7)
+(II) XKB: Reusing cached keymap
+(II) RADEON(0): RADEONSaveScreen(2)
+(II) AIGLX: Suspending AIGLX clients for VT switch
 (II) RADEON(0): RADEONLeaveVT_KMS
 (II) RADEON(0): Ok, leaving now...
-(EE) Server terminated with error (1). Closing log file.
+(II) UnloadModule: "kbd"
+(II) UnloadModule: "mouse"
+(II) RADEON(0): RADEONCloseScreen
+(II) Server terminated successfully (0). Closing log file.


Home | Main Index | Thread Index | Old Index