GNU bug report logs - #57267
28.1; crash when loading too many images on macOS

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: james@HIDDEN; dated Thu, 18 Aug 2022 00:39:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Changed bug title to '28.1; crash when loading too many images on macOS' from '28.1; emacs crashes when loading too many images' Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Removed tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 57267 <at> debbugs.gnu.org:


Received: (at 57267) by debbugs.gnu.org; 23 Aug 2022 05:10:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 23 01:10:06 2022
Received: from localhost ([127.0.0.1]:42250 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oQMAw-00023m-Nu
	for submit <at> debbugs.gnu.org; Tue, 23 Aug 2022 01:10:06 -0400
Received: from mail-ed1-f48.google.com ([209.85.208.48]:46593)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1oQMAr-00022y-8W
 for 57267 <at> debbugs.gnu.org; Tue, 23 Aug 2022 01:10:05 -0400
Received: by mail-ed1-f48.google.com with SMTP id s11so16516099edd.13
 for <57267 <at> debbugs.gnu.org>; Mon, 22 Aug 2022 22:10:01 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc;
 bh=1AKHp/NJ35pGV10A5N4SnK+mXIsMOwIIUZinEp9iFHQ=;
 b=CQAx5eXEvcU+KmFDwT62Cyv4rBWoI1VIGiMCsyK1nYPcXcMPFDJbrneklxLTG4kb/t
 6MnXilgDeoLNuGkOg253KFTXywQFFLe7zojmZyEvjhi+fvzymjkFXM2bj53rDMDhG8tJ
 D5WZKhNDtoUyAfIwTLYLQtSLRj7mHb75jnPRIl+3q+Za7gyWn7Dsu2ojP3qZfbnsNCAV
 5trOaPmGffzBcNlQK7vcOMF/4MUEOs9Bdkv1xOQ6HNg19WLSLYVjqe/IOMtVl0W+yKDk
 tXYj9INLQ9/ekpNy6npVdJ4C6AOVdD7AcYUMyLlk+qAumdVIw/pKxVpOLvZ4vaRvCmEN
 M5cA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc;
 bh=1AKHp/NJ35pGV10A5N4SnK+mXIsMOwIIUZinEp9iFHQ=;
 b=8RbtGjp1djG03aFUPfLHLpA9kF4yEindtZSph0pdX+Tf3lL7CPjiu+9imHeK4PVaVd
 CHyPNhWVLTEq1C31YlT33JuXlNhxiY4hPtWoai6tYXvl4CmkW01b9PbXdeaNiIaRjL8Q
 CN7KGi1p2pjkTESoyEX4yKmwSgnM8A/Lx+BDhwes9qJKOkuNLSr/27iR61DeiaQzOgT/
 yugzRdCmtXnRIg7/zz4cyCm6bmcdpBk45NP8h2n68Ex/UCvweFSC2g4F+ZTUdpfJ2FXn
 /2gYd+7oDPmpRBUbfpCtG+gUK4zhIQE5Mmdm0tMEtqgGfkxmn7rdxHcs1ZVcbBEa1dlQ
 q7Ww==
X-Gm-Message-State: ACgBeo1h0BNqeh7hbp/MMiRa+i7/jVl001xUgcumelHXV64y+o320Oq9
 zhQOLewHrnvNxg8JGKFrd5WvQPgEDFs=
X-Google-Smtp-Source: AA6agR5Qg6eAIijppAuJP5hVqK35ek4fRIfiBbLMcwdRxb6Qn8+QbxTv/sn4C+1AYQxp6FufP5LnBA==
X-Received: by 2002:a05:6402:25c6:b0:43b:7797:d953 with SMTP id
 x6-20020a05640225c600b0043b7797d953mr2090366edb.254.1661231394996; 
 Mon, 22 Aug 2022 22:09:54 -0700 (PDT)
Received: from Mini.fritz.box (pd9e36133.dip0.t-ipconnect.de. [217.227.97.51])
 by smtp.gmail.com with ESMTPSA id
 b93-20020a509f66000000b00445a06b6920sm786330edf.17.2022.08.22.22.09.53
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 22 Aug 2022 22:09:54 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: james@HIDDEN
Subject: Re: bug#57267: 28.1; emacs crashes when loading too many images
In-Reply-To: <E29A4796-836E-4A70-B6B3-84064966AA08@HIDDEN>
 (james@HIDDEN's message of "Sun, 21 Aug 2022 17:21:10 -0400")
References: <B1DA1052-75FD-45F6-9759-43ABB9C0C4E2@HIDDEN>
 <83v8qqawsh.fsf@HIDDEN>
 <CE82A2A1-035F-435F-B408-84B6B6563031@HIDDEN>
 <83a681fk6i.fsf@HIDDEN>
 <E6EC8DC3-9CE0-4648-9B34-26820059115B@HIDDEN>
 <837d34g4l7.fsf@HIDDEN>
 <4B3965F5-E6E3-489A-BCA8-A292387A5AF9@HIDDEN>
 <m21qtcitvi.fsf@HIDDEN> <m2y1vkhf50.fsf@HIDDEN>
 <99A661F2-C12C-4F15-BB17-D23E28783548@HIDDEN>
 <m2mtbz8luj.fsf@HIDDEN>
 <FF5001F4-856C-4DC7-9F38-4CCB9B3A4C06@HIDDEN>
 <m2zgfy6u3y.fsf@HIDDEN>
 <E29A4796-836E-4A70-B6B3-84064966AA08@HIDDEN>
Date: Tue, 23 Aug 2022 07:09:52 +0200
Message-ID: <m2r1175yvz.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 57267
Cc: 57267 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

james@HIDDEN writes:

>
>> I'd personally give jpeginfo a try.  It's cheap.  Just 'brew install'
>> it.
>
> All the jpegs were valid.

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57267; Package emacs. Full text available.

Message received at 57267 <at> debbugs.gnu.org:


Received: (at 57267) by debbugs.gnu.org; 21 Aug 2022 21:21:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 21 17:21:24 2022
Received: from localhost ([127.0.0.1]:36957 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oPsNo-0000rF-Db
	for submit <at> debbugs.gnu.org; Sun, 21 Aug 2022 17:21:24 -0400
Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:39523)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <james@HIDDEN>) id 1oPsNj-0000qy-HN
 for 57267 <at> debbugs.gnu.org; Sun, 21 Aug 2022 17:21:23 -0400
Received: from compute4.internal (compute4.nyi.internal [10.202.2.44])
 by mailout.west.internal (Postfix) with ESMTP id CDF1132003D3;
 Sun, 21 Aug 2022 17:21:11 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute4.internal (MEProxy); Sun, 21 Aug 2022 17:21:12 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jojojames.com;
 h=cc:cc:content-transfer-encoding:content-type:date:date:from
 :from:in-reply-to:in-reply-to:message-id:mime-version:references
 :reply-to:sender:subject:subject:to:to; s=fm3; t=1661116871; x=
 1661203271; bh=b7YpscoGrHkLIAML+rZW+9QyJjlIqt8zcgbqI8e74vg=; b=d
 MgWnOBiwg4JnsLDgUrS3/Z4kbyeVaWfO2/uPvKn3euU/ub8qKthi6YMgcw9++yPe
 IolP+Yehi+PPYx/+oJYqqi7Xqlh4S8tBXjTDlO++yRmc9wjNjy3L1KVy/MrGMRiJ
 BvpmHS4ZJMofY6Uigu90DFue0uO0HL9vre2miP32r33LWV4iEQEu/LFGsXlVcr8/
 9vd9dm5NeJ/LgF/Bb5y34IMQeNZkOfZkvKwnuPW53vA1vdOIGzQ6ItVyKre52elM
 XTknP/urpCG0NR63w4FfFHf8CbhtsNQ+A6oc8BicQQumtBce52+INXLd5PDPBdzU
 0EIP4h8g35Q7x15kVSIKw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:date:date:feedback-id:feedback-id:from:from
 :in-reply-to:in-reply-to:message-id:mime-version:references
 :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy
 :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1661116871; x=
 1661203271; bh=b7YpscoGrHkLIAML+rZW+9QyJjlIqt8zcgbqI8e74vg=; b=p
 pBVkAslBugdXn1UsVYChLggJ3hpuwJaK5LRPsZVB6K7ykMLqki/z9IjOr0REdfOg
 +DO+xWCmzsAwKP2f9GMPOvK246eCH1GxktWQULqXV3lUQUxg0oZJ89PqGX8eNDIJ
 F2sNcZb6fmICR1wzrnM76emc1dNihYwYeMIVAnhAVXUEb1gV2IulwF2ulnuys/jc
 3T7LcDFfal4zo+H0G6dvkUQoB9jF3pg1wV44xTCAP0Po7u0tCSOowbXtnIgwH1uJ
 5+GjVSfUwx4yoCh1bLfG8SwuHpn9jUOOjUOycrwK6aysvDc1rGGrz8mYHJRLrcJf
 zFxJRVs6uvZewsCRf9f0g==
X-ME-Sender: <xms:x6ECY1Lo3AYRwse-wAGwiGw5kk3-3hjGPzsuEdij_Er0_Dmna3N2Zw>
 <xme:x6ECYxKzVvTHbpxSnHS-GFbdv2b0UvOp4CKcFSSjIhKsrFgqDl4GjNxHhshRSgVtr
 OtJIF9b1Or8nOhDRQ>
X-ME-Received: <xmr:x6ECY9vCxJXPXWtXhIebOo8vDZ5DwJfkj2jX336mf26aOSDpyfH-e7loRgHlgIrX-1JWuWAU6FDeYECmv1NuKXpBfTndw23ssqm7HACbnRthGmIs-RQE-Q>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdeihedgudeitdcutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh
 necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd
 enucfjughrpegtggfuhfgjffevgffkfhfvofesthhqmhdthhdtjeenucfhrhhomhepjhgr
 mhgvshesjhhojhhojhgrmhgvshdrtghomhenucggtffrrghtthgvrhhnpeekgeevtdevge
 eileegfeefuddtfeekveehgfeuffeuleeuledttdeiteeggfekgeenucevlhhushhtvghr
 ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjrghmvghssehjohhjohhjrg
 hmvghsrdgtohhm
X-ME-Proxy: <xmx:x6ECY2Yln1ydORk3pa0mrWU7IfQDmJ9Atzr1bHWs-HpO43FQf1Sptg>
 <xmx:x6ECY8ZUqJV1YmGng30jgNkG40BThsNp74qQ0nwsV6ulKi9argKzAw>
 <xmx:x6ECY6CYRFCichcxciEZrbZvSgArLYtmML2GPC5G6LLDKJw7lhSgDw>
 <xmx:x6ECY3w306W-VXWKqa7PXHhFSOEiIFCDy0x6zhnMX3e0dvtqYn_0uA>
Feedback-ID: i4b00421f:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun,
 21 Aug 2022 17:21:10 -0400 (EDT)
Content-Type: text/plain;
	charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\))
Subject: Re: bug#57267: 28.1; emacs crashes when loading too many images
From: james@HIDDEN
In-Reply-To: <m2zgfy6u3y.fsf@HIDDEN>
Date: Sun, 21 Aug 2022 17:21:10 -0400
Content-Transfer-Encoding: quoted-printable
Message-Id: <E29A4796-836E-4A70-B6B3-84064966AA08@HIDDEN>
References: <B1DA1052-75FD-45F6-9759-43ABB9C0C4E2@HIDDEN>
 <83v8qqawsh.fsf@HIDDEN> <CE82A2A1-035F-435F-B408-84B6B6563031@HIDDEN>
 <83a681fk6i.fsf@HIDDEN> <E6EC8DC3-9CE0-4648-9B34-26820059115B@HIDDEN>
 <837d34g4l7.fsf@HIDDEN> <4B3965F5-E6E3-489A-BCA8-A292387A5AF9@HIDDEN>
 <m21qtcitvi.fsf@HIDDEN> <m2y1vkhf50.fsf@HIDDEN>
 <99A661F2-C12C-4F15-BB17-D23E28783548@HIDDEN>
 <m2mtbz8luj.fsf@HIDDEN>
 <FF5001F4-856C-4DC7-9F38-4CCB9B3A4C06@HIDDEN>
 <m2zgfy6u3y.fsf@HIDDEN>
To: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
X-Mailer: Apple Mail (2.3654.120.0.1.13)
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 57267
Cc: 57267 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> I'd personally give jpeginfo a try.  It's cheap.  Just 'brew install'
> it.

All the jpegs were valid.

> On Aug 21, 2022, at 1:30 AM, Gerd M=C3=B6llmann =
<gerd.moellmann@HIDDEN> wrote:
>=20
> james@HIDDEN writes:
>=20
>>=20
>>> Could it be that one or more jpegs of yours is invalid in some way?
>> Maybe you could check this with the 'jpeginfo' utitlity.  I've never
>> used it myself, because I don't have a use for it, but from what I =
read,
>> it might be able to detect at least some error cases.  Maybe it's =
worth
>> trying.
>>=20
>> Do you think that would lead to a crash every time? My crashes are
>> very inconsistent.
>=20
> I can't really answer that question because, as a starter, I don't =
even
> know what AppleVPA is doing when it crashes, and there's no way to =
find
> out, AFAIK.  In general, with multi-threading, ASLR, and whatnot, =
things
> tend to not behave consistently quite frequently, at least in my
> experience.
>=20
> I'd personally give jpeginfo a try.  It's cheap.  Just 'brew install'
> it.
>=20
>>> Another idea might be to try and install an external jpeg library
>> (libjpeg I presume), and configure Emacs to use it.  Alas, this =
doesn't
>> seem to work on my M1 Mac, but maybe it does on your x86_64 system.
>>=20
>> Can you point me to some documentation for that?
>=20
> I can't find documentation for this.  I guess I only "know" about this
> because I added it in 1998, according to the ChangeLog, which must be =
a
> lie :-).
>=20
> Anyways.  On my system, I just did 'brew install libjpeg' and then
> './configure'.  The file config.log showed that configure was trying =
to
> use libjpeg, but didn't like it for some reason I don't remember.
>=20
> BTW, Homebrew also has other jpeg libs ('brew search jpeg' and so on),
> but I didn't try them all.  As I mentioned, I don't do much with =
images
> myself.
>=20
> Maybe it's also worth asking an help-gnu-emacs, if this doesn't work.
> Or someone reading this knows more about this topic.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57267; Package emacs. Full text available.

Message received at 57267 <at> debbugs.gnu.org:


Received: (at 57267) by debbugs.gnu.org; 21 Aug 2022 05:42:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 21 01:42:58 2022
Received: from localhost ([127.0.0.1]:33681 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oPdje-00075U-EI
	for submit <at> debbugs.gnu.org; Sun, 21 Aug 2022 01:42:58 -0400
Received: from mail-ed1-f43.google.com ([209.85.208.43]:36604)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1oPdjZ-00075D-BW
 for 57267 <at> debbugs.gnu.org; Sun, 21 Aug 2022 01:42:56 -0400
Received: by mail-ed1-f43.google.com with SMTP id x21so10114876edd.3
 for <57267 <at> debbugs.gnu.org>; Sat, 20 Aug 2022 22:42:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc;
 bh=ycv0O6YqCOWv+mOIRVPU4UwtUUd7vg6BQvUEDI8PRqQ=;
 b=Ju9HvX/wY8dmRZjg3NXhGH2yOzhYeFWGo2ZIQysmDKtsVVv1z0S7PTTmiGj8TMxkBc
 kwRJI3EFSaajQr/OKeR7+KGh4WHVEdESVqn25Rpvjwee16aOFZ9cksmqBNUDzmF2vsjD
 NHO66t68bClaiYL9ELQPrd7JSj2ndpIWdJtrG1nGxbK2feLdiqatpc/+OCHUc7tafWQ8
 CnRGvbg0djQu4BKbCMQ67RLvTOHnTn9aIkhxq9EDwwjWuKbMMbo8JmzhvClvLgIaiorI
 tHtguXc0XrM64ahLCERNOPG8XCREtkesyOndFhJ4YK5QGUgL8WkkqNgB+UQvGCweVRbp
 5h5A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc;
 bh=ycv0O6YqCOWv+mOIRVPU4UwtUUd7vg6BQvUEDI8PRqQ=;
 b=roykiU4lOvhle3n38OilG+DNmkNsk9hjXAK+NMLd+3E5OMt/LcAsm3lCY6q8yDekUp
 lKNZ9O9y3IhK3wgGC51bMycr5mXb4uKbtQGCKr6V3rN87dZRPjQ3O/Bc7+l9bIsBSy9S
 Hs0rPPCpeBhcju/IatBjxIBntZ9OlklQ6f3lB6KHpvb1DzIJP5ENrW6uy+fujbq3mmqj
 Pss8tZBYefjwOMhw6RqOXffeHA8tpWEnU9EPxJwEObowYDPOzOmIWxb8UHAI1ncu5rdy
 Iu2ISoV3AhScT15sdka49T79xlgiVlmFXcMjfIx8SYH/NukVe1+CwYpFf1y1jOR4+Fuo
 ZUYQ==
X-Gm-Message-State: ACgBeo2H8tMpOeRVvV+7o+gqO0FPqEMUK2NiHOrL9L8poIJjX/QBguD1
 dVE3L89LG0QPZas9D+WtLZw=
X-Google-Smtp-Source: AA6agR6mD4mgMvRi6b3Xxi5e8sGWEXJwDZ2YleYhG33sYAcL0gizoHoQZs0MPq4qJS3fxemeV/6IgQ==
X-Received: by 2002:a05:6402:428e:b0:443:8279:13ea with SMTP id
 g14-20020a056402428e00b00443827913eamr11473639edc.294.1661060567473; 
 Sat, 20 Aug 2022 22:42:47 -0700 (PDT)
Received: from Mini.fritz.box (p54b0cf60.dip0.t-ipconnect.de. [84.176.207.96])
 by smtp.gmail.com with ESMTPSA id
 kz9-20020a17090777c900b0072b3464c043sm4396913ejc.116.2022.08.20.22.42.46
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 20 Aug 2022 22:42:46 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: james@HIDDEN
Subject: Re: bug#57267: 28.1; emacs crashes when loading too many images
In-Reply-To: <60F7E2A3-D597-4ABD-9BCF-717B1BE0ECF9@HIDDEN>
 (james@HIDDEN's message of "Sat, 20 Aug 2022 12:29:34 -0400")
References: <B1DA1052-75FD-45F6-9759-43ABB9C0C4E2@HIDDEN>
 <83v8qqawsh.fsf@HIDDEN>
 <CE82A2A1-035F-435F-B408-84B6B6563031@HIDDEN>
 <83a681fk6i.fsf@HIDDEN>
 <E6EC8DC3-9CE0-4648-9B34-26820059115B@HIDDEN>
 <837d34g4l7.fsf@HIDDEN>
 <4B3965F5-E6E3-489A-BCA8-A292387A5AF9@HIDDEN>
 <m21qtcitvi.fsf@HIDDEN> <m2y1vkhf50.fsf@HIDDEN>
 <99A661F2-C12C-4F15-BB17-D23E28783548@HIDDEN>
 <m2mtbz8luj.fsf@HIDDEN>
 <FF5001F4-856C-4DC7-9F38-4CCB9B3A4C06@HIDDEN>
 <60F7E2A3-D597-4ABD-9BCF-717B1BE0ECF9@HIDDEN>
Date: Sun, 21 Aug 2022 07:42:45 +0200
Message-ID: <m2v8qm6tka.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 57267
Cc: 57267 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

james@HIDDEN writes:

> This is what I get with the Emacs.app binary: (upon startup)
>
> src/ $ lldb ../nextstep/Emacs.app/Contents/MacOS/Emacs 
> Emacs debugging support has been installed.
> (lldb) target create "../nextstep/Emacs.app/Contents/MacOS/Emacs"
> Current executable set to '/Users/james/Code/emacs/nextstep/Emacs.app/Contents/MacOS/Emacs' (x86_64).
> (lldb) r
> Process 5114 launched: '/Users/james/Code/emacs/nextstep/Emacs.app/Contents/MacOS/Emacs' (x86_64)
> Warning: Lisp directory 'Contents/Resources/lisp': No such file or
> directory

Ok, that's a relative path, so I think it expects to be started with
current directory being nextstep/Emacs.app.

> =================================================================
> ==5114==ERROR: AddressSanitizer: dynamic-stack-buffer-overflow on address 0x7ffeefbfe76e at pc 0x000102ee74d3 bp 0x7ffeefbfd9b0 sp
> 0x7ffeefbfd178
> WRITE of size 25 at 0x7ffeefbfe76e thread T0
>     #0 0x102ee74d2 in __asan_memcpy+0x262 (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x424d2)
>     #1 0x1008b3733 in doprnt doprnt.c:456
>     #2 0x1008b5351 in esprintf doprnt.c:551
>     #3 0x1007d2a43 in dir_warning lread.c:5385
>     #4 0x1007d1b53 in load_path_check lread.c:5145
>     #5 0x1007d1631 in init_lread lread.c:5338
>     #6 0x1004911cd in main emacs.c:2151
>     #7 0x7fff204bff3c in start+0x0 (libdyld.dylib:x86_64+0x15f3c)
>
> Address 0x7ffeefbfe76e is located in stack of thread T0 at offset 718 in frame
>     #0 0x1008b512f in esprintf doprnt.c:547
>
>   This frame has 1 object(s):
>     [32, 56) 'ap' (line 549) <== Memory access at offset 718 overflows this variable
> HINT: this may be a false positive if your program uses some custom stack unwind mechanism, swapcontext or vfork
>       (longjmp and C++ exceptions *are* supported)
> SUMMARY: AddressSanitizer: dynamic-stack-buffer-overflow (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x424d2) in __asan_memcpy+0x262
> Shadow bytes around the buggy address:
>   0x1fffddf7fc90: 00 00 00 00 f1 f1 f1 f1 00 00 00 f3 f3 f3 f3 f3
>   0x1fffddf7fca0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>   0x1fffddf7fcb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>   0x1fffddf7fcc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>   0x1fffddf7fcd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> =>0x1fffddf7fce0: ca ca ca ca 00 00 00 00 00 00 00 00 00[06]cb cb
>   0x1fffddf7fcf0: cb cb cb cb f1 f1 f1 f1 00 00 00 00 f2 f2 f2 f2
>   0x1fffddf7fd00: 00 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00
>   0x1fffddf7fd10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>   0x1fffddf7fd20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>   0x1fffddf7fd30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

And that's how a real ASAN error looks like.  ASAN has detected a
buffer-overflow in doprnt.  I'll try to debug this later if I don't
forget.

Thanks for the report!




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57267; Package emacs. Full text available.

Message received at 57267 <at> debbugs.gnu.org:


Received: (at 57267) by debbugs.gnu.org; 21 Aug 2022 05:31:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 21 01:31:10 2022
Received: from localhost ([127.0.0.1]:33675 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oPdYE-0006q1-6J
	for submit <at> debbugs.gnu.org; Sun, 21 Aug 2022 01:31:10 -0400
Received: from mail-ej1-f54.google.com ([209.85.218.54]:45830)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1oPdY9-0006pT-8d
 for 57267 <at> debbugs.gnu.org; Sun, 21 Aug 2022 01:31:08 -0400
Received: by mail-ej1-f54.google.com with SMTP id gt3so3204334ejb.12
 for <57267 <at> debbugs.gnu.org>; Sat, 20 Aug 2022 22:31:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc;
 bh=VfNLscocsD5y9hlfWkww4NcRUz6GZgiTECoVagzscas=;
 b=RDz0bFR6lkMNCp8y4sKQgRNZOAT1NhJONbp8JOsobKMFVynNFGH13NEVnQlsQV1LGP
 17xpi0j83ucGf37HZX0d2nOGKVejU5tmfLEVWLg1IoDl+4kWMmi4Yni0b8H1d1Pe1rN3
 wAr1y2wNnv3tQ9fJyTPgPUGCY8o3/b8qoZ9VEvz9hDU56k/8ISjRYAwoZwc0anSTWdzY
 ylkWWBLdmF1QSnlNKq0Hff/MdZkLDK1WL0I9DKNr79OuqYTdWHea0kGwRmxk3RAR+S/F
 oHNHwLeAc/bcZj/UNB6+oE/x4c/SlHgeqK1HL37g060pBJuKDOdP5bRm/dNTHkrRMVCW
 etRA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc;
 bh=VfNLscocsD5y9hlfWkww4NcRUz6GZgiTECoVagzscas=;
 b=lv25Rhbtxl3muISSjviBL1ootVLj0pCXENWW0D0nUBTfPKqDuXuYk98Ticraueulrt
 Ml6Leh4IdF8b/BqZBw82+sY3Fi9E56VG/Su3dda5jPWw57iIoCwZDjqTE0cnTESpZMDw
 UmwTtpj0gU7YhIgQz08kV6B8d8PRmkJf5xk9Kd2k5KT2eDepfNurpBM/w5bS7Ba8g8au
 FSwV8yq6ZgS2wzr+AMeMf5kRtmAyO8UROELHYdR9g5WmiT7MswvKKKvrY19gNDQYkFoN
 XJj+C5CfPi6AgO/0k/ZAOrwkFzFupz+oVg/QWgzpIGUd0FMop1ZcSBRgQydbLTTHO8Aq
 Tk1w==
X-Gm-Message-State: ACgBeo2oAWRW23Pxu3Aq+RufjtCfsUUTXuwxNbC670w6fE/Stkz8b6qo
 +BORKSac/eb3dSO0AcZpNC1VFKhhOnEgqA==
X-Google-Smtp-Source: AA6agR4WVHkqmsXUt4vq5yeaie2i3Ra8qZGE0tgYhrlBRpDdJVRSmHjb39ptpq1N8x5jIc+cCdCdmg==
X-Received: by 2002:a17:907:b12:b0:73d:5815:2575 with SMTP id
 h18-20020a1709070b1200b0073d58152575mr5400596ejl.173.1661059859070; 
 Sat, 20 Aug 2022 22:30:59 -0700 (PDT)
Received: from Mini.fritz.box (p54b0cf60.dip0.t-ipconnect.de. [84.176.207.96])
 by smtp.gmail.com with ESMTPSA id
 w20-20020a1709060a1400b007303fe58eb2sm4382263ejf.154.2022.08.20.22.30.58
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 20 Aug 2022 22:30:58 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: james@HIDDEN
Subject: Re: bug#57267: 28.1; emacs crashes when loading too many images
In-Reply-To: <FF5001F4-856C-4DC7-9F38-4CCB9B3A4C06@HIDDEN>
 (james@HIDDEN's message of "Sat, 20 Aug 2022 12:23:58 -0400")
References: <B1DA1052-75FD-45F6-9759-43ABB9C0C4E2@HIDDEN>
 <83v8qqawsh.fsf@HIDDEN>
 <CE82A2A1-035F-435F-B408-84B6B6563031@HIDDEN>
 <83a681fk6i.fsf@HIDDEN>
 <E6EC8DC3-9CE0-4648-9B34-26820059115B@HIDDEN>
 <837d34g4l7.fsf@HIDDEN>
 <4B3965F5-E6E3-489A-BCA8-A292387A5AF9@HIDDEN>
 <m21qtcitvi.fsf@HIDDEN> <m2y1vkhf50.fsf@HIDDEN>
 <99A661F2-C12C-4F15-BB17-D23E28783548@HIDDEN>
 <m2mtbz8luj.fsf@HIDDEN>
 <FF5001F4-856C-4DC7-9F38-4CCB9B3A4C06@HIDDEN>
Date: Sun, 21 Aug 2022 07:30:57 +0200
Message-ID: <m2zgfy6u3y.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 57267
Cc: 57267 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

james@HIDDEN writes:

>
>> Could it be that one or more jpegs of yours is invalid in some way?
> Maybe you could check this with the 'jpeginfo' utitlity.  I've never
> used it myself, because I don't have a use for it, but from what I read,
> it might be able to detect at least some error cases.  Maybe it's worth
> trying.
>
> Do you think that would lead to a crash every time? My crashes are
> very inconsistent.

I can't really answer that question because, as a starter, I don't even
know what AppleVPA is doing when it crashes, and there's no way to find
out, AFAIK.  In general, with multi-threading, ASLR, and whatnot, things
tend to not behave consistently quite frequently, at least in my
experience.

I'd personally give jpeginfo a try.  It's cheap.  Just 'brew install'
it.

>> Another idea might be to try and install an external jpeg library
> (libjpeg I presume), and configure Emacs to use it.  Alas, this doesn't
> seem to work on my M1 Mac, but maybe it does on your x86_64 system.
>
> Can you point me to some documentation for that?

I can't find documentation for this.  I guess I only "know" about this
because I added it in 1998, according to the ChangeLog, which must be a
lie :-).

Anyways.  On my system, I just did 'brew install libjpeg' and then
'./configure'.  The file config.log showed that configure was trying to
use libjpeg, but didn't like it for some reason I don't remember.

BTW, Homebrew also has other jpeg libs ('brew search jpeg' and so on),
but I didn't try them all.  As I mentioned, I don't do much with images
myself.

Maybe it's also worth asking an help-gnu-emacs, if this doesn't work.
Or someone reading this knows more about this topic.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57267; Package emacs. Full text available.

Message received at 57267 <at> debbugs.gnu.org:


Received: (at 57267) by debbugs.gnu.org; 20 Aug 2022 16:29:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 20 12:29:45 2022
Received: from localhost ([127.0.0.1]:33433 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oPRLz-0004Q2-Mn
	for submit <at> debbugs.gnu.org; Sat, 20 Aug 2022 12:29:45 -0400
Received: from out2-smtp.messagingengine.com ([66.111.4.26]:44637)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <james@HIDDEN>) id 1oPRLw-0004Pn-4r
 for 57267 <at> debbugs.gnu.org; Sat, 20 Aug 2022 12:29:41 -0400
Received: from compute3.internal (compute3.nyi.internal [10.202.2.43])
 by mailout.nyi.internal (Postfix) with ESMTP id 14B175C0080;
 Sat, 20 Aug 2022 12:29:35 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute3.internal (MEProxy); Sat, 20 Aug 2022 12:29:35 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jojojames.com;
 h=cc:cc:content-type:date:date:from:from:in-reply-to
 :in-reply-to:message-id:mime-version:references:reply-to:sender
 :subject:subject:to:to; s=fm3; t=1661012975; x=1661099375; bh=rm
 A0eyo5Gi1VMklLQLI36dAmkLvIoWLJcrA9VoE+yeY=; b=bd8UqWfB+dR8sTx8xJ
 mzGzswMctL+/APROwIKYZl882WJP/xN8nDmpb8udtcYyDb6gdhxG91A5zXW+J2rq
 wN5tsNA12+6io37EIdsPEGlth/x+jbJo++K5Oda1cAIGkCmfYXdn4ETt4dYbPf/5
 wxsHZfmRJ9CVx0soqSTCc3RI6uelRkmhn30p8N2gM1hnkMzbIVEUAKxcOl75axkF
 3eUmfYm7uzlgPDygFQfc2nPOwxhAdid6mF/lhiymJE/wioGuInwCWKPgs4gOAnXl
 D/Gfh7Wsp98vWcfw4oPXv/RtvQQp13m2CsAHR167nv7yMJi9Jkjx/VGCty/QfYa2
 zVRQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-type:date:date:feedback-id
 :feedback-id:from:from:in-reply-to:in-reply-to:message-id
 :mime-version:references:reply-to:sender:subject:subject:to:to
 :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=
 fm1; t=1661012975; x=1661099375; bh=rmA0eyo5Gi1VMklLQLI36dAmkLvI
 oWLJcrA9VoE+yeY=; b=3aInIookqpqakz4uXoMgrpXnLaw5yvka0NGHS7bnJOJ/
 RQMt2FN8sZuIUNAtarTpcrqGJUXToVHVr0bMi6Y07u41iZoXR3UiYuSWhJVeoAFm
 ktH3rr9GVCcH6D3vczYmpnRFRRx3A7v1h/ppcYSADk99N1yuOP/6tWOl1c5FSHA2
 gZrkIxpsLyzbcU+TJoI4WThxyJgRHLueLPakTL7+gExMlP/9YwL2PVH6MD6LlCBO
 cDRR2NZad+IC36+G7he6vdk7cmyUPOXkNSFIa28JFX3AmGNcG4mZwV2pUI5L/Iui
 fRG2Zx8wuKV1VX6diOoNoACpP0gxqd/lSk7PSRnU0A==
X-ME-Sender: <xms:7gsBYxtnX4LTLfT_tc4L0WJbbgwHh7Gw7xySi6j3Bncfg6Fi5o1_lA>
 <xme:7gsBY6dEG_gXNEcbhB0mIXiPwjZPGE3uBNP1jSPkdKdNRTK06cMyLi1aI2fVVd4QI
 JfD2kNtQhIfpIoIig>
X-ME-Received: <xmr:7gsBY0ydnja9Swltqign-uMlhGMHqAv1iZ46rz671hfV8q8gXrZ0EI4NHnn1Pywy3uXZx7eo79gdZjA84xD2qKslpHfoVP3W560_2M0Cffc2NoDWamGPYA>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdeifedguddtfecutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh
 necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd
 enucfjughrpefhkfgtggfuffgjvefvfhfosegrtdhmrehhtdejnecuhfhrohhmpehjrghm
 vghssehjohhjohhjrghmvghsrdgtohhmnecuggftrfgrthhtvghrnhephfejtdeffeekte
 ffhfekteeitedvleeuueejiedthffggeetleegfeejgfeludfhnecuffhomhgrihhnpegv
 mhgrtghsrdgrphhpnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh
 hfrhhomhepjhgrmhgvshesjhhojhhojhgrmhgvshdrtghomh
X-ME-Proxy: <xmx:7gsBY4OtzvFDpx-oTW8f1fuWB8sv7eeBrKy0_nfPmHbvq7OLU8ZSbQ>
 <xmx:7gsBYx9X62_pu_m5ud5sXaEvztBhRnDJYGrqbWGOGdGC-wm-0V-i3w>
 <xmx:7gsBY4WO9MqN_Wh7w6CJqJk5SAXT26cI7aON9btUZJLQS3jGH2CbvA>
 <xmx:7wsBYznGrhVGzInGA8dXBfdc7b1CzGWzVuFtqi2SFHJw5Itvommddw>
Feedback-ID: i4b00421f:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat,
 20 Aug 2022 12:29:34 -0400 (EDT)
From: james@HIDDEN
Message-Id: <60F7E2A3-D597-4ABD-9BCF-717B1BE0ECF9@HIDDEN>
Content-Type: multipart/alternative;
 boundary="Apple-Mail=_C8F75A14-2E30-49D8-84DD-0D76B2676F64"
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\))
Subject: Re: bug#57267: 28.1; emacs crashes when loading too many images
Date: Sat, 20 Aug 2022 12:29:34 -0400
In-Reply-To: <FF5001F4-856C-4DC7-9F38-4CCB9B3A4C06@HIDDEN>
To: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
References: <B1DA1052-75FD-45F6-9759-43ABB9C0C4E2@HIDDEN>
 <83v8qqawsh.fsf@HIDDEN> <CE82A2A1-035F-435F-B408-84B6B6563031@HIDDEN>
 <83a681fk6i.fsf@HIDDEN> <E6EC8DC3-9CE0-4648-9B34-26820059115B@HIDDEN>
 <837d34g4l7.fsf@HIDDEN> <4B3965F5-E6E3-489A-BCA8-A292387A5AF9@HIDDEN>
 <m21qtcitvi.fsf@HIDDEN> <m2y1vkhf50.fsf@HIDDEN>
 <99A661F2-C12C-4F15-BB17-D23E28783548@HIDDEN>
 <m2mtbz8luj.fsf@HIDDEN>
 <FF5001F4-856C-4DC7-9F38-4CCB9B3A4C06@HIDDEN>
X-Mailer: Apple Mail (2.3654.120.0.1.13)
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 57267
Cc: 57267 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)


--Apple-Mail=_C8F75A14-2E30-49D8-84DD-0D76B2676F64
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

> I don't quite understand.  I've seen to open errors in your log.  Are
you saying that these happen because you started Emacs from src this
time?  FWIW, I don't see differences when starting one or the other.

They were separate issues.

1. 2022-08-19 10:09:53.301888-0400 emacs[92880:17395371] fopen failed =
for data file: errno =3D 2 (No such file or directory) (hmnn?)

^ Just recently saw that in the logs after applying your suggestions.

2. Before (your suggestions), I did this to run emacs:

