NetBSD Problem Report #53073

From www@NetBSD.org  Sun Mar  4 17:00:05 2018
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 3727A7A1F0
	for <gnats-bugs@gnats.NetBSD.org>; Sun,  4 Mar 2018 17:00:05 +0000 (UTC)
Message-Id: <20180304170003.98DBB7A262@mollari.NetBSD.org>
Date: Sun,  4 Mar 2018 17:00:03 +0000 (UTC)
From: venture37@geeklan.co.uk
Reply-To: venture37@geeklan.co.uk
To: gnats-bugs@NetBSD.org
Subject: X11 server in HEAD-LLVM build seg faults on execution
X-Send-Pr-Version: www-1.0

>Number:         53073
>Category:       toolchain
>Synopsis:       X11 server in HEAD-LLVM build seg faults on execution
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          feedback
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 04 17:05:00 +0000 2018
>Closed-Date:    
>Last-Modified:  Wed Oct 23 01:17:25 +0000 2019
>Originator:     Sevan Janiyan
>Release:        NetBSD 8.99.12 201803022030Z
>Organization:
>Environment:
NetBSD 8.99.12 i386 i386
>Description:
On a fresh install of i386 build from HEAD-LLVM it is not possible to start X11. This is not an issue on the stock GCC builds.

[   107.940] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
	i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
	915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
	Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
	GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[   107.941] (II) intel: Driver for Intel(R) HD Graphics: 2000-6000
[   107.941] (II) intel: Driver for Intel(R) Iris(TM) Graphics: 5100, 6100
[   107.941] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics: 5200, 6200, P6300
[   107.941] (II) VESA: driver for VESA chipsets: vesa
[   107.941] (--) Using wscons driver on /dev/ttyE4 in pcvt compatibility mode (version 3.32)
[   107.941] (--) using VT number 5
[   107.946] (II) intel(0): Using Kernel Mode Setting driver: i915, version 1.6.0 20080730
[   107.947] (WW) Falling back to old probe method for vesa
[   107.948] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[   107.948] (--) intel(0): Integrated Graphics Chipset: Intel(R) 945GM
[   107.948] (--) intel(0): CPU: x86, sse2, sse3
[   107.948] (II) intel(0): Creating default Display subsection in Screen section
	"Builtin Default intel Screen 0" for depth/fbbpp 24/32
