From owner-freebsd-x11@freebsd.org Mon Aug 3 22:09:10 2020 Return-Path: Delivered-To: freebsd-x11@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 536923A85F3 for ; Mon, 3 Aug 2020 22:09:10 +0000 (UTC) (envelope-from zeising+freebsd@daemonic.se) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4BLBqp0z0tz4RjW for ; Mon, 3 Aug 2020 22:09:10 +0000 (UTC) (envelope-from zeising+freebsd@daemonic.se) Received: by mailman.nyi.freebsd.org (Postfix) id 213C23A8B8A; Mon, 3 Aug 2020 22:09:10 +0000 (UTC) Delivered-To: x11@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2102E3A88B0 for ; Mon, 3 Aug 2020 22:09:10 +0000 (UTC) (envelope-from zeising+freebsd@daemonic.se) Received: from mail.daemonic.se (mail.daemonic.se [IPv6:2607:f740:d:20::25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4BLBqn22ySz4Rnp; Mon, 3 Aug 2020 22:09:08 +0000 (UTC) (envelope-from zeising+freebsd@daemonic.se) Received: from cid.daemonic.se (localhost [IPv6:::1]) by mail.daemonic.se (Postfix) with ESMTP id 4BLBqd0xRqz3mjt; Mon, 3 Aug 2020 22:09:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=daemonic.se; h= content-transfer-encoding:content-language:content-type :content-type:in-reply-to:mime-version:user-agent:date:date :message-id:from:from:references:subject:subject:received :received; s=20151023; t=1596492539; bh=EqbV6kqs54KpGpcByiZ6QeA7 t9gTo/v6iBczUa3hSQI=; b=WHOwWIhXyitXU0XNz4fEWcwhpqtlim26pqVFR/1K GPteWCbd4P8Cu/4EhDRwPK+pJpmUlxDAQUoLqbLILl4My70JT7tzuMZWuwVLM5dV hsB1vah7tcRqcfuEQwMLj9zAD6JRd52eljh2VLh4+xFLfmzznuD3OLEsJBcfDeAk Lm8= X-Virus-Scanned: amavisd-new at daemonic.se Received: from mail.daemonic.se ([127.0.0.1]) (using TLS with cipher ECDHE-RSA-AES128-GCM-SHA256) by cid.daemonic.se (mailscanner.daemonic.se [127.0.0.1]) (amavisd-new, port 10587) with ESMTPS id fuu2q8RowrIy; Mon, 3 Aug 2020 22:08:59 +0000 (UTC) Received: from vivi.daemonic.se (vivi.daemonic.se [IPv6:2001:470:dca9:1200::4]) by mail.daemonic.se (Postfix) with ESMTPSA id 4BLBqb3DNkz3lbm; Mon, 3 Aug 2020 22:08:59 +0000 (UTC) Subject: Re: Recent libX11 update broke emacs To: Kevin Oberman , "freebsd-x11@freebsd.org" , emacs@freebsd.org References: From: Niclas Zeising Message-ID: <3fd8de9f-5746-1216-6047-af576d851b1a@daemonic.se> Date: Tue, 4 Aug 2020 00:08:58 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4BLBqn22ySz4Rnp X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=daemonic.se header.s=20151023 header.b=WHOwWIhX; dmarc=pass (policy=none) header.from=daemonic.se; spf=pass (mx1.freebsd.org: domain of zeising@daemonic.se designates 2607:f740:d:20::25 as permitted sender) smtp.mailfrom=zeising@daemonic.se X-Spamd-Result: default: False [-3.60 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[daemonic.se:s=20151023]; NEURAL_HAM_MEDIUM(-1.03)[-1.032]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-0.97)[-0.973]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[daemonic.se:+]; DMARC_POLICY_ALLOW(-0.50)[daemonic.se,none]; NEURAL_HAM_SHORT(-0.60)[-0.596]; FREEMAIL_TO(0.00)[gmail.com,freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:36236, ipnet:2607:f740:d::/48, country:US]; TAGGED_FROM(0.00)[freebsd]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.33 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, 03 Aug 2020 22:09:10 -0000 On 2020-08-03 19:07, Kevin Oberman wrote: > This is a weird problem and I'm uncertain if it is in libW11, x11-server, > or emacs. As a result, I'm crossposting to both lists. > > Yesterday, after upgrading libX11 and x11-server, I could no longer run > Emacs to an X display. It crashed quickly with a segmentation error in the > pthread library. Oddly, I could run it to my local xserver from a remote > system. Where does the segfault occur before entering pthreads? > Rolling back the x11 server did not help nor did rolling back libX11 or > even both of them. I had to roll back libX11 first and build the server > with the old libX11. Rebuilding emacs with the new ports made no difference. Which version of the server did you build? The patch to xorg-server is trivial, just switching out malloc for calloc have the memory 0 initialized. The patch to libX11 is rather more involved. It is possible that someone accidentally changed the ABI of libX11, I guess. What happens if you use the version with just the security fixes (the version I committed first, and that was merged to the Q3 branch.) > > Since the old libX11 contains a very serious vulnerability, I really hate > to leave it this way, but I also have a hard time getting anything done > without emacs. Nothing other than emacs seems to have a problem with this There is one commit after libX11 1.6.10, that takes care of a regression. Can you apply https://gitlab.freedesktop.org/xorg/lib/libx11/-/commit/93fce3f4e79cbc737d6468a4f68ba3de1b83953b on top of the libX11 1.6.10 update and see if that fixes anything? Regards -- Niclas