>> gdb/lldb ../nextstep/Emacs.app/Contents/MacOS/Emacs

After, it crashed on startup every time, so I did instead:

>> gdb/llb emacs





This is what I get with the Emacs.app binary: (upon startup)

src/ $ lldb ../nextstep/Emacs.app/Contents/MacOS/Emacs=20
Emacs debugging support has been installed.
(lldb) target create "../nextstep/Emacs.app/Contents/MacOS/Emacs"
Current executable set to =
'/Users/james/Code/emacs/nextstep/Emacs.app/Contents/MacOS/Emacs' =
(x86_64).
(lldb) r
Process 5114 launched: =
'/Users/james/Code/emacs/nextstep/Emacs.app/Contents/MacOS/Emacs' =
(x86_64)
Warning: Lisp directory 'Contents/Resources/lisp': No such file or =
directory
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D5114=3D=3DERROR: AddressSanitizer: dynamic-stack-buffer-overflow =
on address 0x7ffeefbfe76e at pc 0x000102ee74d3 bp 0x7ffeefbfd9b0 sp =
0x7ffeefbfd178
WRITE of size 25 at 0x7ffeefbfe76e thread T0
    #0 0x102ee74d2 in __asan_memcpy+0x262 =
(libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x424d2)
    #1 0x1008b3733 in doprnt doprnt.c:456
    #2 0x1008b5351 in esprintf doprnt.c:551
    #3 0x1007d2a43 in dir_warning lread.c:5385
    #4 0x1007d1b53 in load_path_check lread.c:5145
    #5 0x1007d1631 in init_lread lread.c:5338
    #6 0x1004911cd in main emacs.c:2151
    #7 0x7fff204bff3c in start+0x0 (libdyld.dylib:x86_64+0x15f3c)

Address 0x7ffeefbfe76e is located in stack of thread T0 at offset 718 in =
frame
    #0 0x1008b512f in esprintf doprnt.c:547

  This frame has 1 object(s):
    [32, 56) 'ap' (line 549) <=3D=3D Memory access at offset 718 =
overflows this variable
HINT: this may be a false positive if your program uses some custom =
stack unwind mechanism, swapcontext or vfork
      (longjmp and C++ exceptions *are* supported)
SUMMARY: AddressSanitizer: dynamic-stack-buffer-overflow =
(libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x424d2) in =
__asan_memcpy+0x262
Shadow bytes around the buggy address:
  0x1fffddf7fc90: 00 00 00 00 f1 f1 f1 f1 00 00 00 f3 f3 f3 f3 f3
  0x1fffddf7fca0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x1fffddf7fcb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x1fffddf7fcc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x1fffddf7fcd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=3D>0x1fffddf7fce0: ca ca ca ca 00 00 00 00 00 00 00 00 00[06]cb cb
  0x1fffddf7fcf0: cb cb cb cb f1 f1 f1 f1 00 00 00 00 f2 f2 f2 f2
  0x1fffddf7fd00: 00 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00
  0x1fffddf7fd10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x1fffddf7fd20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x1fffddf7fd30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07=20
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
  Shadow gap:              cc
2022-08-20 12:28:55.164360-0400 Emacs[5114:17882118] =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
2022-08-20 12:28:55.164418-0400 Emacs[5114:17882118] =3D=3D5114=3D=3DERROR=
: AddressSanitizer: dynamic-stack-buffer-overflow on address =
0x7ffeefbfe76e at pc 0x000102ee74d3 bp 0x7ffeefbfd9b0 sp 0x7ffeefbfd178
2022-08-20 12:28:55.164429-0400 Emacs[5114:17882118] WRITE of size 25 at =
0x7ffeefbfe76e thread T0
2022-08-20 12:28:55.164440-0400 Emacs[5114:17882118]     #0 0x102ee74d2 =
in __asan_memcpy+0x262 =
(libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x424d2)
2022-08-20 12:28:55.164450-0400 Emacs[5114:17882118]     #1 0x1008b3733 =
in doprnt doprnt.c:456
2022-08-20 12:28:55.164461-0400 Emacs[5114:17882118]     #2 0x1008b5351 =
in esprintf doprnt.c:551
2022-08-20 12:28:55.164483-0400 Emacs[5114:17882118]     #3 0x1007d2a43 =
in dir_warning lread.c:5385
2022-08-20 12:28:55.164507-0400 Emacs[5114:17882118]     #4 0x1007d1b53 =
in load_path_check lread.c:5145
2022-08-20 12:28:55.164519-0400 Emacs[5114:17882118]     #5 0x1007d1631 =
in init_lread lread.c:5338
2022-08-20 12:28:55.164529-0400 Emacs[5114:17882118]     #6 0x1004911cd =
in main emacs.c:2151
2022-08-20 12:28:55.164538-0400 Emacs[5114:17882118]     #7 =
0x7fff204bff3c in start+0x0 (libdyld.dylib:x86_64+0x15f3c)
2022-08-20 12:28:55.164549-0400 Emacs[5114:17882118]=20
2022-08-20 12:28:55.164556-0400 Emacs[5114:17882118] Address =
0x7ffeefbfe76e is located in stack of thread T0 at offset 718 in frame
2022-08-20 12:28:55.164565-0400 Emacs[5114:17882118]     #0 0x1008b512f =
in esprintf doprnt.c:547
2022-08-20 12:28:55.164576-0400 Emacs[5114:17882118]=20
2022-08-20 12:28:55.164583-0400 Emacs[5114:17882118]   This frame has 1 =
object(s):
2022-08-20 12:28:55.164593-0400 Emacs[5114:17882118]     [32, 56) 'ap' =
(line 549) <=3D=3D Memory access at offset 718 overflows this variable
2022-08-20 12:28:55.164603-0400 Emacs[5114:17882118] HINT: this may be a =
false positive if your program uses some custom stack unwind mechanism, =
swapcontext or vfork
2022-08-20 12:28:55.164614-0400 Emacs[5114:17882118]       (longjmp and =
C++ exceptions *are* supported)
2022-08-20 12:28:55.164624-0400 Emacs[5114:17882118] SUMMARY: =
AddressSanitizer: dynamic-stack-buffer-overflow =
(libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x424d2) in =
__asan_memcpy+0x262
2022-08-20 12:28:55.164635-0400 Emacs[5114:17882118] Shadow bytes around =
the buggy address:
2022-08-20 12:28:55.164644-0400 Emacs[5114:17882118]   0x1fffddf7fc90: =
00 00 00 00 f1 f1 f1 f1 00 00 00 f3 f3 f3 f3 f3
2022-08-20 12:28:55.164654-0400 Emacs[5114:17882118]   0x1fffddf7fca0: =
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2022-08-20 12:28:55.164664-0400 Emacs[5114:17882118]   0x1fffddf7fcb0: =
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2022-08-20 12:28:55.164673-0400 Emacs[5114:17882118]   0x1fffddf7fcc0: =
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2022-08-20 12:28:55.164682-0400 Emacs[5114:17882118]   0x1fffddf7fcd0: =
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2022-08-20 12:28:55.164693-0400 Emacs[5114:17882118] =3D>0x1fffddf7fce0: =
ca ca ca ca 00 00 00 00 00 00 00 00 00[06]cb cb
2022-08-20 12:28:55.164702-0400 Emacs[5114:17882118]   0x1fffddf7fcf0: =
cb cb cb cb f1 f1 f1 f1 00 00 00 00 f2 f2 f2 f2
2022-08-20 12:28:55.164721-0400 Emacs[5114:17882118]   0x1fffddf7fd00: =
00 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00
2022-08-20 12:28:55.164731-0400 Emacs[5114:17882118]   0x1fffddf7fd10: =
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2022-08-20 12:28:55.164740-0400 Emacs[5114:17882118]   0x1fffddf7fd20: =
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2022-08-20 12:28:55.164750-0400 Emacs[5114:17882118]   0x1fffddf7fd30: =
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2022-08-20 12:28:55.164759-0400 Emacs[5114:17882118] Shadow byte legend =
(one shadow byte represents 8 application bytes):
2022-08-20 12:28:55.164768-0400 Emacs[5114:17882118]   Addressable:      =
     00
2022-08-20 12:28:55.164779-0400 Emacs[5114:17882118]   Partially =
addressable: 01 02 03 04 05 06 07
2022-08-20 12:28:55.164799-0400 Emacs[5114:17882118]   Heap left =
redzone:       fa
2022-08-20 12:28:55.164818-0400 Emacs[5114:17882118]   Freed heap =
region:       fd
2022-08-20 12:28:55.164839-0400 Emacs[5114:17882118]   Stack left =
redzone:      f1
2022-08-20 12:28:55.164848-0400 Emacs[5114:17882118]   Stack mid =
redzone:       f2
2022-08-20 12:28:55.164856-0400 Emacs[5114:17882118]   Stack right =
redzone:     f3
2022-08-20 12:28:55.164864-0400 Emacs[5114:17882118]   Stack after =
return:      f5
2022-08-20 12:28:55.164871-0400 Emacs[5114:17882118]   Stack use after =
scope:   f8
2022-08-20 12:28:55.164878-0400 Emacs[5114:17882118]   Global redzone:   =
       f9
2022-08-20 12:28:55.164885-0400 Emacs[5114:17882118]   Global init =
order:       f6
2022-08-20 12:28:55.164892-0400 Emacs[5114:17882118]   Poisoned by user: =
       f7
2022-08-20 12:28:55.164900-0400 Emacs[5114:17882118]   Container =
overflow:      fc
2022-08-20 12:28:55.164904-0400 Emacs[5114:17882118]   Array cookie:     =
       ac
2022-08-20 12:28:55.164909-0400 Emacs[5114:17882118]   Intra object =
redzone:    bb
2022-08-20 12:28:55.164932-0400 Emacs[5114:17882118]   ASan internal:    =
       fe
2022-08-20 12:28:55.165373-0400 Emacs[5114:17882118]   Left alloca =
redzone:     ca
2022-08-20 12:28:55.165387-0400 Emacs[5114:17882118]   Right alloca =
redzone:    cb
2022-08-20 12:28:55.165397-0400 Emacs[5114:17882118]   Shadow gap:       =
       cc
=3D=3D5114=3D=3DABORTING
(lldb) AddressSanitizer report breakpoint hit. Use 'thread info -s' to =
get extended information about the report.
Process 5114 stopped
* thread #1, queue =3D 'com.apple.main-thread', stop reason =3D =
AddressSanitizer detected: dynamic-stack-buffer-overflow
    frame #0: 0x0000000102ef1dc0 =
libclang_rt.asan_osx_dynamic.dylib`__asan::AsanDie()
libclang_rt.asan_osx_dynamic.dylib`__asan::AsanDie:
->  0x102ef1dc0 <+0>: pushq  %rbp
    0x102ef1dc1 <+1>: movq   %rsp, %rbp
    0x102ef1dc4 <+4>: pushq  %rbx
    0x102ef1dc5 <+5>: pushq  %rax
Target 0: (Emacs) stopped.
(lldb) =20


> On Aug 20, 2022, at 12:23 PM, james@HIDDEN wrote:
>=20
> > Could it be that one or more jpegs of yours is invalid in some way?
> Maybe you could check this with the 'jpeginfo' utitlity.  I've never
> used it myself, because I don't have a use for it, but from what I =
read,
> it might be able to detect at least some error cases.  Maybe it's =
worth
> trying.
>=20
> Do you think that would lead to a crash every time? My crashes are =
very inconsistent.
>=20
> > Another idea might be to try and install an external jpeg library
> (libjpeg I presume), and configure Emacs to use it.  Alas, this =
doesn't
> seem to work on my M1 Mac, but maybe it does on your x86_64 system.
>=20
> Can you point me to some documentation for that?
>=20
>>=20
>> =
--------------------------------------------------------------------------=
-----
>>=20
>> 2022-08-19 10:09:53.301888-0400 emacs[92880:17395371] fopen failed =
for data file: errno =3D 2 (No such file or directory) (hmnn?)
>>=20
>> This time I had to use:
>>=20
>> /Users/james/Code/emacs/src/emacs
>>=20
>> instead of $ lldb ../nextstep/Emacs.app/Contents/MacOS/Emacs (which =
crashed on startup)
>>=20
>=20
> I don't quite understand.  I've seen to open errors in your log.  Are
> you saying that these happen because you started Emacs from src this
> time?  FWIW, I don't see differences when starting one or the other.
>=20
>> On Aug 20, 2022, at 2:34 AM, Gerd M=C3=B6llmann =
<gerd.moellmann@HIDDEN <mailto:gerd.moellmann@HIDDEN>> wrote:
>>=20
>> Could it be that one or more jpegs of yours is invalid in some way?
>> Maybe you could check this with the 'jpeginfo' utitlity.  I've never
>> used it myself, because I don't have a use for it, but from what I =
read,
>> it might be able to detect at least some error cases.  Maybe it's =
worth
>> trying.
>>=20
>> Another idea might be to try and install an external jpeg library
>> (libjpeg I presume), and configure Emacs to use it.  Alas, this =
doesn't
>> seem to work on my M1 Mac, but maybe it does on your x86_64 system.
>>=20
>> In any case, this doesn't look like a problem to me that is caused by
>> Emacs.
>>=20
>>>=20
>>> =
--------------------------------------------------------------------------=
-----
>>>=20
>>> 2022-08-19 10:09:53.301888-0400 emacs[92880:17395371] fopen failed =
for data file: errno =3D 2 (No such file or directory) (hmnn?)
>>>=20
>>> This time I had to use:
>>>=20
>>> /Users/james/Code/emacs/src/emacs
>>>=20
>>> instead of $ lldb ../nextstep/Emacs.app/Contents/MacOS/Emacs (which =
crashed on startup)
>>>=20
>>=20
>> I don't quite understand.  I've seen to open errors in your log.  Are
>> you saying that these happen because you started Emacs from src this
>> time?  FWIW, I don't see differences when starting one or the other.
>=20


--Apple-Mail=_C8F75A14-2E30-49D8-84DD-0D76B2676F64
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" =
class=3D"">&gt;&nbsp;I don't quite understand. &nbsp;I've seen to open =
errors in your log. &nbsp;Are<br class=3D"">you saying that these happen =
because you started Emacs from src this<br class=3D"">time? &nbsp;FWIW, =
I don't see differences when starting one or the other.<div class=3D""><br=
 class=3D""></div><div class=3D"">They were separate issues.</div><div =
class=3D""><br class=3D""></div><div class=3D"">1. 2022-08-19 =
10:09:53.301888-0400 emacs[92880:17395371] fopen failed for data file: =
errno =3D 2 (No such file or directory) (hmnn?)</div><div class=3D""><br =
class=3D""></div><div class=3D"">^ Just recently saw that in the logs =
after applying your suggestions.</div><div class=3D""><br =
class=3D""></div><div class=3D"">2. Before (your suggestions), I did =
this to run emacs:</div><div class=3D""><br class=3D""></div><div =
class=3D""><blockquote type=3D"cite" class=3D""><div class=3D"" =
style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; line-break: =
after-white-space;"><div class=3D""><blockquote type=3D"cite" =
class=3D"">gdb/lldb =
../nextstep/Emacs.app/Contents/MacOS/Emacs</blockquote></div></div></block=
quote><div><br class=3D""></div><div>After, it crashed on startup every =
time, so I did instead:</div><div><br class=3D""><blockquote type=3D"cite"=
 class=3D""><div class=3D"" style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;"><div =
class=3D""><blockquote type=3D"cite" class=3D"">gdb/llb =
emacs</blockquote></div></div></blockquote></div><div><br =
class=3D""></div><div><br class=3D""></div><div><br =
class=3D""></div><div><br class=3D""></div><div>This is what I get with =
the Emacs.app binary: (upon startup)</div><div><br =
class=3D""></div><div><div style=3D"margin: 0px; font-stretch: normal; =
font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures; =
color: #400bd9" class=3D""><b class=3D"">src/</b></span><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D""> $ lldb =
../nextstep/Emacs.app/Contents/MacOS/Emacs&nbsp;</span></div><div =
style=3D"margin: 0px; font-stretch: normal; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">Emacs =
debugging support has been installed.</span></div><div style=3D"margin: =
0px; font-stretch: normal; font-size: 11px; line-height: normal; =
font-family: Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">(lldb) target create =
"../nextstep/Emacs.app/Contents/MacOS/Emacs"</span></div><div =
style=3D"margin: 0px; font-stretch: normal; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">Current =
executable set to =
'/Users/james/Code/emacs/nextstep/Emacs.app/Contents/MacOS/Emacs' =
(x86_64).</span></div><div style=3D"margin: 0px; font-stretch: normal; =
font-size: 11px; line-height: normal; font-family: Menlo; color: =
rgb(153, 153, 153);" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">(lldb) </span><span =
style=3D"font-variant-ligatures: no-common-ligatures; color: #000000" =
class=3D"">r</span></div><div style=3D"margin: 0px; font-stretch: =
normal; font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">Process 5114 launched: =
'/Users/james/Code/emacs/nextstep/Emacs.app/Contents/MacOS/Emacs' =
(x86_64)</span></div><div style=3D"margin: 0px; font-stretch: normal; =
font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">Warning: Lisp directory 'Contents/Resources/lisp': No such =
file or directory</span></div><div style=3D"margin: 0px; font-stretch: =
normal; font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</span></div><div=
 style=3D"margin: 0px; font-stretch: normal; font-size: 11px; =
line-height: normal; font-family: Menlo; color: rgb(180, 36, 25);" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D""><b class=3D"">=3D=3D5114=3D=3DERROR: AddressSanitizer: =
dynamic-stack-buffer-overflow on address 0x7ffeefbfe76e at pc =
0x000102ee74d3 bp 0x7ffeefbfd9b0 sp 0x7ffeefbfd178</b></span></div><div =
style=3D"margin: 0px; font-stretch: normal; font-size: 11px; =
line-height: normal; font-family: Menlo; color: rgb(64, 11, 217);" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D""><b class=3D"">WRITE of size 25 at 0x7ffeefbfe76e thread =
T0</b></span></div><div style=3D"margin: 0px; font-stretch: normal; =
font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">&nbsp; &nbsp; #0 0x102ee74d2 in __asan_memcpy+0x262 =
(libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x424d2)</span></div><div =
style=3D"margin: 0px; font-stretch: normal; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">&nbsp; =
&nbsp; #1 0x1008b3733 in doprnt doprnt.c:456</span></div><div =
style=3D"margin: 0px; font-stretch: normal; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">&nbsp; =
&nbsp; #2 0x1008b5351 in esprintf doprnt.c:551</span></div><div =
style=3D"margin: 0px; font-stretch: normal; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">&nbsp; =
&nbsp; #3 0x1007d2a43 in dir_warning lread.c:5385</span></div><div =
style=3D"margin: 0px; font-stretch: normal; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">&nbsp; =
&nbsp; #4 0x1007d1b53 in load_path_check lread.c:5145</span></div><div =
style=3D"margin: 0px; font-stretch: normal; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">&nbsp; =
&nbsp; #5 0x1007d1631 in init_lread lread.c:5338</span></div><div =
style=3D"margin: 0px; font-stretch: normal; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">&nbsp; =
&nbsp; #6 0x1004911cd in main emacs.c:2151</span></div><div =
style=3D"margin: 0px; font-stretch: normal; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">&nbsp; =
&nbsp; #7 0x7fff204bff3c in start+0x0 =
(libdyld.dylib:x86_64+0x15f3c)</span></div><div style=3D"margin: 0px; =
font-stretch: normal; font-size: 11px; line-height: normal; font-family: =
Menlo; min-height: 13px;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D""></span><br class=3D""></div><div style=3D"margin: 0px; =
font-stretch: normal; font-size: 11px; line-height: normal; font-family: =
Menlo; color: rgb(47, 180, 29);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D""><b =
class=3D"">Address 0x7ffeefbfe76e is located in stack of thread T0 at =
offset 718 in frame</b></span></div><div style=3D"margin: 0px; =
font-stretch: normal; font-size: 11px; line-height: normal; font-family: =
Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">&nbsp; &nbsp; #0 0x1008b512f in esprintf =
doprnt.c:547</span></div><div style=3D"margin: 0px; font-stretch: =
normal; font-size: 11px; line-height: normal; font-family: Menlo; =
min-height: 13px;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D""></span><br class=3D""></div><div =
style=3D"margin: 0px; font-stretch: normal; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">&nbsp; =
This frame has 1 object(s):</span></div><div style=3D"margin: 0px; =
font-stretch: normal; font-size: 11px; line-height: normal; font-family: =
Menlo; color: rgb(47, 180, 29);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures; color: #000000" =
class=3D"">&nbsp; &nbsp; [32, 56) 'ap' (line 549)</span><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D""><b =
class=3D""> &lt;=3D=3D Memory access at offset 718 overflows this =
variable</b></span></div><div style=3D"margin: 0px; font-stretch: =
normal; font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">HINT: this may be a false positive if your program uses some =
custom stack unwind mechanism, swapcontext or vfork</span></div><div =
style=3D"margin: 0px; font-stretch: normal; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">&nbsp; =
&nbsp; &nbsp; (longjmp and C++ exceptions *are* =
supported)</span></div><div style=3D"margin: 0px; font-stretch: normal; =
font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">SUMMARY: AddressSanitizer: dynamic-stack-buffer-overflow =
(libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x424d2) in =
__asan_memcpy+0x262</span></div><div style=3D"margin: 0px; font-stretch: =
normal; font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">Shadow bytes around the buggy address:</span></div><div =
style=3D"margin: 0px; font-stretch: normal; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">&nbsp; =
0x1fffddf7fc90: 00 00 00 00 </span><span style=3D"font-variant-ligatures: =
no-common-ligatures; color: #b42419" class=3D""><b =
class=3D"">f1</b></span><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D""> </span><span =
style=3D"font-variant-ligatures: no-common-ligatures; color: #b42419" =
class=3D""><b class=3D"">f1</b></span><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D""> =
</span><span style=3D"font-variant-ligatures: no-common-ligatures; =
color: #b42419" class=3D""><b class=3D"">f1</b></span><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D""> =
</span><span style=3D"font-variant-ligatures: no-common-ligatures; =
color: #b42419" class=3D""><b class=3D"">f1</b></span><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D""> 00 00 =
00 </span><span style=3D"font-variant-ligatures: no-common-ligatures; =
color: #b42419" class=3D""><b class=3D"">f3</b></span><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D""> =
</span><span style=3D"font-variant-ligatures: no-common-ligatures; =
color: #b42419" class=3D""><b class=3D"">f3</b></span><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D""> =
</span><span style=3D"font-variant-ligatures: no-common-ligatures; =
color: #b42419" class=3D""><b class=3D"">f3</b></span><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D""> =
</span><span style=3D"font-variant-ligatures: no-common-ligatures; =
color: #b42419" class=3D""><b class=3D"">f3</b></span><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D""> =
</span><span style=3D"font-variant-ligatures: no-common-ligatures; =
color: #b42419" class=3D""><b class=3D"">f3</b></span></div><div =
style=3D"margin: 0px; font-stretch: normal; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">&nbsp; =
0x1fffddf7fca0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 =
00</span></div><div style=3D"margin: 0px; font-stretch: normal; =
font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">&nbsp; 0x1fffddf7fcb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 =
00 00 00</span></div><div style=3D"margin: 0px; font-stretch: normal; =
font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">&nbsp; 0x1fffddf7fcc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 =
00 00 00</span></div><div style=3D"margin: 0px; font-stretch: normal; =
font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">&nbsp; 0x1fffddf7fcd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 =
00 00 00</span></div><div style=3D"margin: 0px; font-stretch: normal; =
font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">=3D&gt;0x1fffddf7fce0: </span><span =
style=3D"font-variant-ligatures: no-common-ligatures; color: #400bd9" =
class=3D""><b class=3D"">ca</b></span><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D""> =
</span><span style=3D"font-variant-ligatures: no-common-ligatures; =
color: #400bd9" class=3D""><b class=3D"">ca</b></span><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D""> =
</span><span style=3D"font-variant-ligatures: no-common-ligatures; =
color: #400bd9" class=3D""><b class=3D"">ca</b></span><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D""> =
</span><span style=3D"font-variant-ligatures: no-common-ligatures; =
color: #400bd9" class=3D""><b class=3D"">ca</b></span><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D""> 00 00 =
00 00 00 00 00 00 00[06]</span><span style=3D"font-variant-ligatures: =
no-common-ligatures; color: #400bd9" class=3D""><b =
class=3D"">cb</b></span><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D""> </span><span =
style=3D"font-variant-ligatures: no-common-ligatures; color: #400bd9" =
class=3D""><b class=3D"">cb</b></span></div><div style=3D"margin: 0px; =
font-stretch: normal; font-size: 11px; line-height: normal; font-family: =
Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">&nbsp; 0x1fffddf7fcf0: </span><span =
style=3D"font-variant-ligatures: no-common-ligatures; color: #400bd9" =
class=3D""><b class=3D"">cb</b></span><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D""> =
</span><span style=3D"font-variant-ligatures: no-common-ligatures; =
color: #400bd9" class=3D""><b class=3D"">cb</b></span><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D""> =
</span><span style=3D"font-variant-ligatures: no-common-ligatures; =
color: #400bd9" class=3D""><b class=3D"">cb</b></span><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D""> =
</span><span style=3D"font-variant-ligatures: no-common-ligatures; =
color: #400bd9" class=3D""><b class=3D"">cb</b></span><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D""> =
</span><span style=3D"font-variant-ligatures: no-common-ligatures; =
color: #b42419" class=3D""><b class=3D"">f1</b></span><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D""> =
</span><span style=3D"font-variant-ligatures: no-common-ligatures; =
color: #b42419" class=3D""><b class=3D"">f1</b></span><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D""> =
</span><span style=3D"font-variant-ligatures: no-common-ligatures; =
color: #b42419" class=3D""><b class=3D"">f1</b></span><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D""> =
</span><span style=3D"font-variant-ligatures: no-common-ligatures; =
color: #b42419" class=3D""><b class=3D"">f1</b></span><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D""> 00 00 =
00 00 </span><span style=3D"font-variant-ligatures: no-common-ligatures; =
color: #b42419" class=3D""><b class=3D"">f2</b></span><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D""> =
</span><span style=3D"font-variant-ligatures: no-common-ligatures; =
color: #b42419" class=3D""><b class=3D"">f2</b></span><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D""> =
</span><span style=3D"font-variant-ligatures: no-common-ligatures; =
color: #b42419" class=3D""><b class=3D"">f2</b></span><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D""> =
</span><span style=3D"font-variant-ligatures: no-common-ligatures; =
color: #b42419" class=3D""><b class=3D"">f2</b></span></div><div =
style=3D"margin: 0px; font-stretch: normal; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">&nbsp; =
0x1fffddf7fd00: 00 </span><span style=3D"font-variant-ligatures: =
no-common-ligatures; color: #b42419" class=3D""><b =
class=3D"">f3</b></span><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D""> </span><span =
style=3D"font-variant-ligatures: no-common-ligatures; color: #b42419" =
class=3D""><b class=3D"">f3</b></span><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D""> =
</span><span style=3D"font-variant-ligatures: no-common-ligatures; =
color: #b42419" class=3D""><b class=3D"">f3</b></span><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D""> 00 00 =
00 00 00 00 00 00 00 00 00 00</span></div><div style=3D"margin: 0px; =
font-stretch: normal; font-size: 11px; line-height: normal; font-family: =
Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">&nbsp; 0x1fffddf7fd10: 00 00 00 00 00 00 =
00 00 00 00 00 00 00 00 00 00</span></div><div style=3D"margin: 0px; =
font-stretch: normal; font-size: 11px; line-height: normal; font-family: =
Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">&nbsp; 0x1fffddf7fd20: 00 00 00 00 00 00 =
00 00 00 00 00 00 00 00 00 00</span></div><div style=3D"margin: 0px; =
font-stretch: normal; font-size: 11px; line-height: normal; font-family: =
Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">&nbsp; 0x1fffddf7fd30: 00 00 00 00 00 00 =
00 00 00 00 00 00 00 00 00 00</span></div><div style=3D"margin: 0px; =
font-stretch: normal; font-size: 11px; line-height: normal; font-family: =
Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">Shadow byte legend (one shadow byte =
represents 8 application bytes):</span></div><div style=3D"margin: 0px; =
font-stretch: normal; font-size: 11px; line-height: normal; font-family: =
Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">&nbsp; Addressable: &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; 00</span></div><div style=3D"margin: 0px; font-stretch: =
normal; font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">&nbsp; Partially addressable: 01 02 03 04 05 06 =
07&nbsp;</span></div><div style=3D"margin: 0px; font-stretch: normal; =
font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">&nbsp; Heap left redzone: &nbsp; &nbsp; &nbsp; </span><span =
style=3D"font-variant-ligatures: no-common-ligatures; color: #b42419" =
class=3D""><b class=3D"">fa</b></span></div><div style=3D"margin: 0px; =
font-stretch: normal; font-size: 11px; line-height: normal; font-family: =
Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">&nbsp; Freed heap region: &nbsp; &nbsp; =
&nbsp; </span><span style=3D"font-variant-ligatures: =
no-common-ligatures; color: #c814c9" class=3D""><b =
class=3D"">fd</b></span></div><div style=3D"margin: 0px; font-stretch: =
normal; font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">&nbsp; Stack left redzone:&nbsp; &nbsp; &nbsp; </span><span =
style=3D"font-variant-ligatures: no-common-ligatures; color: #b42419" =
class=3D""><b class=3D"">f1</b></span></div><div style=3D"margin: 0px; =
font-stretch: normal; font-size: 11px; line-height: normal; font-family: =
Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">&nbsp; Stack mid redzone: &nbsp; &nbsp; =
&nbsp; </span><span style=3D"font-variant-ligatures: =
no-common-ligatures; color: #b42419" class=3D""><b =
class=3D"">f2</b></span></div><div style=3D"margin: 0px; font-stretch: =
normal; font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">&nbsp; Stack right redzone: &nbsp; &nbsp; </span><span =
style=3D"font-variant-ligatures: no-common-ligatures; color: #b42419" =
class=3D""><b class=3D"">f3</b></span></div><div style=3D"margin: 0px; =
font-stretch: normal; font-size: 11px; line-height: normal; font-family: =
Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">&nbsp; Stack after return:&nbsp; &nbsp; =
&nbsp; </span><span style=3D"font-variant-ligatures: =
no-common-ligatures; color: #c814c9" class=3D""><b =
class=3D"">f5</b></span></div><div style=3D"margin: 0px; font-stretch: =
normal; font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">&nbsp; Stack use after scope: &nbsp; </span><span =
style=3D"font-variant-ligatures: no-common-ligatures; color: #c814c9" =
class=3D""><b class=3D"">f8</b></span></div><div style=3D"margin: 0px; =
font-stretch: normal; font-size: 11px; line-height: normal; font-family: =
Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">&nbsp; Global redzone:&nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; </span><span style=3D"font-variant-ligatures: =
no-common-ligatures; color: #b42419" class=3D""><b =
class=3D"">f9</b></span></div><div style=3D"margin: 0px; font-stretch: =
normal; font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">&nbsp; Global init order: &nbsp; &nbsp; &nbsp; </span><span =
style=3D"font-variant-ligatures: no-common-ligatures; color: #2eaebb" =
class=3D""><b class=3D"">f6</b></span></div><div style=3D"margin: 0px; =
font-stretch: normal; font-size: 11px; line-height: normal; font-family: =
Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">&nbsp; Poisoned by user:&nbsp; &nbsp; =
&nbsp; &nbsp; </span><span style=3D"font-variant-ligatures: =
no-common-ligatures; color: #400bd9" class=3D""><b =
class=3D"">f7</b></span></div><div style=3D"margin: 0px; font-stretch: =
normal; font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">&nbsp; Container overflow:&nbsp; &nbsp; &nbsp; </span><span =
style=3D"font-variant-ligatures: no-common-ligatures; color: #400bd9" =
class=3D""><b class=3D"">fc</b></span></div><div style=3D"margin: 0px; =
font-stretch: normal; font-size: 11px; line-height: normal; font-family: =
Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">&nbsp; Array cookie:&nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; </span><span style=3D"font-variant-ligatures: =
no-common-ligatures; color: #b42419" class=3D""><b =
class=3D"">ac</b></span></div><div style=3D"margin: 0px; font-stretch: =
normal; font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">&nbsp; Intra object redzone:&nbsp; &nbsp; </span><span =
style=3D"font-variant-ligatures: no-common-ligatures; color: #9fa01c" =
class=3D""><b class=3D"">bb</b></span></div><div style=3D"margin: 0px; =
font-stretch: normal; font-size: 11px; line-height: normal; font-family: =
Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">&nbsp; ASan internal: &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; </span><span style=3D"font-variant-ligatures: =
no-common-ligatures; color: #9fa01c" class=3D""><b =
class=3D"">fe</b></span></div><div style=3D"margin: 0px; font-stretch: =
normal; font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">&nbsp; Left alloca redzone: &nbsp; &nbsp; </span><span =
style=3D"font-variant-ligatures: no-common-ligatures; color: #400bd9" =
class=3D""><b class=3D"">ca</b></span></div><div style=3D"margin: 0px; =
font-stretch: normal; font-size: 11px; line-height: normal; font-family: =
Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">&nbsp; Right alloca redzone:&nbsp; =
&nbsp; </span><span style=3D"font-variant-ligatures: =
no-common-ligatures; color: #400bd9" class=3D""><b =
class=3D"">cb</b></span></div><div style=3D"margin: 0px; font-stretch: =
normal; font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">&nbsp; Shadow gap:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; cc</span></div><div style=3D"margin: 0px; font-stretch: normal; =
font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">2022-08-20 12:28:55.164360-0400 Emacs[5114:17882118] =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</span></div><div =
style=3D"margin: 0px; font-stretch: normal; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">2022-08-20 12:28:55.164418-0400 Emacs[5114:17882118] =
=3D=3D5114=3D=3DERROR: AddressSanitizer: dynamic-stack-buffer-overflow =
on address 0x7ffeefbfe76e at pc 0x000102ee74d3 bp 0x7ffeefbfd9b0 sp =
0x7ffeefbfd178</span></div><div style=3D"margin: 0px; font-stretch: =
normal; font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">2022-08-20 12:28:55.164429-0400 Emacs[5114:17882118] WRITE of =
size 25 at 0x7ffeefbfe76e thread T0</span></div><div style=3D"margin: =
0px; font-stretch: normal; font-size: 11px; line-height: normal; =
font-family: Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">2022-08-20 12:28:55.164440-0400 =
Emacs[5114:17882118] &nbsp; &nbsp; #0 0x102ee74d2 in __asan_memcpy+0x262 =
(libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x424d2)</span></div><div =
style=3D"margin: 0px; font-stretch: normal; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">2022-08-20 12:28:55.164450-0400 Emacs[5114:17882118] &nbsp; =
&nbsp; #1 0x1008b3733 in doprnt doprnt.c:456</span></div><div =
style=3D"margin: 0px; font-stretch: normal; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">2022-08-20 12:28:55.164461-0400 Emacs[5114:17882118] &nbsp; =
&nbsp; #2 0x1008b5351 in esprintf doprnt.c:551</span></div><div =
style=3D"margin: 0px; font-stretch: normal; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">2022-08-20 12:28:55.164483-0400 Emacs[5114:17882118] &nbsp; =
&nbsp; #3 0x1007d2a43 in dir_warning lread.c:5385</span></div><div =
style=3D"margin: 0px; font-stretch: normal; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">2022-08-20 12:28:55.164507-0400 Emacs[5114:17882118] &nbsp; =
&nbsp; #4 0x1007d1b53 in load_path_check lread.c:5145</span></div><div =
style=3D"margin: 0px; font-stretch: normal; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">2022-08-20 12:28:55.164519-0400 Emacs[5114:17882118] &nbsp; =
&nbsp; #5 0x1007d1631 in init_lread lread.c:5338</span></div><div =
style=3D"margin: 0px; font-stretch: normal; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">2022-08-20 12:28:55.164529-0400 Emacs[5114:17882118] &nbsp; =
&nbsp; #6 0x1004911cd in main emacs.c:2151</span></div><div =
style=3D"margin: 0px; font-stretch: normal; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">2022-08-20 12:28:55.164538-0400 Emacs[5114:17882118] &nbsp; =
&nbsp; #7 0x7fff204bff3c in start+0x0 =
(libdyld.dylib:x86_64+0x15f3c)</span></div><div style=3D"margin: 0px; =
font-stretch: normal; font-size: 11px; line-height: normal; font-family: =
Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">2022-08-20 12:28:55.164549-0400 =
Emacs[5114:17882118]&nbsp;</span></div><div style=3D"margin: 0px; =
font-stretch: normal; font-size: 11px; line-height: normal; font-family: =
Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">2022-08-20 12:28:55.164556-0400 =
Emacs[5114:17882118] Address 0x7ffeefbfe76e is located in stack of =
thread T0 at offset 718 in frame</span></div><div style=3D"margin: 0px; =
font-stretch: normal; font-size: 11px; line-height: normal; font-family: =
Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">2022-08-20 12:28:55.164565-0400 =
Emacs[5114:17882118] &nbsp; &nbsp; #0 0x1008b512f in esprintf =
doprnt.c:547</span></div><div style=3D"margin: 0px; font-stretch: =
normal; font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">2022-08-20 12:28:55.164576-0400 =
Emacs[5114:17882118]&nbsp;</span></div><div style=3D"margin: 0px; =
font-stretch: normal; font-size: 11px; line-height: normal; font-family: =
Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">2022-08-20 12:28:55.164583-0400 =
Emacs[5114:17882118] &nbsp; This frame has 1 object(s):</span></div><div =
style=3D"margin: 0px; font-stretch: normal; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">2022-08-20 12:28:55.164593-0400 Emacs[5114:17882118] &nbsp; =
&nbsp; [32, 56) 'ap' (line 549) &lt;=3D=3D Memory access at offset 718 =
overflows this variable</span></div><div style=3D"margin: 0px; =
font-stretch: normal; font-size: 11px; line-height: normal; font-family: =
Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">2022-08-20 12:28:55.164603-0400 =
Emacs[5114:17882118] HINT: this may be a false positive if your program =
uses some custom stack unwind mechanism, swapcontext or =
vfork</span></div><div style=3D"margin: 0px; font-stretch: normal; =
font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">2022-08-20 12:28:55.164614-0400 Emacs[5114:17882118] &nbsp; =
&nbsp; &nbsp; (longjmp and C++ exceptions *are* =
supported)</span></div><div style=3D"margin: 0px; font-stretch: normal; =
font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">2022-08-20 12:28:55.164624-0400 Emacs[5114:17882118] SUMMARY: =
AddressSanitizer: dynamic-stack-buffer-overflow =
(libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x424d2) in =
__asan_memcpy+0x262</span></div><div style=3D"margin: 0px; font-stretch: =
normal; font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">2022-08-20 12:28:55.164635-0400 Emacs[5114:17882118] Shadow =
bytes around the buggy address:</span></div><div style=3D"margin: 0px; =
font-stretch: normal; font-size: 11px; line-height: normal; font-family: =
Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">2022-08-20 12:28:55.164644-0400 =
Emacs[5114:17882118] &nbsp; 0x1fffddf7fc90: 00 00 00 00 f1 f1 f1 f1 00 =
00 00 f3 f3 f3 f3 f3</span></div><div style=3D"margin: 0px; =
font-stretch: normal; font-size: 11px; line-height: normal; font-family: =
Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">2022-08-20 12:28:55.164654-0400 =
Emacs[5114:17882118] &nbsp; 0x1fffddf7fca0: 00 00 00 00 00 00 00 00 00 =
00 00 00 00 00 00 00</span></div><div style=3D"margin: 0px; =
font-stretch: normal; font-size: 11px; line-height: normal; font-family: =
Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">2022-08-20 12:28:55.164664-0400 =
Emacs[5114:17882118] &nbsp; 0x1fffddf7fcb0: 00 00 00 00 00 00 00 00 00 =
00 00 00 00 00 00 00</span></div><div style=3D"margin: 0px; =
font-stretch: normal; font-size: 11px; line-height: normal; font-family: =
Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">2022-08-20 12:28:55.164673-0400 =
Emacs[5114:17882118] &nbsp; 0x1fffddf7fcc0: 00 00 00 00 00 00 00 00 00 =
00 00 00 00 00 00 00</span></div><div style=3D"margin: 0px; =
font-stretch: normal; font-size: 11px; line-height: normal; font-family: =
Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">2022-08-20 12:28:55.164682-0400 =
Emacs[5114:17882118] &nbsp; 0x1fffddf7fcd0: 00 00 00 00 00 00 00 00 00 =
00 00 00 00 00 00 00</span></div><div style=3D"margin: 0px; =
font-stretch: normal; font-size: 11px; line-height: normal; font-family: =
Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">2022-08-20 12:28:55.164693-0400 =
Emacs[5114:17882118] =3D&gt;0x1fffddf7fce0: ca ca ca ca 00 00 00 00 00 =
00 00 00 00[06]cb cb</span></div><div style=3D"margin: 0px; =
font-stretch: normal; font-size: 11px; line-height: normal; font-family: =
Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">2022-08-20 12:28:55.164702-0400 =
Emacs[5114:17882118] &nbsp; 0x1fffddf7fcf0: cb cb cb cb f1 f1 f1 f1 00 =
00 00 00 f2 f2 f2 f2</span></div><div style=3D"margin: 0px; =
font-stretch: normal; font-size: 11px; line-height: normal; font-family: =
Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">2022-08-20 12:28:55.164721-0400 =
Emacs[5114:17882118] &nbsp; 0x1fffddf7fd00: 00 f3 f3 f3 00 00 00 00 00 =
00 00 00 00 00 00 00</span></div><div style=3D"margin: 0px; =
font-stretch: normal; font-size: 11px; line-height: normal; font-family: =
Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">2022-08-20 12:28:55.164731-0400 =
Emacs[5114:17882118] &nbsp; 0x1fffddf7fd10: 00 00 00 00 00 00 00 00 00 =
00 00 00 00 00 00 00</span></div><div style=3D"margin: 0px; =
font-stretch: normal; font-size: 11px; line-height: normal; font-family: =
Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">2022-08-20 12:28:55.164740-0400 =
Emacs[5114:17882118] &nbsp; 0x1fffddf7fd20: 00 00 00 00 00 00 00 00 00 =
00 00 00 00 00 00 00</span></div><div style=3D"margin: 0px; =
font-stretch: normal; font-size: 11px; line-height: normal; font-family: =
Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">2022-08-20 12:28:55.164750-0400 =
Emacs[5114:17882118] &nbsp; 0x1fffddf7fd30: 00 00 00 00 00 00 00 00 00 =
00 00 00 00 00 00 00</span></div><div style=3D"margin: 0px; =
font-stretch: normal; font-size: 11px; line-height: normal; font-family: =
Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">2022-08-20 12:28:55.164759-0400 =
Emacs[5114:17882118] Shadow byte legend (one shadow byte represents 8 =
application bytes):</span></div><div style=3D"margin: 0px; font-stretch: =
normal; font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">2022-08-20 12:28:55.164768-0400 Emacs[5114:17882118] &nbsp; =
Addressable: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 00</span></div><div =
style=3D"margin: 0px; font-stretch: normal; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">2022-08-20 12:28:55.164779-0400 Emacs[5114:17882118] &nbsp; =
Partially addressable: 01 02 03 04 05 06 07</span></div><div =
style=3D"margin: 0px; font-stretch: normal; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">2022-08-20 12:28:55.164799-0400 Emacs[5114:17882118] &nbsp; =
Heap left redzone: &nbsp; &nbsp; &nbsp; fa</span></div><div =
style=3D"margin: 0px; font-stretch: normal; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">2022-08-20 12:28:55.164818-0400 Emacs[5114:17882118] &nbsp; =
Freed heap region: &nbsp; &nbsp; &nbsp; fd</span></div><div =
style=3D"margin: 0px; font-stretch: normal; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">2022-08-20 12:28:55.164839-0400 Emacs[5114:17882118] &nbsp; =
Stack left redzone:&nbsp; &nbsp; &nbsp; f1</span></div><div =
style=3D"margin: 0px; font-stretch: normal; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">2022-08-20 12:28:55.164848-0400 Emacs[5114:17882118] &nbsp; =
Stack mid redzone: &nbsp; &nbsp; &nbsp; f2</span></div><div =
style=3D"margin: 0px; font-stretch: normal; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">2022-08-20 12:28:55.164856-0400 Emacs[5114:17882118] &nbsp; =
Stack right redzone: &nbsp; &nbsp; f3</span></div><div style=3D"margin: =
0px; font-stretch: normal; font-size: 11px; line-height: normal; =
font-family: Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">2022-08-20 12:28:55.164864-0400 =
Emacs[5114:17882118] &nbsp; Stack after return:&nbsp; &nbsp; &nbsp; =
f5</span></div><div style=3D"margin: 0px; font-stretch: normal; =
font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">2022-08-20 12:28:55.164871-0400 Emacs[5114:17882118] &nbsp; =
Stack use after scope: &nbsp; f8</span></div><div style=3D"margin: 0px; =
font-stretch: normal; font-size: 11px; line-height: normal; font-family: =
Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">2022-08-20 12:28:55.164878-0400 =
Emacs[5114:17882118] &nbsp; Global redzone:&nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; f9</span></div><div style=3D"margin: 0px; font-stretch: normal; =
font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">2022-08-20 12:28:55.164885-0400 Emacs[5114:17882118] &nbsp; =
Global init order: &nbsp; &nbsp; &nbsp; f6</span></div><div =
style=3D"margin: 0px; font-stretch: normal; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">2022-08-20 12:28:55.164892-0400 Emacs[5114:17882118] &nbsp; =
Poisoned by user:&nbsp; &nbsp; &nbsp; &nbsp; f7</span></div><div =
style=3D"margin: 0px; font-stretch: normal; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">2022-08-20 12:28:55.164900-0400 Emacs[5114:17882118] &nbsp; =
Container overflow:&nbsp; &nbsp; &nbsp; fc</span></div><div =
style=3D"margin: 0px; font-stretch: normal; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">2022-08-20 12:28:55.164904-0400 Emacs[5114:17882118] &nbsp; =
Array cookie:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
ac</span></div><div style=3D"margin: 0px; font-stretch: normal; =
font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">2022-08-20 12:28:55.164909-0400 Emacs[5114:17882118] &nbsp; =
Intra object redzone:&nbsp; &nbsp; bb</span></div><div style=3D"margin: =
0px; font-stretch: normal; font-size: 11px; line-height: normal; =
font-family: Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">2022-08-20 12:28:55.164932-0400 =
Emacs[5114:17882118] &nbsp; ASan internal: &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; fe</span></div><div style=3D"margin: 0px; font-stretch: normal; =
font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">2022-08-20 12:28:55.165373-0400 Emacs[5114:17882118] &nbsp; =
Left alloca redzone: &nbsp; &nbsp; ca</span></div><div style=3D"margin: =
0px; font-stretch: normal; font-size: 11px; line-height: normal; =
font-family: Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">2022-08-20 12:28:55.165387-0400 =
Emacs[5114:17882118] &nbsp; Right alloca redzone:&nbsp; &nbsp; =
cb</span></div><div style=3D"margin: 0px; font-stretch: normal; =
font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">2022-08-20 12:28:55.165397-0400 Emacs[5114:17882118] &nbsp; =
Shadow gap:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
cc</span></div><div style=3D"margin: 0px; font-stretch: normal; =
font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">=3D=3D5114=3D=3DABORTING</span></div><div style=3D"margin: =
0px; font-stretch: normal; font-size: 11px; line-height: normal; =
font-family: Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures; color: #999999" class=3D"">(lldb) </span><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">AddressSanitizer report breakpoint hit. Use 'thread info -s' =
to get extended information about the report.</span></div><div =
style=3D"margin: 0px; font-stretch: normal; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">Process =
5114 stopped</span></div><div style=3D"margin: 0px; font-stretch: =
normal; font-size: 11px; line-height: normal; font-family: Menlo; color: =
rgb(180, 36, 25);" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures; color: #000000" class=3D"">* thread #1, queue =3D =
</span><span style=3D"font-variant-ligatures: no-common-ligatures; =
color: #2fb41d" class=3D"">'com.apple.main-thread'</span><span =
style=3D"font-variant-ligatures: no-common-ligatures; color: #000000" =
class=3D"">, stop reason =3D </span><span style=3D"font-variant-ligatures:=
 no-common-ligatures" class=3D"">AddressSanitizer detected: =