[   107.948] (==) intel(0): Depth 24, (--) framebuffer bpp 32
[   107.948] (==) intel(0): RGB weight 888
[   107.948] (==) intel(0): Default visual is TrueColor
[   107.953] (II) intel(0): Output LVDS1 has no monitor section
[   107.953] (II) intel(0): Enabled output LVDS1
[   107.953] (II) intel(0): Output VGA1 has no monitor section
[   107.953] (II) intel(0): Enabled output VGA1
[   107.953] (--) intel(0): Using a maximum size of 256x256 for hardware cursors
[   107.953] (II) intel(0): Output VIRTUAL1 has no monitor section
[   107.953] (II) intel(0): Enabled output VIRTUAL1
[   107.953] (--) intel(0): Output LVDS1 using initial mode 1024x768 on pipe 1
[   107.953] (==) intel(0): TearFree disabled
[   107.953] (==) intel(0): DPI set to (96, 96)
[   107.953] (II) Loading sub module "dri2"
[   107.953] (II) LoadModule: "dri2"
[   107.953] (II) Module "dri2" already built-in
[   107.953] (II) UnloadModule: "vesa"
[   107.953] (II) Unloading vesa
[   107.954] (==) Depth 24 pixmap format is 32 bpp
[   107.958] (II) intel(0): SNA initialized with Alviso (gen3) backend
[   107.958] (==) intel(0): Backing store enabled
[   107.958] (==) intel(0): Silken mouse enabled
[   107.959] (II) intel(0): HW Cursor enabled
[   107.959] (II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[   107.961] (==) intel(0): DPMS enabled
[   107.963] (II) intel(0): [XvMC] i915_xvmc driver initialized.
[   107.964] (II) intel(0): [DRI2] Setup complete
[   107.964] (II) intel(0): [DRI2]   DRI driver: i915
[   107.964] (II) intel(0): [DRI2]   VDPAU driver: i915
[   107.964] (II) intel(0): direct rendering: DRI2 enabled
[   107.964] (--) RandR disabled
[   108.024] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[   108.024] (II) AIGLX: enabled GLX_ARB_create_context
[   108.024] (II) AIGLX: enabled GLX_ARB_create_context_profile
[   108.024] (II) AIGLX: enabled GLX_EXT_create_context_es{,2}_profile
[   108.024] (II) AIGLX: enabled GLX_INTEL_swap_event
[   108.024] (II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
[   108.024] (II) AIGLX: enabled GLX_EXT_framebuffer_sRGB
[   108.024] (II) AIGLX: enabled GLX_ARB_fbconfig_float
[   108.024] (II) AIGLX: enabled GLX_EXT_fbconfig_packed_float
[   108.024] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
[   108.025] (II) AIGLX: Loaded and initialized i915
[   108.025] (II) GLX: Initialized DRI2 GL provider for screen 0
[   108.038] (EE) Segmentation fault at address 0x4
[   108.038] (EE) 
Fatal server error:
[   108.038] (EE) Caught signal 11 (Segmentation fault). Server aborting
>How-To-Repeat:
Install NetBSD/i386 build from HEAD-LLVM
run startx
>Fix:

>Release-Note:

>Audit-Trail:
From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@NetBSD.org
Cc: toolchain-manager@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org
Subject: Re: toolchain/53073: X11 server in HEAD-LLVM build seg faults on
 execution
Date: Mon, 5 Mar 2018 22:36:40 +0100

 On Sun, Mar 04, 2018 at 05:05:00PM +0000, venture37@geeklan.co.uk wrote:
 > On a fresh install of i386 build from HEAD-LLVM it is not possible to start X11. This is not an issue on the stock GCC builds.

 Can you get a backtrace? I wonder if this is the broken "cannot use tail
 calls as they don't link lazily" bug in X.

 Joerg

From: Sevan Janiyan <venture37@geeklan.co.uk>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: toolchain/53073: X11 server in HEAD-LLVM build seg faults on
 execution
Date: Mon, 5 Mar 2018 23:52:01 +0000

 On 05/03/2018 21:40, Joerg Sonnenberger wrote:
 >  Can you get a backtrace? I wonder if this is the broken "cannot use tail
 >  calls as they don't link lazily" bug in X.


 Sure, give me a couple of day or two, little busy at the moment.


 Sevan

From: Sevan Janiyan <venture37@geeklan.co.uk>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: toolchain/53073: X11 server in HEAD-LLVM build seg faults on
 execution
Date: Mon, 5 Mar 2018 23:56:53 +0000

 On 05/03/2018 23:55, Sevan Janiyan wrote:
 >  give me a couple of day or two

 just a day or two is fine. No need for multiples.


 Sevan

From: Sevan Janiyan <venture37@geeklan.co.uk>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: toolchain/53073: X11 server in HEAD-LLVM build seg faults on
 execution
Date: Sat, 10 Mar 2018 15:40:33 +0000

 On 05/03/2018 21:40, Joerg Sonnenberger wrote:
 >  Can you get a backtrace? I wonder if this is the broken "cannot use tail
 >  calls as they don't link lazily" bug in X.

 I attached gdb to /usr/X11R7/bin/Xorg and ran in
 It crashed with:
 0xb23c4052 in _kgem_submit () from
 /usr/X11R7/lib/modules/drivers/intel_drv.so

 backtrace:
 #0  0xb23c4052 in _kgem_submit ()
    from /usr/X11R7/lib/modules/drivers/intel_drv.so
 #1  0xb233ecc3 in sna_blt_copy_boxes ()
    from /usr/X11R7/lib/modules/drivers/intel_drv.so
 #2  0xb239c2f2 in ?? () from /usr/X11R7/lib/modules/drivers/intel_drv.so
 #3  0xb232aa45 in sna_copy_fbcon ()
    from /usr/X11R7/lib/modules/drivers/intel_drv.so
 #4  0xb2323d50 in ?? () from /usr/X11R7/lib/modules/drivers/intel_drv.so
 #5  0x006d73f8 in ?? ()
 #6  0x00633412 in dix_main ()
 #7  0x0063311e in main ()

State-Changed-From-To: open->feedback
State-Changed-By: maya@NetBSD.org
State-Changed-When: Wed, 23 Oct 2019 01:17:25 +0000
State-Changed-Why:
Is this helped by https://github.com/NetBSD/xsrc/commit/6a5684595830ce96474db9348a5a1b9cabb223d4#diff-d8a27206990111d816fd57f03a49b2f4


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.