NetBSD Problem Report #54180
From www@netbsd.org Thu May 9 07:35:05 2019
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 132577A174
for <gnats-bugs@gnats.NetBSD.org>; Thu, 9 May 2019 07:35:05 +0000 (UTC)
Message-Id: <20190509073503.D74207A1D6@mollari.NetBSD.org>
Date: Thu, 9 May 2019 07:35:03 +0000 (UTC)
From: dogan@tesmer.org.tr
Reply-To: dogan@tesmer.org.tr
To: gnats-bugs@NetBSD.org
Subject: xorg segmentation fault with drm
X-Send-Pr-Version: www-1.0
>Number: 54180
>Category: kern
>Synopsis: xorg segmentation fault with drm
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu May 09 07:40:00 +0000 2019
>Last-Modified: Mon Jun 10 10:40:01 +0000 2019
>Originator: Mustafa Dogan
>Release: NetBSD 8.0_STABLE on amd64
>Organization:
TESMER
>Environment:
NetBSD localhost 8.0_STABLE NetBSD 8.0_STABLE (MuDo) #0: Mon May 6 07:43:31 +03 2019 root@research.net.md:/root/OBJ/sys/arch/amd64/compile/MuDo amd64
>Description:
After recent src changes (probably dated on 22-23 April 2019) related to drm, xorg starts as expected, but crashes a few minutes with segmentation fault.
I tried several different PCs and laptops (most of them have i915drmkms). My observations are:
- If drm device detected and used at boot time, xorg crashes.
- If PC doesn't have usable drm, vesa driver works well.
- If disabled drm at boot time ("userconf disable i915drmkms" for example) loaded vesa driver and works well.
Last portion of sample output of Xorg.0.log is below:
[ 35.742] (II) XINPUT: Adding extended input device "<default keyboard>" (type: KEYBOARD, id 7)
[ 42.831] (II) intel(0): EDID vendor "LGD", prod id 699
[ 42.831] (II) intel(0): Printing DDC gathered Modelines:
[ 42.831] (II) intel(0): Modeline "1366x768"x0.0 71.00 1366 1414 1446 1498 768 771 776 790 +hsync -vsync (47.4 kHz eP)
[ 42.831] (II) intel(0): Modeline "1366x768"x0.0 71.00 1366 1414 1446 1833 768 771 776 968 +hsync -vsync (38.7 kHz e)
[ 2030.189] (EE) Segmentation fault at address 0x7ee0f7255000
[ 2030.190] (EE)
Fatal server error:
[ 2030.191] (EE) Caught signal 11 (Segmentation fault). Server aborting
[ 2030.191] (EE)
[ 2030.191] (EE)
Please consult the The X.Org Foundation support
at http://wiki.X.Org
for help.
[ 2030.192] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 2030.192] (EE)
[ 2030.193] (II) AIGLX: Suspending AIGLX clients for VT switch
[ 2030.978] (EE) Server terminated with error (1). Closing log file.
>How-To-Repeat:
Boot NetBSD 8 built with latest source on a pc with i915 (or detected as i915) VGA chipset. Start startx and try to open some programs (I used xfce4, and thunar is enough for trigger this error).
>Fix:
Workaround:
At boot time:
Go to command prompt before kernel load.
> userconf disable i915drmkms
> boot
After login, you can use xorg as usual.
>Audit-Trail:
From: matthew green <mrg@eterna.com.au>
To: gnats-bugs@netbsd.org, dogan@tesmer.org.tr
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org,
netbsd-bugs@netbsd.org
Subject: re: kern/54180: xorg segmentation fault with drm
Date: Thu, 09 May 2019 17:51:03 +1000
thanks for the report.
can you try this with change applied?
http://mail-index.netbsd.org/source-changes/2019/03/18/msg104376.html
i'm fairly sure this is what is wrong, but i don't have a netbsd-8
intel gpu box to test.
thanks.
.mrg.
From: "Mustafa Dogan" <dogan@tesmer.org.tr>
To: mrg@eterna.com.au,
gnats-bugs@netbsd.org
Cc: kern-bug-people@netbsd.org,
gnats-admssin@netbsd.org,
netbsd-bugs@netbsd.org
Subject: re: kern/54180: xorg segmentation fault with drm
Date: Fri, 10 May 2019 10:33:14 +0300
> The following reply was made to PR kern/54180; it has been noted by GNATS.
>
> From: matthew green <mrg@eterna.com.au>
> To: gnats-bugs@netbsd.org, dogan@tesmer.org.tr
> Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org,
> netbsd-bugs@netbsd.org
> Subject: re: kern/54180: xorg segmentation fault with drm
> Date: Thu, 09 May 2019 17:51:03 +1000
>
> thanks for the report.
>
> can you try this with change applied?
>
> http://mail-index.netbsd.org/source-changes/2019/03/18/msg104376.html
>
> i'm fairly sure this is what is wrong, but i don't have a netbsd-8
> intel gpu box to test.
>
> thanks.
>
>
> .mrg.
>
>
Hi,
Thank you for your quick response.
Yesterday, (May 9) I copied intel_list.h from current and make fresh
build. It could be an illusion, but I noticed that crash delayed from a
few minutes to a few ten minutes. Unfortunately, segmentation fault
occursed and this change didn't solve crash issue for me...
I will try different boxes with i915drmkms and will send my observations
asap.
Kind regards,
Mustafa Dogan
From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: kern/54180: xorg segmentation fault with drm
Date: Mon, 10 Jun 2019 05:32:52 +0000
not sent to gnats (use gnats-bugs, not gnats-admin)
------
From: Anthony Mallet <tho@useless-ficus.net>
To: gnats-admin@netbsd.org, matthew green <mrg@eterna.com.au>
Subject: re: kern/54180: xorg segmentation fault with drm
Date: Thu, 9 May 2019 14:55:26 +0200
FWIW this change
(http://mail-index.netbsd.org/source-changes/2019/03/18/msg104376.html)
also fixed a weird segfault issue in xorg that appeared when simply
upgrading from kernel 8.99.37 to 8.99.39 with no userland update. I
don't see how it can be related but anyway ...
I'm using modular xorg from pkgsrc, I applied the patch in
xf86-video-intel. Should I create a new PR to port the patch to
pkgsrc?
From: "Mustafa Dogan" <dogan@tesmer.org.tr>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: kern/54180: xorg segmentation fault with drm
Date: Mon, 10 Jun 2019 13:39:06 +0300
> The following reply was made to PR kern/54180; it has been noted by GNATS.
>
> From: David Holland <dholland-bugs@netbsd.org>
> To: gnats-bugs@netbsd.org
> Cc:
> Subject: Re: kern/54180: xorg segmentation fault with drm
> Date: Mon, 10 Jun 2019 05:32:52 +0000
>
> not sent to gnats (use gnats-bugs, not gnats-admin)
>
> ------
>
> From: Anthony Mallet <tho@useless-ficus.net>
> To: gnats-admin@netbsd.org, matthew green <mrg@eterna.com.au>
> Subject: re: kern/54180: xorg segmentation fault with drm
> Date: Thu, 9 May 2019 14:55:26 +0200
>
> FWIW this change
> (http://mail-index.netbsd.org/source-changes/2019/03/18/msg104376.html)
> also fixed a weird segfault issue in xorg that appeared when simply
> upgrading from kernel 8.99.37 to 8.99.39 with no userland update. I
> don't see how it can be related but anyway ...
I'm using 8.1_STABLE on amd64 and xorg included in base system (native). I
tried this patch, but it doesn't solve the problem for me.
> I'm using modular xorg from pkgsrc, I applied the patch in
> xf86-video-intel. Should I create a new PR to port the patch to
> pkgsrc?
Sure, you can. But, could it be helpful for native xorg xf86-video-intel
driver users?
Regards,
Mustafa
(Contact us)
$NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.