dynamic-stack-buffer-overflow</span></div><div style=3D"margin: 0px; =
font-stretch: normal; font-size: 11px; line-height: normal; font-family: =
Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">&nbsp; &nbsp; frame #0: </span><span =
style=3D"font-variant-ligatures: no-common-ligatures; color: #9fa01c" =
class=3D"">0x0000000102ef1dc0</span><span style=3D"font-variant-ligatures:=
 no-common-ligatures" class=3D""> =
libclang_rt.asan_osx_dynamic.dylib`__asan::AsanDie()</span></div><div =
style=3D"margin: 0px; font-stretch: normal; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">libclang_rt.asan_osx_dynamic.dylib`__asan::AsanDie:</span></div=
><div style=3D"margin: 0px; font-stretch: normal; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures; color: #9fa01c" =
class=3D"">-&gt;&nbsp;</span><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D""> 0x102ef1dc0 &lt;+0&gt;: pushq&nbsp; =
%rbp</span></div><div style=3D"margin: 0px; font-stretch: normal; =
font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures; =
color: #9fa01c" class=3D"">&nbsp; &nbsp;</span><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D""> =
0x102ef1dc1 &lt;+1&gt;: movq &nbsp; %rsp, %rbp</span></div><div =
style=3D"margin: 0px; font-stretch: normal; font-size: 11px; =
line-height: normal; font-family: Menlo;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures; color: #9fa01c" =
class=3D"">&nbsp; &nbsp;</span><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D""> 0x102ef1dc4 &lt;+4&gt;: pushq&nbsp; =
%rbx</span></div><div style=3D"margin: 0px; font-stretch: normal; =
font-size: 11px; line-height: normal; font-family: Menlo;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures; =
color: #9fa01c" class=3D"">&nbsp; &nbsp;</span><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D""> =
0x102ef1dc5 &lt;+5&gt;: pushq&nbsp; %rax</span></div><div style=3D"margin:=
 0px; font-stretch: normal; font-size: 11px; line-height: normal; =
font-family: Menlo;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">Target 0: (Emacs) =
stopped.</span></div><div style=3D"margin: 0px; font-stretch: normal; =
font-size: 11px; line-height: normal; font-family: Menlo; color: =
rgb(153, 153, 153);" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">(lldb) </span><span =
style=3D"font-variant-ligatures: no-common-ligatures; color: #000000" =
class=3D"">&nbsp;</span></div><div class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures; color: #000000" =
class=3D""><br class=3D""></span></div><div class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures; color: #000000" =
class=3D""><br class=3D""></span></div><blockquote type=3D"cite" =
class=3D""><div class=3D"">On Aug 20, 2022, at 12:23 PM, <a =
href=3D"mailto:james@HIDDEN" class=3D"">james@HIDDEN</a> =
wrote:</div><br class=3D"Apple-interchange-newline"><div class=3D""><meta =
http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf-8" =
class=3D""><div style=3D"word-wrap: break-word; -webkit-nbsp-mode: =
space; line-break: after-white-space;" class=3D"">&gt; Could it be that =
one or more jpegs of yours is invalid in some way?<br class=3D"">Maybe =
you could check this with the 'jpeginfo' utitlity. &nbsp;I've never<br =
class=3D"">used it myself, because I don't have a use for it, but from =
what I read,<br class=3D"">it might be able to detect at least some =
error cases. &nbsp;Maybe it's worth<br class=3D"">trying.<div =
class=3D""><br class=3D""></div><div class=3D"">Do you think that would =
lead to a crash every time? My crashes are very inconsistent.<br =
class=3D""><br class=3D"">&gt; Another idea might be to try and install =
an external jpeg library<br class=3D"">(libjpeg I presume), and =
configure Emacs to use it. &nbsp;Alas, this doesn't<br class=3D"">seem =
to work on my M1 Mac, but maybe it does on your x86_64 system.</div><div =
class=3D""><br class=3D""></div><div class=3D"">Can you point me to some =
documentation for that?<br class=3D""><br class=3D""><blockquote =
type=3D"cite" class=3D""><br =
class=3D"">---------------------------------------------------------------=
----------------<br class=3D""><br class=3D"">2022-08-19 =
10:09:53.301888-0400 emacs[92880:17395371] fopen failed for data file: =
errno =3D 2 (No such file or directory) (hmnn?)<br class=3D""><br =
class=3D"">This time I had to use:<br class=3D""><br =
class=3D"">/Users/james/Code/emacs/src/emacs<br class=3D""><br =
class=3D"">instead of $ lldb ../nextstep/Emacs.app/Contents/MacOS/Emacs =
(which crashed on startup)<br class=3D""><br class=3D""></blockquote><br =
class=3D"">I don't quite understand. &nbsp;I've seen to open errors in =
your log. &nbsp;Are<br class=3D"">you saying that these happen because =
you started Emacs from src this<br class=3D"">time? &nbsp;FWIW, I don't =
see differences when starting one or the other.<br class=3D""><div =
class=3D""><br class=3D""><blockquote type=3D"cite" class=3D""><div =
class=3D"">On Aug 20, 2022, at 2:34 AM, Gerd M=C3=B6llmann &lt;<a =
href=3D"mailto:gerd.moellmann@HIDDEN" =
class=3D"">gerd.moellmann@HIDDEN</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><meta =
charset=3D"UTF-8" class=3D""><span style=3D"caret-color: rgb(0, 0, 0); =
font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none; float: none; display: inline !important;" =
class=3D"">Could it be that one or more jpegs of yours is invalid in =
some way?</span><br style=3D"caret-color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none;" class=3D""><span style=3D"caret-color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none; float: none; display: inline !important;" class=3D"">Maybe you =
could check this with the 'jpeginfo' utitlity. &nbsp;I've =
never</span><br style=3D"caret-color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none;" class=3D""><span style=3D"caret-color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none; float: none; display: inline !important;" class=3D"">used it =
myself, because I don't have a use for it, but from what I =
read,</span><br style=3D"caret-color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none;" class=3D""><span style=3D"caret-color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none; float: none; display: inline !important;" class=3D"">it might be =
able to detect at least some error cases. &nbsp;Maybe it's =
worth</span><br style=3D"caret-color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none;" class=3D""><span style=3D"caret-color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none; float: none; display: inline !important;" =
class=3D"">trying.</span><br style=3D"caret-color: rgb(0, 0, 0); =
font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;" class=3D""><br style=3D"caret-color: rgb(0, 0, =
0); font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;" class=3D""><span style=3D"caret-color: rgb(0, 0, =
0); font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none; float: none; display: inline !important;" =
class=3D"">Another idea might be to try and install an external jpeg =
library</span><br style=3D"caret-color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none;" class=3D""><span style=3D"caret-color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none; float: none; display: inline !important;" class=3D"">(libjpeg I =
presume), and configure Emacs to use it. &nbsp;Alas, this =
doesn't</span><br style=3D"caret-color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none;" class=3D""><span style=3D"caret-color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none; float: none; display: inline !important;" class=3D"">seem to work =
on my M1 Mac, but maybe it does on your x86_64 system.</span><br =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;" class=3D""><br =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;" class=3D""><span =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none; float: none; =
display: inline !important;" class=3D"">In any case, this doesn't look =
like a problem to me that is caused by</span><br style=3D"caret-color: =
rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: =
normal; font-variant-caps: normal; font-weight: normal; letter-spacing: =
normal; text-align: start; text-indent: 0px; text-transform: none; =
white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;" class=3D""><span style=3D"caret-color: rgb(0, 0, =
0); font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none; float: none; display: inline !important;" =
class=3D"">Emacs.</span><br style=3D"caret-color: rgb(0, 0, 0); =
font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;" class=3D""><br style=3D"caret-color: rgb(0, 0, =
0); font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;" class=3D""><blockquote type=3D"cite" =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; =
text-decoration: none;" class=3D""><br =
class=3D"">---------------------------------------------------------------=
----------------<br class=3D""><br class=3D"">2022-08-19 =
10:09:53.301888-0400 emacs[92880:17395371] fopen failed for data file: =
errno =3D 2 (No such file or directory) (hmnn?)<br class=3D""><br =
class=3D"">This time I had to use:<br class=3D""><br =
class=3D"">/Users/james/Code/emacs/src/emacs<br class=3D""><br =
class=3D"">instead of $ lldb ../nextstep/Emacs.app/Contents/MacOS/Emacs =
(which crashed on startup)<br class=3D""><br class=3D""></blockquote><br =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;" class=3D""><span =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none; float: none; =
display: inline !important;" class=3D"">I don't quite understand. =
&nbsp;I've seen to open errors in your log. &nbsp;Are</span><br =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;" class=3D""><span =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none; float: none; =
display: inline !important;" class=3D"">you saying that these happen =
because you started Emacs from src this</span><br style=3D"caret-color: =
rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: =
normal; font-variant-caps: normal; font-weight: normal; letter-spacing: =
normal; text-align: start; text-indent: 0px; text-transform: none; =
white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;" class=3D""><span style=3D"caret-color: rgb(0, 0, =
0); font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none; float: none; display: inline !important;" =
class=3D"">time? &nbsp;FWIW, I don't see differences when starting one =
or the other.</span></div></blockquote></div><br =
class=3D""></div></div></div></blockquote></div><br =
class=3D""></div></body></html>=

--Apple-Mail=_C8F75A14-2E30-49D8-84DD-0D76B2676F64--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57267; Package emacs. Full text available.

Message received at 57267 <at> debbugs.gnu.org:


Received: (at 57267) by debbugs.gnu.org; 20 Aug 2022 16:24:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 20 12:24:07 2022
Received: from localhost ([127.0.0.1]:33419 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oPRGY-0004IE-Pv
	for submit <at> debbugs.gnu.org; Sat, 20 Aug 2022 12:24:07 -0400
Received: from out2-smtp.messagingengine.com ([66.111.4.26]:45179)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <james@HIDDEN>) id 1oPRGW-0004Hi-UI
 for 57267 <at> debbugs.gnu.org; Sat, 20 Aug 2022 12:24:06 -0400
Received: from compute2.internal (compute2.nyi.internal [10.202.2.46])
 by mailout.nyi.internal (Postfix) with ESMTP id D50AA5C0080;
 Sat, 20 Aug 2022 12:23:59 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute2.internal (MEProxy); Sat, 20 Aug 2022 12:23:59 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jojojames.com;
 h=cc:cc:content-type:date:date:from:from:in-reply-to
 :in-reply-to:message-id:mime-version:references:reply-to:sender
 :subject:subject:to:to; s=fm3; t=1661012639; x=1661099039; bh=5x
 Tlrgdja87sMUFmDbgZdPZPj8CciUCdeCg6htzHuvk=; b=h7cj/iiEOu1Yy3Nz77
 EjXqk8RqiCmI49nHQL9OEP/227u7osvW8TlNnlb3uHxbCpUKQ927JF6oiqaAxcH9
 F4o07f7xL+oxYZ9XWd3eP0ByckSy+PN0PrDcndfZpkC/J08Tu7RE8s5Wie5wS4en
 RTJo2aYLXAvK8hOH0oHuOlh+wc/DdI+NC4esYFsB5jdQZdqpaybuWzs+M6lTarPz
 TWi8gnrCTF+5nh0ax07zQTjmhaW+KuT525h+bYkwoBj+3RpEyDOEVFrxeeFThNZA
 Gp25eVcRBMmH2kbmQTjOCyokx1Mp7r8dFQaOHgWjujO1m4acBuNFVXHNRL9B2A0G
 +/9g==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-type:date:date:feedback-id
 :feedback-id:from:from:in-reply-to:in-reply-to:message-id
 :mime-version:references:reply-to:sender:subject:subject:to:to
 :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=
 fm1; t=1661012639; x=1661099039; bh=5xTlrgdja87sMUFmDbgZdPZPj8Cc
 iUCdeCg6htzHuvk=; b=Pv1VXp5/MWGJyFAFSqzjhUTSZ5X0r4CaHnRUSj84Hbja
 B+kqrDylqaCGJ23JwusXCZKqYHyuUC3ud/Q8CaZGF+93LDlGq02M26twO2RRVuGF
 6pftxZ/jslrNx38DFTeU/1ALHxo9v+mZhUtxBM8NdayZCwgHInGopMeVZ5Vlc+jB
 vgBEZ8uLnxhyjDsPqzhwL+mFVQVR+/jpvrHOLruDj1n2u9VxXAEvPJMAygLE6zT/
 eyEXY1ZOcmeMq8avJe2dhHrUMNlwtjsmvuPzMxL3x8ttIORx/kjtx4GDCCgehpb9
 c07iDhiqrz76xm5kd5zQpL9FCUTsJV8ToiZ/JRhx0Q==
X-ME-Sender: <xms:nwoBY036nGI8Zmr_hpfWv3OD01CsXmcwFQszhTk6DliuP7dLArdX9Q>
 <xme:nwoBY_HcqdK2PfGkEJgAl0EDkyjA06Qpt7j0L5tl08s3kkyEq3jPxyUkT7BOi44Qs
 _H0Ph0I_DFMnMNcjQ>
X-ME-Received: <xmr:nwoBY87wX_IUQjEn68bswdVVKY5OXxnAlVfa2DmPBz2GJG6QoTHrfbbLoD3TvgwgLkdeazhO0aQH4zTQdYUIEGe8qbYhJHUjD2q5BSjIe3kZ6S0NA8i-iA>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdeifedguddtfecutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh
 necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd
 enucfjughrpefhkfgtggfuffgjvefvfhfosegrtdhmrehhtdejnecuhfhrohhmpehjrghm
 vghssehjohhjohhjrghmvghsrdgtohhmnecuggftrfgrthhtvghrnhephfejtdeffeekte
 ffhfekteeitedvleeuueejiedthffggeetleegfeejgfeludfhnecuffhomhgrihhnpegv
 mhgrtghsrdgrphhpnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh
 hfrhhomhepjhgrmhgvshesjhhojhhojhgrmhgvshdrtghomh
X-ME-Proxy: <xmx:nwoBY90H_kskx2HbS9uxFwuGNupNKBE_dFHgHcol9MeyU-Y7MWaTNw>
 <xmx:nwoBY3GrObiJY7tylfi3yVyE9B6F2e3i98mFsdtYqDNwvFMEvzLYAA>
 <xmx:nwoBY28hqMtWWXG7XPuGQz4NRmO2V7MQJKWUqW-0WIOQ6sofd1RRrQ>
 <xmx:nwoBY9NR6RMS026aYyDLNfBZsboZ9X2iZbRT8WRgCYtZjo8SVkRLCQ>
Feedback-ID: i4b00421f:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat,
 20 Aug 2022 12:23:59 -0400 (EDT)
From: james@HIDDEN
Message-Id: <FF5001F4-856C-4DC7-9F38-4CCB9B3A4C06@HIDDEN>
Content-Type: multipart/alternative;
 boundary="Apple-Mail=_E05E0C09-5D79-4B7D-8917-092745586D9F"
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\))
Subject: Re: bug#57267: 28.1; emacs crashes when loading too many images
Date: Sat, 20 Aug 2022 12:23:58 -0400
In-Reply-To: <m2mtbz8luj.fsf@HIDDEN>
To: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
References: <B1DA1052-75FD-45F6-9759-43ABB9C0C4E2@HIDDEN>
 <83v8qqawsh.fsf@HIDDEN> <CE82A2A1-035F-435F-B408-84B6B6563031@HIDDEN>
 <83a681fk6i.fsf@HIDDEN> <E6EC8DC3-9CE0-4648-9B34-26820059115B@HIDDEN>
 <837d34g4l7.fsf@HIDDEN> <4B3965F5-E6E3-489A-BCA8-A292387A5AF9@HIDDEN>
 <m21qtcitvi.fsf@HIDDEN> <m2y1vkhf50.fsf@HIDDEN>
 <99A661F2-C12C-4F15-BB17-D23E28783548@HIDDEN>
 <m2mtbz8luj.fsf@HIDDEN>
X-Mailer: Apple Mail (2.3654.120.0.1.13)
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 57267
Cc: 57267 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)


--Apple-Mail=_E05E0C09-5D79-4B7D-8917-092745586D9F
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

> Could it be that one or more jpegs of yours is invalid in some way?
Maybe you could check this with the 'jpeginfo' utitlity.  I've never
used it myself, because I don't have a use for it, but from what I read,
it might be able to detect at least some error cases.  Maybe it's worth
trying.

Do you think that would lead to a crash every time? My crashes are very =
inconsistent.

> Another idea might be to try and install an external jpeg library
(libjpeg I presume), and configure Emacs to use it.  Alas, this doesn't
seem to work on my M1 Mac, but maybe it does on your x86_64 system.

Can you point me to some documentation for that?

>=20
> =
--------------------------------------------------------------------------=
-----
>=20
> 2022-08-19 10:09:53.301888-0400 emacs[92880:17395371] fopen failed for =
data file: errno =3D 2 (No such file or directory) (hmnn?)
>=20
> This time I had to use:
>=20
> /Users/james/Code/emacs/src/emacs
>=20
> instead of $ lldb ../nextstep/Emacs.app/Contents/MacOS/Emacs (which =
crashed on startup)
>=20

I don't quite understand.  I've seen to open errors in your log.  Are
you saying that these happen because you started Emacs from src this
time?  FWIW, I don't see differences when starting one or the other.

> On Aug 20, 2022, at 2:34 AM, Gerd M=C3=B6llmann =
<gerd.moellmann@HIDDEN> wrote:
>=20
> Could it be that one or more jpegs of yours is invalid in some way?
> Maybe you could check this with the 'jpeginfo' utitlity.  I've never
> used it myself, because I don't have a use for it, but from what I =
read,
> it might be able to detect at least some error cases.  Maybe it's =
worth
> trying.
>=20
> Another idea might be to try and install an external jpeg library
> (libjpeg I presume), and configure Emacs to use it.  Alas, this =
doesn't
> seem to work on my M1 Mac, but maybe it does on your x86_64 system.
>=20
> In any case, this doesn't look like a problem to me that is caused by
> Emacs.
>=20
>>=20
>> =
--------------------------------------------------------------------------=
-----
>>=20
>> 2022-08-19 10:09:53.301888-0400 emacs[92880:17395371] fopen failed =
for data file: errno =3D 2 (No such file or directory) (hmnn?)
>>=20
>> This time I had to use:
>>=20
>> /Users/james/Code/emacs/src/emacs
>>=20
>> instead of $ lldb ../nextstep/Emacs.app/Contents/MacOS/Emacs (which =
crashed on startup)
>>=20
>=20
> I don't quite understand.  I've seen to open errors in your log.  Are
> you saying that these happen because you started Emacs from src this
> time?  FWIW, I don't see differences when starting one or the other.


--Apple-Mail=_E05E0C09-5D79-4B7D-8917-092745586D9F
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D"">&gt; =
Could it be that one or more jpegs of yours is invalid in some way?<br =
class=3D"">Maybe you could check this with the 'jpeginfo' utitlity. =
&nbsp;I've never<br class=3D"">used it myself, because I don't have a =
use for it, but from what I read,<br class=3D"">it might be able to =
detect at least some error cases. &nbsp;Maybe it's worth<br =
class=3D"">trying.<div class=3D""><br class=3D""></div><div class=3D"">Do =
you think that would lead to a crash every time? My crashes are very =
inconsistent.<br class=3D""><br class=3D"">&gt; Another idea might be to =
try and install an external jpeg library<br class=3D"">(libjpeg I =
presume), and configure Emacs to use it. &nbsp;Alas, this doesn't<br =
class=3D"">seem to work on my M1 Mac, but maybe it does on your x86_64 =
system.</div><div class=3D""><br class=3D""></div><div class=3D"">Can =
you point me to some documentation for that?<br class=3D""><br =
class=3D""><blockquote type=3D"cite" class=3D""><br =
class=3D"">---------------------------------------------------------------=
----------------<br class=3D""><br class=3D"">2022-08-19 =
10:09:53.301888-0400 emacs[92880:17395371] fopen failed for data file: =
errno =3D 2 (No such file or directory) (hmnn?)<br class=3D""><br =
class=3D"">This time I had to use:<br class=3D""><br =
class=3D"">/Users/james/Code/emacs/src/emacs<br class=3D""><br =
class=3D"">instead of $ lldb ../nextstep/Emacs.app/Contents/MacOS/Emacs =
(which crashed on startup)<br class=3D""><br class=3D""></blockquote><br =
class=3D"">I don't quite understand. &nbsp;I've seen to open errors in =
your log. &nbsp;Are<br class=3D"">you saying that these happen because =
you started Emacs from src this<br class=3D"">time? &nbsp;FWIW, I don't =
see differences when starting one or the other.<br class=3D""><div><br =
class=3D""><blockquote type=3D"cite" class=3D""><div class=3D"">On Aug =
20, 2022, at 2:34 AM, Gerd M=C3=B6llmann &lt;<a =
href=3D"mailto:gerd.moellmann@HIDDEN" =
class=3D"">gerd.moellmann@HIDDEN</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><meta =
charset=3D"UTF-8" class=3D""><span style=3D"caret-color: rgb(0, 0, 0); =
font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none; float: none; display: inline !important;" =
class=3D"">Could it be that one or more jpegs of yours is invalid in =
some way?</span><br style=3D"caret-color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none;" class=3D""><span style=3D"caret-color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none; float: none; display: inline !important;" class=3D"">Maybe you =
could check this with the 'jpeginfo' utitlity. &nbsp;I've =
never</span><br style=3D"caret-color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none;" class=3D""><span style=3D"caret-color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none; float: none; display: inline !important;" class=3D"">used it =
myself, because I don't have a use for it, but from what I =
read,</span><br style=3D"caret-color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none;" class=3D""><span style=3D"caret-color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none; float: none; display: inline !important;" class=3D"">it might be =
able to detect at least some error cases. &nbsp;Maybe it's =
worth</span><br style=3D"caret-color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none;" class=3D""><span style=3D"caret-color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none; float: none; display: inline !important;" =
class=3D"">trying.</span><br style=3D"caret-color: rgb(0, 0, 0); =
font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;" class=3D""><br style=3D"caret-color: rgb(0, 0, =
0); font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;" class=3D""><span style=3D"caret-color: rgb(0, 0, =
0); font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none; float: none; display: inline !important;" =
class=3D"">Another idea might be to try and install an external jpeg =
library</span><br style=3D"caret-color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none;" class=3D""><span style=3D"caret-color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none; float: none; display: inline !important;" class=3D"">(libjpeg I =
presume), and configure Emacs to use it. &nbsp;Alas, this =
doesn't</span><br style=3D"caret-color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none;" class=3D""><span style=3D"caret-color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none; float: none; display: inline !important;" class=3D"">seem to work =
on my M1 Mac, but maybe it does on your x86_64 system.</span><br =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;" class=3D""><br =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;" class=3D""><span =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none; float: none; =
display: inline !important;" class=3D"">In any case, this doesn't look =
like a problem to me that is caused by</span><br style=3D"caret-color: =
rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: =
normal; font-variant-caps: normal; font-weight: normal; letter-spacing: =
normal; text-align: start; text-indent: 0px; text-transform: none; =
white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;" class=3D""><span style=3D"caret-color: rgb(0, 0, =
0); font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none; float: none; display: inline !important;" =
class=3D"">Emacs.</span><br style=3D"caret-color: rgb(0, 0, 0); =
font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;" class=3D""><br style=3D"caret-color: rgb(0, 0, =
0); font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;" class=3D""><blockquote type=3D"cite" =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; =
text-decoration: none;" class=3D""><br =
class=3D"">---------------------------------------------------------------=
----------------<br class=3D""><br class=3D"">2022-08-19 =
10:09:53.301888-0400 emacs[92880:17395371] fopen failed for data file: =
errno =3D 2 (No such file or directory) (hmnn?)<br class=3D""><br =
class=3D"">This time I had to use:<br class=3D""><br =
class=3D"">/Users/james/Code/emacs/src/emacs<br class=3D""><br =
class=3D"">instead of $ lldb ../nextstep/Emacs.app/Contents/MacOS/Emacs =
(which crashed on startup)<br class=3D""><br class=3D""></blockquote><br =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;" class=3D""><span =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none; float: none; =
display: inline !important;" class=3D"">I don't quite understand. =
&nbsp;I've seen to open errors in your log. &nbsp;Are</span><br =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;" class=3D""><span =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none; float: none; =
display: inline !important;" class=3D"">you saying that these happen =
because you started Emacs from src this</span><br style=3D"caret-color: =
rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: =
normal; font-variant-caps: normal; font-weight: normal; letter-spacing: =
normal; text-align: start; text-indent: 0px; text-transform: none; =
white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;" class=3D""><span style=3D"caret-color: rgb(0, 0, =
0); font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none; float: none; display: inline !important;" =
class=3D"">time? &nbsp;FWIW, I don't see differences when starting one =
or the other.</span></div></blockquote></div><br =
class=3D""></div></body></html>=

