From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#38748: 28.0.50; crash on MacOS 10.15.2 Date: Sat, 11 Jan 2020 13:59:20 +0000 Message-ID: <20200111135920.GB40597@breton.holly.idiocy.org> References: <834kxej6lc.fsf@gnu.org> <8336cpbtzh.fsf@gnu.org> <83sgkp9uh9.fsf@gnu.org> <834kx3af7i.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="49742"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 38748@debbugs.gnu.org, rpluim@gmail.com, andreyk.mad@gmail.com, jguenther@gmail.com To: Pip Cet Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 11 15:01:54 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iqHJN-0000fI-Ba for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Jan 2020 15:00:21 +0100 Original-Received: from localhost ([::1]:57808 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iqHJK-0001nK-Pl for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Jan 2020 09:00:18 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47490) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iqHJ5-0001mz-Rq for bug-gnu-emacs@gnu.org; Sat, 11 Jan 2020 09:00:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iqHJ4-0000vn-K2 for bug-gnu-emacs@gnu.org; Sat, 11 Jan 2020 09:00:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49609) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iqHJ4-0000t9-Dx for bug-gnu-emacs@gnu.org; Sat, 11 Jan 2020 09:00:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iqHJ4-0006I0-BF for bug-gnu-emacs@gnu.org; Sat, 11 Jan 2020 09:00:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Jan 2020 14:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38748 X-GNU-PR-Package: emacs Original-Received: via spool by 38748-submit@debbugs.gnu.org id=B38748.157875117224100 (code B ref 38748); Sat, 11 Jan 2020 14:00:02 +0000 Original-Received: (at 38748) by debbugs.gnu.org; 11 Jan 2020 13:59:32 +0000 Original-Received: from localhost ([127.0.0.1]:55582 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iqHIZ-0006Ge-KW for submit@debbugs.gnu.org; Sat, 11 Jan 2020 08:59:31 -0500 Original-Received: from mail-wm1-f53.google.com ([209.85.128.53]:33357) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iqHIX-0006GR-6n for 38748@debbugs.gnu.org; Sat, 11 Jan 2020 08:59:29 -0500 Original-Received: by mail-wm1-f53.google.com with SMTP id d139so6349138wmd.0 for <38748@debbugs.gnu.org>; Sat, 11 Jan 2020 05:59:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=7o/43ETA9U5M2N8w8N68KlPWn/vy8TeuxX1g6dkBHiE=; b=VBvgPpCZPz0OQArmLtBRidWjEabZX/qv1yBb+xmKql5cto1SJcTiE1m3TBV4jx74Ln MoDsIDIF07jPEMgSn7gxoCa/S9ioozydzCqlVP+GutwBEVLoiBp6SVML8r+a9+8Iy4SA 8/IP9rOEmo54k62x29TgdgrAfW3GeCchjCldTrDPNFiQgmhhjVn+3lS3y2HjsjHkDtd1 aE9y1zXSpysox++fp3fv/Fs52uXC30NjmGXRxJGG0Upqf4lSbLgyRVBy83+2WITofKD5 fB/rDsVIo8ZOvJ3brlOI/xko95yEIftnasPdR+EEvtGEQ81Uq5atbk1SYaFzxphvsMNS LN4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to; bh=7o/43ETA9U5M2N8w8N68KlPWn/vy8TeuxX1g6dkBHiE=; b=MZXYtRysAobpJjfwxEHoP6JAylfQLC5obsLJq1yzfBsQl62id0dijztI0QK+SW62zz PsMXGGLyDTR13W86rG+cZG37XgiMESbXIYEDshwJ+zCHvVrJVkWSkSCtPxiEGIitFu8G mf2lcB+8UE+FZacrTiU+Gt1T/veRxd0Hr72615clift4Sqy1Cz2hpvWuxn6vRCogolsq +hnjnVV1X4gsM6kIAW2kMDeRNSbMwNUFYj89Zo2i54RRi3JmOvGiLMPsHbWDcpY1ir5g Hj2FKXPsJAjOEl5s0ysVEWja9he1kn72Vl9jfYR5vH2gefUD3aAhbnAzf2mEheJoHxwD pJEw== X-Gm-Message-State: APjAAAUybtVCI0rElraRufoMr4x1tkpozol2DTBkQj5AcCjQsuX/L6Yd M9VsXJ7DyyJD9g9MQs2qVDo= X-Google-Smtp-Source: APXvYqzrWNFTcaz6dJ4IgtJIwAAXDBqcYlVseM7fzQjBA1rJliORhqQ9EDN1TGGYZfkCJ1WB8MPRoQ== X-Received: by 2002:a05:600c:22c8:: with SMTP id 8mr9816946wmg.178.1578751163315; Sat, 11 Jan 2020 05:59:23 -0800 (PST) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-3181-38ae-3880-6acc.holly.idiocy.org. [2001:8b0:3f8:8129:3181:38ae:3880:6acc]) by smtp.gmail.com with ESMTPSA id t5sm6520451wrr.35.2020.01.11.05.59.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Jan 2020 05:59:22 -0800 (PST) Content-Disposition: inline In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:174480 Archived-At: On Fri, Jan 10, 2020 at 09:22:30AM +0000, Pip Cet wrote: > On Fri, Jan 10, 2020 at 8:27 AM Eli Zaretskii wrote: > > What do you mean by "secondary thread"? > > It's my impression that macOS forces us to run in several threads, > even though we don't really want to do so. For example, changeFont in > nsterm.m appears not to assume it's run on the main thread, but calls > build_string, which sounds dangerous to me. What makes you think it’s assuming it may not be run on the main thread? macOS does set up several threads, but it doesn’t force any of your code to run in arbitrary threads. One of the big TODOs in the NS port is making code that may be called from lisp safe to run in any thread because at the moment it all assumes it’s running in a single thread, but lisp can call from any lisp thread (and then Emacs crashes). -- Alan Third