Bug 104672 - [NVAC] Compiz segfaults on login on Ubuntu 17.10 with Unity 7 (kernel DRM bug?)
Summary: [NVAC] Compiz segfaults on login on Ubuntu 17.10 with Unity 7 (kernel DRM bug?)
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/nouveau (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Nouveau Project
QA Contact: Nouveau Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-17 09:08 UTC by Rui Salvaterra
Modified: 2018-01-21 17:07 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Xorg log (30.78 KB, text/plain)
2018-01-17 11:31 UTC, Rui Salvaterra
Details
Kernel logs with 4.15 (421.32 KB, text/plain)
2018-01-17 21:32 UTC, Pierre Moreau
Details
Tentative patch (6.69 KB, patch)
2018-01-19 01:35 UTC, Pierre Moreau
Details | Splinter Review

Description Rui Salvaterra 2018-01-17 09:08:48 UTC
NVIDIA ION system (Atom 330 + NVAC) running Mesa git from padoka's PPA on Ubuntu 17.10 with Unity 7. Compiz immediately segfaults on login (returns to the lightdm greeter) on Linux 4.15-rc8. Linux 4.14.13 works fine.
Comment 1 Pierre Moreau 2018-01-17 09:19:41 UTC
Could you please provide the output of dmesg after the segfault, as well as the X logs (/var/log/Xorg.0.log, or wherever it is on your computer)?
If you could bisect the kernel between 4.14.13 and 4.15-rc8, that would be awesome (for example, running `git bisect start --term-good=v4.14 --term-bad=v4.15-rc8 -- drivers/gpu/drm/nouveau`, see ). I’ll try to give 4.15-rc8 a spin on my laptop tonight.
Comment 2 Rui Salvaterra 2018-01-17 10:21:09 UTC
(In reply to Pierre Moreau from comment #1)
> Could you please provide the output of dmesg after the segfault, as well as
> the X logs (/var/log/Xorg.0.log, or wherever it is on your computer)?

Sure, later today (as of now I only have ssh access to the machine). 

> If you could bisect the kernel between 4.14.13 and 4.15-rc8, that would be
> awesome (for example, running `git bisect start --term-good=v4.14
> --term-bad=v4.15-rc8 -- drivers/gpu/drm/nouveau`, see ). I’ll try to give
> 4.15-rc8 a spin on my laptop tonight.

I've never done a git bisection before (and I don't have the toolchain installed, this is - was, now that all hell broke loose with Meltdown and friends - a computer with very limited use), but I wager it's going to be painful to do kernel compiles on an Atom 330… I may try to do so on the weekend, but no promises. :(
Actually, I just reported this now because I was expecting this error to be found by someone else, being so obvious. :P It's happening since 4.15-rc1 (the first release I tested after the merge window).
Comment 3 Rui Salvaterra 2018-01-17 11:31:57 UTC
Created attachment 136805 [details]
Xorg log

So I managed to configure lightdm for logging in automatically. This is what I got on the dmesg:

[   40.419929] compiz[912]: segfault at 1a ip 00007f77455ef1e8 sp 00007ffd41c1fba0 error 4 in nouveau_dri.so[7f77453a9000+a86000]

Xorg log attached.
Comment 4 Pierre Moreau 2018-01-17 21:32:21 UTC
Created attachment 136815 [details]
Kernel logs with 4.15

4.15 is indeed broken on NVAC on my laptop as well (see the kernel logs attached); I am going to run a bisect.
Comment 5 Pierre Moreau 2018-01-17 21:57:27 UTC
Turns out I had an additional issue, but I think I now see the same issue as you do, with a segfault in nouveau_dri.so when starting sddm.
Comment 6 Pierre Moreau 2018-01-19 01:35:58 UTC
Created attachment 136840 [details] [review]
Tentative patch

The following patch from Ben Skeggs fixes it for me, hopefully that should also be the case on your laptop.
Comment 7 Rui Salvaterra 2018-01-19 07:55:43 UTC
(In reply to Pierre Moreau from comment #6)
> Created attachment 136840 [details] [review] [review]
> Tentative patch
> 
> The following patch from Ben Skeggs fixes it for me, hopefully that should
> also be the case on your laptop.

Great, thanks a lot for the quick turnaround! :) It's actually a desktop machine, I'll give it a spin as soon as the patch hits the mainline (hopefully today, I saw it's part of the last DRM fixes pull request).
Comment 8 Rui Salvaterra 2018-01-20 19:07:32 UTC
I can confirm it's also fixed on my side, as expected. (I have Chrome's GPU process crashing, but that's an unrelated issue, since it also happens with Linux 4.14.13.) Thanks a lot! :)
Comment 9 Pierre Moreau 2018-01-21 17:07:01 UTC
Awesome! I saw the fixes in Linus’ tree, and since 4.15 hasn’t been tagged yet, the fixes will be part of the initial release of 4.15.

Thank you for reporting the bug and trying out the patch! :-)


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.