Skip to contentSkip to conversation

New: Xorg crashes with nouveau and dual screen setup

Bug 106772 [email protected] 1 participant 11 messages Jun 1, 2018 – Dec 4, 2019 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=106772

Bug ID: 106772
Summary: Xorg crashes with nouveau and dual screen setup
Product: xorg
Version: unspecified
Hardware: Other
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Driver/nouveau
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]

Created attachment 139910
--> https://bugs.freedesktop.org/attachment.cgi?id=139910&action=edit
gdb.log

Hi!

I tried Nouveau (xorg-dri-nouveau-18.1.0 from mesa 18.1.0 and xorg-drv-nouveau-1.0.15) with the latest xorg-1.20 and dual monitors. With single screen and xinerama it works fine, with dual screens (w/o xinerama) it segfaults, see log below.

I want to use separate X screens, since monitors have sufficiently different DPI and color temp and Xinerama doesn't allow different DPI on different monitors.

Kernel in use is 4.6.13 with nouveau built as module.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#2 lore raw

[Bug 106772] Xorg crashes with nouveau and dual screen setup

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=106772

--- Comment #1 from Andrew Savchenko <[email protected]> --- Created attachment 139913
--> https://bugs.freedesktop.org/attachment.cgi?id=139913&action=edit
Full xorg.log

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#3 lore raw

[Bug 106772] Xorg crashes with nouveau and dual screen setup

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=106772

--- Comment #2 from Andrew Savchenko <[email protected]> --- Created attachment 139918
--> https://bugs.freedesktop.org/attachment.cgi?id=139918&action=edit
xorg.conf

xorg.conf for dual head setup with screens, I tried to remove Option ZaphodHeads and to add Option DRI 3, all attempts results in the same failure as above.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#4 lore raw

[Bug 106772] Xorg crashes with nouveau and dual screen setup

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=106772

--- Comment #3 from Andrew Savchenko <[email protected]> --- Created attachment 139922
--> https://bugs.freedesktop.org/attachment.cgi?id=139922&action=edit
lspci

lspci -v output for the VGA device

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#5 lore raw

[Bug 106772] Xorg crashes with nouveau and dual screen setup

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=106772

--- Comment #4 from Andrew Savchenko <[email protected]> --- Created attachment 139924
--> https://bugs.freedesktop.org/attachment.cgi?id=139924&action=edit
xrandr output

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#6 lore raw

[Bug 106772] Xorg crashes with nouveau and dual screen setup

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=106772

--- Comment #5 from Keith Packard <[email protected]> --- Looks like Nouveau still parties like it's 1999. I don't think more recent drivers do mode setting this early. However, it's easy enough to handle this case by simply skipping the RRCrtcIsLeased and RROutputIsLeased calls when the respective DIX objects haven't been created yet. Here's a patch which simply wraps those functions in xf86 code that checks for NULL pointers before calling the DIX code.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#7 lore raw

[Bug 106772] Xorg crashes with nouveau and dual screen setup

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=106772

--- Comment #6 from Keith Packard <[email protected]> --- Created attachment 139958
--> https://bugs.freedesktop.org/attachment.cgi?id=139958&action=edit
xfree86: Wrap RRCrtcIsLeased and RROutputIsLeased to check for DIX structures

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#8 lore raw

[Bug 106772] Xorg crashes with nouveau and dual screen setup

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=106772

--- Comment #7 from Mariusz Białończyk <[email protected]> --- Hello Keith,
I suffer from the same problem - crash on startup.
The backtrace is identical (attaching).
The circumstances are the same - I have four monitors with two nvidia cards using nouveau driver.
I am using xinerama.

After applying your patch the backtrace is different:

double free or corruption (!prev)
(EE)
(EE) Backtrace:
(EE) 0: /usr/lib/xorg/Xorg (xorg_backtrace+0x4a) [0x5637ad9347da] (EE) 1: /usr/lib/xorg/Xorg (0x5637ad780000+0x1b8489) [0x5637ad938489] (EE) 2: /lib/x86_64-linux-gnu/libpthread.so.0 (0x7efc039f4000+0x11f50) [0x7efc03a05f50]
(EE) 3: /lib/x86_64-linux-gnu/libc.so.6 (gsignal+0x10b) [0x7efc0366ee7b] (EE) 4: /lib/x86_64-linux-gnu/libc.so.6 (abort+0x151) [0x7efc03670231] (EE) 5: /lib/x86_64-linux-gnu/libc.so.6 (0x7efc0363a000+0x777b7) [0x7efc036b17b7]
(EE) 6: /lib/x86_64-linux-gnu/libc.so.6 (0x7efc0363a000+0x7dd5a) [0x7efc036b7d5a]
(EE) 7: /lib/x86_64-linux-gnu/libc.so.6 (0x7efc0363a000+0x7f81c) [0x7efc036b981c]
(EE) 8: /usr/lib/xorg/Xorg (PanoramiXCreateConnectionBlock+0x20a) [0x5637ad87f98a]
(EE) 9: /usr/lib/xorg/Xorg (0x5637ad780000+0x609e1) [0x5637ad7e09e1] (EE) 10: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0xe7) [0x7efc0365ba87]
(EE) 11: /usr/lib/xorg/Xorg (_start+0x2a) [0x5637ad7ca6ca]

Attaching a full log.

regards,
manio

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#9 lore raw

[Bug 106772] Xorg crashes with nouveau and dual screen setup

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=106772

--- Comment #8 from Mariusz Białończyk <[email protected]> --- Created attachment 140621
--> https://bugs.freedesktop.org/attachment.cgi?id=140621&action=edit
backtrace before any patch

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#10 lore raw

[Bug 106772] Xorg crashes with nouveau and dual screen setup

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=106772

--- Comment #9 from Mariusz Białończyk <[email protected]> --- Created attachment 140622
--> https://bugs.freedesktop.org/attachment.cgi?id=140622&action=edit
full Xorg log after patching

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#11 lore raw

[Bug 106772] Xorg crashes with nouveau and dual screen setup

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=106772

Martin Peres <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |MOVED
             Status|NEW                         |RESOLVED

--- Comment #10 from Martin Peres <[email protected]> --- -- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance:
https://gitlab.freedesktop.org/xorg/driver/xf86-video-nouveau/issues/436.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau