Bug 249872 - x11-servers/xorg-server pkg segfaults occasionally on Thinkpad X201 12.1-RELEASE-p10
Summary: x11-servers/xorg-server pkg segfaults occasionally on Thinkpad X201 12.1-RELE...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-x11 (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-25 04:14 UTC by corvid
Modified: 2020-10-08 15:33 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description corvid 2020-09-25 04:14:15 UTC
I’ve been seeing segfaults about once a day since the 20th or so. Usually when switching to an X session, but at least once was out of the blue. This would be with the pkg xorg-server-1.20.9,1.txz

I realize the backtrace is almost useless without debugging symbols, but here it is regardless.

[333811.209] (EE) Backtrace:
[333811.216] (EE) 0: /usr/local/bin/Xorg (?+0x0) [0x41c030]
[333811.222] (EE) 1: /lib/libthr.so.3 (pthread_sigmask+0x53e) [0x80091682e]
[333811.229] (EE) 2: /lib/libthr.so.3 (pthread_getspecific+0xdef) [0x80091663f]
[333811.235] (EE) 3: ? (?+0x0) [0x7ffffffff193]
[333811.242] (EE) 4: /usr/local/bin/Xorg (?+0x0) [0x2afd40]
[333811.248] (EE) 5: /usr/local/bin/Xorg (?+0x0) [0x2a9e00]
[333811.254] (EE) 6: /usr/local/bin/Xorg (?+0x0) [0x397230]
[333811.260] (EE) 7: /usr/local/bin/Xorg (?+0x0) [0x3c1240]
[333811.266] (EE) 8: /usr/local/bin/Xorg (?+0x0) [0x3f9620]
[333811.273] (EE) 9: /usr/local/bin/Xorg (?+0x0) [0x3f97e0]
[333811.279] (EE) 10: /usr/local/bin/Xorg (?+0x0) [0x2e1560]
[333811.285] (EE) 11: /usr/local/bin/Xorg (?+0x0) [0x295fd0]
[333811.291] (EE) 12: /usr/local/bin/Xorg (?+0x0) [0x2a04e0]
[333811.297] (EE) 13: /usr/local/bin/Xorg (?+0x0) [0x289000]
[333811.303] (EE) 14: ? (?+0x0) [0x800457000]
[333811.303] (EE) 
[333811.305] (EE) Segmentation fault at address 0x8080019

Hmm, the preview is blank. Let’s hope formatting is preserved.
Comment 1 Jason W. Bacon freebsd_committer 2020-10-02 20:27:17 UTC
I've been using my X201 regularly lately and haven't had any such problems.

FreeBSD mako.acadix.biz 12.1-RELEASE-p10 FreeBSD 12.1-RELEASE-p10 GENERIC  amd64

Using Lumina desktop and the modesetting driver with the latest i915kms:

kld_list="fuse /boot/modules/i915kms.ko"

What video driver and kms are you using?

Are your base and all your packages up-to-date?
Comment 2 Jason W. Bacon freebsd_committer 2020-10-03 22:44:05 UTC
BTW, have you run into this issue with the WiFi?

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246965
Comment 3 Niclas Zeising freebsd_committer 2020-10-05 08:03:39 UTC
Need more info.
Xorg log, xorg setup, dmesg, driver versions, etc.
Comment 4 Jason W. Bacon freebsd_committer 2020-10-05 16:26:46 UTC
Side note: I just upgraded my X201 to 12.2-RC1 and i915kms + modesetting no longer recognizes my GPU.  Xorg falls back on VESA now and VTs don't switch to graphics mode on boot with i915kms in kld_list.

xf86-video-intel works fine, though.  Not sure if lack of support for such old hardware is worth trying to fix as long as the Intel driver works.
Comment 5 Niclas Zeising freebsd_committer 2020-10-05 16:58:49 UTC
(In reply to Jason W. Bacon from comment #4)
Can you try to rebuild drm-fbsd12.0-kmod and gpu-firmware-kmod locally instead of using the build from pkg, and see if that fixes anything?

xf86-video-intel is using i915kms.ko, but it might be trying to load the legacy kmod that's still distributed with FreeBSD 12.
Comment 6 Jason W. Bacon freebsd_committer 2020-10-08 15:33:56 UTC
Yes, building from source resolves the issue as per https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250193.  Thanks...