--Apple-Mail=_E05E0C09-5D79-4B7D-8917-092745586D9F--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57267; Package emacs. Full text available.

Message received at 57267 <at> debbugs.gnu.org:


Received: (at 57267) by debbugs.gnu.org; 20 Aug 2022 06:34:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 20 02:34:25 2022
Received: from localhost ([127.0.0.1]:59482 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oPI3t-0003SP-F0
	for submit <at> debbugs.gnu.org; Sat, 20 Aug 2022 02:34:25 -0400
Received: from mail-ej1-f41.google.com ([209.85.218.41]:39536)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1oPI3p-0003S8-86
 for 57267 <at> debbugs.gnu.org; Sat, 20 Aug 2022 02:34:23 -0400
Received: by mail-ej1-f41.google.com with SMTP id u15so3698971ejt.6
 for <57267 <at> debbugs.gnu.org>; Fri, 19 Aug 2022 23:34:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc;
 bh=pFMCTpurwOOL7jl4Yx5qqvyPGTL0ooFciVIz891Gws4=;
 b=erzRoAfQfPVMyO+oYw8QeAAvWAO9wzmIyVg/4e0pbpp+iVBTcDdYP6QS/xIiEAtPPV
 HlmQPthIYxg7T3eJ75zCtOLBVLOEMP1qmov6r+jQN8cfNOFqjeU676dVOROLv5j5iZUe
 dHd6CDS+2eKtcrG1cVvwT9NwVfvnGu+pi28REVR/NY8g36w8rW/ZdI3bigNJqwHpRYoN
 3ZgNyiNWc+Ygx75y2koPnktRo8GBl+UhU+651YKGimsNL8Zac+UzcNcPWFjsEyaR1UGG
 9JtHp8fZVvx7r//0D7yIVpc4utNOeQjvv2Z2fcZLpQdOGi9F0kd8RfnNiE8qGQ66Mi7s
 n37w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc;
 bh=pFMCTpurwOOL7jl4Yx5qqvyPGTL0ooFciVIz891Gws4=;
 b=vFhL9BLiqdLWwywtlgvdOsT+gOS8pqAnS6f1h5ujQmCu9+Rf0ItDCYHmWzQSApSa/C
 2YcA+2vNOBOm5BxM2BsDSh6oIDJC9GOxXkwnPfM7GsLlaP/mneG0NC0S6k0cwFjdvcN9
 Ar1YAo4QnPXVnyc1HxuuidARurUoxJ/95hJu7K7eC5BY32sqFJyWu5jVYe89efrR9TdD
 y7azzbOtqp8sauskx+mQwNFUrKzF6L+6JWaY/XYMZQDXIX+fzqkLTMHZG/jJj9QiAJCJ
 HrhVj+5UHq18kdplFMdzR1/8zpy2Aimyb0kJJFNZCj1p5e27z7p31/zL2ZeB67hkmgSN
 NCZA==
X-Gm-Message-State: ACgBeo3K3Lp+FPzeqvwY3j0Tko6hYmT3mDmY8jhTCKfD8Rfri/zXGGCa
 W7BFd79CGNPPiSug0IKSBL8=
X-Google-Smtp-Source: AA6agR7kY9g/THB4QVnYN+gxHMRx9qiDUxR+KOlaqu7QzLtB2tIevkri1zhxeRiEuebCGkA0Cth1tA==
X-Received: by 2002:a17:907:3e01:b0:730:a690:a211 with SMTP id
 hp1-20020a1709073e0100b00730a690a211mr6984404ejc.596.1660977255111; 
 Fri, 19 Aug 2022 23:34:15 -0700 (PDT)
Received: from Mini.fritz.box (p4fe3aab1.dip0.t-ipconnect.de. [79.227.170.177])
 by smtp.gmail.com with ESMTPSA id
 ss2-20020a170907c00200b0072f42ca292bsm3136989ejc.129.2022.08.19.23.34.13
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 19 Aug 2022 23:34:14 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: james@HIDDEN
Subject: Re: bug#57267: 28.1; emacs crashes when loading too many images
In-Reply-To: <99A661F2-C12C-4F15-BB17-D23E28783548@HIDDEN>
 (james@HIDDEN's message of "Fri, 19 Aug 2022 10:18:35 -0400")
References: <B1DA1052-75FD-45F6-9759-43ABB9C0C4E2@HIDDEN>
 <83v8qqawsh.fsf@HIDDEN>
 <CE82A2A1-035F-435F-B408-84B6B6563031@HIDDEN>
 <83a681fk6i.fsf@HIDDEN>
 <E6EC8DC3-9CE0-4648-9B34-26820059115B@HIDDEN>
 <837d34g4l7.fsf@HIDDEN>
 <4B3965F5-E6E3-489A-BCA8-A292387A5AF9@HIDDEN>
 <m21qtcitvi.fsf@HIDDEN> <m2y1vkhf50.fsf@HIDDEN>
 <99A661F2-C12C-4F15-BB17-D23E28783548@HIDDEN>
Date: Sat, 20 Aug 2022 08:34:12 +0200
Message-ID: <m2mtbz8luj.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 57267
Cc: 57267 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

james@HIDDEN writes:

>
> -------------------------------------------------------------------------------
> $ git log --oneline -1
> 8f1d0295bc (HEAD -> master, origin/master, origin/HEAD) Speed up image-dired-display-image
> (END)
> -------------------------------------------------------------------------------

Thanks.

> Process 92880 stopped
> * thread #17, stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
>     frame #0: 0x0000000000000000
> error: memory read failed for 0x0
> Target 0: (emacs) stopped.

Too bad, that means ASAN didn't find a problem before the bad access happens.

> (lldb) bt
> * thread #1, queue = 'com.apple.main-thread'
...
>     frame #42: 0x0000000100a1a9ce emacs`ns_dumpglyphs_image(s=0x00007ffeefbf5a60, r=(origin = (x = 10, y = 566), size = (width = 700, h>     frame #50: 0x0000000100012156 emacs`update_frame(f=0x0000621002046130, force_p=true, inhibit_hairy_id_p=false) at dispnew.c:3279:18
>     frame #51: 0x0000000100122312 emacs`redisplay_internal at xdisp.c:17096:14
>     frame #52: 0x0000000100135fd9 emacs`redisplay at xdisp.c:16103:3

Emacs' thread (#1) is displaying an image when thread #17 crashes.

> (lldb) bt all
>   thread #4, name = 'gmain'
>     frame #0: 0x00007fff20477646 libsystem_kernel.dylib`__select + 10
>     frame #1: 0x00000001029f056b libglib-2.0.0.dylib`g_poll + 505

That's a select for some reason, doing nothing.

>   thread #5
>     frame #0: 0x00007fff20473d52 libsystem_kernel.dylib`__pselect + 10
>     frame #1: 0x00007fff20473c6f libsystem_kernel.dylib`pselect$DARWIN_EXTSN + 42
>     frame #2: 0x00000001009b2be5 emacs`-[EmacsApp
>     fd_handler:](self=0x0000612000024640, _cmd="fd_handler:",
>     unused=0x0000000000000000) > (lldb)

Also doing nothing.

>  thread #17
>    frame #0: 0x0000000000000000
>    frame #1: 0x00007fff31a448da AppleVPA`___lldb_unnamed_symbol479$$AppleVPA + 336
>    frame #2: 0x00007fff31a427ec AppleVPA`___lldb_unnamed_symbol455$$AppleVPA + 254
>    frame #3: 0x00007fff204a48fc libsystem_pthread.dylib`_pthread_start + 224
>    frame #4: 0x00007fff204a0443 libsystem_pthread.dylib`thread_start +
>    15

That's the culprit, but I have no real idea what this thread is for.
One of the few things I could find on the web is
https://www.zerodayinitiative.com/advisories/ZDI-20-1182/ (a zero-day
vulnerability) which indicates that AppleVPA has something to do with
JPEG parsing.

Could it be that one or more jpegs of yours is invalid in some way?
Maybe you could check this with the 'jpeginfo' utitlity.  I've never
used it myself, because I don't have a use for it, but from what I read,
it might be able to detect at least some error cases.  Maybe it's worth
trying.

Another idea might be to try and install an external jpeg library
(libjpeg I presume), and configure Emacs to use it.  Alas, this doesn't
seem to work on my M1 Mac, but maybe it does on your x86_64 system.

In any case, this doesn't look like a problem to me that is caused by
Emacs.

>
> -------------------------------------------------------------------------------
>
> 2022-08-19 10:09:53.301888-0400 emacs[92880:17395371] fopen failed for data file: errno = 2 (No such file or directory) (hmnn?)
>
> This time I had to use:
>
> /Users/james/Code/emacs/src/emacs
>
> instead of $ lldb ../nextstep/Emacs.app/Contents/MacOS/Emacs (which crashed on startup)
>

I don't quite understand.  I've seen to open errors in your log.  Are
you saying that these happen because you started Emacs from src this
time?  FWIW, I don't see differences when starting one or the other.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57267; Package emacs. Full text available.

Message received at 57267 <at> debbugs.gnu.org:


Received: (at 57267) by debbugs.gnu.org; 19 Aug 2022 14:19:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 19 10:19:00 2022
Received: from localhost ([127.0.0.1]:58978 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oP2pu-0005uM-Dy
	for submit <at> debbugs.gnu.org; Fri, 19 Aug 2022 10:19:00 -0400
Received: from out5-smtp.messagingengine.com ([66.111.4.29]:59747)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <james@HIDDEN>) id 1oP2pe-0005tu-04
 for 57267 <at> debbugs.gnu.org; Fri, 19 Aug 2022 10:18:56 -0400
Received: from compute5.internal (compute5.nyi.internal [10.202.2.45])
 by mailout.nyi.internal (Postfix) with ESMTP id 1F8245C03B9;
 Fri, 19 Aug 2022 10:18:36 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute5.internal (MEProxy); Fri, 19 Aug 2022 10:18:36 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jojojames.com;
 h=cc:cc:content-transfer-encoding:content-type:date:date:from
 :from:in-reply-to:in-reply-to:message-id:mime-version:references
 :reply-to:sender:subject:subject:to:to; s=fm3; t=1660918716; x=
 1661005116; bh=T3N5mOUwW2z2LF/Y3hh+PkiL7T2thmMj9WZojOUsbhI=; b=S
 pg0OIT1hTprA4Jbaq86HokdOvndQu9aYKlv2Bq8jFFaqPggILGi9v09MUIH+kxIP
 phiEd+wQ5laLqx+LxGAou1MiR+sfUHetEI4h7NIwFlMJv4XUG0W5l43lpO47kn0U
 d9f9H35ukV2R8IagCoTClGpUt/pUYJT73cBE4u932PIyj0io6HbIRE5zGSLOB9Wu
 jzHspUe/ZpKQ9DTyVsUuoVLZamUfHVGokvTnSUqq1drnlCvJLfAeoQK1Pamsxvnt
 L9PHA8dc5Aq/4My40BaMM5Dr39rgYVSIdz6uz6+eeLLj+RjBs7JKPKfnO5Crs5Uz
 AzGc+h58xTucULw11mK6w==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:date:date:feedback-id:feedback-id:from:from
 :in-reply-to:in-reply-to:message-id:mime-version:references
 :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy
 :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1660918716; x=
 1661005116; bh=T3N5mOUwW2z2LF/Y3hh+PkiL7T2thmMj9WZojOUsbhI=; b=c
 WFsdOOYLzURFNhcLDqGcBX021Opc7VNAZrbSS5v8bNNZUCcVPiQ3SvcdNiVvkuPM
 VKIIZw7Y5WUX+zR/Spxo4XYTI574pyvm3t+/+EUJ63DY7vopmC2oeca+yQ31Q2vO
 b/C3plfRsOvHaqKYQx05z8FXjkfU6kupXglzQTsTpVOexCi7LD6OJA2076DQ/ni6
 d6sUroehe7S9+eUhplncN+vYZw5l+2ElE6FVU4EDgXSCInfJqEaPCU3YwcKlTRI5
 5iUHu1y8lbIJIKNVNmUclyR3Zri1AHCfsaL+bUQY1qQ/ovVbuOyojs44bvst5J/l
 uNVELUrzi0PqFt6g04LZA==
X-ME-Sender: <xms:u5v_YnoW3qNtSRyeKSsILTPmPOkX5Zz6ZjogopJkhXB4oYv9roASOw>
 <xme:u5v_YhpKLxo5OCB4JGeFCNQJOeg4ExSddCQ_P18hWOx4AFrvuKWxTePmKyAUETH3P
 fgpd1hAC_YVBtGjnQ>
X-ME-Received: <xmr:u5v_YkNBDnbsHgc4ZQbKJhSmAYIjbh64DAoPU-Pe4dkZrfpob0ZjrwVatvzuaNjKyARGsGvggGtFOQpTRAa9DfGhutczAoHQsahfAhNZsDpDixZiwK5DUA>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdeiuddgjeeiucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne
 cujfgurheptggguffhjgffvefgkfhfvffosehtqhhmtdhhtdejnecuhfhrohhmpehjrghm
 vghssehjohhjohhjrghmvghsrdgtohhmnecuggftrfgrthhtvghrnhepgedufeelleekvd
 ejjefhieevteehheehjefhjeffvdfhhfekkedvudeihfegvefhnecuffhomhgrihhnpegv
 mhgrtghsrdgrphhpnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh
 hfrhhomhepjhgrmhgvshesjhhojhhojhgrmhgvshdrtghomh
X-ME-Proxy: <xmx:u5v_Yq5nW5t8DMg80tOi7GoJGQp_5YGLjRJ2ss7Dlp2fBcjx7iKZyQ>
 <xmx:u5v_Ym49vfk80onCk1vSBWxxcvElPbB5zxayePSMF9RlUUqbqmYZDg>
 <xmx:u5v_YiiYEuFFI65XuOcasgg4sKPsJAQrMzCc6YGfyE_WwMoOwsWcDg>
 <xmx:vJv_YsR6qvWxjeJek-LfEvjgzGrS0GJ987SQrX5TwGJ8CWU_nY_J_g>
Feedback-ID: i4b00421f:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri,
 19 Aug 2022 10:18:35 -0400 (EDT)
Content-Type: text/plain;
	charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\))
Subject: Re: bug#57267: 28.1; emacs crashes when loading too many images
From: james@HIDDEN
In-Reply-To: <m2y1vkhf50.fsf@HIDDEN>
Date: Fri, 19 Aug 2022 10:18:35 -0400
Content-Transfer-Encoding: quoted-printable
Message-Id: <99A661F2-C12C-4F15-BB17-D23E28783548@HIDDEN>
References: <B1DA1052-75FD-45F6-9759-43ABB9C0C4E2@HIDDEN>
 <83v8qqawsh.fsf@HIDDEN> <CE82A2A1-035F-435F-B408-84B6B6563031@HIDDEN>
 <83a681fk6i.fsf@HIDDEN> <E6EC8DC3-9CE0-4648-9B34-26820059115B@HIDDEN>
 <837d34g4l7.fsf@HIDDEN> <4B3965F5-E6E3-489A-BCA8-A292387A5AF9@HIDDEN>
 <m21qtcitvi.fsf@HIDDEN> <m2y1vkhf50.fsf@HIDDEN>
To: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
X-Mailer: Apple Mail (2.3654.120.0.1.13)
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 57267
Cc: 57267 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

-=
--------------------------------------------------------------------------=
----
$ git log --oneline -1
8f1d0295bc (HEAD -> master, origin/master, origin/HEAD) Speed up =
image-dired-display-image
(END)
=
--------------------------------------------------------------------------=
-----
src/ $ lldb emacs
Emacs debugging support has been installed.
(lldb) target create "emacs"
Current executable set to '/Users/james/Code/emacs/src/emacs' (x86_64).
(lldb) r
Process 92880 launched: '/Users/james/Code/emacs/src/emacs' (x86_64)
2022-08-19 10:09:18.742470-0400 emacs[92880:17395371] =
SecTaskLoadEntitlements failed error=3D22 cs_flags=3D20, pid=3D92880
2022-08-19 10:09:18.742614-0400 emacs[92880:17395371] =
SecTaskCopyDebugDescription: emacs[92880]/0#-1 LF=3D0
2022-08-19 10:09:20.003006-0400 emacs[92880:17395371] =
SecTaskLoadEntitlements failed error=3D22 cs_flags=3D20, pid=3D92880
2022-08-19 10:09:20.003162-0400 emacs[92880:17395371] =
SecTaskCopyDebugDescription: emacs[92880]/0#-1 LF=3D0
2022-08-19 10:09:20.622858-0400 emacs[92880:17395371] =
SecTaskLoadEntitlements failed error=3D22 cs_flags=3D20, pid=3D92880
2022-08-19 10:09:20.622985-0400 emacs[92880:17395371] =
SecTaskCopyDebugDescription: emacs[92880]/0#-1 LF=3D0
2022-08-19 10:09:20.623744-0400 emacs[92880:17395371] =
SecTaskLoadEntitlements failed error=3D22 cs_flags=3D20, pid=3D92880
2022-08-19 10:09:20.623835-0400 emacs[92880:17395371] =
SecTaskCopyDebugDescription: emacs[92880]/0#-1 LF=3D0
2022-08-19 10:09:42.014642-0400 emacs[92880:17395371] TSM =
AdjustCapsLockLEDForKeyTransitionHandling - =
_ISSetPhysicalKeyboardCapsLockLED Inhibit
2022-08-19 10:09:53.021061-0400 emacs[92880:17395371] MTLIOAccelDevice =
bad MetalPluginClassName property (null)
2022-08-19 10:09:53.024056-0400 emacs[92880:17395371] +[MTLIOAccelDevice =
registerDevices]: Zero Metal services found
2022-08-19 10:09:53.075267-0400 emacs[92880:17395371] VPA info: plugin =
is INTEL, AVD_id =3D 1080080, AVD_api.Create:0x12651cb3f
2022-08-19 10:09:53.126184-0400 emacs[92880:17395371] VPA info: plugin =
is INTEL, AVD_id =3D 1080080, AVD_api.Create:0x12651cb3f
2022-08-19 10:09:53.160436-0400 emacs[92880:17395371] VPA info: plugin =
is INTEL, AVD_id =3D 1080080, AVD_api.Create:0x12651cb3f
2022-08-19 10:09:53.301888-0400 emacs[92880:17395371] fopen failed for =
data file: errno =3D 2 (No such file or directory)
2022-08-19 10:09:53.301916-0400 emacs[92880:17395371] Errors found! =
Invalidating cache...
2022-08-19 10:09:53.442872-0400 emacs[92880:17395371] fopen failed for =
data file: errno =3D 2 (No such file or directory)
2022-08-19 10:09:53.442902-0400 emacs[92880:17395371] Errors found! =
Invalidating cache...
2022-08-19 10:09:58.789535-0400 emacs[92880:17395371] VPA info: plugin =
is INTEL, AVD_id =3D 1080080, AVD_api.Create:0x12651cb3f
2022-08-19 10:09:59.866566-0400 emacs[92880:17395371] VPA info: plugin =
is INTEL, AVD_id =3D 1080080, AVD_api.Create:0x12651cb3f
2022-08-19 10:10:00.138473-0400 emacs[92880:17395371] VPA info: plugin =
is INTEL, AVD_id =3D 1080080, AVD_api.Create:0x12651cb3f
Process 92880 stopped
* thread #17, stop reason =3D EXC_BAD_ACCESS (code=3D1, address=3D0x0)
    frame #0: 0x0000000000000000
error: memory read failed for 0x0
Target 0: (emacs) stopped.
=
--------------------------------------------------------------------------=
-----
(lldb) bt
* thread #17, stop reason =3D EXC_BAD_ACCESS (code=3D1, address=3D0x0)
  * frame #0: 0x0000000000000000
    frame #1: 0x00007fff31a448da =
AppleVPA`___lldb_unnamed_symbol479$$AppleVPA + 336
    frame #2: 0x00007fff31a427ec =
AppleVPA`___lldb_unnamed_symbol455$$AppleVPA + 254
    frame #3: 0x00007fff204a48fc libsystem_pthread.dylib`_pthread_start =
+ 224
    frame #4: 0x00007fff204a0443 libsystem_pthread.dylib`thread_start + =
15
=
--------------------------------------------------------------------------=
-----
(lldb) thread select 1
* thread #1, queue =3D 'com.apple.main-thread'
    frame #0: 0x00007fff2046fd76 libsystem_kernel.dylib`__mmap + 10
libsystem_kernel.dylib`__mmap:
->  0x7fff2046fd76 <+10>: jae    0x7fff2046fd80            ; <+20>
    0x7fff2046fd78 <+12>: movq   %rax, %rdi
    0x7fff2046fd7b <+15>: jmp    0x7fff2046fac9            ; =
cerror_nocancel
    0x7fff2046fd80 <+20>: retq
=
--------------------------------------------------------------------------=
-----
(lldb) bt
* thread #1, queue =3D 'com.apple.main-thread'
  * frame #0: 0x00007fff2046fd76 libsystem_kernel.dylib`__mmap + 10
    frame #1: 0x0000000102f00609 =
libclang_rt.asan_osx_dynamic.dylib`__sanitizer::internal_mmap(void*, =
unsigned long, int, int, int, unsigned long long) + 25
    frame #2: 0x0000000102f03690 =
libclang_rt.asan_osx_dynamic.dylib`__sanitizer::MmapFixedImpl(unsigned =
long, unsigned long, bool, char const*) + 128
    frame #3: 0x0000000102eacea6 =
libclang_rt.asan_osx_dynamic.dylib`__sanitizer::SizeClassAllocator64<__asa=
n::AP64<__sanitizer::LocalAddressSpaceView> =
>::PopulateFreeArray(__sanitizer::AllocatorStats*, unsigned long, =
__sanitizer::SizeClassAllocator64<__asan::AP64<__sanitizer::LocalAddressSp=
aceView> >::RegionInfo*, unsigned long) + 230
    frame #4: 0x0000000102eacd7d =
libclang_rt.asan_osx_dynamic.dylib`__sanitizer::SizeClassAllocator64<__asa=
n::AP64<__sanitizer::LocalAddressSpaceView> =
>::GetFromAllocator(__sanitizer::AllocatorStats*, unsigned long, =
unsigned int*, unsigned long) + 621
    frame #5: 0x0000000102eaca56 =
libclang_rt.asan_osx_dynamic.dylib`__sanitizer::SizeClassAllocator64LocalC=
ache<__sanitizer::SizeClassAllocator64<__asan::AP64<__sanitizer::LocalAddr=
essSpaceView> > =
>::Refill(__sanitizer::SizeClassAllocator64LocalCache<__sanitizer::SizeCla=
ssAllocator64<__asan::AP64<__sanitizer::LocalAddressSpaceView> > =
>::PerClass*, =
__sanitizer::SizeClassAllocator64<__asan::AP64<__sanitizer::LocalAddressSp=
aceView> >*, unsigned long) + 54
    frame #6: 0x0000000102eac709 =
libclang_rt.asan_osx_dynamic.dylib`__sanitizer::CombinedAllocator<__saniti=
zer::SizeClassAllocator64<__asan::AP64<__sanitizer::LocalAddressSpaceView>=
 >, =
__sanitizer::LargeMmapAllocatorPtrArrayDynamic>::Allocate(__sanitizer::Siz=
eClassAllocator64LocalCache<__sanitizer::SizeClassAllocator64<__asan::AP64=
<__sanitizer::LocalAddressSpaceView> > >*, unsigned long, unsigned long) =
+ 489
    frame #7: 0x0000000102ea8320 =
libclang_rt.asan_osx_dynamic.dylib`__asan::Allocator::Allocate(unsigned =
long, unsigned long, __sanitizer::BufferedStackTrace*, =
__asan::AllocType, bool) + 592
    frame #8: 0x0000000102ea80a9 =
libclang_rt.asan_osx_dynamic.dylib`__asan::asan_malloc(unsigned long, =
__sanitizer::BufferedStackTrace*) + 41
    frame #9: 0x0000000102ee93ff =
libclang_rt.asan_osx_dynamic.dylib`wrap_malloc + 255
    frame #10: 0x00007fff2843e5a6 Metal`-[MTLResourceList =
initWithCapacity:] + 143
    frame #11: 0x00007fff2843e4ad =
Metal`MTLResourceListPoolCreateResourceList + 118
    frame #12: 0x00007fff2843e2b9 =
Metal`MTLIOAccelCommandBufferStorageCreateExt + 365
    frame #13: 0x00007fff2843e09e =
Metal`MTLIOAccelCommandBufferStoragePoolCreateStorage + 102
    frame #14: 0x00007fff2843db2d Metal`-[MTLIOAccelCommandBuffer =
initWithQueue:retainedReferences:synchronousDebugMode:] + 148
    frame #15: 0x00007fff6522af75 =
AppleIntelICLGraphicsMTLDriver`-[MTLIGAccelCommandBuffer =
initWithQueue:retainedReferences:synchronousDebugMode:] + 54
    frame #16: 0x00007fff6522adc0 =
AppleIntelICLGraphicsMTLDriver`-[MTLIGAccelCommandBuffer =
initWithQueue:retainedReferences:] + 56
    frame #17: 0x00007fff651e8829 =
AppleIntelICLGraphicsMTLDriver`-[MTLIGAccelCommandQueue commandBuffer] + =
45
    frame #18: 0x00007fff2bc7db7c =
VideoToolbox`___lldb_unnamed_symbol1120$$VideoToolbox + 2281
    frame #19: 0x00007fff2bbb3e81 =
VideoToolbox`VTMetalTransferSessionTransferImageSync + 297
    frame #20: 0x00007fff2bbd5f07 =
VideoToolbox`___lldb_unnamed_symbol120$$VideoToolbox + 11979
    frame #21: 0x00007fff2bbb1a6e =
VideoToolbox`VTPixelTransferSessionTransferImage + 1259
    frame #22: 0x00007fff2c4e30b9 =
MediaToolbox`___lldb_unnamed_symbol11295$$MediaToolbox + 4079
    frame #23: 0x00007fff2c4e38ac =
MediaToolbox`___lldb_unnamed_symbol11295$$MediaToolbox + 6114
    frame #24: 0x00007fff2c0515b9 =
MediaToolbox`FigPhotoScaleAndRotateSessionTransformForSize + 247
    frame #25: 0x00007fff2c3afdea =
MediaToolbox`___lldb_unnamed_symbol7966$$MediaToolbox + 2665
    frame #26: 0x00007fff2c3acb81 =
MediaToolbox`___lldb_unnamed_symbol7929$$MediaToolbox + 74
    frame #27: 0x00007fff2c060c88 =
MediaToolbox`FigPhotoDecompressionContainerCreateImageForIndex + 81
    frame #28: 0x00007fff28b7ccac =
ImageIO`AppleJPEGReadPlugin::copyIOSurfaceCallback(InfoRec*, =
CGImageProvider*, __CFDictionary const*) + 802
    frame #29: 0x00007fff28b7d570 =
ImageIO`AppleJPEGReadPlugin::createImageBlockSetWithHardwareDecode(InfoRec=
*, CGImageProvider*, CGSize, __CFDictionary const*) + 154
    frame #30: 0x00007fff28b0f679 =
ImageIO`AppleJPEGReadPlugin::copyImageBlockSet(InfoRec*, =
CGImageProvider*, CGRect, CGSize, __CFDictionary const*) + 1955
    frame #31: 0x00007fff28b0e998 =
ImageIO`IIO_Reader::CopyImageBlockSetProc(void*, CGImageProvider*, =
CGRect, CGSize, __CFDictionary const*) + 100
    frame #32: 0x00007fff28b2c527 =
ImageIO`IIOImageProviderInfo::copyImageBlockSetWithOptions(CGImageProvider=
*, CGRect, CGSize, __CFDictionary const*) + 663
    frame #33: 0x00007fff28b0e8d0 =
ImageIO`IIOImageProviderInfo::CopyImageBlockSetWithOptions(void*, =
CGImageProvider*, CGRect, CGSize, __CFDictionary const*) + 680
    frame #34: 0x00007fff250e076b =
CoreGraphics`CGImageCreateSubsampledImage + 594
    frame #35: 0x00007fff250e0000 CoreGraphics`ripc_DrawImage + 507
    frame #36: 0x00007fff250df4f7 =
CoreGraphics`CGContextDrawImageWithOptions + 454
    frame #37: 0x00007fff22f119c5 AppKit`__74-[NSImageRep =
drawInRect:fromRect:operation:fraction:respectFlipped:hints:]_block_invoke=
 + 902
    frame #38: 0x00007fff22f114fa AppKit`-[NSImageRep =
drawInRect:fromRect:operation:fraction:respectFlipped:hints:] + 936
    frame #39: 0x00007fff233b1dbc AppKit`__71-[NSImage =
drawInRect:fromRect:operation:fraction:respectFlipped:hints:]_block_invoke=
.1340 + 967
    frame #40: 0x00007fff22eea8b9 AppKit`-[NSImage =
_usingBestRepresentationForRect:context:hints:body:] + 129
    frame #41: 0x00007fff22f10ec1 AppKit`-[NSImage =
drawInRect:fromRect:operation:fraction:respectFlipped:hints:] + 1359
    frame #42: 0x0000000100a1a9ce =
emacs`ns_dumpglyphs_image(s=3D0x00007ffeefbf5a60, r=3D(origin =3D (x =3D =
10, y =3D 566), size =3D (width =3D 700, height =3D 163))) at =
nsterm.m:3952:7
    frame #43: 0x0000000100a08bf9 =
emacs`ns_draw_glyph_string(s=3D0x00007ffeefbf5a60) at nsterm.m:4349:7
    frame #44: 0x000000010019cf87 =
emacs`draw_glyphs(w=3D0x0000621002048520, x=3D348, =
row=3D0x000062a00001e600, area=3DTEXT_AREA, start=3D0, end=3D26, =
hl=3DDRAW_NORMAL_TEXT, overlaps=3D0) at xdisp.c:30449:5
    frame #45: 0x0000000100193680 =
emacs`gui_write_glyphs(w=3D0x0000621002048520, =
updated_row=3D0x000062a00001e600, start=3D0x000062600036f100, =
updated_area=3DTEXT_AREA, len=3D26) at xdisp.c:32509:7
    frame #46: 0x0000000100048563 =
emacs`update_text_area(w=3D0x0000621002048520, =
updated_row=3D0x000062a00001e600, vpos=3D4, =
partial_p=3D0x00007ffeefbf8000) at dispnew.c:3981:2
    frame #47: 0x000000010003e371 =
emacs`update_window_line(w=3D0x0000621002048520, vpos=3D4, =
mouse_face_overwritten_p=3D0x00007ffeefbf83a0) at dispnew.c:4239:11
    frame #48: 0x0000000100013e1d =
emacs`update_window(w=3D0x0000621002048520, force_p=3Dtrue) at =
dispnew.c:3719:19
    frame #49: 0x00000001000154dc =
emacs`update_window_tree(w=3D0x0000621002048520, force_p=3Dtrue) at =
dispnew.c:3444:14
    frame #50: 0x0000000100012156 =
emacs`update_frame(f=3D0x0000621002046130, force_p=3Dtrue, =
inhibit_hairy_id_p=3Dfalse) at dispnew.c:3279:18
    frame #51: 0x0000000100122312 emacs`redisplay_internal at =
xdisp.c:17096:14
    frame #52: 0x0000000100135fd9 emacs`redisplay at xdisp.c:16103:3
    frame #53: 0x00000001004a9efe emacs`read_char(commandflag=3D1, =
map=3D(EMACS_INT) $1 =3D 27092655099956, prev_event=3D(struct =
Lisp_Symbol *) $4 =3D 0x000000010125d880, =
used_mouse_menu=3D0x00007ffeefbfd340, end_time=3D0x0000000000000000) at =
keyboard.c:2643:6
    frame #54: 0x00000001004a1b04 emacs`read_key_sequence(keybuf=3D(struct=
 Lisp_Symbol *) $7 =3D 0x000000010125d880, prompt=3D(struct Lisp_Symbol =
*) $10 =3D 0x000000010125d880, dont_downcase_last=3Dfalse, =
can_return_switch_frame=3Dtrue, fix_current_buffer=3Dtrue, =
prevent_redisplay=3Dfalse) at keyboard.c:10045:12
    frame #55: 0x000000010049bf96 emacs`command_loop_1 at =
keyboard.c:1384:15
    frame #56: 0x0000000100713bc9 =
emacs`internal_condition_case(bfun=3D(emacs`command_loop_1 at =
keyboard.c:1277), handlers=3D(struct Lisp_Symbol *) $13 =3D =
0x000000010125d910, hfun=3D(emacs`cmd_error at keyboard.c:935)) at =
eval.c:1497:25
    frame #57: 0x000000010049b013 emacs`command_loop_2(handlers=3D(struct =
Lisp_Symbol *) $16 =3D 0x000000010125d910) at keyboard.c:1132:11
    frame #58: 0x0000000100712009 emacs`internal_catch(tag=3D(struct =
Lisp_Symbol *) $19 =3D 0x000000010126c280, func=3D(emacs`command_loop_2 =
at keyboard.c:1128), arg=3D(struct Lisp_Symbol *) $22 =3D =
0x000000010125d910) at eval.c:1220:25
    frame #59: 0x000000010049919f emacs`command_loop at =
keyboard.c:1110:2
    frame #60: 0x0000000100498c8e emacs`recursive_edit_1 at =
keyboard.c:719:9
    frame #61: 0x0000000100499b33 emacs`Frecursive_edit at =
keyboard.c:802:3
    frame #62: 0x00000001004918be emacs`main(argc=3D1, =
argv=3D0x00007ffeefbff310) at emacs.c:2517:3
    frame #63: 0x00007fff204bff3d libdyld.dylib`start + 1
=
--------------------------------------------------------------------------=
-----
(lldb) bt all
* thread #1, queue =3D 'com.apple.main-thread'
  * frame #0: 0x00007fff2046fd76 libsystem_kernel.dylib`__mmap + 10
    frame #1: 0x0000000102f00609 =
libclang_rt.asan_osx_dynamic.dylib`__sanitizer::internal_mmap(void*, =
unsigned long, int, int, int, unsigned long long) + 25
    frame #2: 0x0000000102f03690 =
libclang_rt.asan_osx_dynamic.dylib`__sanitizer::MmapFixedImpl(unsigned =
long, unsigned long, bool, char const*) + 128
    frame #3: 0x0000000102eacea6 =
libclang_rt.asan_osx_dynamic.dylib`__sanitizer::SizeClassAllocator64<__asa=
n::AP64<__sanitizer::LocalAddressSpaceView> =
>::PopulateFreeArray(__sanitizer::AllocatorStats*, unsigned long, =
__sanitizer::SizeClassAllocator64<__asan::AP64<__sanitizer::LocalAddressSp=
aceView> >::RegionInfo*, unsigned long) + 230
    frame #4: 0x0000000102eacd7d =
libclang_rt.asan_osx_dynamic.dylib`__sanitizer::SizeClassAllocator64<__asa=
n::AP64<__sanitizer::LocalAddressSpaceView> =
>::GetFromAllocator(__sanitizer::AllocatorStats*, unsigned long, =
unsigned int*, unsigned long) + 621
    frame #5: 0x0000000102eaca56 =
libclang_rt.asan_osx_dynamic.dylib`__sanitizer::SizeClassAllocator64LocalC=
ache<__sanitizer::SizeClassAllocator64<__asan::AP64<__sanitizer::LocalAddr=
essSpaceView> > =
>::Refill(__sanitizer::SizeClassAllocator64LocalCache<__sanitizer::SizeCla=
ssAllocator64<__asan::AP64<__sanitizer::LocalAddressSpaceView> > =
>::PerClass*, =
__sanitizer::SizeClassAllocator64<__asan::AP64<__sanitizer::LocalAddressSp=
aceView> >*, unsigned long) + 54
    frame #6: 0x0000000102eac709 =
libclang_rt.asan_osx_dynamic.dylib`__sanitizer::CombinedAllocator<__saniti=
zer::SizeClassAllocator64<__asan::AP64<__sanitizer::LocalAddressSpaceView>=
 >, =
