Bug#949257: xserver-xorg-core: Segmentation fault w/ 1.20.7

2020-01-22 Thread Jamie Heilman
Vincent Lefevre wrote:
> On 2020-01-19 00:09:13 +, Jamie Heilman wrote:
> > Package: xserver-xorg-core
> > Version: 2:1.20.7-2
> > Severity: grave
> > 
> > Setup is a NVIDIA GF108GL [Quadro 600] driving two monitors in
> > portrait orientation.  Kernel 5.4.0-2-amd64 #1 SMP Debian 5.4.8-1 
> > (2020-01-05)
> > 
> > xorg.conf is:
> > Section "Device"
> >  Identifier "GF108GL"
> >  Driver "nouveau"
> [...]
> > Crash is consistent, and goes away once downgraded to 1.20.6, other
> > relevant package versions:
> > 
> > libdrm-nouveau2:amd64   2.4.100-4
> > xdm 1:1.1.11-3+b1
> > xserver-xorg-video-nouveau  1:1.0.16-1
> > 
> > Crash:
> > 
> > [   590.914] (II) NOUVEAU(0): NVEnterVT is called.
> > [   590.914] (EE) 
> > [   590.914] (EE) Backtrace:
> [...]
> 
> I wonder whether the problem could be related to the nouveau driver.
> I've had lots a problems (crashes...) with it, on a machine I do not
> use very much. The last one a few weeks ago:
> 
>   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=946524
>   (trapped write in the nouveau driver)
> 
> Try to look at the system logs too...

Wasn't anything else in the system logs, I did look, but this happens
entirely in userspace.  It does not happen on my system that uses a
NVIDIA G86 Quadro NVS 290, but that also only drives a single monitor
with no rotation.

-- 
Jamie Heilman http://audible.transient.net/~jamie/



Bug#949257: xserver-xorg-core: Segmentation fault w/ 1.20.7

2020-01-22 Thread Marek Vasut
On Wed, 22 Jan 2020 18:44:56 +0100 Vincent Lefevre 
wrote:
> On 2020-01-19 00:09:13 +, Jamie Heilman wrote:
> > Package: xserver-xorg-core
> > Version: 2:1.20.7-2
> > Severity: grave
> > 
> > Setup is a NVIDIA GF108GL [Quadro 600] driving two monitors in
> > portrait orientation.  Kernel 5.4.0-2-amd64 #1 SMP Debian 5.4.8-1 
> > (2020-01-05)
> > 
> > xorg.conf is:
> > Section "Device"
> >  Identifier "GF108GL"
> >  Driver "nouveau"
> [...]
> > Crash is consistent, and goes away once downgraded to 1.20.6, other
> > relevant package versions:
> > 
> > libdrm-nouveau2:amd64   2.4.100-4
> > xdm 1:1.1.11-3+b1
> > xserver-xorg-video-nouveau  1:1.0.16-1
> > 
> > Crash:
> > 
> > [   590.914] (II) NOUVEAU(0): NVEnterVT is called.
> > [   590.914] (EE) 
> > [   590.914] (EE) Backtrace:
> [...]
> 
> I wonder whether the problem could be related to the nouveau driver.
> I've had lots a problems (crashes...) with it, on a machine I do not
> use very much. The last one a few weeks ago:
> 
>   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=946524
>   (trapped write in the nouveau driver)
> 
> Try to look at the system logs too...

I ran into this too. Worked with 1.20.6, fails with 1.20.7.
It is likely related to nouveau.



Bug#949257: xserver-xorg-core: Segmentation fault w/ 1.20.7

2020-01-22 Thread Vincent Lefevre
On 2020-01-19 00:09:13 +, Jamie Heilman wrote:
> Package: xserver-xorg-core
> Version: 2:1.20.7-2
> Severity: grave
> 
> Setup is a NVIDIA GF108GL [Quadro 600] driving two monitors in
> portrait orientation.  Kernel 5.4.0-2-amd64 #1 SMP Debian 5.4.8-1 (2020-01-05)
> 
> xorg.conf is:
> Section "Device"
>  Identifier "GF108GL"
>  Driver "nouveau"
[...]
> Crash is consistent, and goes away once downgraded to 1.20.6, other
> relevant package versions:
> 
> libdrm-nouveau2:amd64   2.4.100-4
> xdm 1:1.1.11-3+b1
> xserver-xorg-video-nouveau  1:1.0.16-1
> 
> Crash:
> 
> [   590.914] (II) NOUVEAU(0): NVEnterVT is called.
> [   590.914] (EE) 
> [   590.914] (EE) Backtrace:
[...]

