NetBSD Problem Report #55464

From www@netbsd.org  Mon Jul  6 09:08:38 2020
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 5BB4E1A9213
	for <gnats-bugs@gnats.NetBSD.org>; Mon,  6 Jul 2020 09:08:38 +0000 (UTC)
Message-Id: <20200706090837.7ED3A1A921A@mollari.NetBSD.org>
Date: Mon,  6 Jul 2020 09:08:37 +0000 (UTC)
From: tomdb@internode.on.net
Reply-To: tomdb@internode.on.net
To: gnats-bugs@NetBSD.org
Subject: update xf86-video-intel to git revision to fix segfault
X-Send-Pr-Version: www-1.0

>Number:         55464
>Category:       pkg
>Synopsis:       update xf86-video-intel to git revision to fix segfault
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 06 09:10:00 +0000 2020
>Closed-Date:    Tue Oct 13 02:53:26 +0000 2020
>Last-Modified:  Tue Oct 13 02:53:26 +0000 2020
>Originator:     Thomas Batten
>Release:        pkgsrc current 06/06/2020
>Organization:
NA
>Environment:
Linux localhost 5.4.49 #1 SMP PREEMPT Thu Jul 2 11:01:26 ACST 2020 i686 GNU/Linux
>Description:
running "startx" after building and installing "modular-xorg" on an i686 machine with Intel graphics produces a segmentation fault from "/usr/pkg/bin/X"

Relevant part of the log:
(EE) 
(EE) Backtrace:
(EE) 0: /usr/pkg/bin/X (xorg_backtrace+0x43) [0x81da823]
(EE) 1: /usr/pkg/bin/X (0x8048000+0x1964a2) [0x81de4a2]
(EE) 2: linux-gate.so.1 (__kernel_rt_sigreturn+0x0) [0xb7f7dc18]
(EE) 
(EE) Segmentation fault at address 0x0
(EE) 
Fatal server error:
(EE) Caught signal 11 (Segmentation fault). Server aborting
>How-To-Repeat:
0. use an i686 Linux machine with Intel graphics
1. build and install "modular-xorg"
2. run "X"
>Fix:
I modified the "xf86-video-intel" Makefile:
1. use git revision "5ca3ac1a90af177eb111a965e9b4dd8a27cc58fc" from "https://gitlab.freedesktop.org/xorg/driver/xf86-video-intel" (based on the Gentoo ebuild)
2. added "aclocal autoconf autoreconf automake" to "USE_TOOLS"
3. add a "pre-configure" section containing "cd ${WRKSRC} && ${SH} autogen.sh"
4. removed all patches except "patch-src_sna_sna__display.c" which had to be modified due to changed line numbers

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Tue, 13 Oct 2020 02:53:26 +0000
State-Changed-Why:
xf86-video-intel now uses a git snapshot. Thanks for the report!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.