__sanitizer::LargeMmapAllocatorPtrArrayDynamic>::Allocate(__sanitizer::Siz=
eClassAllocator64LocalCache<__sanitizer::SizeClassAllocator64<__asan::AP64=
<__sanitizer::LocalAddressSpaceView> > >*, unsigned long, unsigned long) =
+ 489
    frame #7: 0x0000000102ea8320 =
libclang_rt.asan_osx_dynamic.dylib`__asan::Allocator::Allocate(unsigned =
long, unsigned long, __sanitizer::BufferedStackTrace*, =
__asan::AllocType, bool) + 592
    frame #8: 0x0000000102ea80a9 =
libclang_rt.asan_osx_dynamic.dylib`__asan::asan_malloc(unsigned long, =
__sanitizer::BufferedStackTrace*) + 41
    frame #9: 0x0000000102ee93ff =
libclang_rt.asan_osx_dynamic.dylib`wrap_malloc + 255
    frame #10: 0x00007fff2843e5a6 Metal`-[MTLResourceList =
initWithCapacity:] + 143
    frame #11: 0x00007fff2843e4ad =
Metal`MTLResourceListPoolCreateResourceList + 118
    frame #12: 0x00007fff2843e2b9 =
Metal`MTLIOAccelCommandBufferStorageCreateExt + 365
    frame #13: 0x00007fff2843e09e =
Metal`MTLIOAccelCommandBufferStoragePoolCreateStorage + 102
    frame #14: 0x00007fff2843db2d Metal`-[MTLIOAccelCommandBuffer =
initWithQueue:retainedReferences:synchronousDebugMode:] + 148
    frame #15: 0x00007fff6522af75 =
AppleIntelICLGraphicsMTLDriver`-[MTLIGAccelCommandBuffer =
initWithQueue:retainedReferences:synchronousDebugMode:] + 54
    frame #16: 0x00007fff6522adc0 =
AppleIntelICLGraphicsMTLDriver`-[MTLIGAccelCommandBuffer =
initWithQueue:retainedReferences:] + 56
    frame #17: 0x00007fff651e8829 =
AppleIntelICLGraphicsMTLDriver`-[MTLIGAccelCommandQueue commandBuffer] + =
45
    frame #18: 0x00007fff2bc7db7c =
VideoToolbox`___lldb_unnamed_symbol1120$$VideoToolbox + 2281
    frame #19: 0x00007fff2bbb3e81 =
VideoToolbox`VTMetalTransferSessionTransferImageSync + 297
    frame #20: 0x00007fff2bbd5f07 =
VideoToolbox`___lldb_unnamed_symbol120$$VideoToolbox + 11979
    frame #21: 0x00007fff2bbb1a6e =
VideoToolbox`VTPixelTransferSessionTransferImage + 1259
    frame #22: 0x00007fff2c4e30b9 =
MediaToolbox`___lldb_unnamed_symbol11295$$MediaToolbox + 4079
    frame #23: 0x00007fff2c4e38ac =
MediaToolbox`___lldb_unnamed_symbol11295$$MediaToolbox + 6114
    frame #24: 0x00007fff2c0515b9 =
MediaToolbox`FigPhotoScaleAndRotateSessionTransformForSize + 247
    frame #25: 0x00007fff2c3afdea =
MediaToolbox`___lldb_unnamed_symbol7966$$MediaToolbox + 2665
    frame #26: 0x00007fff2c3acb81 =
MediaToolbox`___lldb_unnamed_symbol7929$$MediaToolbox + 74
    frame #27: 0x00007fff2c060c88 =
MediaToolbox`FigPhotoDecompressionContainerCreateImageForIndex + 81
    frame #28: 0x00007fff28b7ccac =
ImageIO`AppleJPEGReadPlugin::copyIOSurfaceCallback(InfoRec*, =
CGImageProvider*, __CFDictionary const*) + 802
    frame #29: 0x00007fff28b7d570 =
ImageIO`AppleJPEGReadPlugin::createImageBlockSetWithHardwareDecode(InfoRec=
*, CGImageProvider*, CGSize, __CFDictionary const*) + 154
    frame #30: 0x00007fff28b0f679 =
ImageIO`AppleJPEGReadPlugin::copyImageBlockSet(InfoRec*, =
CGImageProvider*, CGRect, CGSize, __CFDictionary const*) + 1955
    frame #31: 0x00007fff28b0e998 =
ImageIO`IIO_Reader::CopyImageBlockSetProc(void*, CGImageProvider*, =
CGRect, CGSize, __CFDictionary const*) + 100
    frame #32: 0x00007fff28b2c527 =
ImageIO`IIOImageProviderInfo::copyImageBlockSetWithOptions(CGImageProvider=
*, CGRect, CGSize, __CFDictionary const*) + 663
    frame #33: 0x00007fff28b0e8d0 =
ImageIO`IIOImageProviderInfo::CopyImageBlockSetWithOptions(void*, =
CGImageProvider*, CGRect, CGSize, __CFDictionary const*) + 680
    frame #34: 0x00007fff250e076b =
CoreGraphics`CGImageCreateSubsampledImage + 594
    frame #35: 0x00007fff250e0000 CoreGraphics`ripc_DrawImage + 507
    frame #36: 0x00007fff250df4f7 =
CoreGraphics`CGContextDrawImageWithOptions + 454
    frame #37: 0x00007fff22f119c5 AppKit`__74-[NSImageRep =
drawInRect:fromRect:operation:fraction:respectFlipped:hints:]_block_invoke=
 + 902
    frame #38: 0x00007fff22f114fa AppKit`-[NSImageRep =
drawInRect:fromRect:operation:fraction:respectFlipped:hints:] + 936
    frame #39: 0x00007fff233b1dbc AppKit`__71-[NSImage =
drawInRect:fromRect:operation:fraction:respectFlipped:hints:]_block_invoke=
.1340 + 967
    frame #40: 0x00007fff22eea8b9 AppKit`-[NSImage =
_usingBestRepresentationForRect:context:hints:body:] + 129
    frame #41: 0x00007fff22f10ec1 AppKit`-[NSImage =
drawInRect:fromRect:operation:fraction:respectFlipped:hints:] + 1359
    frame #42: 0x0000000100a1a9ce =
emacs`ns_dumpglyphs_image(s=3D0x00007ffeefbf5a60, r=3D(origin =3D (x =3D =
10, y =3D 566), size =3D (width =3D 700, height =3D 163))) at =
nsterm.m:3952:7
    frame #43: 0x0000000100a08bf9 =
emacs`ns_draw_glyph_string(s=3D0x00007ffeefbf5a60) at nsterm.m:4349:7
    frame #44: 0x000000010019cf87 =
emacs`draw_glyphs(w=3D0x0000621002048520, x=3D348, =
row=3D0x000062a00001e600, area=3DTEXT_AREA, start=3D0, end=3D26, =
hl=3DDRAW_NORMAL_TEXT, overlaps=3D0) at xdisp.c:30449:5
    frame #45: 0x0000000100193680 =
emacs`gui_write_glyphs(w=3D0x0000621002048520, =
updated_row=3D0x000062a00001e600, start=3D0x000062600036f100, =
updated_area=3DTEXT_AREA, len=3D26) at xdisp.c:32509:7
    frame #46: 0x0000000100048563 =
emacs`update_text_area(w=3D0x0000621002048520, =
updated_row=3D0x000062a00001e600, vpos=3D4, =
partial_p=3D0x00007ffeefbf8000) at dispnew.c:3981:2
    frame #47: 0x000000010003e371 =
emacs`update_window_line(w=3D0x0000621002048520, vpos=3D4, =
mouse_face_overwritten_p=3D0x00007ffeefbf83a0) at dispnew.c:4239:11
    frame #48: 0x0000000100013e1d =
emacs`update_window(w=3D0x0000621002048520, force_p=3Dtrue) at =
dispnew.c:3719:19
    frame #49: 0x00000001000154dc =
emacs`update_window_tree(w=3D0x0000621002048520, force_p=3Dtrue) at =
dispnew.c:3444:14
    frame #50: 0x0000000100012156 =
emacs`update_frame(f=3D0x0000621002046130, force_p=3Dtrue, =
inhibit_hairy_id_p=3Dfalse) at dispnew.c:3279:18
    frame #51: 0x0000000100122312 emacs`redisplay_internal at =
xdisp.c:17096:14
    frame #52: 0x0000000100135fd9 emacs`redisplay at xdisp.c:16103:3
    frame #53: 0x00000001004a9efe emacs`read_char(commandflag=3D1, =
map=3D(EMACS_INT) $24 =3D 27092655099956, prev_event=3D(struct =
Lisp_Symbol *) $27 =3D 0x000000010125d880, =
used_mouse_menu=3D0x00007ffeefbfd340, end_time=3D0x0000000000000000) at =
keyboard.c:2643:6
    frame #54: 0x00000001004a1b04 emacs`read_key_sequence(keybuf=3D(struct=
 Lisp_Symbol *) $30 =3D 0x000000010125d880, prompt=3D(struct Lisp_Symbol =
*) $33 =3D 0x000000010125d880, dont_downcase_last=3Dfalse, =
can_return_switch_frame=3Dtrue, fix_current_buffer=3Dtrue, =
prevent_redisplay=3Dfalse) at keyboard.c:10045:12
    frame #55: 0x000000010049bf96 emacs`command_loop_1 at =
keyboard.c:1384:15
    frame #56: 0x0000000100713bc9 =
emacs`internal_condition_case(bfun=3D(emacs`command_loop_1 at =
keyboard.c:1277), handlers=3D(struct Lisp_Symbol *) $36 =3D =
0x000000010125d910, hfun=3D(emacs`cmd_error at keyboard.c:935)) at =
eval.c:1497:25
    frame #57: 0x000000010049b013 emacs`command_loop_2(handlers=3D(struct =
Lisp_Symbol *) $39 =3D 0x000000010125d910) at keyboard.c:1132:11
    frame #58: 0x0000000100712009 emacs`internal_catch(tag=3D(struct =
Lisp_Symbol *) $42 =3D 0x000000010126c280, func=3D(emacs`command_loop_2 =
at keyboard.c:1128), arg=3D(struct Lisp_Symbol *) $45 =3D =
0x000000010125d910) at eval.c:1220:25
    frame #59: 0x000000010049919f emacs`command_loop at =
keyboard.c:1110:2
    frame #60: 0x0000000100498c8e emacs`recursive_edit_1 at =
keyboard.c:719:9
    frame #61: 0x0000000100499b33 emacs`Frecursive_edit at =
keyboard.c:802:3
    frame #62: 0x00000001004918be emacs`main(argc=3D1, =
argv=3D0x00007ffeefbff310) at emacs.c:2517:3
    frame #63: 0x00007fff204bff3d libdyld.dylib`start + 1
  thread #4, name =3D 'gmain'
    frame #0: 0x00007fff20477646 libsystem_kernel.dylib`__select + 10
    frame #1: 0x00000001029f056b libglib-2.0.0.dylib`g_poll + 505
    frame #2: 0x00000001029e3c2a =
libglib-2.0.0.dylib`g_main_context_iterate + 340
    frame #3: 0x00000001029e3cd8 =
libglib-2.0.0.dylib`g_main_context_iteration + 55
    frame #4: 0x00000001029e4e35 libglib-2.0.0.dylib`glib_worker_main + =
30
    frame #5: 0x0000000102a06ff2 libglib-2.0.0.dylib`g_thread_proxy + 66
    frame #6: 0x00007fff204a48fc libsystem_pthread.dylib`_pthread_start =
+ 224
    frame #7: 0x00007fff204a0443 libsystem_pthread.dylib`thread_start + =
15
  thread #5
    frame #0: 0x00007fff20473d52 libsystem_kernel.dylib`__pselect + 10
    frame #1: 0x00007fff20473c6f =
libsystem_kernel.dylib`pselect$DARWIN_EXTSN + 42
    frame #2: 0x00000001009b2be5 emacs`-[EmacsApp =
fd_handler:](self=3D0x0000612000024640, _cmd=3D"fd_handler:", =
unused=3D0x0000000000000000) at nsterm.m:6303:20
    frame #3: 0x00007fff21325447 Foundation`__NSThread__start__ + 1068
    frame #4: 0x00007fff204a48fc libsystem_pthread.dylib`_pthread_start =
+ 224
    frame #5: 0x00007fff204a0443 libsystem_pthread.dylib`thread_start + =
15
  thread #6, name =3D 'com.apple.NSEventThread'
    frame #0: 0x00007fff2046f2aa libsystem_kernel.dylib`mach_msg_trap + =
10
    frame #1: 0x00007fff2046f61c libsystem_kernel.dylib`mach_msg + 60
    frame #2: 0x00007fff2059cecf =
CoreFoundation`__CFRunLoopServiceMachPort + 316
    frame #3: 0x00007fff2059b5af CoreFoundation`__CFRunLoopRun + 1328
    frame #4: 0x00007fff2059a9bc CoreFoundation`CFRunLoopRunSpecific + =
563
    frame #5: 0x00007fff22f29bba AppKit`_NSEventThread + 124
    frame #6: 0x00007fff204a48fc libsystem_pthread.dylib`_pthread_start =
+ 224
    frame #7: 0x00007fff204a0443 libsystem_pthread.dylib`thread_start + =
15
  thread #8
    frame #0: 0x00007fff2047094e =
libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0x00007fff204a14c1 =
libsystem_pthread.dylib`_pthread_wqthread + 414
    frame #2: 0x00007fff204a042f libsystem_pthread.dylib`start_wqthread =
+ 15
  thread #10
    frame #0: 0x00007fff2047094e =
libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0x00007fff204a14c1 =
libsystem_pthread.dylib`_pthread_wqthread + 414
    frame #2: 0x00007fff204a042f libsystem_pthread.dylib`start_wqthread =
+ 15
  thread #11
    frame #0: 0x00007fff204a0420 libsystem_pthread.dylib`start_wqthread
  thread #13
    frame #0: 0x00007fff204a0420 libsystem_pthread.dylib`start_wqthread
  thread #14
    frame #0: 0x00007fff204a0420 libsystem_pthread.dylib`start_wqthread
  thread #15
    frame #0: 0x00007fff204a0420 libsystem_pthread.dylib`start_wqthread
  thread #16
    frame #0: 0x00007fff204a0420 libsystem_pthread.dylib`start_wqthread
  thread #17
    frame #0: 0x0000000000000000
    frame #1: 0x00007fff31a448da =
AppleVPA`___lldb_unnamed_symbol479$$AppleVPA + 336
    frame #2: 0x00007fff31a427ec =
AppleVPA`___lldb_unnamed_symbol455$$AppleVPA + 254
    frame #3: 0x00007fff204a48fc libsystem_pthread.dylib`_pthread_start =
+ 224
    frame #4: 0x00007fff204a0443 libsystem_pthread.dylib`thread_start + =
15
(lldb)

=
--------------------------------------------------------------------------=
-----

2022-08-19 10:09:53.301888-0400 emacs[92880:17395371] fopen failed for =
data file: errno =3D 2 (No such file or directory) (hmnn?)

This time I had to use:

/Users/james/Code/emacs/src/emacs

instead of $ lldb ../nextstep/Emacs.app/Contents/MacOS/Emacs (which =
crashed on startup)

=
--------------------------------------------------------------------------=
-----


> On Aug 19, 2022, at 3:22 AM, Gerd M=C3=B6llmann =
<gerd.moellmann@HIDDEN> wrote:
>=20
> Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes:
>=20
>> This could be heap corruption, I think.
>>=20
>> Can you please build Emacs with ASAN?  Something like:
>>=20
>>  git clean -xdf
>=20
> Sorry I forgot: before that, please also git pull, and show what Git
> version you are using.
>=20
>  git log --oneline -1=20





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57267; Package emacs. Full text available.

Message received at 57267 <at> debbugs.gnu.org:


Received: (at 57267) by debbugs.gnu.org; 19 Aug 2022 07:22:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 19 03:22:13 2022
Received: from localhost ([127.0.0.1]:57313 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oOwKa-0003Hk-SC
	for submit <at> debbugs.gnu.org; Fri, 19 Aug 2022 03:22:13 -0400
Received: from mail-ed1-f51.google.com ([209.85.208.51]:34753)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1oOwKZ-0003HY-7F
 for 57267 <at> debbugs.gnu.org; Fri, 19 Aug 2022 03:22:11 -0400
Received: by mail-ed1-f51.google.com with SMTP id z2so4626914edc.1
 for <57267 <at> debbugs.gnu.org>; Fri, 19 Aug 2022 00:22:11 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc;
 bh=d6jtO5U6eA+VMXtHwqNmO2PAQwgFgpedkqlBge0DZd4=;
 b=GfvoHndkqabz4xyOqXPhju2ebrLkyQJ1Ojxirzespv4gJilvwlEKqiNskQqKFOrBGL
 qYpykyq9uBICfAtOa4BA+JtWJ50cz9vdP2V4azUDZJlFPAKqo76D3HLFP8lG7i9enFjH
 MlweNNOmrt6SjRiOSAQpsfx343U7fH5NLg0lo5K/XoPfrexszj1iTk2owEKqM7yWsHVo
 W7PhRSS67L6CX9PNq2ER2s8eUJudMEq4n8WU/LAey3Xp1dBVlvVYhBCC0HO8OP4zMSEu
 SA7KX9W/SOFoOrMBKgvjfElEr5/R0a6YJ9zKkQR4C9qfznP7Vzm6EBifDx/QiTXur1Lr
 q5fw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc;
 bh=d6jtO5U6eA+VMXtHwqNmO2PAQwgFgpedkqlBge0DZd4=;
 b=mLbVYngN3zHgmexsFdNLfbWBiATfq4GRhjooQDmpgQQ3QBguOkSjZrDyxwenLZ7UCo
 LzVtXJIEinZcSfychEgr3Vv9c9vIt2/349UAJEquolgaSaKncDfekTZCnfkEJQ6mXPij
 6zxJAeLGEqGSCNl9eBZex8r2HFnWwx8uFV6k/W+OnlLfCf3lhHqtvRU85FfwT59llJ3U
 +SaIeSY++MRgcA+1Xbln3bLIKNDFxiSc0hYQ5azxxR8l2LSPkHjrcZHLK8iZ37D1cN7C
 6JK0o3KvVtp3qmXqONLR3EPhbWrYiPAgTRjT+TqIYlLacY+ytdeapJGJx1VT8pQHbVZ3
 SHKg==
X-Gm-Message-State: ACgBeo1FaIhGnJTYiUaKsxsK1nHQagKfXBZyoV8i+TEHBM0ULxmlJFfn
 3nYbjmVN7ZIDh8EHCecANfQjo9a8xpM=
X-Google-Smtp-Source: AA6agR6OMYWWvVbmLaWr+A+JiAyflQD7zRSDSL4O6XOPKg/K932Va/IzXel0+jIY2KbIgo3YWozHkQ==
X-Received: by 2002:a05:6402:5ca:b0:445:c80a:3c2 with SMTP id
 n10-20020a05640205ca00b00445c80a03c2mr5018820edx.247.1660893725309; 
 Fri, 19 Aug 2022 00:22:05 -0700 (PDT)
Received: from Mini.fritz.box (pd9e36a1e.dip0.t-ipconnect.de. [217.227.106.30])
 by smtp.gmail.com with ESMTPSA id
 u21-20020a170906409500b007330204dccdsm1928087ejj.140.2022.08.19.00.22.04
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 19 Aug 2022 00:22:04 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: james@HIDDEN
Subject: Re: bug#57267: 28.1; emacs crashes when loading too many images
In-Reply-To: <m21qtcitvi.fsf@HIDDEN> ("Gerd =?utf-8?Q?M=C3=B6llman?=
 =?utf-8?Q?n=22's?= message of "Fri, 19 Aug 2022 09:18:25 +0200")
References: <B1DA1052-75FD-45F6-9759-43ABB9C0C4E2@HIDDEN>
 <83v8qqawsh.fsf@HIDDEN>
 <CE82A2A1-035F-435F-B408-84B6B6563031@HIDDEN>
 <83a681fk6i.fsf@HIDDEN>
 <E6EC8DC3-9CE0-4648-9B34-26820059115B@HIDDEN>
 <837d34g4l7.fsf@HIDDEN>
 <4B3965F5-E6E3-489A-BCA8-A292387A5AF9@HIDDEN>
 <m21qtcitvi.fsf@HIDDEN>
Date: Fri, 19 Aug 2022 09:22:03 +0200
Message-ID: <m2y1vkhf50.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 57267
Cc: 57267 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes:

> This could be heap corruption, I think.
>
> Can you please build Emacs with ASAN?  Something like:
>
>   git clean -xdf

Sorry I forgot: before that, please also git pull, and show what Git
version you are using.

  git log --oneline -1=20




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57267; Package emacs. Full text available.

Message received at 57267 <at> debbugs.gnu.org:


Received: (at 57267) by debbugs.gnu.org; 19 Aug 2022 07:18:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 19 03:18:41 2022
Received: from localhost ([127.0.0.1]:57306 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oOwHA-0003Ah-3f
	for submit <at> debbugs.gnu.org; Fri, 19 Aug 2022 03:18:41 -0400
Received: from mail-ej1-f49.google.com ([209.85.218.49]:40946)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1oOwH5-0003AC-If
 for 57267 <at> debbugs.gnu.org; Fri, 19 Aug 2022 03:18:37 -0400
Received: by mail-ej1-f49.google.com with SMTP id w19so7212519ejc.7
 for <57267 <at> debbugs.gnu.org>; Fri, 19 Aug 2022 00:18:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc;
 bh=s79qPJ0i17zULfMPTOtqCg6R/8pEPjkFAW15Ad2YEgw=;
 b=MdfWgE+WNy6ImXv4EkwbOLlgTwixdfQsN7ooGo43PxxCHDuJKOFRGTCAvMqj9203k3
 xI5Isijdr5Ht5Zk1ayV9Anwjz6BYTNqjP9zRcFbhQn94+uL6GnDCMpcroTGruAYFDLor
 7K2nfqHw88Rr0ZqSRgoLdUUuLlPXxL9VmV2ecDNg4ztZHAnIPlHMD/hxdIihZo2EX+31
 4MDX5pbwvpEjU6m/pUkln1iAKB2tzpP5HMrAu7LU55e6pW9LFwZcUGBJv6CQAiWpmN1p
 Fy5aFIqnR4itXVjT7Rdi1bbsrfIMRkIeFkbytUhJV551m22+nRaBLDnGGbbnNZCn23DW
 eg0g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc;
 bh=s79qPJ0i17zULfMPTOtqCg6R/8pEPjkFAW15Ad2YEgw=;
 b=pcanhILvGfWoatAWWU9ZRHJAUloaoV3wvbxIrBNVRN2BDZ1AFWdAAjjzPQbL/2fquJ
 L67hLzLS9qS67qi1nad75O6jyAEWQCgRzu2s0kPtynaAeS7jE5F2E40B61687K9oWoLG
 tY7EGtEFjTA8eDP8kTgkVJpY/ozN2PEgqu7EKsaukSnPIgownwfAZOiZgJlHwnmx0KNQ
 07lqYWo88ULhXUqh/4dR8jZyTM1KgOJrHQd7a+NsDuYKTzD9GwqVWYF0HsQ18RDemph0
 JzJVjPKw1UrjP9Bzev6v49nTEy1YuUk9MEp4Rz/NSJclzAgIpoXg62w7N7oLbjEMEpxE
 NdCg==
X-Gm-Message-State: ACgBeo0FVMoZ0bNzeai9C4WHrM4QqqZx8RBOnK2PnSExzXnf4G6XkwSY
 nVvVWZywFfP/DOoJ5I85Qc9VBzvpVCE=
X-Google-Smtp-Source: AA6agR6oqCRom8ZDqOGnNsidMAgsW6ub1+WAqIF9LBbNk4qGWVG+elwaZ8O1yvh59Jy4O0h2a7+mkQ==
X-Received: by 2002:a17:907:7619:b0:730:d709:a2f0 with SMTP id
 jx25-20020a170907761900b00730d709a2f0mr4060335ejc.673.1660893508021; 
 Fri, 19 Aug 2022 00:18:28 -0700 (PDT)
Received: from Mini.fritz.box (pd9e36a1e.dip0.t-ipconnect.de. [217.227.106.30])
 by smtp.gmail.com with ESMTPSA id
 ev6-20020a17090729c600b007389c5a45f0sm1884652ejc.148.2022.08.19.00.18.26
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 19 Aug 2022 00:18:27 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: james@HIDDEN
Subject: Re: bug#57267: 28.1; emacs crashes when loading too many images
In-Reply-To: <4B3965F5-E6E3-489A-BCA8-A292387A5AF9@HIDDEN>
 (james@HIDDEN's message of "Fri, 19 Aug 2022 02:01:13 -0400")
References: <B1DA1052-75FD-45F6-9759-43ABB9C0C4E2@HIDDEN>
 <83v8qqawsh.fsf@HIDDEN>
 <CE82A2A1-035F-435F-B408-84B6B6563031@HIDDEN>
 <83a681fk6i.fsf@HIDDEN>
 <E6EC8DC3-9CE0-4648-9B34-26820059115B@HIDDEN>
 <837d34g4l7.fsf@HIDDEN>
 <4B3965F5-E6E3-489A-BCA8-A292387A5AF9@HIDDEN>
Date: Fri, 19 Aug 2022 09:18:25 +0200
Message-ID: <m21qtcitvi.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 57267
Cc: 57267 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

This could be heap corruption, I think.

Can you please build Emacs with ASAN?  Something like:

  git clean -xdf
  ./autogen.sh
  ./configure CFLAGS="-g -O0 -fsanitize=address -fno-omit-frame-pointer" \
              LDFLAGS="-fsanitize=address -fno-omit-frame-pointer"
  make

Everything above in the root of your Git worktree.

Then start Emacs like this:

  cd src
  lldb emacs
  run

and do what you did to make it crash.  If it's a heap corruption, and
ASAN can detect it, it will break into LLDB at that point.  Then please
print backtraces and so on, as Eli said.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57267; Package emacs. Full text available.

Message received at 57267 <at> debbugs.gnu.org:


Received: (at 57267) by debbugs.gnu.org; 19 Aug 2022 06:01:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 19 02:01:23 2022
Received: from localhost ([127.0.0.1]:57254 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oOv4M-0001Aa-IB
	for submit <at> debbugs.gnu.org; Fri, 19 Aug 2022 02:01:23 -0400
Received: from out1-smtp.messagingengine.com ([66.111.4.25]:33077)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <james@HIDDEN>) id 1oOv4J-0001AN-Ch
 for 57267 <at> debbugs.gnu.org; Fri, 19 Aug 2022 02:01:20 -0400
Received: from compute4.internal (compute4.nyi.internal [10.202.2.44])
 by mailout.nyi.internal (Postfix) with ESMTP id 53F7A5C0181;
 Fri, 19 Aug 2022 02:01:14 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute4.internal (MEProxy); Fri, 19 Aug 2022 02:01:14 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jojojames.com;
 h=cc:cc:content-transfer-encoding:content-type:date:date:from
 :from:in-reply-to:in-reply-to:message-id:mime-version:references
 :reply-to:sender:subject:subject:to:to; s=fm3; t=1660888874; x=
 1660975274; bh=TSFq0PgPg2QtYJIx3opVVXp0hSdZ/hMO3jjIn+3GUyU=; b=S
 NyntXMZxwqdnUYOaGljNGSmLrRRqhBeJ9OFpMFp9z3MMJSfLv9XwvuHbcOiquJs6
 5s/XI7Oj15oSVBvioHKbDTyX0Lu5ShlXkhE/DqBQqW9D6/OD4s2hQY9Ybi4O30b6
 MS3ateLP9y5dldSja1CKJMsf59rifFo7hfQ7LK7aMPJJ7AUhf9TtHGFeDgnzcMQC
 t8+NTLHY6iKQdaL8VKuvt4J1z5oewLAthrNxHHSIXujafj0nxx/xKV/lL9+mG47r
 SD4zcKu4zt0vhfdVFvUmuStfb5evddFRRoC0UEM30+ELq8jWKe4oYLcGJMP1JH3S
 g+9/UW/oMkDquwFiHOIig==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:date:date:feedback-id:feedback-id:from:from
 :in-reply-to:in-reply-to:message-id:mime-version:references
 :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy
 :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1660888874; x=
 1660975274; bh=TSFq0PgPg2QtYJIx3opVVXp0hSdZ/hMO3jjIn+3GUyU=; b=u
 kNJGgyf+CjZaMXyrKDPXFo+chqa/NU3XY0cptyuJDcXSODf+PXO+i4lgTXBMZ8sz
 oz8gOFxZbxRCmjgKVWXUY3oBQZXCZENtEFWCgc+OSaExUYJdFWrh0FFvavswFpLa
 tvuCGGjylGO3usuvX2hz8oXKGRiB6tImIWEuxADkZcGvYyezSlizEsUIb7cH9JS6
 EQ9pmvVxbPSCbj+wePOUBSAIzdccSUMhSyheuPPUJD1Xrk6Cr1tJDlXCO6qkVMv4
 cVj2g+aPyNhSyU+cN9BqmSupdEsAp+NT0CRm4fGpfNRE64Y/A/rTXtfXfYo2KF6a
 YY6AjF3yV1n1V5uC7rJQw==
X-ME-Sender: <xms:Kif_YrqeO2hBCUFXYmTTpKrtSjs6XainwabVOMa1i-yHNtpglkTUKA>
 <xme:Kif_YlrNa9kq5M_C5_-ScxDCAwspq3eHfbEURUAkvyGoNzgXRSgTj5xTtVMT45Zt0
 LVzwv84gtM__2EqIQ>
X-ME-Received: <xmr:Kif_YoOjvb9yPV5WlbuWZX1VDy1AneToXD-QVbUybJ639JcZJ7Xl-ECOlGd0LPHAkQbtRTUake86O5lSO4EKy0dep90h4gqjRWeeEU77n8_GE5FMjIUCNA>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdeitddguddtfecutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh
 necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd
 enucfjughrpegtggfuhfgjffevgffkfhfvofesthhqmhdthhdtjeenucfhrhhomhepjhgr
 mhgvshesjhhojhhojhgrmhgvshdrtghomhenucggtffrrghtthgvrhhnpeekgeevtdevge
 eileegfeefuddtfeekveehgfeuffeuleeuledttdeiteeggfekgeenucevlhhushhtvghr
 ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjrghmvghssehjohhjohhjrg
 hmvghsrdgtohhm
X-ME-Proxy: <xmx:Kif_Yu68TaBWm7qBRnjC_Y3L070puk_4WRk-2PWJw6jA4P3tJaEXBQ>
 <xmx:Kif_Yq4Jg-S_tcqvdZmCILrFhFS9pFbR_prq_SCGxdK2fLkxQkFu1w>
 <xmx:Kif_YmgPzFfFWVpWlJ_XRusMI48kk9-82XLsI5YVfN7Rts5haB4Ptw>
 <xmx:Kif_YviNPKeAMz3zO-QFvMgPDTOhgXr5e3hKc277kiwby7jflDjfbw>
Feedback-ID: i4b00421f:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri,
 19 Aug 2022 02:01:13 -0400 (EDT)
Content-Type: text/plain;
	charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\))
Subject: Re: bug#57267: 28.1; emacs crashes when loading too many images
From: james@HIDDEN
In-Reply-To: <837d34g4l7.fsf@HIDDEN>
Date: Fri, 19 Aug 2022 02:01:13 -0400
Content-Transfer-Encoding: quoted-printable
Message-Id: <4B3965F5-E6E3-489A-BCA8-A292387A5AF9@HIDDEN>
References: <B1DA1052-75FD-45F6-9759-43ABB9C0C4E2@HIDDEN>
 <83v8qqawsh.fsf@HIDDEN> <CE82A2A1-035F-435F-B408-84B6B6563031@HIDDEN>
 <83a681fk6i.fsf@HIDDEN> <E6EC8DC3-9CE0-4648-9B34-26820059115B@HIDDEN>
 <837d34g4l7.fsf@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
X-Mailer: Apple Mail (2.3654.120.0.1.13)
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 57267
Cc: 57267 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Here=E2=80=99s another trace, not sure if it would help or not.

Process 52957 stopped
* thread #113, stop reason =3D EXC_BAD_ACCESS (code=3D2, =
address=3D0x18abe96d0)
    frame #0: 0x000000018abe96d0
Target 0: (Emacs) stopped.
(lldb) bt
* thread #113, stop reason =3D EXC_BAD_ACCESS (code=3D2, =
address=3D0x18abe96d0)
  * frame #0: 0x000000018abe96d0
    frame #1: 0x00007fff31a448da =
AppleVPA`___lldb_unnamed_symbol479$$AppleVPA + 336
    frame #2: 0x00007fff31a427ec =
AppleVPA`___lldb_unnamed_symbol455$$AppleVPA + 254
    frame #3: 0x00007fff204a48fc libsystem_pthread.dylib`_pthread_start =
+ 224
    frame #4: 0x00007fff204a0443 libsystem_pthread.dylib`thread_start + =
15
(lldb) thread select 1
* thread #1, queue =3D 'com.apple.main-thread'
    frame #0: 0x00007fff202cd0f8 =
libsystem_malloc.dylib`small_malloc_from_free_list + 531
libsystem_malloc.dylib`small_malloc_from_free_list:
->  0x7fff202cd0f8 <+531>: leaq   0x604d16b1(%rip), %rax    ; =
malloc_entropy
    0x7fff202cd0ff <+538>: movzwl 0x1(%rax), %eax
    0x7fff202cd103 <+542>: cmpl   %eax, %r8d
    0x7fff202cd106 <+545>: jne    0x7fff202cd147            ; <+610>
(lldb) bt all
* thread #1, queue =3D 'com.apple.main-thread'
  * frame #0: 0x00007fff202cd0f8 =
libsystem_malloc.dylib`small_malloc_from_free_list + 531
    frame #1: 0x00007fff202cc877 =
libsystem_malloc.dylib`small_malloc_should_clear + 259
    frame #2: 0x00007fff202cc692 =
libsystem_malloc.dylib`szone_malloc_should_clear + 109
    frame #3: 0x00007fff202e5f3b =
libsystem_malloc.dylib`_malloc_zone_malloc + 118
    frame #4: 0x00007fff2051ff87 CoreFoundation`_CFRuntimeCreateInstance =
+ 587
    frame #5: 0x00007fff2bc86720 =
VideoToolbox`___lldb_unnamed_symbol1153$$VideoToolbox + 60
    frame #6: 0x00007fff2bc7c331 =
VideoToolbox`___lldb_unnamed_symbol1119$$VideoToolbox + 5933
    frame #7: 0x00007fff2bc7ab8b =
VideoToolbox`___lldb_unnamed_symbol1118$$VideoToolbox + 296
    frame #8: 0x00007fff2bc515b7 =
VideoToolbox`___lldb_unnamed_symbol778$$VideoToolbox + 663
    frame #9: 0x00007fff2bbd5ee3 =
VideoToolbox`___lldb_unnamed_symbol120$$VideoToolbox + 11943
    frame #10: 0x00007fff2bbb1a6e =
VideoToolbox`VTPixelTransferSessionTransferImage + 1259
    frame #11: 0x00007fff2c4e30b9 =
MediaToolbox`___lldb_unnamed_symbol11295$$MediaToolbox + 4079
    frame #12: 0x00007fff2c0515b9 =
MediaToolbox`FigPhotoScaleAndRotateSessionTransformForSize + 247
    frame #13: 0x00007fff2c3afdea =
MediaToolbox`___lldb_unnamed_symbol7966$$MediaToolbox + 2665
    frame #14: 0x00007fff2c3acb81 =
MediaToolbox`___lldb_unnamed_symbol7929$$MediaToolbox + 74
    frame #15: 0x00007fff2c060c88 =
MediaToolbox`FigPhotoDecompressionContainerCreateImageForIndex + 81
    frame #16: 0x00007fff28b7ccac =
ImageIO`AppleJPEGReadPlugin::copyIOSurfaceCallback(InfoRec*, =
CGImageProvider*, __CFDictionary const*) + 802
    frame #17: 0x00007fff28b7d570 =