I wonder whether the problem could be related to the nouveau driver.
I've had lots a problems (crashes...) with it, on a machine I do not
use very much. The last one a few weeks ago:

  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=946524
  (trapped write in the nouveau driver)

Try to look at the system logs too...

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Bug#949257: xserver-xorg-core: Segmentation fault w/ 1.20.7

2020-01-19 Thread Jamie Heilman
Here's a thread apply all backtrace on the core with debug symbols
installed, hope it helps:

Thread 5 (Thread 0x7fb9cf169700 (LWP 16506)):
#0  futex_wait_cancelable (private=0, expected=0, futex_word=0x55a9340e07d8) at 
../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55a9340e0788, 
cond=0x55a9340e07b0) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=cond@entry=0x55a9340e07b0, 
mutex=mutex@entry=0x55a9340e0788) at pthread_cond_wait.c:655
#3  0x7fb9d56fd93b in cnd_wait (mtx=0x55a9340e0788, cond=0x55a9340e07b0) at 
../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input@entry=0x55a93416e4a0) at 
../src/util/u_queue.c:275
#5  0x7fb9d56fd557 in impl_thrd_routine (p=) at 
../include/c11/threads_posix.h:87
#6  0x7fb9d6f60fb7 in start_thread (arg=) at 
pthread_create.c:486
#7  0x7fb9d6e902cf in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7fb9cd966700 (LWP 16509)):
#0  futex_wait_cancelable (private=0, expected=0, futex_word=0x55a9340e07d8) at 
../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55a9340e0788, 
cond=0x55a9340e07b0) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=cond@entry=0x55a9340e07b0, 
mutex=mutex@entry=0x55a9340e0788) at pthread_cond_wait.c:655
#3  0x7fb9d56fd93b in cnd_wait (mtx=0x55a9340e0788, cond=0x55a9340e07b0) at 
../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input@entry=0x55a93416ed80) at 
../src/util/u_queue.c:275
#5  0x7fb9d56fd557 in impl_thrd_routine (p=) at 
../include/c11/threads_posix.h:87
#6  0x7fb9d6f60fb7 in start_thread (arg=) at 
pthread_create.c:486
#7  0x7fb9d6e902cf in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fb9ce167700 (LWP 16508)):
#0  futex_wait_cancelable (private=0, expected=0, futex_word=0x55a9340e07d8) at 
../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55a9340e0788, 
cond=0x55a9340e07b0) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=cond@entry=0x55a9340e07b0, 
mutex=mutex@entry=0x55a9340e0788) at pthread_cond_wait.c:655
#3  0x7fb9d56fd93b in cnd_wait (mtx=0x55a9340e0788, cond=0x55a9340e07b0) at 
../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input@entry=0x55a93416e900) at 
../src/util/u_queue.c:275
#5  0x7fb9d56fd557 in impl_thrd_routine (p=) at 
../include/c11/threads_posix.h:87
#6  0x7fb9d6f60fb7 in start_thread (arg=) at 
pthread_create.c:486
#7  0x7fb9d6e902cf in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fb9ce968700 (LWP 16507)):
#0  futex_wait_cancelable (private=0, expected=0, futex_word=0x55a9340e07d8) at 
../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55a9340e0788, 
cond=0x55a9340e07b0) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=cond@entry=0x55a9340e07b0, 
mutex=mutex@entry=0x55a9340e0788) at pthread_cond_wait.c:655
#3  0x7fb9d56fd93b in cnd_wait (mtx=0x55a9340e0788, cond=0x55a9340e07b0) at 
../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input@entry=0x55a93416e6d0) at 
../src/util/u_queue.c:275
#5  0x7fb9d56fd557 in impl_thrd_routine (p=) at 
../include/c11/threads_posix.h:87
#6  0x7fb9d6f60fb7 in start_thread (arg=) at 
pthread_create.c:486
#7  0x7fb9d6e902cf in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fb9d6933f00 (LWP 16504)):
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x7fb9d6dbb535 in __GI_abort () at abort.c:79
#2  0x55a933cd09aa in OsAbort () at ../../../../os/utils.c:1351
#3  0x55a933cd64f3 in AbortServer () at ../../../../os/log.c:879
#4  0x55a933cd7346 in FatalError (f=f@entry=0x55a933d0a4b0 "Caught signal 
%d (%s). Server aborting\n") at ../../../../os/log.c:1017
#5  0x55a933ccde15 in OsSigHandler (unused=, 
sip=0x7fffcfe329b0, signo=11) at ../../../../os/osinit.c:156
#6  OsSigHandler (signo=11, sip=0x7fffcfe329b0, unused=) at 
../../../../os/osinit.c:110
#7  
#8  0x55a933c4eabd in DamageRegister (pDrawable=0x0, 
pDamage=0x55a934105830) at ../../../../../miext/damage/damage.c:1746
#9  0x55a933becdf1 in xf86RotatePrepare (pScreen=0x55a9340b7680) at 
../../../../../../hw/xfree86/modes/xf86Rotate.c:160
#10 xf86RotateRedisplay (pScreen=pScreen@entry=0x55a9340b7680) at 
../../../../../../hw/xfree86/modes/xf86Rotate.c:181
#11 0x55a933bed5d1 in xf86CrtcRotate (crtc=crtc@entry=0x55a9340b0690) at 
../../../../../../hw/xfree86/modes/xf86Rotate.c:490
#12 0x7fb9d655efe7 in drmmode_set_mode_major (crtc=0x55a9340b0690, 
mode=0x55a9340b0778, rotation=, x=0, y=0) at 
../../src/drmmode_display.c:465
#13 0x55a933be3330 in xf86CrtcSetModeTransform 
(crtc=crtc@entry=0x55a9340b0690, mode=0x55a9340b0778, rotation=, 
transform=0x0, x=0, y=y@entry=0) at 
../../

