Bug 87919 - X segfaults after some time
Summary: X segfaults after some time
Status: ASSIGNED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/nVidia (proprietary) (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: Aaron Plattner
QA Contact: Aaron Plattner
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-31 18:11 UTC by Benjamin Schaaf
Modified: 2015-01-01 15:32 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Xorg log file (28.14 KB, text/plain)
2014-12-31 18:11 UTC, Benjamin Schaaf
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Schaaf 2014-12-31 18:11:07 UTC
Created attachment 111589 [details]
Xorg log file

After some time, the screen freezes and I am forced to `restart gdm` from tty.
Checking the logs, it says that there was a segfault in `/usr/bin/X`.
This problem has only appeared after a recent dist-upgrade.

I have both a Nvidia and Intel chips with bumblebee. Before the update `optirun` would make X freeze the same way, but `optirun -b primus` seemed to work (for some games). Now with primus the entire window stays black while optirun works until the freeze. Even without using the Nvidia chip the segfault still happens.

Running Ubuntu GNOME (utopic)

`Xorg -version`:

X.Org X Server 1.16.1.901 (1.16.2 RC 1)
Release Date: 2014-11-02
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.13.0-39-generic x86_64 Ubuntu
Current Operating System: Linux chell 3.16.0-28-generic #38-Ubuntu SMP Fri Dec 12 17:37:40 UTC 2014 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.16.0-28-generic root=UUID=974b0d0c-a7e8-44b1-8483-0406dc58244e ro quiet splash
Build Date: 20 November 2014  09:55:19PM
xorg-server 2:1.16.1.901-1ubuntu1~utopic1 (For technical support please see http://www.ubuntu.com/support) 
Current version of pixman: 0.32.4
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.

`uname -a`:

Linux chell 3.16.0-28-generic #38-Ubuntu SMP Fri Dec 12 17:37:40 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Comment 1 Alan Coopersmith 2014-12-31 18:27:13 UTC
Backtrace in log file points the finger at the nvidia proprietary driver:

[  6540.755] (EE) Backtrace:
[  6540.755] (EE) 0: /usr/bin/X (xorg_backtrace+0x56) [0x7f5066095986]
[  6540.755] (EE) 1: /usr/bin/X (0x7f5065edf000+0x1bab69) [0x7f5066099b69]
[  6540.755] (EE) 2: /lib/x86_64-linux-gnu/libc.so.6 (0x7f5063c13000+0x36da0) [0x7f5063c49da0]
[  6540.756] (EE) 3: /usr/lib/x86_64-linux-gnu/xorg/extra-modules/nvidia_drv.so (0x7f505df12000+0xb2c3e) [0x7f505dfc4c3e]
[  6540.756] (EE) 4: /usr/lib/x86_64-linux-gnu/xorg/extra-modules/nvidia_drv.so (0x7f505df12000+0x586cd) [0x7f505df6a6cd]
[  6540.756] (EE) 5: /usr/lib/x86_64-linux-gnu/xorg/extra-modules/nvidia_drv.so (0x7f505df12000+0x8b98a) [0x7f505df9d98a]
[  6540.756] (EE) 6: /usr/lib/x86_64-linux-gnu/xorg/extra-modules/nvidia_drv.so (0x7f505df12000+0x58b9e6) [0x7f505e49d9e6]
[  6540.756] (EE) 7: /usr/bin/X (RRCrtcDetachScanoutPixmap+0x6a) [0x7f5065ff889a]
[  6540.756] (EE) 8: /usr/bin/X (0x7f5065edf000+0xd8098) [0x7f5065fb7098]
[  6540.756] (EE) 9: /usr/bin/X (0x7f5065edf000+0xd815c) [0x7f5065fb715c]
[  6540.756] (EE) 10: /usr/bin/X (0x7f5065edf000+0x120ca2) [0x7f5065fffca2]
[  6540.756] (EE) 11: /usr/bin/X (0x7f5065edf000+0x7a032) [0x7f5065f59032]
[  6540.756] (EE) 12: /usr/bin/X (FreeClientResources+0x6c) [0x7f5065f5a0ec]
[  6540.756] (EE) 13: /usr/bin/X (FreeAllResources+0x47) [0x7f5065f5a197]
[  6540.756] (EE) 14: /usr/bin/X (0x7f5065edf000+0x5b2b9) [0x7f5065f3a2b9]
[  6540.756] (EE) 15: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0xf5) [0x7f5063c34ec5]
[  6540.756] (EE) 16: /usr/bin/X (0x7f5065edf000+0x456ae) [0x7f5065f246ae]
[  6540.756] (EE) 
[  6540.756] (EE) Segmentation fault at address 0x30
[  6540.756] (EE)
Comment 2 Benjamin Schaaf 2014-12-31 18:43:33 UTC
(In reply to Alan Coopersmith from comment #1)
> Backtrace in log file points the finger at the nvidia proprietary driver:
> 
> [  6540.755] (EE) Backtrace:
> [  6540.755] (EE) 0: /usr/bin/X (xorg_backtrace+0x56) [0x7f5066095986]
> [  6540.755] (EE) 1: /usr/bin/X (0x7f5065edf000+0x1bab69) [0x7f5066099b69]
> [  6540.755] (EE) 2: /lib/x86_64-linux-gnu/libc.so.6
> (0x7f5063c13000+0x36da0) [0x7f5063c49da0]
> [  6540.756] (EE) 3:
> /usr/lib/x86_64-linux-gnu/xorg/extra-modules/nvidia_drv.so
> (0x7f505df12000+0xb2c3e) [0x7f505dfc4c3e]
> [  6540.756] (EE) 4:
> /usr/lib/x86_64-linux-gnu/xorg/extra-modules/nvidia_drv.so
> (0x7f505df12000+0x586cd) [0x7f505df6a6cd]
> [  6540.756] (EE) 5:
> /usr/lib/x86_64-linux-gnu/xorg/extra-modules/nvidia_drv.so
> (0x7f505df12000+0x8b98a) [0x7f505df9d98a]
> [  6540.756] (EE) 6:
> /usr/lib/x86_64-linux-gnu/xorg/extra-modules/nvidia_drv.so
> (0x7f505df12000+0x58b9e6) [0x7f505e49d9e6]
> [  6540.756] (EE) 7: /usr/bin/X (RRCrtcDetachScanoutPixmap+0x6a)
> [0x7f5065ff889a]
> [  6540.756] (EE) 8: /usr/bin/X (0x7f5065edf000+0xd8098) [0x7f5065fb7098]
> [  6540.756] (EE) 9: /usr/bin/X (0x7f5065edf000+0xd815c) [0x7f5065fb715c]
> [  6540.756] (EE) 10: /usr/bin/X (0x7f5065edf000+0x120ca2) [0x7f5065fffca2]
> [  6540.756] (EE) 11: /usr/bin/X (0x7f5065edf000+0x7a032) [0x7f5065f59032]
> [  6540.756] (EE) 12: /usr/bin/X (FreeClientResources+0x6c) [0x7f5065f5a0ec]
> [  6540.756] (EE) 13: /usr/bin/X (FreeAllResources+0x47) [0x7f5065f5a197]
> [  6540.756] (EE) 14: /usr/bin/X (0x7f5065edf000+0x5b2b9) [0x7f5065f3a2b9]
> [  6540.756] (EE) 15: /lib/x86_64-linux-gnu/libc.so.6
> (__libc_start_main+0xf5) [0x7f5063c34ec5]
> [  6540.756] (EE) 16: /usr/bin/X (0x7f5065edf000+0x456ae) [0x7f5065f246ae]
> [  6540.756] (EE) 
> [  6540.756] (EE) Segmentation fault at address 0x30
> [  6540.756] (EE)

Ah, so the first two items in the backtrace aren't at fault (I assume). I wasn't sure whether that was the case, so I posted the bug just to be sure.
Comment 3 Aaron Plattner 2014-12-31 20:40:54 UTC
Thanks for reporting this.  I filed NVIDIA bug 1595025 to track it.  I should note that this looks like a crash that's triggered when making RandR changes while VT switched away from the server, so it's probably unrelated to your screen freeze.
Comment 4 Benjamin Schaaf 2015-01-01 15:32:52 UTC
After downgrading from the driver version 346.22 to 343.36 and restarting, screen freezes seem to have stopped, along with any segfaults (if the two are related).


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.