ImageIO`AppleJPEGReadPlugin::createImageBlockSetWithHardwareDecode(InfoRec=
*, CGImageProvider*, CGSize, __CFDictionary const*) + 154
    frame #18: 0x00007fff28b0f679 =
ImageIO`AppleJPEGReadPlugin::copyImageBlockSet(InfoRec*, =
CGImageProvider*, CGRect, CGSize, __CFDictionary const*) + 1955
    frame #19: 0x00007fff28b0e998 =
ImageIO`IIO_Reader::CopyImageBlockSetProc(void*, CGImageProvider*, =
CGRect, CGSize, __CFDictionary const*) + 100
    frame #20: 0x00007fff28b2c527 =
ImageIO`IIOImageProviderInfo::copyImageBlockSetWithOptions(CGImageProvider=
*, CGRect, CGSize, __CFDictionary const*) + 663
    frame #21: 0x00007fff28b0e8d0 =
ImageIO`IIOImageProviderInfo::CopyImageBlockSetWithOptions(void*, =
CGImageProvider*, CGRect, CGSize, __CFDictionary const*) + 680
    frame #22: 0x00007fff250e076b =
CoreGraphics`CGImageCreateSubsampledImage + 594
    frame #23: 0x00007fff250e0000 CoreGraphics`ripc_DrawImage + 507
    frame #24: 0x00007fff250df4f7 =
CoreGraphics`CGContextDrawImageWithOptions + 454
    frame #25: 0x00007fff22f119c5 AppKit`__74-[NSImageRep =
drawInRect:fromRect:operation:fraction:respectFlipped:hints:]_block_invoke=
 + 902
    frame #26: 0x00007fff22f114fa AppKit`-[NSImageRep =
drawInRect:fromRect:operation:fraction:respectFlipped:hints:] + 936
    frame #27: 0x00007fff233b1dbc AppKit`__71-[NSImage =
drawInRect:fromRect:operation:fraction:respectFlipped:hints:]_block_invoke=
.1340 + 967
    frame #28: 0x00007fff22eea8b9 AppKit`-[NSImage =
_usingBestRepresentationForRect:context:hints:body:] + 129
    frame #29: 0x00007fff22f10ec1 AppKit`-[NSImage =
drawInRect:fromRect:operation:fraction:respectFlipped:hints:] + 1359
    frame #30: 0x000000010049358c =
Emacs`ns_dumpglyphs_image(s=3D0x00007ffeefbfa140, r=3D(origin =3D (x =3D =
10, y =3D 586), size =3D (width =3D 1296, height =3D 143))) at =
nsterm.m:3952:7
    frame #31: 0x000000010048f75e =
Emacs`ns_draw_glyph_string(s=3D0x00007ffeefbfa140) at nsterm.m:4349:7
    frame #32: 0x0000000100092b81 =
Emacs`draw_glyphs(w=3D0x000000011f05c210, x=3D1142, =
row=3D0x000000014b818a00, area=3DTEXT_AREA, start=3D0, end=3D75, =
hl=3DDRAW_NORMAL_TEXT, overlaps=3D0) at xdisp.c:30449:5
    frame #33: 0x000000010008f72d =
Emacs`gui_write_glyphs(w=3D0x000000011f05c210, =
updated_row=3D0x000000014b818a00, start=3D0x00000001c4182400, =
updated_area=3DTEXT_AREA, len=3D75) at xdisp.c:32509:7
    frame #34: 0x0000000100019566 =
Emacs`update_text_area(w=3D0x000000011f05c210, =
updated_row=3D0x000000014b818a00, vpos=3D2, =
partial_p=3D0x00007ffeefbfaa4e) at dispnew.c:3981:2
    frame #35: 0x000000010001726d =
Emacs`update_window_line(w=3D0x000000011f05c210, vpos=3D2, =
mouse_face_overwritten_p=3D0x00007ffeefbfab12) at dispnew.c:4239:11
    frame #36: 0x0000000100009bc6 =
Emacs`update_window(w=3D0x000000011f05c210, force_p=3Dtrue) at =
dispnew.c:3719:19
    frame #37: 0x000000010000a212 =
Emacs`update_window_tree(w=3D0x000000011f05c210, force_p=3Dtrue) at =
dispnew.c:3444:14
    frame #38: 0x0000000100009278 =
Emacs`update_frame(f=3D0x000000011f05ba30, force_p=3Dtrue, =
inhibit_hairy_id_p=3Dfalse) at dispnew.c:3279:18
    frame #39: 0x000000010006dd0f Emacs`redisplay_internal at =
xdisp.c:17096:14
    frame #40: 0x00000001000763e9 Emacs`redisplay at xdisp.c:16103:3
    frame #41: 0x00000001001cf700 Emacs`read_char(commandflag=3D1, =
map=3D(EMACS_INT) $57 =3D 12384940296, prev_event=3D(struct Lisp_Symbol =
*) $60 =3D 0x0000000100bb11e0, used_mouse_menu=3D0x00007ffeefbfe58f, =
end_time=3D0x0000000000000000) at keyboard.c:2643:6
    frame #42: 0x00000001001cae45 Emacs`read_key_sequence(keybuf=3D(struct=
 Lisp_Cons *) $62 =3D 0x00000000000001b0, prompt=3D(struct Lisp_Symbol =
*) $65 =3D 0x0000000100bb11e0, dont_downcase_last=3Dfalse, =
can_return_switch_frame=3Dtrue, fix_current_buffer=3Dtrue, =
prevent_redisplay=3Dfalse) at keyboard.c:10045:12
    frame #43: 0x00000001001c890e Emacs`command_loop_1 at =
keyboard.c:1384:15
    frame #44: 0x0000000100314451 =
Emacs`internal_condition_case(bfun=3D(Emacs`command_loop_1 at =
keyboard.c:1277), handlers=3D(struct Lisp_Symbol *) $68 =3D =
0x0000000100bb1270, hfun=3D(Emacs`cmd_error at keyboard.c:935)) at =
eval.c:1497:25
    frame #45: 0x00000001001c8203 Emacs`command_loop_2(handlers=3D(struct =
Lisp_Symbol *) $71 =3D 0x0000000100bb1270) at keyboard.c:1132:11
    frame #46: 0x00000001003134e6 Emacs`internal_catch(tag=3D(struct =
Lisp_Symbol *) $74 =3D 0x0000000100bbfbe0, func=3D(Emacs`command_loop_2 =
at keyboard.c:1128), arg=3D(struct Lisp_Symbol *) $77 =3D =
0x0000000100bb1270) at eval.c:1220:25
    frame #47: 0x00000001001c7175 Emacs`command_loop at =
keyboard.c:1110:2
    frame #48: 0x00000001001c6f60 Emacs`recursive_edit_1 at =
keyboard.c:719:9
    frame #49: 0x00000001001c75a4 Emacs`Frecursive_edit at =
keyboard.c:802:3
    frame #50: 0x00000001001c3a2b Emacs`main(argc=3D1, =
argv=3D0x00007ffeefbff2e8) at emacs.c:2517:3
    frame #51: 0x00007fff204bff3d libdyld.dylib`start + 1
    frame #52: 0x00007fff204bff3d libdyld.dylib`start + 1
  thread #4, name =3D 'gmain'
    frame #0: 0x00007fff20477646 libsystem_kernel.dylib`__select + 10
    frame #1: 0x000000010211c56b libglib-2.0.0.dylib`g_poll + 505
    frame #2: 0x000000010210fc2a =
libglib-2.0.0.dylib`g_main_context_iterate + 340
    frame #3: 0x000000010210fcd8 =
libglib-2.0.0.dylib`g_main_context_iteration + 55
    frame #4: 0x0000000102110e35 libglib-2.0.0.dylib`glib_worker_main + =
30
    frame #5: 0x0000000102132ff2 libglib-2.0.0.dylib`g_thread_proxy + 66
    frame #6: 0x00007fff204a48fc libsystem_pthread.dylib`_pthread_start =
+ 224
    frame #7: 0x00007fff204a0443 libsystem_pthread.dylib`thread_start + =
15
  thread #8
    frame #0: 0x00007fff20473d52 libsystem_kernel.dylib`__pselect + 10
    frame #1: 0x00007fff20473c6f =
libsystem_kernel.dylib`pselect$DARWIN_EXTSN + 42
    frame #2: 0x0000000100472c7b Emacs`-[EmacsApp =
fd_handler:](self=3D0x000000011e876440, _cmd=3D"fd_handler:", =
unused=3D0x0000000000000000) at nsterm.m:6303:20
    frame #3: 0x00007fff21325447 Foundation`__NSThread__start__ + 1068
    frame #4: 0x00007fff204a48fc libsystem_pthread.dylib`_pthread_start =
+ 224
    frame #5: 0x00007fff204a0443 libsystem_pthread.dylib`thread_start + =
15
  thread #10, name =3D 'com.apple.NSEventThread'
    frame #0: 0x00007fff2046f2aa libsystem_kernel.dylib`mach_msg_trap + =
10
    frame #1: 0x00007fff2046f61c libsystem_kernel.dylib`mach_msg + 60
    frame #2: 0x00007fff2059cecf =
CoreFoundation`__CFRunLoopServiceMachPort + 316
    frame #3: 0x00007fff2059b5af CoreFoundation`__CFRunLoopRun + 1328
    frame #4: 0x00007fff2059a9bc CoreFoundation`CFRunLoopRunSpecific + =
563
    frame #5: 0x00007fff22f29bba AppKit`_NSEventThread + 124
    frame #6: 0x00007fff204a48fc libsystem_pthread.dylib`_pthread_start =
+ 224
    frame #7: 0x00007fff204a0443 libsystem_pthread.dylib`thread_start + =
15
  thread #98
    frame #0: 0x00007fff204a0420 libsystem_pthread.dylib`start_wqthread
  thread #104
    frame #0: 0x00007fff204a0420 libsystem_pthread.dylib`start_wqthread
  thread #105
    frame #0: 0x00007fff204a0420 libsystem_pthread.dylib`start_wqthread
  thread #108
    frame #0: 0x00007fff2047094e =
libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0x00007fff204a14c1 =
libsystem_pthread.dylib`_pthread_wqthread + 414
    frame #2: 0x00007fff204a042f libsystem_pthread.dylib`start_wqthread =
+ 15
  thread #109
    frame #0: 0x00007fff204a0420 libsystem_pthread.dylib`start_wqthread
  thread #110
    frame #0: 0x00007fff204a0420 libsystem_pthread.dylib`start_wqthread
  thread #111
    frame #0: 0x00007fff2047094e =
libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0x00007fff204a14c1 =
libsystem_pthread.dylib`_pthread_wqthread + 414
    frame #2: 0x00007fff204a042f libsystem_pthread.dylib`start_wqthread =
+ 15
  thread #112
    frame #0: 0x00007fff2047094e =
libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0x00007fff204a14c1 =
libsystem_pthread.dylib`_pthread_wqthread + 414
    frame #2: 0x00007fff204a042f libsystem_pthread.dylib`start_wqthread =
+ 15
  thread #113
    frame #0: 0x000000018abe96d0
    frame #1: 0x00007fff31a448da =
AppleVPA`___lldb_unnamed_symbol479$$AppleVPA + 336
    frame #2: 0x00007fff31a427ec =
AppleVPA`___lldb_unnamed_symbol455$$AppleVPA + 254
    frame #3: 0x00007fff204a48fc libsystem_pthread.dylib`_pthread_start =
+ 224
    frame #4: 0x00007fff204a0443 libsystem_pthread.dylib`thread_start + =
15
(lldb) xbacktrace
(unsigned char *) data =3D 0x0000000100540c8e "redisplay_internal (C =
function)"
(lldb)


> On Aug 19, 2022, at 1:55 AM, Eli Zaretskii <eliz@HIDDEN> wrote:
>=20
>> From: james@HIDDEN
>> Date: Thu, 18 Aug 2022 16:14:26 -0400
>> Cc: 57267 <at> debbugs.gnu.org
>>=20
>> Process 35748 stopped
>> * thread #44, stop reason =3D EXC_BAD_ACCESS (code=3D2, =
address=3D0x718b828a0)
>>    frame #0: 0x0000000718b828a0
>> ->  0x718b828a0: addb   %al, (%rax)
>>    0x718b828a2: addb   %al, (%rax)
>>    0x718b828a4: addb   %al, (%rax)
>>    0x718b828a6: addb   %al, (%rax)
>> Target 0: (Emacs) stopped.
>> (lldb)
>=20
> Thread 44 doesn't look like our thread.  If it stopped due to
> EXC_BAD_ACCESS, then I don't know what to say about this.
>=20
> Thread 1, which is the main Lisp thread, seems to be inside the Apple
> library that handles JPEG images:
>=20
>> (lldb) thread select 1
>> * thread #1, queue =3D 'com.apple.main-thread'
>>    frame #0: 0x00007fff204709de libsystem_kernel.dylib`__ulock_wait + =
10
>> libsystem_kernel.dylib`__ulock_wait:
>> ->  0x7fff204709de <+10>: jae    0x7fff204709e8            ; <+20>
>>    0x7fff204709e0 <+12>: movq   %rax, %rdi
>>    0x7fff204709e3 <+15>: jmp    0x7fff2046fac9            ; =
cerror_nocancel
>>    0x7fff204709e8 <+20>: retq
>> (lldb) bt
>> * thread #1, queue =3D 'com.apple.main-thread'
>>  * frame #0: 0x00007fff204709de libsystem_kernel.dylib`__ulock_wait + =
10
>>    frame #1: 0x00007fff204a5f60 libsystem_pthread.dylib`_pthread_join =
+ 362
>>    frame #2: 0x00007fff31a4287c =
AppleVPA`___lldb_unnamed_symbol456$$AppleVPA + 132
>>    frame #3: 0x00007fff31a3abde =
AppleVPA`___lldb_unnamed_symbol279$$AppleVPA + 72
>>    frame #4: 0x00007fff2066775a CoreFoundation`_CFRelease + 244
>>    frame #5: 0x00007fff2053e583 =
CoreFoundation`__RELEASE_OBJECTS_IN_THE_ARRAY__ + 118
>>    frame #6: 0x00007fff2053e4c6 CoreFoundation`-[__NSArrayM dealloc] =
+ 279
>>    frame #7: 0x00007fff2c082f12 =
MediaToolbox`___lldb_unnamed_symbol186$$MediaToolbox + 270
>>    frame #8: 0x00007fff2066775a CoreFoundation`_CFRelease + 244
>>    frame #9: 0x00007fff28b7ce57 =
ImageIO`AppleJPEGReadPlugin::copyIOSurfaceCallback(InfoRec*, =
CGImageProvider*, __CFDictionary const*) + 1229
>>    frame #10: 0x00007fff28b7d570 =
ImageIO`AppleJPEGReadPlugin::createImageBlockSetWithHardwareDecode(InfoRec=
*, CGImageProvider*, CGSize, __CFDictionary const*) + 154
>>    frame #11: 0x00007fff28b0f679 =
ImageIO`AppleJPEGReadPlugin::copyImageBlockSet(InfoRec*, =
CGImageProvider*, CGRect, CGSize, __CFDictionary const*) + 1955
>>    frame #12: 0x00007fff28b0e998 =
ImageIO`IIO_Reader::CopyImageBlockSetProc(void*, CGImageProvider*, =
CGRect, CGSize, __CFDictionary const*) + 100
>>    frame #13: 0x00007fff28b2c527 =
ImageIO`IIOImageProviderInfo::copyImageBlockSetWithOptions(CGImageProvider=
*, CGRect, CGSize, __CFDictionary const*) + 663
>>    frame #14: 0x00007fff28b0e8d0 =
ImageIO`IIOImageProviderInfo::CopyImageBlockSetWithOptions(void*, =
CGImageProvider*, CGRect, CGSize, __CFDictionary const*) + 680
>>    frame #15: 0x00007fff250e82d0 =
CoreGraphics`imageProvider_retain_data + 77
>>    frame #16: 0x00007fff250e8246 =
CoreGraphics`CGDataProviderRetainData + 75
>>    frame #17: 0x00007fff250e826b =
CoreGraphics`provider_for_destination_retain_data + 17
>>    frame #18: 0x00007fff250e8246 =
CoreGraphics`CGDataProviderRetainData + 75
>>    frame #19: 0x00007fff250e80f6 CoreGraphics`CGAccessSessionCreate + =
98
>>    frame #20: 0x00007fff250e9e57 CoreGraphics`get_access_session + 44
>>    frame #21: 0x00007fff250e954c CoreGraphics`img_raw_read + 1302
>>    frame #22: 0x00007fff251440f9 CoreGraphics`img_interpolate_read + =
753
>>    frame #23: 0x00007fff250e75bc CoreGraphics`img_data_lock + 6164
>>    frame #24: 0x00007fff250e22f0 CoreGraphics`CGSImageDataLock + 1230
>>    frame #25: 0x00007fff250e1de9 =
CoreGraphics`RIPImageDataInitializeShared + 164
>>    frame #26: 0x00007fff250e1aaa =
CoreGraphics`RIPImageCacheGetRetained + 750
>>    frame #27: 0x00007fff250e1574 =
CoreGraphics`ripc_AcquireRIPImageData + 384
>>    frame #28: 0x00007fff250e02a1 CoreGraphics`ripc_DrawImage + 1180
>>    frame #29: 0x00007fff250df4f7 =
CoreGraphics`CGContextDrawImageWithOptions + 454
>>    frame #30: 0x00007fff22f119c5 AppKit`__74-[NSImageRep =
drawInRect:fromRect:operation:fraction:respectFlipped:hints:]_block_invoke=
 + 902
>>    frame #31: 0x00007fff22f114fa AppKit`-[NSImageRep =
drawInRect:fromRect:operation:fraction:respectFlipped:hints:] + 936
>>    frame #32: 0x00007fff233b1dbc AppKit`__71-[NSImage =
drawInRect:fromRect:operation:fraction:respectFlipped:hints:]_block_invoke=
.1340 + 967
>>    frame #33: 0x00007fff22eea8b9 AppKit`-[NSImage =
_usingBestRepresentationForRect:context:hints:body:] + 129
>>    frame #34: 0x00007fff22f10ec1 AppKit`-[NSImage =
drawInRect:fromRect:operation:fraction:respectFlipped:hints:] + 1359
>>    frame #35: 0x000000010049358c =
Emacs`ns_dumpglyphs_image(s=3D0x00007ffeefbfa220, r=3D(origin =3D (x =3D =
10, y =3D 222), size =3D (width =3D 700, height =3D 507))) at =
nsterm.m:3952:7
>>    frame #36: 0x000000010048f75e =
Emacs`ns_draw_glyph_string(s=3D0x00007ffeefbfa220) at nsterm.m:4349:7
>>    frame #37: 0x0000000100092b81 =
Emacs`draw_glyphs(w=3D0x0000000106152630, x=3D672, =
row=3D0x000000010424f700, area=3DTEXT_AREA, start=3D0, end=3D20, =
hl=3DDRAW_NORMAL_TEXT, overlaps=3D0) at xdisp.c:30449:5
>=20
> So again, I don't see what that has to do with Emacs.
>=20
> OTOH, redisplay works on macOS very differently from other platforms,
> so maybe we are somehow causing this?





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57267; Package emacs. Full text available.

Message received at 57267 <at> debbugs.gnu.org:


Received: (at 57267) by debbugs.gnu.org; 19 Aug 2022 05:55:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 19 01:55:34 2022
Received: from localhost ([127.0.0.1]:57248 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oOuyj-0007IM-Kd
	for submit <at> debbugs.gnu.org; Fri, 19 Aug 2022 01:55:34 -0400
Received: from eggs.gnu.org ([209.51.188.92]:35868)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1oOuyg-0007I7-VB
 for 57267 <at> debbugs.gnu.org; Fri, 19 Aug 2022 01:55:31 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:60896)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1oOuyb-00069R-Eu; Fri, 19 Aug 2022 01:55:25 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=AYRVTIuqI3RgtOgKuP6VMR4IyK4e+TC/nh8u5ixWtz8=; b=KFG4ntwWC0Yd
 /VuenHqTIrV1BZWdl/P2hOFX55+3VwKSXufn2B1rDAL4okkhNfwYxM7J+WUf1UWaQIMLSclMEwlus
 skw6eGyNkwpEbz/shlLZPzeoIIu5BIsp2CHWy7DXBQMFpGEgLT4/6DfkdlUmRhJhRJSbwO8J8RiKT
 4fZBcMn7mMaD99athDaFj3Xa9u7qKy0TcyYmH9GXCScQnvqOVPqKVXq4ohUwZnA8lg1fIvGXCq4ZI
 pp7Nqac+4IQTQbUPGDDTGlpbaofS5rJb54e0CR7EsU/GuEmXpBIAMMZbkAqdKkQlHyXJFjlMYKscR
 qC+4PNRF564KnsGas1JhcQ==;
Received: from [87.69.77.57] (port=4889 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1oOuyZ-0006IW-UK; Fri, 19 Aug 2022 01:55:24 -0400
Date: Fri, 19 Aug 2022 08:55:16 +0300
Message-Id: <837d34g4l7.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: james@HIDDEN
In-Reply-To: <E6EC8DC3-9CE0-4648-9B34-26820059115B@HIDDEN>
Subject: Re: bug#57267: 28.1; emacs crashes when loading too many images
References: <B1DA1052-75FD-45F6-9759-43ABB9C0C4E2@HIDDEN>
 <83v8qqawsh.fsf@HIDDEN> <CE82A2A1-035F-435F-B408-84B6B6563031@HIDDEN>
 <83a681fk6i.fsf@HIDDEN> <E6EC8DC3-9CE0-4648-9B34-26820059115B@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 57267
Cc: 57267 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: james@HIDDEN
> Date: Thu, 18 Aug 2022 16:14:26 -0400
> Cc: 57267 <at> debbugs.gnu.org
> 
> Process 35748 stopped
> * thread #44, stop reason = EXC_BAD_ACCESS (code=2, address=0x718b828a0)
>     frame #0: 0x0000000718b828a0
> ->  0x718b828a0: addb   %al, (%rax)
>     0x718b828a2: addb   %al, (%rax)
>     0x718b828a4: addb   %al, (%rax)
>     0x718b828a6: addb   %al, (%rax)
> Target 0: (Emacs) stopped.
> (lldb)

Thread 44 doesn't look like our thread.  If it stopped due to
EXC_BAD_ACCESS, then I don't know what to say about this.

Thread 1, which is the main Lisp thread, seems to be inside the Apple
library that handles JPEG images:

> (lldb) thread select 1
> * thread #1, queue = 'com.apple.main-thread'
>     frame #0: 0x00007fff204709de libsystem_kernel.dylib`__ulock_wait + 10
> libsystem_kernel.dylib`__ulock_wait:
> ->  0x7fff204709de <+10>: jae    0x7fff204709e8            ; <+20>
>     0x7fff204709e0 <+12>: movq   %rax, %rdi
>     0x7fff204709e3 <+15>: jmp    0x7fff2046fac9            ; cerror_nocancel
>     0x7fff204709e8 <+20>: retq
> (lldb) bt
> * thread #1, queue = 'com.apple.main-thread'
>   * frame #0: 0x00007fff204709de libsystem_kernel.dylib`__ulock_wait + 10
>     frame #1: 0x00007fff204a5f60 libsystem_pthread.dylib`_pthread_join + 362
>     frame #2: 0x00007fff31a4287c AppleVPA`___lldb_unnamed_symbol456$$AppleVPA + 132
>     frame #3: 0x00007fff31a3abde AppleVPA`___lldb_unnamed_symbol279$$AppleVPA + 72
>     frame #4: 0x00007fff2066775a CoreFoundation`_CFRelease + 244
>     frame #5: 0x00007fff2053e583 CoreFoundation`__RELEASE_OBJECTS_IN_THE_ARRAY__ + 118
>     frame #6: 0x00007fff2053e4c6 CoreFoundation`-[__NSArrayM dealloc] + 279
>     frame #7: 0x00007fff2c082f12 MediaToolbox`___lldb_unnamed_symbol186$$MediaToolbox + 270
>     frame #8: 0x00007fff2066775a CoreFoundation`_CFRelease + 244
>     frame #9: 0x00007fff28b7ce57 ImageIO`AppleJPEGReadPlugin::copyIOSurfaceCallback(InfoRec*, CGImageProvider*, __CFDictionary const*) + 1229
>     frame #10: 0x00007fff28b7d570 ImageIO`AppleJPEGReadPlugin::createImageBlockSetWithHardwareDecode(InfoRec*, CGImageProvider*, CGSize, __CFDictionary const*) + 154
>     frame #11: 0x00007fff28b0f679 ImageIO`AppleJPEGReadPlugin::copyImageBlockSet(InfoRec*, CGImageProvider*, CGRect, CGSize, __CFDictionary const*) + 1955
>     frame #12: 0x00007fff28b0e998 ImageIO`IIO_Reader::CopyImageBlockSetProc(void*, CGImageProvider*, CGRect, CGSize, __CFDictionary const*) + 100
>     frame #13: 0x00007fff28b2c527 ImageIO`IIOImageProviderInfo::copyImageBlockSetWithOptions(CGImageProvider*, CGRect, CGSize, __CFDictionary const*) + 663
>     frame #14: 0x00007fff28b0e8d0 ImageIO`IIOImageProviderInfo::CopyImageBlockSetWithOptions(void*, CGImageProvider*, CGRect, CGSize, __CFDictionary const*) + 680
>     frame #15: 0x00007fff250e82d0 CoreGraphics`imageProvider_retain_data + 77
>     frame #16: 0x00007fff250e8246 CoreGraphics`CGDataProviderRetainData + 75
>     frame #17: 0x00007fff250e826b CoreGraphics`provider_for_destination_retain_data + 17
>     frame #18: 0x00007fff250e8246 CoreGraphics`CGDataProviderRetainData + 75
>     frame #19: 0x00007fff250e80f6 CoreGraphics`CGAccessSessionCreate + 98
>     frame #20: 0x00007fff250e9e57 CoreGraphics`get_access_session + 44
>     frame #21: 0x00007fff250e954c CoreGraphics`img_raw_read + 1302
>     frame #22: 0x00007fff251440f9 CoreGraphics`img_interpolate_read + 753
>     frame #23: 0x00007fff250e75bc CoreGraphics`img_data_lock + 6164
>     frame #24: 0x00007fff250e22f0 CoreGraphics`CGSImageDataLock + 1230
>     frame #25: 0x00007fff250e1de9 CoreGraphics`RIPImageDataInitializeShared + 164
>     frame #26: 0x00007fff250e1aaa CoreGraphics`RIPImageCacheGetRetained + 750
>     frame #27: 0x00007fff250e1574 CoreGraphics`ripc_AcquireRIPImageData + 384
>     frame #28: 0x00007fff250e02a1 CoreGraphics`ripc_DrawImage + 1180
>     frame #29: 0x00007fff250df4f7 CoreGraphics`CGContextDrawImageWithOptions + 454
>     frame #30: 0x00007fff22f119c5 AppKit`__74-[NSImageRep drawInRect:fromRect:operation:fraction:respectFlipped:hints:]_block_invoke + 902
>     frame #31: 0x00007fff22f114fa AppKit`-[NSImageRep drawInRect:fromRect:operation:fraction:respectFlipped:hints:] + 936
>     frame #32: 0x00007fff233b1dbc AppKit`__71-[NSImage drawInRect:fromRect:operation:fraction:respectFlipped:hints:]_block_invoke.1340 + 967
>     frame #33: 0x00007fff22eea8b9 AppKit`-[NSImage _usingBestRepresentationForRect:context:hints:body:] + 129
>     frame #34: 0x00007fff22f10ec1 AppKit`-[NSImage drawInRect:fromRect:operation:fraction:respectFlipped:hints:] + 1359
>     frame #35: 0x000000010049358c Emacs`ns_dumpglyphs_image(s=0x00007ffeefbfa220, r=(origin = (x = 10, y = 222), size = (width = 700, height = 507))) at nsterm.m:3952:7
>     frame #36: 0x000000010048f75e Emacs`ns_draw_glyph_string(s=0x00007ffeefbfa220) at nsterm.m:4349:7
>     frame #37: 0x0000000100092b81 Emacs`draw_glyphs(w=0x0000000106152630, x=672, row=0x000000010424f700, area=TEXT_AREA, start=0, end=20, hl=DRAW_NORMAL_TEXT, overlaps=0) at xdisp.c:30449:5

So again, I don't see what that has to do with Emacs.

OTOH, redisplay works on macOS very differently from other platforms,
so maybe we are somehow causing this?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57267; Package emacs. Full text available.

Message received at 57267 <at> debbugs.gnu.org:


Received: (at 57267) by debbugs.gnu.org; 18 Aug 2022 20:14:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 18 16:14:36 2022
Received: from localhost ([127.0.0.1]:56794 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oOluV-0006yn-5W
	for submit <at> debbugs.gnu.org; Thu, 18 Aug 2022 16:14:36 -0400
Received: from out5-smtp.messagingengine.com ([66.111.4.29]:36589)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <james@HIDDEN>) id 1oOluS-0006yY-Ib
 for 57267 <at> debbugs.gnu.org; Thu, 18 Aug 2022 16:14:34 -0400
Received: from compute4.internal (compute4.nyi.internal [10.202.2.44])
 by mailout.nyi.internal (Postfix) with ESMTP id 7E09A5C0112;
 Thu, 18 Aug 2022 16:14:27 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute4.internal (MEProxy); Thu, 18 Aug 2022 16:14:27 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jojojames.com;
 h=cc:cc:content-transfer-encoding:content-type:date:date:from
 :from:in-reply-to:in-reply-to:message-id:mime-version:references
 :reply-to:sender:subject:subject:to:to; s=fm3; t=1660853667; x=
 1660940067; bh=G/wt9P+2gj/P/vQQQ8ZdJL76vHsyp94x7ioPkO/EZE8=; b=n
 PgMFPmrvF7h2RappkbEMkjXIPsonuKMVFOBV+AXjjileK7LVzJ6J56cOAupHeNaa
 CJATwOswRRiB9WDXsQScrPowACovdW427rixV9zpo6xlegVXZVpXReapANq+KXTB
 i9JbV7gmsqBXfYtVD3pMPPM2trUjowFyuJRjwcYY0RvoQI3+bPfpDm/9wvTxj5AZ
 qFi3nVE7V6RbMYXfKm2pQ3swjTFSaAr6FOLIANOYztLPSPaoAfQiCtQjSGJCpXRE
 IzrWzES3d2cII0AyQyVb7t3OjhqCvTvgisKgrSj2zAmUMzmyw10mBNCDc59WC1iC
 LkaLeIgxS2kf6F6xrSDiw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:date:date:feedback-id:feedback-id:from:from
 :in-reply-to:in-reply-to:message-id:mime-version:references
 :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy
 :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1660853667; x=
 1660940067; bh=G/wt9P+2gj/P/vQQQ8ZdJL76vHsyp94x7ioPkO/EZE8=; b=X
 0lMPJML5FkEM3FRSyCAQjHphgmt5rk28wwew1rDjb+PncrTVjeS7uNGFBHXMrcUX
 C/TVEBE52nw893ET4hRTDXRqgnix4d2NaZbyl9RRVVmT5TmKlRSaJCP2gPZ5lzgP
 QSf+L9F4Vbb3N0GKAv0xAokCW279Rvfimy0pmcv+OqJatr+u8os/i+qT8kwwYwkZ
 ZP2goTKM5RULt0OVdoL+DKFmvJGGMyqp0wapvVWMYB6OwzoJ1m3cJlPa/GbBBobJ
 9ockkZyqsLmdBGkvjtVTAp2XYJxorVTPRgTGC41Z8x6BJeW0LTmKXtd1EbALQURs
 Q6jSC5X2cXsqZu28AQlvg==
X-ME-Sender: <xms:o53-YpgCD4ZwJQWwKRXnY_uIhfLoXHIm8QOZSiOs3MQztD7iOu81vQ>
 <xme:o53-YuDGzgxcze4mAF5-HSDMRlW8MFettexC2ayMO6sr3fp0RYNrRNUBEd1AL_xBv
 0i4CN6Dmo3iOT53zQ>
X-ME-Received: <xmr:o53-YpFFmMhGXgUnbl4zfvl4JbW61FtqaMmlpVq7X1j0WTojowY4P7cRuFiz9EottC2NwtgRN3ND8A8OWvSNxgQWeNfh2QPyAP1PTdPhLgY8AUCApzyg7A>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdehledguddvtdcutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh
 necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd
 enucfjughrpegtggfuhfgjffevgffkfhfvofesthhqmhdthhdtjeenucfhrhhomhepjhgr
 mhgvshesjhhojhhojhgrmhgvshdrtghomhenucggtffrrghtthgvrhhnpeegudefleelke
 dvjeejhfeiveetheehheejhfejffdvhffhkeekvdduiefhgeevhfenucffohhmrghinhep
 vghmrggtshdrrghpphenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih
 hlfhhrohhmpehjrghmvghssehjohhjohhjrghmvghsrdgtohhm
X-ME-Proxy: <xmx:o53-YuRQ5VuLqhLbNrZTQg0GWokw2vIMeRk0cZPXlO1c4elHmJaWnw>
 <xmx:o53-YmwNxK2_JLmJitBkEt4vkBmUuopUt2JcI8mumM_-p8RFdFqlHQ>
 <xmx:o53-Yk5b_6igzETjU2ioiMK7tjP6NkzOLg8oWcbkhgjzHHDnReDSpQ>
 <xmx:o53-YsYjGLShm7RUkjuFh1o8oflc91KDrEhFfOxZTt_TfW3jvr5aKA>
Feedback-ID: i4b00421f:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu,
 18 Aug 2022 16:14:27 -0400 (EDT)
Content-Type: text/plain;
	charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\))
Subject: Re: bug#57267: 28.1; emacs crashes when loading too many images
From: james@HIDDEN
In-Reply-To: <83a681fk6i.fsf@HIDDEN>
Date: Thu, 18 Aug 2022 16:14:26 -0400
Content-Transfer-Encoding: quoted-printable
Message-Id: <E6EC8DC3-9CE0-4648-9B34-26820059115B@HIDDEN>
References: <B1DA1052-75FD-45F6-9759-43ABB9C0C4E2@HIDDEN>
 <83v8qqawsh.fsf@HIDDEN> <CE82A2A1-035F-435F-B408-84B6B6563031@HIDDEN>
 <83a681fk6i.fsf@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
X-Mailer: Apple Mail (2.3654.120.0.1.13)
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 57267
Cc: 57267 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

-=
--------------------------------------------------------------------------=
---
Unrelated to the crash but...
Not sure why this happens, but emacs 29 throws this error upon start up.
Any tips on debugging this?
Error (use-package): evil/:catch: Symbol=E2=80=99s value as variable is =
void: =C2=8B\213 (It=E2=80=99s one full letter, not actually =E2=80=9C\213=
=E2=80=9D)
Error (use-package): evil-surround/:catch: Symbol=E2=80=99s value as =
variable is void: =C2=8B\213
=
--------------------------------------------------------------------------=
----