Bug#949257: xserver-xorg-core: Segmentation fault w/ 1.20.7

2020-01-19 Thread Jamie Heilman
Bernhard Übelacker wrote:
> Hello Jamie Heilman,
> I just tried to retrieve some line information from the backtrace.
> Unfortunately I could not match the addresses with the
> binary from the debian repository.
> Was this backtrace by any chance built with a local
> rebuild of the xserver-xorg-core package?

Nope, vanilla amd64 package from the repo, not a rebuild.

-- 
Jamie Heilman http://audible.transient.net/~jamie/



Bug#949257: xserver-xorg-core: Segmentation fault w/ 1.20.7

2020-01-19 Thread Bernhard Übelacker
Hello Jamie Heilman,
I just tried to retrieve some line information from the backtrace.
Unfortunately I could not match the addresses with the
binary from the debian repository.
Was this backtrace by any chance built with a local
rebuild of the xserver-xorg-core package?

Kind regards,
Bernhard



Bug#949257: xserver-xorg-core: Segmentation fault w/ 1.20.7

2020-01-18 Thread Jamie Heilman
Package: xserver-xorg-core
Version: 2:1.20.7-2
Severity: grave

Setup is a NVIDIA GF108GL [Quadro 600] driving two monitors in
portrait orientation.  Kernel 5.4.0-2-amd64 #1 SMP Debian 5.4.8-1 (2020-01-05)

xorg.conf is:
Section "Device"
 Identifier "GF108GL"
 Driver "nouveau"
 Option "Monitor-DVI-I-1" "Left Dell U2312HM"
 Option "Monitor-DP-1" "Right Dell U2312HM"
EndSection

Section "Monitor"
 Identifier "Left Dell U2312HM"
 Option "Rotate" "right"
EndSection

Section "Monitor"
 Identifier "Right Dell U2312HM"
 Option "RightOf" "Left Dell U2312HM"
 Option "Rotate" "right"
EndSection


Crash is consistent, and goes away once downgraded to 1.20.6, other
relevant package versions:

libdrm-nouveau2:amd64   2.4.100-4
xdm 1:1.1.11-3+b1
xserver-xorg-video-nouveau  1:1.0.16-1

Crash:

[   590.914] (II) NOUVEAU(0): NVEnterVT is called.
[   590.914] (EE) 
[   590.914] (EE) Backtrace:
[   590.914] (EE) 0: /usr/lib/xorg/Xorg (OsLookupColor+0x138) [0x5618c21dfeb8]
[   590.915] (EE) 1: /lib/x86_64-linux-gnu/libpthread.so.0 (funlockfile+0x50) 
[0x7f574e2d956f]
[   590.915] (EE) 2: /usr/lib/xorg/Xorg (DamageRegister+0x1d) [0x5618c2160abd]
[   590.915] (EE) 3: /usr/lib/xorg/Xorg (xf86RandR12PreInit+0x3c1) 
[0x5618c20fef31]
[   590.915] (EE) 4: /usr/lib/xorg/Xorg (xf86CrtcRotate+0x321) [0x5618c20ff5d1]
[   590.915] (EE) unw_get_proc_name failed: no unwind info found [-10]
[   590.915] (EE) 5: /usr/lib/xorg/modules/drivers/nouveau_drv.so (?+0x0) 
[0x7f574d8ccf30]
[   590.915] (EE) 6: /usr/lib/xorg/Xorg (xf86CrtcSetModeTransform+0x280) 
[0x5618c20f5330]
[   590.915] (EE) 7: /usr/lib/xorg/Xorg (xf86SetDesiredModes+0xea) 
[0x5618c20f587a]
[   590.915] (EE) unw_get_proc_name failed: no unwind info found [-10]
[   590.915] (EE) 8: /usr/lib/xorg/modules/drivers/nouveau_drv.so (?+0x0) 
[0x7f574d8b5f90]
[   590.916] (EE) unw_get_proc_name failed: no unwind info found [-10]
[   590.916] (EE) 9: /usr/lib/xorg/modules/drivers/nouveau_drv.so (?+0x0) 
[0x7f574d8b6370]
[   590.916] (EE) 10: /usr/lib/xorg/Xorg (InitExtensions+0x61e) [0x5618c20f0cee]
[   590.916] (EE) 11: /usr/lib/xorg/Xorg (InitFonts+0x279) [0x5618c20867f9]
[   590.916] (EE) 12: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0xeb) 
[0x7f574e12abbb]
[   590.916] (EE) 13: /usr/lib/xorg/Xorg (_start+0x2a) [0x5618c207074a]
[   590.916] (EE) 
[   590.916] (EE) Segmentation fault at address 0x10
[   590.916] (EE) 
Fatal server error:
[   590.916] (EE) Caught signal 11 (Segmentation fault). Server aborting
[   590.916] (EE) 

full Xorg and xdm logs attached; appears to die at the point when the
screen gets resized


-- 
Jamie Heilman http://audible.transient.net/~jamie/
[   590.560] 
X.Org X Server 1.20.7
X Protocol Version 11, Revision 0
[   590.560] Build Operating System: Linux 4.19.0-6-amd64 x86_64 Debian
[   590.560] Current Operating System: Linux jamiehe1 5.4.0-2-amd64 #1 SMP 
Debian 5.4.8-1 (2020-01-05) x86_64
[   590.560] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.4.0-2-amd64 
root=/dev/mapper/W-root ro cgroup_no_v1=all
[   590.560] Build Date: 14 January 2020  10:13:49AM
[   590.560] xorg-server 2:1.20.7-2 (https://www.debian.org/support) 
[   590.560] Current version of pixman: 0.36.0
[   590.560]Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[   590.560] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   590.560] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Jan 18 23:24:40 
2020
[   590.560] (==) Using config file: "/etc/X11/xorg.conf"
[   590.560] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   590.560] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   590.560] (==) No Layout section.  Using the first Screen section.
[   590.560] (==) No screen section available. Using defaults.
[   590.560] (**) |-->Screen "Default Screen Section" (0)
[   590.560] (**) |   |-->Monitor ""
[   590.560] (==) No device specified for screen "Default Screen Section".
Using the first device section listed.
[   590.560] (**) |   |-->Device "GF108GL"
[   590.560] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[   590.560] (==) Automatically adding devices
[   590.560] (==) Automatically enabling devices
[   590.560] (==) Automatically adding GPU devices
[   590.560] (==) Max clients allowed: 256, resource mask: 0x1f
[   590.560] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[   590.560]Entry deleted from font path.
[   590.560] (==) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/100dpi/:unscaled,
/usr/share/fon