From owner-freebsd-x11@freebsd.org Mon Jul 1 18:14:44 2019 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 417BF15E1709 for ; Mon, 1 Jul 2019 18:14:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id CFF448A757 for ; Mon, 1 Jul 2019 18:14:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 905ED15E1703; Mon, 1 Jul 2019 18:14:43 +0000 (UTC) Delivered-To: x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6DC2515E1702 for ; Mon, 1 Jul 2019 18:14:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 070018A754 for ; Mon, 1 Jul 2019 18:14:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 27BA21D5D5 for ; Mon, 1 Jul 2019 18:14:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x61IEgZV042033 for ; Mon, 1 Jul 2019 18:14:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x61IEgp7042024 for x11@FreeBSD.org; Mon, 1 Jul 2019 18:14:42 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 238931] graphics/mesa-dri: mutter and gnome-shell segfault when i915kms.ko from base is used Date: Mon, 01 Jul 2019 18:14:41 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: lantw44@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: x11@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jul 2019 18:14:44 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238931 Bug ID: 238931 Summary: graphics/mesa-dri: mutter and gnome-shell segfault when i915kms.ko from base is used Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: x11@FreeBSD.org Reporter: lantw44@gmail.com Assignee: x11@FreeBSD.org Flags: maintainer-feedback?(x11@FreeBSD.org) Since the update of Mesa to 18.3.2, I am unable to run mutter and gnome-she= ll with i915kms.ko from base. Xorg can be successfully started, and simple programs such as xterm and glxgears work. However, GDM won't show anything because gnome-shell segfault immediately in /usr/local/lib/dri/i965_dri.so.= The segfault issue can be avoided by downgrading Mesa to 18.2.8 or switching to drm-fbsd12.0-kmod, but downgrading is seldom the correct way to resolve problem. Switching to drm-fbsd12.0-kmod is also not practical on this compu= ter because of memory leak: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238925. I tried to upgr= ade Mesa to 18.3.6 with patch from https://reviews.freebsd.org/D19099, but the result was the same. I also tried the patch posted at https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D235487#c11, but it didn= 't help as well. This is the backtrace of mutter 3.33.3-30-gf2f4af0d5 running with Mesa 18.3= .6. #0 memcpy () at /usr/src/lib/libc/amd64/string/memmove.S:268 #1 0x000000080415c2d5 in ?? () from /usr/local/lib/dri/i965_dri.so #2 0x000000080415b170 in ?? () from /usr/local/lib/dri/i965_dri.so #3 0x0000000803e8f6db in ?? () from /usr/local/lib/dri/i965_dri.so #4 0x0000000803e8e791 in ?? () from /usr/local/lib/dri/i965_dri.so #5 0x0000000803e95fa1 in ?? () from /usr/local/lib/dri/i965_dri.so #6 0x0000000803b87c9a in ?? () from /usr/local/lib/dri/i965_dri.so #7 0x0000000803b87d76 in ?? () from /usr/local/lib/dri/i965_dri.so #8 0x0000000803e97a65 in ?? () from /usr/local/lib/dri/i965_dri.so #9 0x0000000803e96824 in ?? () from /usr/local/lib/dri/i965_dri.so #10 0x0000000803b71d91 in ?? () from /usr/local/lib/dri/i965_dri.so #11 0x0000000803b71faa in ?? () from /usr/local/lib/dri/i965_dri.so #12 0x0000000800b52ce1 in _cogl_texture_driver_upload_to_gl (ctx=3D0x802d40= 800, gl_target=3D, gl_handle=3D1, is_foreign=3D0, source_bmp=3D0x= 802c634a0, internal_gl_format=3D6408, source_gl_format=3D6408,=20 source_gl_type=3D5121, error=3D0x0) at ../../source/mutter/cogl/cogl/driver/gl/gl/cogl-texture-driver-gl.c:333 #13 0x0000000800b47860 in allocate_from_bitmap (tex_2d=3D, loader=3D, error=3D0x0) at ../../source/mutter/cogl/cogl/driver/gl/cogl-texture-2d-gl.c:268 #14 0x0000000800b757fa in cogl_texture_allocate (texture=3D0x802c24ea0, error=3D0x0) at ../../source/mutter/cogl/cogl/cogl-texture.c:1087 #15 0x0000000800b76c52 in cogl_texture_2d_new_from_data (ctx=3D0x802d40800, width=3D1, height=3D1, format=3D, rowstride=3D, data=3D, error=3D0x0) at ../../source/mutter/cogl/cogl/cogl-texture-2d.c:224 #16 0x0000000800b54eb4 in cogl_context_new (display=3D, error=3D) at ../../source/mutter/cogl/cogl/cogl-context.c:398 #17 0x0000000800c53009 in clutter_backend_do_real_create_context (backend=3D, driver_id=3D, error=3D) at ../../source/mutter/clutter/clutter/clutter-backend.c:294 #18 0x0000000800c52cbf in clutter_backend_real_create_context (backend=3D, error=3D0x7fffffffd780) at ../../source/mutter/clutter/clutter/clutter-backend.c:377 #19 0x0000000800c6af95 in _clutter_feature_init (error=3D0x7fffffffd780) at ../../source/mutter/clutter/clutter/clutter-feature.c:101 #20 0x0000000800c7f119 in clutter_init_real (error=3D0x7fffffffd780) at ../../source/mutter/clutter/clutter/clutter-main.c:1355 #21 0x0000000800c7ef12 in post_parse_hook (context=3D, group=3D, data=3D, error=3D0x7fffffffd780) at ../../source/mutter/clutter/clutter/clutter-main.c:1513 #22 0x00000008004906c8 in g_option_context_parse (context=3D0x802d0e220, argc=3D0x802d0e220, argv=3D, error=3D) at ../../source/glib/glib/goption.c:2224 #23 0x0000000800c7f2e8 in clutter_parse_args (argc=3D0x0, argv=3D0x0, error=3D0x7fffffffd7c0) at ../../source/mutter/clutter/clutter/clutter-main.c:1732 #24 0x0000000800c7f1de in clutter_init (argc=3D0x0, argv=3D0x0) at ../../source/mutter/clutter/clutter/clutter-main.c:1794 #25 0x00000008002feebb in meta_clutter_init () at ../../source/mutter/src/backends/meta-backend.c:1355 #26 0x0000000800345904 in meta_init () at ../../source/mutter/src/core/main.c:592 #27 0x0000000000219678 in main (argc=3D1, argv=3D0x7fffffffd8f8) at ../../source/mutter/src/core/mutter.c:82 --=20 You are receiving this mail because: You are the assignee for the bug.=