(gdb) r
Starting program: =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/MacOS/Emacs
[New Thread 0x4f0f of process 27639]
[New Thread 0x2e53 of process 27639]
[New Thread 0x2b0b of process 27639]
warning: unhandled dyld version (17)
[New Thread 0x200b of process 27639]
[New Thread 0x2a3f of process 27639]
[New Thread 0x4f1b of process 27639]
[New Thread 0x1f27 of process 27639]
[New Thread 0x21ab of process 27639]
[New Thread 0x2aa3 of process 27639]
[New Thread 0x2c4b of process 27639]
[New Thread 0x2e5f of process 27639]
[New Thread 0x510b of process 27639]
[New Thread 0x4f37 of process 27639]
[New Thread 0x2d4f of process 27639]
[New Thread 0x4f7f of process 27639]
[New Thread 0x2d47 of process 27639]
[New Thread 0x5127 of process 27639]
[New Thread 0x516b of process 27639]
[New Thread 0x2d4b of process 27639]
[New Thread 0x4fa3 of process 27639]
[New Thread 0x2e3f of process 27639]
[New Thread 0x2c7b of process 27639]
[New Thread 0x2e43 of process 27639]
[New Thread 0x4fa7 of process 27639]
[New Thread 0x5113 of process 27639]
[New Thread 0x2c7f of process 27639]
[New Thread 0x2da3 of process 27639]
[New Thread 0x2e47 of process 27639]
[New Thread 0x4fcb of process 27639]
[New Thread 0x2ae3 of process 27639]
[New Thread 0x2e1f of process 27639]
[New Thread 0x2d47 of process 27639]
[New Thread 0x22d7 of process 27639]
[New Thread 0x4b03 of process 27639]
[New Thread 0x4c03 of process 27639]
[New Thread 0x4fdf of process 27639]
[New Thread 0x22a7 of process 27639]
[New Thread 0x2e23 of process 27639]
[New Thread 0x516b of process 27639]
[New Thread 0x1c6f of process 27639]
[New Thread 0x2a6b of process 27639]
[New Thread 0x1c27 of process 27639]
[New Thread 0x2f33 of process 27639]
[New Thread 0x4c6b of process 27639]
[New Thread 0x22ab of process 27639]
[New Thread 0x2a6f of process 27639]
[New Thread 0x2d4b of process 27639]
[New Thread 0x4fd3 of process 27639]
[New Thread 0x519f of process 27639]
[New Thread 0x1ca7 of process 27639]
[New Thread 0x4fd7 of process 27639]
[New Thread 0x2d83 of process 27639]
[New Thread 0x4b33 of process 27639]
[New Thread 0x4fb3 of process 27639]
[New Thread 0x512f of process 27639]
[New Thread 0x510f of process 27639]
[New Thread 0x1c03 of process 27639]
[New Thread 0x2db7 of process 27639]
[New Thread 0x22af of process 27639]
[New Thread 0x2a73 of process 27639]
[New Thread 0x2f37 of process 27639]
[New Thread 0x4ba7 of process 27639]
[New Thread 0x4c0f of process 27639]
[New Thread 0x1c07 of process 27639]
[New Thread 0x2dbb of process 27639]
[New Thread 0x2f3b of process 27639]
[New Thread 0x4c83 of process 27639]
[New Thread 0x4f5f of process 27639]
[New Thread 0x22b3 of process 27639]
[New Thread 0x2f3f of process 27639]
[New Thread 0x4bfb of process 27639]
[New Thread 0x4c27 of process 27639]
[New Thread 0x511b of process 27639]
[New Thread 0x2e9f of process 27639]
[New Thread 0x4f07 of process 27639]

Thread 75 received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x4f07 of process 27639]
0x00007fff28412029 in ?? ()
(gdb) thread 1
Thread ID 1 has terminated.
(gdb) bt full
#0  0x00007fff28412029 in ?? ()
No symbol table info available.
#1  0x000070000f517eb0 in ?? ()
No symbol table info available.
#2  0x00007fff31a43806 in ?? ()
No symbol table info available.
#3  0x000070000f517eb0 in ?? ()
No symbol table info available.
#4  0x00007fff202c000e in ?? ()
No symbol table info available.
#5  0x000000022cf81d50 in ?? ()
No symbol table info available.
#6  0x000000023c3cfc00 in ?? ()
No symbol table info available.
#7  0x000070000f517f80 in ?? ()
No symbol table info available.
#8  0x0000000000000001 in ?? ()
No symbol table info available.
#9  0x00007ffeefbf5e50 in ?? ()
No symbol table info available.
#10 0x000000022cfb6a70 in ?? ()
No symbol table info available.
#11 0x000070000f517ee0 in ?? ()
No symbol table info available.
#12 0x00007fff31a4376a in ?? ()
No symbol table info available.
#13 0x000000022cf91130 in ?? ()
No symbol table info available.
#14 0x00000001629b3800 in ?? ()
No symbol table info available.
#15 0x0000000000000000 in ?? ()
No symbol table info available.

Thread 75 received signal SIGBUS, Bus error.
<function called from gdb>
The program being debugged was signaled while in a function called from =
GDB.
GDB remains in the frame where the signal was received.
To change this behavior use "set unwindonsignal on".
Evaluation of the expression containing the function
(backtrace_top) will be abandoned.
When the function is done executing, GDB will silently stop.

=
--------------------------------------------------------------------------=
----

src/ $ lldb ../nextstep/Emacs.app/Contents/MacOS/Emacs
Emacs debugging support has been installed.
(lldb) target create "../nextstep/Emacs.app/Contents/MacOS/Emacs"
Current executable set to =
'/Users/james/Code/emacs/nextstep/Emacs.app/Contents/MacOS/Emacs' =
(x86_64).
(lldb) r
Process 35748 launched: =
'/Users/james/Code/emacs/nextstep/Emacs.app/Contents/MacOS/Emacs' =
(x86_64)
2022-08-18 15:52:02.166968-0400 Emacs[35748:16508700] =
SecTaskLoadEntitlements failed error=3D22 cs_flags=3D20, pid=3D35748
2022-08-18 15:52:02.167149-0400 Emacs[35748:16508700] =
SecTaskCopyDebugDescription: Emacs[35748]/0#-1 LF=3D0
2022-08-18 15:52:03.643896-0400 Emacs[35748:16508700] =
SecTaskLoadEntitlements failed error=3D22 cs_flags=3D20, pid=3D35748
2022-08-18 15:52:03.644124-0400 Emacs[35748:16508700] =
SecTaskCopyDebugDescription: Emacs[35748]/0#-1 LF=3D0
2022-08-18 15:52:04.193721-0400 Emacs[35748:16508700] =
SecTaskLoadEntitlements failed error=3D22 cs_flags=3D20, pid=3D35748
2022-08-18 15:52:04.193931-0400 Emacs[35748:16508700] =
SecTaskCopyDebugDescription: Emacs[35748]/0#-1 LF=3D0
2022-08-18 15:52:08.383398-0400 Emacs[35748:16508700] TSM =
AdjustCapsLockLEDForKeyTransitionHandling - =
_ISSetPhysicalKeyboardCapsLockLED Inhibit
2022-08-18 15:52:17.500613-0400 Emacs[35748:16508700] MTLIOAccelDevice =
bad MetalPluginClassName property (null)
2022-08-18 15:52:17.506912-0400 Emacs[35748:16508700] +[MTLIOAccelDevice =
registerDevices]: Zero Metal services found
2022-08-18 15:52:17.558383-0400 Emacs[35748:16508700] VPA info: plugin =
is INTEL, AVD_id =3D 1080080, AVD_api.Create:0x171657b3f
2022-08-18 15:52:17.597771-0400 Emacs[35748:16508700] VPA info: plugin =
is INTEL, AVD_id =3D 1080080, AVD_api.Create:0x171657b3f
2022-08-18 15:52:17.627444-0400 Emacs[35748:16508700] VPA info: plugin =
is INTEL, AVD_id =3D 1080080, AVD_api.Create:0x171657b3f
2022-08-18 15:52:17.750842-0400 Emacs[35748:16508700] flock failed to =
lock list file =
(/var/folders/wc/dtprc6t537s91rl6jj0m98040000gn/C//org.gnu.Emacs/com.apple=
.metal/31001/libraries.list): errno =3D 35
2022-08-18 15:52:17.751481-0400 Emacs[35748:16508700] flock failed to =
lock list file =
(/var/folders/wc/dtprc6t537s91rl6jj0m98040000gn/C//org.gnu.Emacs/com.apple=
.metal/31001/libraries1.list): errno =3D 35
2022-08-18 15:52:17.753735-0400 Emacs[35748:16508700] flock failed to =
lock list file =
(/var/folders/wc/dtprc6t537s91rl6jj0m98040000gn/C//org.gnu.Emacs/com.apple=
.metal/16777237_1116167/functions.list): errno =3D 35
2022-08-18 15:52:17.753803-0400 Emacs[35748:16508700] flock failed to =
lock list file =
(/var/folders/wc/dtprc6t537s91rl6jj0m98040000gn/C//org.gnu.Emacs/com.apple=
.metal/16777237_1116167/functions1.list): errno =3D 35
2022-08-18 15:52:23.495066-0400 Emacs[35748:16508700] VPA info: plugin =
is INTEL, AVD_id =3D 1080080, AVD_api.Create:0x171657b3f
2022-08-18 16:03:26.079022-0400 Emacs[35748:16508700] VPA info: plugin =
is INTEL, AVD_id =3D 1080080, AVD_api.Create:0x171657b3f
2022-08-18 16:03:26.845499-0400 Emacs[35748:16508700] VPA info: plugin =
is INTEL, AVD_id =3D 1080080, AVD_api.Create:0x171657b3f #### THIS =
REPEATS many times, cutting this off.
Process 35748 stopped
* thread #44, stop reason =3D EXC_BAD_ACCESS (code=3D2, =
address=3D0x718b828a0)
    frame #0: 0x0000000718b828a0
->  0x718b828a0: addb   %al, (%rax)
    0x718b828a2: addb   %al, (%rax)
    0x718b828a4: addb   %al, (%rax)
    0x718b828a6: addb   %al, (%rax)
Target 0: (Emacs) stopped.
(lldb)

=
--------------------------------------------------------------------------=
----

(lldb) bt
* thread #44, stop reason =3D EXC_BAD_ACCESS (code=3D2, =
address=3D0x718b828a0)
  * frame #0: 0x0000000718b828a0
    frame #1: 0x00007fff31a448da =
AppleVPA`___lldb_unnamed_symbol479$$AppleVPA + 336
    frame #2: 0x00007fff31a427ec =
AppleVPA`___lldb_unnamed_symbol455$$AppleVPA + 254
    frame #3: 0x00007fff204a48fc libsystem_pthread.dylib`_pthread_start =
+ 224
    frame #4: 0x00007fff204a0443 libsystem_pthread.dylib`thread_start + =
15
(lldb)

=
--------------------------------------------------------------------------=
----

(lldb) thread select 1
* thread #1, queue =3D 'com.apple.main-thread'
    frame #0: 0x00007fff204709de libsystem_kernel.dylib`__ulock_wait + =
10
libsystem_kernel.dylib`__ulock_wait:
->  0x7fff204709de <+10>: jae    0x7fff204709e8            ; <+20>
    0x7fff204709e0 <+12>: movq   %rax, %rdi
    0x7fff204709e3 <+15>: jmp    0x7fff2046fac9            ; =
cerror_nocancel
    0x7fff204709e8 <+20>: retq
(lldb) bt
* thread #1, queue =3D 'com.apple.main-thread'
  * frame #0: 0x00007fff204709de libsystem_kernel.dylib`__ulock_wait + =
10
    frame #1: 0x00007fff204a5f60 libsystem_pthread.dylib`_pthread_join + =
362
    frame #2: 0x00007fff31a4287c =
AppleVPA`___lldb_unnamed_symbol456$$AppleVPA + 132
    frame #3: 0x00007fff31a3abde =
AppleVPA`___lldb_unnamed_symbol279$$AppleVPA + 72
    frame #4: 0x00007fff2066775a CoreFoundation`_CFRelease + 244
    frame #5: 0x00007fff2053e583 =
CoreFoundation`__RELEASE_OBJECTS_IN_THE_ARRAY__ + 118
    frame #6: 0x00007fff2053e4c6 CoreFoundation`-[__NSArrayM dealloc] + =
279
    frame #7: 0x00007fff2c082f12 =
MediaToolbox`___lldb_unnamed_symbol186$$MediaToolbox + 270
    frame #8: 0x00007fff2066775a CoreFoundation`_CFRelease + 244
    frame #9: 0x00007fff28b7ce57 =
ImageIO`AppleJPEGReadPlugin::copyIOSurfaceCallback(InfoRec*, =
CGImageProvider*, __CFDictionary const*) + 1229
    frame #10: 0x00007fff28b7d570 =
ImageIO`AppleJPEGReadPlugin::createImageBlockSetWithHardwareDecode(InfoRec=
*, CGImageProvider*, CGSize, __CFDictionary const*) + 154
    frame #11: 0x00007fff28b0f679 =
ImageIO`AppleJPEGReadPlugin::copyImageBlockSet(InfoRec*, =
CGImageProvider*, CGRect, CGSize, __CFDictionary const*) + 1955
    frame #12: 0x00007fff28b0e998 =
ImageIO`IIO_Reader::CopyImageBlockSetProc(void*, CGImageProvider*, =
CGRect, CGSize, __CFDictionary const*) + 100
    frame #13: 0x00007fff28b2c527 =
ImageIO`IIOImageProviderInfo::copyImageBlockSetWithOptions(CGImageProvider=
*, CGRect, CGSize, __CFDictionary const*) + 663
    frame #14: 0x00007fff28b0e8d0 =
ImageIO`IIOImageProviderInfo::CopyImageBlockSetWithOptions(void*, =
CGImageProvider*, CGRect, CGSize, __CFDictionary const*) + 680
    frame #15: 0x00007fff250e82d0 CoreGraphics`imageProvider_retain_data =
+ 77
    frame #16: 0x00007fff250e8246 CoreGraphics`CGDataProviderRetainData =
+ 75
    frame #17: 0x00007fff250e826b =
CoreGraphics`provider_for_destination_retain_data + 17
    frame #18: 0x00007fff250e8246 CoreGraphics`CGDataProviderRetainData =
+ 75
    frame #19: 0x00007fff250e80f6 CoreGraphics`CGAccessSessionCreate + =
98
    frame #20: 0x00007fff250e9e57 CoreGraphics`get_access_session + 44
    frame #21: 0x00007fff250e954c CoreGraphics`img_raw_read + 1302
    frame #22: 0x00007fff251440f9 CoreGraphics`img_interpolate_read + =
753
    frame #23: 0x00007fff250e75bc CoreGraphics`img_data_lock + 6164
    frame #24: 0x00007fff250e22f0 CoreGraphics`CGSImageDataLock + 1230
    frame #25: 0x00007fff250e1de9 =
CoreGraphics`RIPImageDataInitializeShared + 164
    frame #26: 0x00007fff250e1aaa CoreGraphics`RIPImageCacheGetRetained =
+ 750
    frame #27: 0x00007fff250e1574 CoreGraphics`ripc_AcquireRIPImageData =
+ 384
    frame #28: 0x00007fff250e02a1 CoreGraphics`ripc_DrawImage + 1180
    frame #29: 0x00007fff250df4f7 =
CoreGraphics`CGContextDrawImageWithOptions + 454
    frame #30: 0x00007fff22f119c5 AppKit`__74-[NSImageRep =
drawInRect:fromRect:operation:fraction:respectFlipped:hints:]_block_invoke=
 + 902
    frame #31: 0x00007fff22f114fa AppKit`-[NSImageRep =
drawInRect:fromRect:operation:fraction:respectFlipped:hints:] + 936
    frame #32: 0x00007fff233b1dbc AppKit`__71-[NSImage =
drawInRect:fromRect:operation:fraction:respectFlipped:hints:]_block_invoke=
.1340 + 967
    frame #33: 0x00007fff22eea8b9 AppKit`-[NSImage =
_usingBestRepresentationForRect:context:hints:body:] + 129
    frame #34: 0x00007fff22f10ec1 AppKit`-[NSImage =
drawInRect:fromRect:operation:fraction:respectFlipped:hints:] + 1359
    frame #35: 0x000000010049358c =
Emacs`ns_dumpglyphs_image(s=3D0x00007ffeefbfa220, r=3D(origin =3D (x =3D =
10, y =3D 222), size =3D (width =3D 700, height =3D 507))) at =
nsterm.m:3952:7
    frame #36: 0x000000010048f75e =
Emacs`ns_draw_glyph_string(s=3D0x00007ffeefbfa220) at nsterm.m:4349:7
    frame #37: 0x0000000100092b81 =
Emacs`draw_glyphs(w=3D0x0000000106152630, x=3D672, =
row=3D0x000000010424f700, area=3DTEXT_AREA, start=3D0, end=3D20, =
hl=3DDRAW_NORMAL_TEXT, overlaps=3D0) at xdisp.c:30449:5
    frame #38: 0x000000010008f72d =
Emacs`gui_write_glyphs(w=3D0x0000000106152630, =
updated_row=3D0x000000010424f700, start=3D0x0000000103cc9a00, =
updated_area=3DTEXT_AREA, len=3D20) at xdisp.c:32509:7
    frame #39: 0x0000000100019566 =
Emacs`update_text_area(w=3D0x0000000106152630, =
updated_row=3D0x000000010424f700, vpos=3D1, =
partial_p=3D0x00007ffeefbfaa4e) at dispnew.c:3981:2
    frame #40: 0x000000010001726d =
Emacs`update_window_line(w=3D0x0000000106152630, vpos=3D1, =
mouse_face_overwritten_p=3D0x00007ffeefbfab12) at dispnew.c:4239:11
    frame #41: 0x0000000100009bc6 =
Emacs`update_window(w=3D0x0000000106152630, force_p=3Dtrue) at =
dispnew.c:3719:19
    frame #42: 0x000000010000a212 =
Emacs`update_window_tree(w=3D0x0000000106152630, force_p=3Dtrue) at =
dispnew.c:3444:14
    frame #43: 0x0000000100009278 =
Emacs`update_frame(f=3D0x0000000106153630, force_p=3Dtrue, =
inhibit_hairy_id_p=3Dfalse) at dispnew.c:3279:18
    frame #44: 0x000000010006dd0f Emacs`redisplay_internal at =
xdisp.c:17096:14
    frame #45: 0x00000001000763e9 Emacs`redisplay at xdisp.c:16103:3
    frame #46: 0x00000001001cf700 Emacs`read_char(commandflag=3D1, =
map=3D(EMACS_INT) $1 =3D 7654866048, prev_event=3D(struct Lisp_Symbol *) =
$4 =3D 0x0000000100bb11e0, used_mouse_menu=3D0x00007ffeefbfe58f, =
end_time=3D0x0000000000000000) at keyboard.c:2643:6
    frame #47: 0x00000001001cae45 =
Emacs`read_key_sequence(keybuf=3D(EMACS_INT) $6 =3D 110, prompt=3D(struct =
Lisp_Symbol *) $9 =3D 0x0000000100bb11e0, dont_downcase_last=3Dfalse, =
can_return_switch_frame=3Dtrue, fix_current_buffer=3Dtrue, =
prevent_redisplay=3Dfalse) at keyboard.c:10045:12
    frame #48: 0x00000001001c890e Emacs`command_loop_1 at =
keyboard.c:1384:15
    frame #49: 0x0000000100314451 =
Emacs`internal_condition_case(bfun=3D(Emacs`command_loop_1 at =
keyboard.c:1277), handlers=3D(struct Lisp_Symbol *) $12 =3D =
0x0000000100bb1270, hfun=3D(Emacs`cmd_error at keyboard.c:935)) at =
eval.c:1497:25
    frame #50: 0x00000001001c8203 Emacs`command_loop_2(handlers=3D(struct =
Lisp_Symbol *) $15 =3D 0x0000000100bb1270) at keyboard.c:1132:11
    frame #51: 0x00000001003134e6 Emacs`internal_catch(tag=3D(struct =
Lisp_Symbol *) $18 =3D 0x0000000100bbfbe0, func=3D(Emacs`command_loop_2 =
at keyboard.c:1128), arg=3D(struct Lisp_Symbol *) $21 =3D =
0x0000000100bb1270) at eval.c:1220:25
    frame #52: 0x00000001001c7175 Emacs`command_loop at =
keyboard.c:1110:2
    frame #53: 0x00000001001c6f60 Emacs`recursive_edit_1 at =
keyboard.c:719:9
    frame #54: 0x00000001001c75a4 Emacs`Frecursive_edit at =
keyboard.c:802:3
    frame #55: 0x00000001001c3a2b Emacs`main(argc=3D1, =
argv=3D0x00007ffeefbff2e8) at emacs.c:2517:3
    frame #56: 0x00007fff204bff3d libdyld.dylib`start + 1
    frame #57: 0x00007fff204bff3d libdyld.dylib`start + 1
(lldb)

=
--------------------------------------------------------------------------=
----


(lldb) bt all
* thread #1, queue =3D 'com.apple.main-thread'
  * frame #0: 0x00007fff204709de libsystem_kernel.dylib`__ulock_wait + =
10
    frame #1: 0x00007fff204a5f60 libsystem_pthread.dylib`_pthread_join + =
362
    frame #2: 0x00007fff31a4287c =
AppleVPA`___lldb_unnamed_symbol456$$AppleVPA + 132
    frame #3: 0x00007fff31a3abde =
AppleVPA`___lldb_unnamed_symbol279$$AppleVPA + 72
    frame #4: 0x00007fff2066775a CoreFoundation`_CFRelease + 244
    frame #5: 0x00007fff2053e583 =
CoreFoundation`__RELEASE_OBJECTS_IN_THE_ARRAY__ + 118
    frame #6: 0x00007fff2053e4c6 CoreFoundation`-[__NSArrayM dealloc] + =
279
    frame #7: 0x00007fff2c082f12 =
MediaToolbox`___lldb_unnamed_symbol186$$MediaToolbox + 270
    frame #8: 0x00007fff2066775a CoreFoundation`_CFRelease + 244
    frame #9: 0x00007fff28b7ce57 =
ImageIO`AppleJPEGReadPlugin::copyIOSurfaceCallback(InfoRec*, =
CGImageProvider*, __CFDictionary const*) + 1229
    frame #10: 0x00007fff28b7d570 =
ImageIO`AppleJPEGReadPlugin::createImageBlockSetWithHardwareDecode(InfoRec=
*, CGImageProvider*, CGSize, __CFDictionary const*) + 154
    frame #11: 0x00007fff28b0f679 =
ImageIO`AppleJPEGReadPlugin::copyImageBlockSet(InfoRec*, =
CGImageProvider*, CGRect, CGSize, __CFDictionary const*) + 1955
    frame #12: 0x00007fff28b0e998 =
ImageIO`IIO_Reader::CopyImageBlockSetProc(void*, CGImageProvider*, =
CGRect, CGSize, __CFDictionary const*) + 100
    frame #13: 0x00007fff28b2c527 =
ImageIO`IIOImageProviderInfo::copyImageBlockSetWithOptions(CGImageProvider=
*, CGRect, CGSize, __CFDictionary const*) + 663
    frame #14: 0x00007fff28b0e8d0 =
ImageIO`IIOImageProviderInfo::CopyImageBlockSetWithOptions(void*, =
CGImageProvider*, CGRect, CGSize, __CFDictionary const*) + 680
    frame #15: 0x00007fff250e82d0 CoreGraphics`imageProvider_retain_data =
+ 77
    frame #16: 0x00007fff250e8246 CoreGraphics`CGDataProviderRetainData =
+ 75
    frame #17: 0x00007fff250e826b =
CoreGraphics`provider_for_destination_retain_data + 17
    frame #18: 0x00007fff250e8246 CoreGraphics`CGDataProviderRetainData =
+ 75
    frame #19: 0x00007fff250e80f6 CoreGraphics`CGAccessSessionCreate + =
98
    frame #20: 0x00007fff250e9e57 CoreGraphics`get_access_session + 44
    frame #21: 0x00007fff250e954c CoreGraphics`img_raw_read + 1302
    frame #22: 0x00007fff251440f9 CoreGraphics`img_interpolate_read + =
753
    frame #23: 0x00007fff250e75bc CoreGraphics`img_data_lock + 6164
    frame #24: 0x00007fff250e22f0 CoreGraphics`CGSImageDataLock + 1230
    frame #25: 0x00007fff250e1de9 =
CoreGraphics`RIPImageDataInitializeShared + 164
    frame #26: 0x00007fff250e1aaa CoreGraphics`RIPImageCacheGetRetained =
+ 750
    frame #27: 0x00007fff250e1574 CoreGraphics`ripc_AcquireRIPImageData =
+ 384
    frame #28: 0x00007fff250e02a1 CoreGraphics`ripc_DrawImage + 1180
    frame #29: 0x00007fff250df4f7 =
CoreGraphics`CGContextDrawImageWithOptions + 454
    frame #30: 0x00007fff22f119c5 AppKit`__74-[NSImageRep =
drawInRect:fromRect:operation:fraction:respectFlipped:hints:]_block_invoke=
 + 902
    frame #31: 0x00007fff22f114fa AppKit`-[NSImageRep =
drawInRect:fromRect:operation:fraction:respectFlipped:hints:] + 936
    frame #32: 0x00007fff233b1dbc AppKit`__71-[NSImage =
drawInRect:fromRect:operation:fraction:respectFlipped:hints:]_block_invoke=
.1340 + 967
    frame #33: 0x00007fff22eea8b9 AppKit`-[NSImage =
_usingBestRepresentationForRect:context:hints:body:] + 129
    frame #34: 0x00007fff22f10ec1 AppKit`-[NSImage =
drawInRect:fromRect:operation:fraction:respectFlipped:hints:] + 1359
    frame #35: 0x000000010049358c =
Emacs`ns_dumpglyphs_image(s=3D0x00007ffeefbfa220, r=3D(origin =3D (x =3D =
10, y =3D 222), size =3D (width =3D 700, height =3D 507))) at =
nsterm.m:3952:7
    frame #36: 0x000000010048f75e =
Emacs`ns_draw_glyph_string(s=3D0x00007ffeefbfa220) at nsterm.m:4349:7
    frame #37: 0x0000000100092b81 =
Emacs`draw_glyphs(w=3D0x0000000106152630, x=3D672, =
row=3D0x000000010424f700, area=3DTEXT_AREA, start=3D0, end=3D20, =
hl=3DDRAW_NORMAL_TEXT, overlaps=3D0) at xdisp.c:30449:5
    frame #38: 0x000000010008f72d =
Emacs`gui_write_glyphs(w=3D0x0000000106152630, =
updated_row=3D0x000000010424f700, start=3D0x0000000103cc9a00, =
updated_area=3DTEXT_AREA, len=3D20) at xdisp.c:32509:7
    frame #39: 0x0000000100019566 =
Emacs`update_text_area(w=3D0x0000000106152630, =
updated_row=3D0x000000010424f700, vpos=3D1, =
partial_p=3D0x00007ffeefbfaa4e) at dispnew.c:3981:2
    frame #40: 0x000000010001726d =
Emacs`update_window_line(w=3D0x0000000106152630, vpos=3D1, =
mouse_face_overwritten_p=3D0x00007ffeefbfab12) at dispnew.c:4239:11
    frame #41: 0x0000000100009bc6 =
Emacs`update_window(w=3D0x0000000106152630, force_p=3Dtrue) at =
dispnew.c:3719:19
    frame #42: 0x000000010000a212 =
Emacs`update_window_tree(w=3D0x0000000106152630, force_p=3Dtrue) at =
dispnew.c:3444:14
    frame #43: 0x0000000100009278 =
Emacs`update_frame(f=3D0x0000000106153630, force_p=3Dtrue, =
inhibit_hairy_id_p=3Dfalse) at dispnew.c:3279:18
    frame #44: 0x000000010006dd0f Emacs`redisplay_internal at =
xdisp.c:17096:14
    frame #45: 0x00000001000763e9 Emacs`redisplay at xdisp.c:16103:3
    frame #46: 0x00000001001cf700 Emacs`read_char(commandflag=3D1, =
map=3D(EMACS_INT) $23 =3D 7654866048, prev_event=3D(struct Lisp_Symbol =
*) $26 =3D 0x0000000100bb11e0, used_mouse_menu=3D0x00007ffeefbfe58f, =
end_time=3D0x0000000000000000) at keyboard.c:2643:6
    frame #47: 0x00000001001cae45 =
Emacs`read_key_sequence(keybuf=3D(EMACS_INT) $28 =3D 110, prompt=3D(struct=
 Lisp_Symbol *) $31 =3D 0x0000000100bb11e0, dont_downcase_last=3Dfalse, =
can_return_switch_frame=3Dtrue, fix_current_buffer=3Dtrue, =
prevent_redisplay=3Dfalse) at keyboard.c:10045:12
    frame #48: 0x00000001001c890e Emacs`command_loop_1 at =
keyboard.c:1384:15
    frame #49: 0x0000000100314451 =
Emacs`internal_condition_case(bfun=3D(Emacs`command_loop_1 at =
keyboard.c:1277), handlers=3D(struct Lisp_Symbol *) $34 =3D =
0x0000000100bb1270, hfun=3D(Emacs`cmd_error at keyboard.c:935)) at =
eval.c:1497:25
    frame #50: 0x00000001001c8203 Emacs`command_loop_2(handlers=3D(struct =
Lisp_Symbol *) $37 =3D 0x0000000100bb1270) at keyboard.c:1132:11
    frame #51: 0x00000001003134e6 Emacs`internal_catch(tag=3D(struct =
Lisp_Symbol *) $40 =3D 0x0000000100bbfbe0, func=3D(Emacs`command_loop_2 =
at keyboard.c:1128), arg=3D(struct Lisp_Symbol *) $43 =3D =
0x0000000100bb1270) at eval.c:1220:25
    frame #52: 0x00000001001c7175 Emacs`command_loop at =
keyboard.c:1110:2
    frame #53: 0x00000001001c6f60 Emacs`recursive_edit_1 at =
keyboard.c:719:9
    frame #54: 0x00000001001c75a4 Emacs`Frecursive_edit at =
keyboard.c:802:3
    frame #55: 0x00000001001c3a2b Emacs`main(argc=3D1, =
argv=3D0x00007ffeefbff2e8) at emacs.c:2517:3
    frame #56: 0x00007fff204bff3d libdyld.dylib`start + 1
    frame #57: 0x00007fff204bff3d libdyld.dylib`start + 1
  thread #4, name =3D 'gmain'
    frame #0: 0x00007fff20477646 libsystem_kernel.dylib`__select + 10
    frame #1: 0x000000010211c56b libglib-2.0.0.dylib`g_poll + 505
    frame #2: 0x000000010210fc2a =
libglib-2.0.0.dylib`g_main_context_iterate + 340
    frame #3: 0x000000010210fcd8 =
libglib-2.0.0.dylib`g_main_context_iteration + 55
    frame #4: 0x0000000102110e35 libglib-2.0.0.dylib`glib_worker_main + =
30
    frame #5: 0x0000000102132ff2 libglib-2.0.0.dylib`g_thread_proxy + 66
    frame #6: 0x00007fff204a48fc libsystem_pthread.dylib`_pthread_start =
+ 224
    frame #7: 0x00007fff204a0443 libsystem_pthread.dylib`thread_start + =
15
  thread #7
    frame #0: 0x00007fff20473d52 libsystem_kernel.dylib`__pselect + 10
    frame #1: 0x00007fff20473c6f =
libsystem_kernel.dylib`pselect$DARWIN_EXTSN + 42
    frame #2: 0x0000000100472c7b Emacs`-[EmacsApp =
fd_handler:](self=3D0x000000010318e610, _cmd=3D"fd_handler:", =
unused=3D0x0000000000000000) at nsterm.m:6303:20
    frame #3: 0x00007fff21325447 Foundation`__NSThread__start__ + 1068
    frame #4: 0x00007fff204a48fc libsystem_pthread.dylib`_pthread_start =
+ 224
    frame #5: 0x00007fff204a0443 libsystem_pthread.dylib`thread_start + =
15
  thread #9, name =3D 'com.apple.NSEventThread'
    frame #0: 0x00007fff2046f2aa libsystem_kernel.dylib`mach_msg_trap + =
10
    frame #1: 0x00007fff2046f61c libsystem_kernel.dylib`mach_msg + 60
    frame #2: 0x00007fff2059cecf =
CoreFoundation`__CFRunLoopServiceMachPort + 316
    frame #3: 0x00007fff2059b5af CoreFoundation`__CFRunLoopRun + 1328
    frame #4: 0x00007fff2059a9bc CoreFoundation`CFRunLoopRunSpecific + =
563
    frame #5: 0x00007fff22f29bba AppKit`_NSEventThread + 124
    frame #6: 0x00007fff204a48fc libsystem_pthread.dylib`_pthread_start =
+ 224
    frame #7: 0x00007fff204a0443 libsystem_pthread.dylib`thread_start + =
15
  thread #32
    frame #0: 0x00007fff204a0420 libsystem_pthread.dylib`start_wqthread
  thread #36
    frame #0: 0x00007fff204a0420 libsystem_pthread.dylib`start_wqthread
  thread #37
    frame #0: 0x00007fff204a0420 libsystem_pthread.dylib`start_wqthread
  thread #38
    frame #0: 0x00007fff204a0420 libsystem_pthread.dylib`start_wqthread
  thread #40
    frame #0: 0x00007fff2047094e =
libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0x00007fff204a14c1 =
libsystem_pthread.dylib`_pthread_wqthread + 414
    frame #2: 0x00007fff204a042f libsystem_pthread.dylib`start_wqthread =
+ 15
  thread #41
    frame #0: 0x00007fff204a0420 libsystem_pthread.dylib`start_wqthread
  thread #42
    frame #0: 0x00007fff2047094e =
libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0x00007fff204a14c1 =
libsystem_pthread.dylib`_pthread_wqthread + 414
    frame #2: 0x00007fff204a042f libsystem_pthread.dylib`start_wqthread =
+ 15
  thread #43
    frame #0: 0x00007fff204a0420 libsystem_pthread.dylib`start_wqthread
  thread #44
    frame #0: 0x0000000718b828a0
    frame #1: 0x00007fff31a448da =
AppleVPA`___lldb_unnamed_symbol479$$AppleVPA + 336
    frame #2: 0x00007fff31a427ec =
AppleVPA`___lldb_unnamed_symbol455$$AppleVPA + 254
    frame #3: 0x00007fff204a48fc libsystem_pthread.dylib`_pthread_start =
+ 224
    frame #4: 0x00007fff204a0443 libsystem_pthread.dylib`thread_start + =
15
(lldb)

=
--------------------------------------------------------------------------=
----
(lldb) xbacktrace
(unsigned char *) data =3D 0x0000000100540c8e "redisplay_internal (C =
function)"
(lldb)
=
=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=
=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=
=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=
=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=
=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94

It can take quite a while to reproduce this, I was scrolling for over 5 =
minutes with the build on master+lldb.

> Did the SIGBUS thing happen when you did the image-scrolling thing
> that causes crashes?

I believe so, but not sure.


> On Aug 18, 2022, at 3:03 PM, Eli Zaretskii <eliz@HIDDEN> wrote:
>=20
>> From: james@HIDDEN
>> Date: Thu, 18 Aug 2022 14:49:10 -0400
>> Cc: 57267 <at> debbugs.gnu.org
>>=20
>> =
--------------------------------------------------------------------------=
----
>> $ brew install gdb
>=20
> Ouch, macOS!  You may need to use lldb, then, not GDB.  And that will
> make the job of finding the problem harder.
>=20
>> Crash/hang takes a lot longer to reproduce (need to scroll thousands =
of images) in gdb.
>>=20
>> Not sure if I correctly added the debug symbols to the build, doesn't =
seem like it from the trace.
>=20
> No, there are no symbols (or at least GDB couldn't find them).  But I
> don't think you were in the right thread when you did that.  The Emacs
> main thread is always thread 1, not 42 or some other number.  So
> always say "thread 1" before "bt full".
>=20
> Did the SIGBUS thing happen when you did the image-scrolling thing
> that causes crashes?





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57267; Package emacs. Full text available.

Message received at 57267 <at> debbugs.gnu.org:


Received: (at 57267) by debbugs.gnu.org; 18 Aug 2022 19:04:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 18 15:04:07 2022
Received: from localhost ([127.0.0.1]:56743 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oOkoJ-0005Et-F2
	for submit <at> debbugs.gnu.org; Thu, 18 Aug 2022 15:04:07 -0400
Received: from eggs.gnu.org ([209.51.188.92]:40756)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1oOkoF-0005EM-4R
 for 57267 <at> debbugs.gnu.org; Thu, 18 Aug 2022 15:04:06 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:37744)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1oOko9-0003ev-S4; Thu, 18 Aug 2022 15:03:57 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=k3abhHL+qhJPikA/9FirnviVTvkgfGRPtgW0nsBHBok=; b=DwAGNnho9dKW
 1KQXZcD+9AqjaI6NDMz9rK5i8a7P8W+FlFsXs20GoqBTFBHMAFoEYzBL0RgHgjzbwk8GL8bUmEQhG
 LdvtHtoqTAXwHfycxd5Temg8kim2CD6GeNGVtiZFHoLXEU7FpMhyopSedyrnfb6VHmh1l/jz3YZEQ
 xUlycNF6qm/v9XtcutzX7+STQLMJvjZS9MeEnVFD8UNKZLDJ5BsR2TlSP/UdNI1hTX/4Moea3Sx5c
 JATbTYby/QYbVBoK7HkMkk7QCWP6SDnCzhOg99fRKZsBBMSTmZ9fCKLyG5rzUUpaMKYCs/PzXBuC9
 m2vR2AVzRIBJrF76SadJQQ==;
Received: from [87.69.77.57] (port=4979 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1oOko9-0008QE-1G; Thu, 18 Aug 2022 15:03:57 -0400
Date: Thu, 18 Aug 2022 22:03:49 +0300
Message-Id: <83a681fk6i.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: james@HIDDEN
In-Reply-To: <CE82A2A1-035F-435F-B408-84B6B6563031@HIDDEN>
Subject: Re: bug#57267: 28.1; emacs crashes when loading too many images
References: <B1DA1052-75FD-45F6-9759-43ABB9C0C4E2@HIDDEN>
 <83v8qqawsh.fsf@HIDDEN> <CE82A2A1-035F-435F-B408-84B6B6563031@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 57267
Cc: 57267 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: james@HIDDEN
> Date: Thu, 18 Aug 2022 14:49:10 -0400
> Cc: 57267 <at> debbugs.gnu.org
> 
> ------------------------------------------------------------------------------
> $ brew install gdb

Ouch, macOS!  You may need to use lldb, then, not GDB.  And that will
make the job of finding the problem harder.

> Crash/hang takes a lot longer to reproduce (need to scroll thousands of images) in gdb.
> 
> Not sure if I correctly added the debug symbols to the build, doesn't seem like it from the trace.

No, there are no symbols (or at least GDB couldn't find them).  But I
don't think you were in the right thread when you did that.  The Emacs
main thread is always thread 1, not 42 or some other number.  So
always say "thread 1" before "bt full".

Did the SIGBUS thing happen when you did the image-scrolling thing
that causes crashes?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57267; Package emacs. Full text available.

Message received at 57267 <at> debbugs.gnu.org:


Received: (at 57267) by debbugs.gnu.org; 18 Aug 2022 18:49:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 18 14:49:22 2022
Received: from localhost ([127.0.0.1]:56712 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oOka0-0002ge-Lh
	for submit <at> debbugs.gnu.org; Thu, 18 Aug 2022 14:49:22 -0400
Received: from out2-smtp.messagingengine.com ([66.111.4.26]:44409)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <james@HIDDEN>) id 1oOkZw-0002gO-Ra
 for 57267 <at> debbugs.gnu.org; Thu, 18 Aug 2022 14:49:18 -0400
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41])
 by mailout.nyi.internal (Postfix) with ESMTP id BF11F5C0369;
 Thu, 18 Aug 2022 14:49:11 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute1.internal (MEProxy); Thu, 18 Aug 2022 14:49:11 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jojojames.com;
 h=cc:cc:content-transfer-encoding:content-type:date:date:from
 :from:in-reply-to:in-reply-to:message-id:mime-version:references
 :reply-to:sender:subject:subject:to:to; s=fm3; t=1660848551; x=
 1660934951; bh=rwVaTD/7vY3idkieL/ZaUDPuJQaoL7TioRL91JtyTzg=; b=o
 iuDiPuflDKB/Zd6aWdMExO3RCARM4bP/a7bLW6FmBS8+M+P9zUY+npfq6nCszFSB
 JOZ/WYErGYgNHtdwm26KfjUO2lDE+5dZxylmXngn7rUP5o9tVau5qxbQAwK6ELCu
 XrhHFRfUk1hRKnux6NzDvNyX9+uHl1BVhc7tT/k0TeF4dKeKV0NOxld9u4+PSQ9D
 barfg5Kj/M5gOWfYAcCfjukfvagJdXRNLqMbnYbTCABKIP+GgfMmMp0yU+wfQBTi
 om6TR2nmul5dborwSfET3E2tEs0KvjsFQ15Z2Uh5pkbezc8ZtUCGIFpfkIXSKJFx
 G6AqcaH23bRSz7INlJieQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:date:date:feedback-id:feedback-id:from:from
 :in-reply-to:in-reply-to:message-id:mime-version:references
 :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy
 :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1660848551; x=
 1660934951; bh=rwVaTD/7vY3idkieL/ZaUDPuJQaoL7TioRL91JtyTzg=; b=c
 H/yeIqeyXhizQTARfSUycLAm3Lc3k04hM4y0iK8Z+Ch0bq6+s4oYpvURAjmGYamb
 WLXudvcPXx+aUWUKJVzlclmcrvO/8SxyAQH9NqLOL/A9EuaJAxi9kHZ+qBcVvGza
 mXpUkf7XoBdDlrGrD1VvefqUcLn6Ij7/nk6JxUbtSLqkTBN7t66AmcpiRp7OEyjM
 WGOgxDBXoYVYAZK0foHXgAAytB5WACLS/g5Xqn+VKk4p8nVX9L4G8c761OPl7XLs
 QhJYD84Y1iV8vKTORVMfX22rm9fToZilCIwLJQaXqSbnMM3AqNaReWSLlUBKco84
 gqhS7/Y2COLG5RK3b1SSA==
X-ME-Sender: <xms:p4n-Yky7gpjTSh_9wBMOScX26bNsm6oxI_bq9pqbrJVzyf8EcwnnjQ>
 <xme:p4n-YoQj9j3T4d3J-A1M15yAnz1FlKpFvJ0yIVVorf9jeGxE48nQP-DoejRBbxkKj
 86cnZAsO0WVYSZU9A>
X-ME-Received: <xmr:p4n-YmUPxrLSGSf8T1mvnzs8r4d10PC35-S29x_mJMm8VPuNDDO31J_yFfVjaMBvDv2D0HRSDu-_RFDbOu_UWto0iIirOKUA8oMbWcAmFby7DunweU9lHw>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdehledguddtfecutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh
 necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd
 enucfjughrpegtggfuhfgjffevgffkfhfvofesthhqmhdthhdtvdenucfhrhhomhepjhgr
 mhgvshesjhhojhhojhgrmhgvshdrtghomhenucggtffrrghtthgvrhhnpeetgfeiueeuff
 evtdffveffgeeifeektdejfefhhfdvieelfedthedvieehffffhfenucffohhmrghinhep
 shhouhhrtggvfigrrhgvrdhorhhgpdgvmhgrtghsrdgrphhppdhgnhhurdhorhhgpdhgih
 hthhhusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhl
 fhhrohhmpehjrghmvghssehjohhjohhjrghmvghsrdgtohhm
X-ME-Proxy: <xmx:p4n-Yii4KByhq1242psvLh8sCaWDV1VgpIrTsXFufomcIOcFcpsRJA>
 <xmx:p4n-YmAd7kNaLRW7xigeqTCLx9CEosXtOAo0jol27hk2JdTuCELM6Q>
 <xmx:p4n-YjJeLbBmrtCXClmw7PdAe2RZyAqsntwXHCq1fddQ0CB3UTythQ>
 <xmx:p4n-YhrU_Ss9ZKUU0IOPGOadThYGx0W7wZDHv1a4UF6uszLOnwjESg>
Feedback-ID: i4b00421f:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu,
 18 Aug 2022 14:49:11 -0400 (EDT)
Content-Type: text/plain;
	charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\))
Subject: Re: bug#57267: 28.1; emacs crashes when loading too many images
From: james@HIDDEN
In-Reply-To: <83v8qqawsh.fsf@HIDDEN>
Date: Thu, 18 Aug 2022 14:49:10 -0400
Content-Transfer-Encoding: quoted-printable
Message-Id: <CE82A2A1-035F-435F-B408-84B6B6563031@HIDDEN>
References: <B1DA1052-75FD-45F6-9759-43ABB9C0C4E2@HIDDEN>
 <83v8qqawsh.fsf@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
X-Mailer: Apple Mail (2.3654.120.0.1.13)
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 57267
Cc: 57267 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

-=
--------------------------------------------------------------------------=
---
$ brew install gdb

Codesigning gdb: https://sourceware.org/gdb/wiki/PermissionsDarwin

=
--------------------------------------------------------------------------=
----
emacs/ $ ./configure --enable-checking=3D'yes,glyphs' =
--enable-check-lisp-object-type \
    CFLAGS=3D'-O0 -g3'
=
--------------------------------------------------------------------------=
----

emacs/ $ make bootstrap && make install

=
--------------------------------------------------------------------------=
----
# First run seems to hang...
(gdb) r
Starting program: =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/MacOS/Emacs
[New Thread 0x1d03 of process 27192]
[New Thread 0x2003 of process 27192]


=
--------------------------------------------------------------------------=
----

# Second run

src/ $ gdb ../nextstep/Emacs.app/Contents/MacOS/Emacs
GNU gdb (GDB) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later =
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin20.6.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ../nextstep/Emacs.app/Contents/MacOS/Emacs...
SIGINT is used by the debugger.
Are you sure you want to change it? (y or n) [answered Y; input not from =
terminal]
Environment variable "DISPLAY" not defined.
TERM =3D xterm-256color
Breakpoint 1 at 0x1001c1300: terminate_due_to_signal. (2 locations)
(gdb) r
Starting program: =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/MacOS/Emacs
[New Thread 0x1c03 of process 27457]
[New Thread 0x1f03 of process 27457]
[New Thread 0x2003 of process 27457]
warning: unhandled dyld version (17)
[New Thread 0x1c0f of process 27457]
[New Thread 0x2103 of process 27457]
[New Thread 0x2203 of process 27457]
[New Thread 0x2a03 of process 27457]
[New Thread 0x2b03 of process 27457]
[New Thread 0x2c03 of process 27457]
[New Thread 0x5303 of process 27457]
[New Thread 0x5403 of process 27457]
[New Thread 0x1f47 of process 27457]
[New Thread 0x2d03 of process 27457]
[New Thread 0x5103 of process 27457]
[New Thread 0x5447 of process 27457]
[New Thread 0x1c13 of process 27457]
[New Thread 0x1f8b of process 27457]
[New Thread 0x2207 of process 27457]
[New Thread 0x2e07 of process 27457]
[New Thread 0x5107 of process 27457]
[New Thread 0x523b of process 27457]
[New Thread 0x2d07 of process 27457]
[New Thread 0x2e47 of process 27457]
[New Thread 0x510b of process 27457]
[New Thread 0x53fb of process 27457]
[New Thread 0x22d3 of process 27457]
[New Thread 0x547b of process 27457]
[New Thread 0x4d03 of process 27457]
[New Thread 0x4e03 of process 27457]
[New Thread 0x50c3 of process 27457]
[New Thread 0x544b of process 27457]
[New Thread 0x5383 of process 27457]
[New Thread 0x4e07 of process 27457]
[New Thread 0x535b of process 27457]
[New Thread 0x5477 of process 27457]
[New Thread 0x520b of process 27457]
[New Thread 0x1c1f of process 27457]
[New Thread 0x2a07 of process 27457]
[New Thread 0x4dc3 of process 27457]
[New Thread 0x4e0b of process 27457]
[New Thread 0x535f of process 27457]
[New Thread 0x504f of process 27457]

Thread 42 received signal SIGBUS, Bus error.
[Switching to Thread 0x504f of process 27457]
0x000000046b064710 in ?? ()
(gdb) bt full
#0  0x000000046b064710 in ?? ()
No symbol table info available.
#1  0x00007fff31a448da in ?? ()
No symbol table info available.
#2  0x0000000000000000 in ?? ()
No symbol table info available.

Thread 42 received signal SIGBUS, Bus error.
<function called from gdb>
The program being debugged was signaled while in a function called from =
GDB.
GDB remains in the frame where the signal was received.
To change this behavior use "set unwindonsignal on".
Evaluation of the expression containing the function
(backtrace_top) will be abandoned.
When the function is done executing, GDB will silently stop.
(gdb)

(gdb) xbacktrace
[New Thread 0x4f2b of process 27457]
[New Thread 0x5363 of process 27457]
[New Thread 0x2e4b of process 27457]

Thread 42 received signal SIGBUS, Bus error.
<function called from gdb>
The program being debugged was signaled while in a function called from =
GDB.
GDB remains in the frame where the signal was received.
To change this behavior use "set unwindonsignal on".
Evaluation of the expression containing the function
(backtrace_top) will be abandoned.
When the function is done executing, GDB will silently stop.
(gdb)

=
--------------------------------------------------------------------------=
----

In GNU Emacs 29.0.50 (build 1, x86_64-apple-darwin20.6.0, NS =
appkit-2022.70 Version 11.6.7 (Build 20G630))
 of 2022-08-18 built on jojobook.local
Repository revision: 3e042c80ce708b2d27da8ff62f19a5706f6d7fc6
Repository branch: master
Windowing system distributor 'Apple', version 10.3.2022
System Description:  macOS 11.6.7

Configured using:
 'configure --enable-checking=3Dyes,glyphs =
--enable-check-lisp-object-type
 'CFLAGS=3D-O0 -g3''

Configured features:
ACL GIF GLIB GMP GNUTLS JPEG JSON LCMS2 LIBXML2 MODULES NOTIFY KQUEUE NS
PDUMPER PNG RSVG SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP XIM ZLIB

Important settings:
  value of $LC_ALL: en_US.UTF-8
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8

Major mode: Lisp Interaction

Minor modes in effect:
  recentf-mode: t
  savehist-mode: t
  elisp-slime-nav-mode: t
  display-line-numbers-mode: t
  company-quickhelp-mode: t
  company-quickhelp-local-mode: t
  yas-global-mode: t
  yas-minor-mode: t
  global-company-mode: t
  company-mode: t
  global-hungry-delete-mode: t
  hungry-delete-mode: t
  smartparens-global-mode: t
  smartparens-mode: t
  vertico-mode: t
  marginalia-mode: t
  pixel-scroll-precision-mode: t
  general-override-mode: t
  override-global-mode: t
  straight-use-package-mode: t
  straight-package-neutering-mode: t
  straight-live-modifications-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  tab-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  context-menu-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  hs-minor-mode: t

Load-path shadows:
/Users/james/.emacs.d/packages/emacs_29/straight/build/ivy/elpa hides =
/Users/james/.emacs.d/packages/emacs_29/straight/build/lispy/elpa
/Users/james/.emacs.d/packages/emacs_29/straight/build/so-long/so-long =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/so-long=

/Users/james/.emacs.d/packages/emacs_29/straight/build/jsonrpc/jsonrpc =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/jsonrpc=

=
/Users/james/.emacs.d/packages/emacs_29/straight/build/transient/transient=
 hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/transie=
nt
/Users/james/.emacs.d/packages/emacs_29/straight/build/xref/xref hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/progmod=
es/xref
/Users/james/.emacs.d/packages/emacs_29/straight/build/project/project =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/progmod=
es/project
/Users/james/.emacs.d/packages/emacs_29/straight/build/flymake/flymake =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/progmod=
es/flymake
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-exp hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
exp
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-emacs-lisp =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
emacs-lisp
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/oc hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/oc
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-css hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
css
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-lob hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
lob
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ol-irc hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ol-=
irc
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-forth =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
forth
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-macs =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-macs
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-version =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-version
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-scheme =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
scheme
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ox hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ox
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-C hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
C
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-capture =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-capture
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-ref hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
ref
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-clojure =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
clojure
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-mouse =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-mouse
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-ctags =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-ctags
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-entities =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-entities
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-archive =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-archive
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-screen =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
screen
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ol-bibtex =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ol-=
bibtex
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-haskell =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
haskell
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-loaddefs =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-loaddefs
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-table =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-table
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ol-eww hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ol-=
eww
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ol-man hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ol-=
man
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ox-org hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ox-=
org
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-num hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-num
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-plot =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-plot
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ol-rmail =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ol-=
rmail
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-awk hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
awk
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-groovy =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
groovy
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-octave =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
octave
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-faces =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-faces
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/oc-biblatex =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/oc-=
biblatex
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-colview =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-colview
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-R hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
R
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-refile =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-refile
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-timer =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-timer
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-mobile =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-mobile
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-fortran =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
fortran
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-shell =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
shell
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-perl hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
perl
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-sqlite =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
sqlite
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/oc-basic =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/oc-=
basic
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-sed hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
sed
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-list =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-list
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-ruby hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
ruby
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-eval hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
eval
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-habit =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-habit
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-clock =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-clock
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-goto =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-goto
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ox-html hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ox-=
html
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-src hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-src
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-lisp hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
lisp
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ol-eshell =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ol-=
eshell
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-ditaa =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
ditaa
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-pcomplete =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-pcomplete
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-lint =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-lint
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ox-latex =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ox-=
latex
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-sass hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
sass
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-tangle =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
tangle
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-calc hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
calc
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-java hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
java
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ox-icalendar =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ox-=
icalendar
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ol-mhe hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ol-=
mhe
=
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-attach-git =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-attach-git
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ox-md hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ox-=
md
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ox-beamer =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ox-=
beamer
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-element =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-element
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/oc-natbib =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/oc-=
natbib
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-protocol =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-protocol
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-gnuplot =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
gnuplot
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-tempo =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-tempo
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-latex =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
latex
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ol-w3m hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ol-=
w3m
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-id hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-id
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ox-man hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ox-=
man
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ol-doi hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ol-=
doi
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-feed =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-feed
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-julia =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
julia
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-lua hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
lua
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-table =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
table
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-ocaml =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
ocaml
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/oc-csl hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/oc-=
csl
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ol-gnus hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ol-=
gnus
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-indent =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-indent
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-lilypond =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
lilypond
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-matlab =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
matlab
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-datetree =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-datetree
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ol-docview =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ol-=
docview
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-python =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
python
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-makefile =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
makefile
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-duration =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-duration
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-agenda =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-agenda
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-dot hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
dot
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-js hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
js
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ox-publish =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ox-=
publish
=
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-inlinetask =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-inlinetask
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-org hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
org
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-keys =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-keys
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-core hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
core
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-compat =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-compat
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ol hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ol
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ox-odt hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ox-=
odt
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ol-info hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ol-=
info
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-plantuml =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
plantuml
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-eshell =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
eshell
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ox-ascii =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ox-=
ascii
=
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ox-koma-letter =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ox-=
koma-letter
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-maxima =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
maxima
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=

/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ol-bbdb hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ol-=
bbdb
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-macro =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-macro
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-sql hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
sql
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-attach =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-attach
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-processing =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
processing
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ox-texinfo =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ox-=
texinfo
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-crypt =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-crypt
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-footnote =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-footnote
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/org-install =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/org=
-install
/Users/james/.emacs.d/packages/emacs_29/straight/build/org/ob-comint =
hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ob-=
comint
=
/Users/james/.emacs.d/packages/emacs_29/straight/build/let-alist/let-alist=
 hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/emacs-l=
isp/let-alist
/Users/james/.emacs.d/packages/emacs_29/straight/build/map/map hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/emacs-l=
isp/map
/Users/james/.emacs.d/packages/emacs_29/straight/build/eldoc/eldoc hides =
/Users/james/Code/emacs/nextstep/Emacs.app/Contents/Resources/lisp/emacs-l=
isp/eldoc

Features:
(shadow sort mail-extr recentf tree-widget wid-edit emacsbug message
yank-media puny ls-lisp matcha-dired dired dired-loaddefs rfc822 mml
mml-sec epa derived epg rfc6068 epg-config gnus-util
text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils vertico-directory savehist company-tng
time-date exec-path-from-shell elisp-slime-nav display-line-numbers
company-quickhelp pos-tip jn-dropbox jn-lang php-mode-autoloads
web-mode-autoloads add-node-modules-path-autoloads tide-autoloads
flycheck-autoloads let-alist-autoloads typescript-mode-autoloads
prettier-js-autoloads rjsx-mode-autoloads xref-js2-autoloads
js2-mode-autoloads dtrt-indent-autoloads clang-format-autoloads
godoctor-autoloads company-go-autoloads go-guru-autoloads
go-mode-autoloads flymake-ktlint-autoloads kotlin-mode-autoloads
alchemist-autoloads pkg-info-autoloads epl-autoloads
elixir-mode-autoloads erlang-autoloads lua-mode-autoloads
cargo-autoloads rust-mode-autoloads csharp-mode-autoloads
haskell-mode-autoloads scala-mode-autoloads groovy-mode-autoloads
jn-lisp elisp-refs-autoloads macrostep-autoloads
elisp-slime-nav-autoloads cider-autoloads sesman-autoloads
queue-autoloads parseedn-autoloads map-autoloads parseclj-autoloads
clojure-mode-autoloads flymake-racket-autoloads geiser-autoloads
sly-autoloads jn-completion yasnippet yasnippet-autoloads
company-quickhelp-autoloads pos-tip-autoloads company-keywords
company-etags company-gtags company-files company-capf company-cmake
company-semantic company-template company-dabbrev-code company-dabbrev
company-yasnippet company-bbdb company company-autoloads jn-evil
evil-org-autoloads evil-numbers-autoloads evil-commentary-autoloads
evil-surround-autoloads evil-visualstar-autoloads evil-matchit-autoloads
evil-collection-autoloads annalist-autoloads warnings calc-macs rect
evil-digraphs evil-vars jn-editing comment-or-uncomment-sexp-autoloads
super-save-autoloads rainbow-mode-autoloads vlf-autoloads
so-long-autoloads expand-region-autoloads hideshow hungry-delete
hungry-delete-autoloads ws-butler-autoloads lispyville-autoloads
evil-autoloads goto-chg-autoloads lispy hydra lv pcase delsel
lispy-inline avy noutline outline icons etags fileloop generator xref
project edebug debug backtrace help-fns radix-tree lispy-tags mode-local
find-func lispy-autoloads zoutline-autoloads hydra-autoloads
lv-autoloads swiper-autoloads ivy-autoloads iedit-autoloads objc-bracket
smartparens-config smartparens-text smartparens-c smartparens thingatpt
dash smartparens-autoloads jn-project fzf-native-make-slab
fzf-native-make-default-slab fzf-native-module fzf-native
fzf-native-autoloads fuz-bin-dyn fuz-bin fuz-bin-autoloads flx-rs-core
flx-rs flx-rs-autoloads fussy flx fussy-autoloads flx-autoloads
dired-sidebar-autoloads dired-subtree-autoloads
dired-hacks-utils-autoloads projectile-autoloads
embark-consult-autoloads embark-autoloads consult-tramp-autoloads
consult-autoloads vertico vertico-autoloads orderless-autoloads
marginalia marginalia-autoloads jn-misc media-thumbnail-autoloads
org-contrib org-contrib-autoloads csv-mode-autoloads shackle-autoloads
sudo-edit-autoloads deadgrep-autoloads spinner-autoloads
protobuf-mode-autoloads cmake-mode-autoloads restclient-autoloads
vimrc-mode-autoloads powershell-autoloads json-mode-autoloads rx
json-snatcher-autoloads yaml-mode-autoloads markdown-mode-autoloads
pass-autoloads f-autoloads password-store-otp-autoloads
password-store-autoloads multi-term-autoloads jn-git vc-defer-autoloads
hg-histedit-autoloads vc-hgcmd-autoloads advice magit-autoloads
magit-section-autoloads git-commit-autoloads with-editor-autoloads
jn-platform reveal-in-osx-finder-autoloads pbcopy-autoloads async
exec-path-from-shell-autoloads jn-defaults pixel-scroll cua-base ring
jn-theme solarized-light-theme solarized solarized-faces color
spacemacs-theme-autoloads solarized-theme-autoloads
doom-themes-autoloads highlight-symbol-autoloads xterm-color-autoloads
rainbow-delimiters-autoloads jn-dependencies vscode-icon
vscode-icon-autoloads eglot-autoloads flymake-autoloads
project-autoloads xref-autoloads eldoc-autoloads jsonrpc-autoloads
flymake-diagnostic-at-point-autoloads help-at-pt cus-load
editorconfig-autoloads vterm-autoloads prjf prjf-autoloads matcha-elisp
matcha-macrostep matcha-me matcha matcha-base matcha-autoloads transient
format-spec edmacro kmacro compat transient-autoloads compat-autoloads
ace-window-autoloads avy-autoloads smart-jump-autoloads
dumb-jump-autoloads popup-autoloads dash-autoloads s-autoloads
async-autoloads diminish diminish-autoloads general general-autoloads
finder-inf jn-core early-init use-package use-package-ensure
use-package-delight use-package-diminish use-package-bind-key bind-key
easy-mmode use-package-core use-package-autoloads bind-key-autoloads
straight-autoloads info cl-extra help-mode straight package browse-url
url url-proxy url-privacy url-expand url-methods url-history url-cookie
generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse
auth-source cl-seq eieio eieio-core cl-macs password-cache json subr-x
map byte-opt gv bytecomp byte-compile cconv url-vars cl-loaddefs cl-lib
rmc iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks
lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize
mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode lisp-mode prog-mode register
page tab-bar menu-bar rfn-eshadow isearch easymenu timer select
scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors
frame minibuffer nadvice seq simple cl-generic indonesian philippine
cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese composite emoji-zwj charscript
charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure
cl-preloaded button loaddefs faces cus-face macroexp files window
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget keymap hashtable-print-readable backquote threads kqueue
cocoa ns lcms2 multi-tty make-network-process emacs)

Memory information:
((conses 16 293004 331596)
 (symbols 48 24305 501)
 (strings 32 70546 59933)
 (string-bytes 1 2911674)
 (vectors 16 38541)
 (vector-slots 8 907403 447843)
 (floats 8 461 1002)
 (intervals 56 3368 255)
 (buffers 992 11))

=
--------------------------------------------------------------------------=
----

Crash/hang takes a lot longer to reproduce (need to scroll thousands of =
images) in gdb.

Not sure if I correctly added the debug symbols to the build, doesn't =
seem like it from the trace.


> On Aug 18, 2022, at 2:30 AM, Eli Zaretskii <eliz@HIDDEN> wrote:
>=20
>> From: james@HIDDEN
>> Date: Wed, 17 Aug 2022 20:38:27 -0400
>>=20
>> I wrote a small library to add thumbnails to dired here:
>> https://github.com/jojojames/media-thumbnail
>>=20
>> When scrolling through images at a fast rate. (I hold down the key to =
go to the next line for example.),
>> emacs eventually crashes.
>=20
> Please compile Emacs with debug information and without optimizations,
> then run it under a debugger, and when it crashes, please post the
> full backtrace from the debugger, including the Lisp backtrace
> (produced by GDB automatically if you source the .gdbinit file that
> comes with Emacs).
>=20
> Also, you didn't post the information about your build that is
> normally collected by "M-x report-emacs-bug"; please post that, it's
> important for the analysis of the possible reasons.
>=20
> Thanks.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57267; Package emacs. Full text available.
Added tag(s) moreinfo. Request was from Stefan Kangas <stefan@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 57267 <at> debbugs.gnu.org:


Received: (at 57267) by debbugs.gnu.org; 18 Aug 2022 06:30:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 18 02:30:37 2022
Received: from localhost ([127.0.0.1]:53528 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oOZ37-0003J7-7B
	for submit <at> debbugs.gnu.org; Thu, 18 Aug 2022 02:30:37 -0400
Received: from eggs.gnu.org ([209.51.188.92]:55860)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1oOZ34-0003Ii-UE
 for 57267 <at> debbugs.gnu.org; Thu, 18 Aug 2022 02:30:35 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:40296)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1oOZ2z-0002FI-I2; Thu, 18 Aug 2022 02:30:29 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=gTi+6cpSaDVb+5F6YSj8NhsaD1aSeUfQOfBE8a+SMR4=; b=B+VZ5KU/IajT
 W5PV6+GSSvo0255LYraee6exIPw/T1pR6xt+NH66oeBv130z7Smv1N4hnhbINnum+9WIn1KfWMGVr
 z0P5cOyzb7/vNidngcS2nyU230yvVEBnHdSpYpSNU2y96dKn5nkbgjbXh5ELK9Op0FZ1npFxkOKb6
 Zpr//6MT9+cL1el2fK+nB7aNZt9eaYM0dCJo3MJhW8LukSllfblQswDDyhb7ebFbgyBzXi3qUTEQ3
 Vj3BW7boTNuP5Y4bevsHQqA1ux5B6WCqxoXfhUwnuJ+sGAD5o58mhaVlM6ptSHJfOBC0FBK18b+CI
 elBjcHHvJ0Q2yuCDLhIYAQ==;
Received: from [87.69.77.57] (port=1727 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1oOZ2z-0000Yi-1S; Thu, 18 Aug 2022 02:30:29 -0400
Date: Thu, 18 Aug 2022 09:30:22 +0300
Message-Id: <83v8qqawsh.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: james@HIDDEN
In-Reply-To: <B1DA1052-75FD-45F6-9759-43ABB9C0C4E2@HIDDEN>
Subject: Re: bug#57267: 28.1; emacs crashes when loading too many images
References: <B1DA1052-75FD-45F6-9759-43ABB9C0C4E2@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 57267
Cc: 57267 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: james@HIDDEN
> Date: Wed, 17 Aug 2022 20:38:27 -0400
> 
> I wrote a small library to add thumbnails to dired here:
> https://github.com/jojojames/media-thumbnail
> 
> When scrolling through images at a fast rate. (I hold down the key to go to the next line for example.),
> emacs eventually crashes.

Please compile Emacs with debug information and without optimizations,
then run it under a debugger, and when it crashes, please post the
full backtrace from the debugger, including the Lisp backtrace
(produced by GDB automatically if you source the .gdbinit file that
comes with Emacs).

Also, you didn't post the information about your build that is
normally collected by "M-x report-emacs-bug"; please post that, it's
important for the analysis of the possible reasons.

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57267; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 18 Aug 2022 00:38:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 17 20:38:39 2022
Received: from localhost ([127.0.0.1]:53293 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oOTYU-0002Rq-U2
	for submit <at> debbugs.gnu.org; Wed, 17 Aug 2022 20:38:39 -0400
Received: from lists.gnu.org ([209.51.188.17]:54148)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <james@HIDDEN>) id 1oOTYQ-0002Rg-J0
 for submit <at> debbugs.gnu.org; Wed, 17 Aug 2022 20:38:37 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:39184)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <james@HIDDEN>)
 id 1oOTYQ-0007xv-Dq
 for bug-gnu-emacs@HIDDEN; Wed, 17 Aug 2022 20:38:34 -0400
Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:34679)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <james@HIDDEN>)
 id 1oOTYO-00059T-IW
 for bug-gnu-emacs@HIDDEN; Wed, 17 Aug 2022 20:38:34 -0400
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41])
 by mailout.west.internal (Postfix) with ESMTP id A01033200978
 for <bug-gnu-emacs@HIDDEN>; Wed, 17 Aug 2022 20:38:28 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute1.internal (MEProxy); Wed, 17 Aug 2022 20:38:28 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jojojames.com;
 h=cc:content-transfer-encoding:content-type:date:date:from:from
 :in-reply-to:message-id:mime-version:reply-to:sender:subject
 :subject:to:to; s=fm3; t=1660783108; x=1660869508; bh=LGbDVWMsMt
 iz7nc1YJMU9hTEH/4ibEf/NrmAR0TPt8A=; b=Gp74wRL4DHb+EAJ0MenE68vfwH
 opUYVzUvaenp/HkkMZlzbZ1cqrIJ8sr/M7/O9kwXoMOgDnd6Rh7+J/7SUQ5/m5VZ
 Zd09DYuaTwCEgytBdBAcxRHTl6uS4Pt1u6Rrq07h4islIVJNxrAfRBnN7JuMMta7
 mc5HqoenJ376BxNfhU2Mu6+vZaLUxN94I+jTowEMcobAVZ2E+kIm7jHoZv4UOI3F
 8SqfAIme+xgz3tTUGNmWHpDVtN9lz5rmA6mc4LT7PLlwcf2ggx66tn2RknjfRlNK
 nF6qnAAaffq4GfReluKfXsZkXA23TixEO8Qw7VIo1aYpV5ScjWFU2YXAV6eA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-transfer-encoding:content-type
 :date:date:feedback-id:feedback-id:from:from:in-reply-to
 :message-id:mime-version:reply-to:sender:subject:subject:to:to
 :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=
 fm1; t=1660783108; x=1660869508; bh=LGbDVWMsMtiz7nc1YJMU9hTEH/4i
 bEf/NrmAR0TPt8A=; b=zb+/QB1NPmzqiG56cuF02HwJdW0l0wYi+89KfjrXm0uA
 WZQPuE+7zToh6i23p0mVWER09Y8MwhxJQ7jSEORHv0Ou6SpytXDBe3x8Bn9Ymf0U
 AKqr2+B5ZLUvwxjb6P4XF800k+tO3fan8enxsrc0r8K1Pjx1HTFC3DLPIvuN8A1T
 C7AWCCNFuKxyQNLo6aDooKBJWHBKV1jP27Zq8ldNR06OY9/beapsmydJvMUO4hx4
 LROTjWar218E9XgKq4Cq47y/0Ys4u8c7Xft22N1nqRyAX7FDrMTOGnRw4ids2IBo
 Pr/6S1aDR6rXxfs6p0nLVqyuREL3Gl+K9cx97nBcKw==
X-ME-Sender: <xms:A4r9YoU0wSOdPGOBLg0jLNDLRh99C-2HwXVr9xo2krqD-5Dmjm-Rgg>
 <xme:A4r9Ysn2BNfEDFnGYJ7rKowBA8jxRyRTLjZS9AgWaNCCGziVYaj6KPZBfsw4phc0e
 At-5miuwza3NpTIYg>
X-ME-Received: <xmr:A4r9YsYBgsm_bksneXerTceCdJAKff9Pk0fQB1lIRz2Hu_ZzMcIEwwi4ye45c7sgP9-VQyBAvsX5d4HmaEEdCY3BGRpnebKkWSntVkUaDpkfybLqS34REw>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdehjedgfeejucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucenucfjughrpefhtgfgggfukfffvffosehtqhhmtd
 hhtddvnecuhfhrohhmpehjrghmvghssehjohhjohhjrghmvghsrdgtohhmnecuggftrfgr
 thhtvghrnhepfffgteeukeegheeuteduieettdejjeetieevhefgteevteejteetgeffud
 eigeehnecuffhomhgrihhnpehgihhthhhusgdrtghomhdpghhnuhdrohhrghdpmhgvlhhp
 rgdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh
 hmpehjrghmvghssehjohhjohhjrghmvghsrdgtohhm
X-ME-Proxy: <xmx:BIr9YnURXjXRn62WKTZXvoaJuH6Q4Jdzt7avi64oZ2SI1Cu4FSpXhQ>
 <xmx:BIr9YilR3AaaSfa6e3BDxnIkdb-tO1FArcOt4rp4ZrK-p6lpSzDkaw>
 <xmx:BIr9YscAbL0H7BOvvXu5OZj5rLLA43F8n3mn_WG1ZPod4YAWfPwIMg>
 <xmx:BIr9YsTZu74WqyjJbXzp8higKnK91X6vnUHLpD_YEQWK0dpKciUsKg>
Feedback-ID: i4b00421f:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA for
 <bug-gnu-emacs@HIDDEN>; Wed, 17 Aug 2022 20:38:27 -0400 (EDT)
From: james@HIDDEN
Content-Type: text/plain;
	charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\))
Subject: 28.1; emacs crashes when loading too many images
Message-Id: <B1DA1052-75FD-45F6-9759-43ABB9C0C4E2@HIDDEN>
Date: Wed, 17 Aug 2022 20:38:27 -0400
To: bug-gnu-emacs@HIDDEN
X-Mailer: Apple Mail (2.3654.120.0.1.13)
Received-SPF: pass client-ip=64.147.123.21; envelope-from=james@HIDDEN;
 helo=wout5-smtp.messagingengine.com
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

I wrote a small library to add thumbnails to dired here:
https://github.com/jojojames/media-thumbnail

When scrolling through images at a fast rate. (I hold down the key to go =
to the next line for example.),
emacs eventually crashes.

The behavior can also be seen with image-dired though I didn't test an =
emacs -Q for it.
=
https://www.gnu.org/software/emacs/manual/html_node/emacs/Image_002dDired.=
html

I can reproduce more reliably with my library due to its rapid fire =
calls to create-image (maybe?).

# Emacs -Q

(require 'package)
(add-to-list 'package-archives '("melpa" . =
"https://melpa.org/packages/"))
(package-initialize)
(package-refresh-contents)

;; $ git clone https://github.com/jojojames/media-thumbnail

;; (load =
"/Users/james/.emacs.d/packages/emacs_28/straight/repos/media-thumbnail/me=
dia-thumbnail.el")
(load "where-media-thumbnail-is-located/media-thumbnail.el")

(require 'media-thumbnail)
(add-hook 'dired-mode-hook 'media-thumbnail-dired-mode)

M-x dired # directory with a lot of images to scroll through
C-n until emacs crashes.


- # of images in directory can range in the hundreds.
- happens consistently when scrolling through hundreds of images, though =
not every time=




Acknowledgement sent to james@HIDDEN:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#57267; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 5 Oct 2022 13:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.