* bug#57563: 28.1; macOS - layout warning at startup
@ 2022-09-03 14:39 Bob Kline
2022-09-05 1:36 ` Lars Ingebrigtsen
2022-09-06 1:11 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 2 replies; 46+ messages in thread
From: Bob Kline @ 2022-09-03 14:39 UTC (permalink / raw)
To: 57563
This is related to bug report 53481
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=53481
I followed the instructions to unarchive that bug by sending a message
to control AT debbugs.gnu.org, with unarchive 53481 in the body, and
then emailing my followup to 53481 AT debbugs.gnu.org, but that appears
to have had no effect.
In the thread for that bug report Alan Third (alan <at> idiocy.org)
wrote that the bug was fixed in Emacs 28, but that does not appear to be
true.
The unwanted behavior is the display at startup of an annoying warning
which suggests something may break in the future.
[BEGIN TERMINAL TRANSCRIPT]
% emacs --version
GNU Emacs 28.1
Copyright (C) 2022 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GNU Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
% emacs -Q
2022-09-03 09:35:53.118 Emacs-x86_64-10_14[37072:11711478] It's not
legal to call -layoutSubtreeIfNeeded on a view which is already being
laid out. If you are implementing the view's -layout method, you can
call -[super layout] instead. Break on void
_NSDetectedLayoutRecursion(void) to debug. This will be logged only
once. This may break in the future.
[END TERMINAL TRANSCRIPT]
[begin environment information captured by M-x report-emacs-bug]
In GNU Emacs 28.1 (build 1, x86_64-apple-darwin18.7.0, NS
appkit-1671.60 Version 10.14.6 (Build 18G95))
of 2022-05-11 built on builder10-14.lan
Windowing system distributor 'Apple', version 10.3.2113
System Description: macOS 12.5.1
Configured using:
'configure --with-ns '--enable-locallisppath=/Library/Application
Support/Emacs/${version}/site-lisp:/Library/Application
Support/Emacs/site-lisp' --with-modules'
Configured features:
ACL GMP GNUTLS JSON LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER THREADS
TOOLKIT_SCROLL_BARS ZLIB
Important settings:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
Major mode: Info
Minor modes in effect:
display-time-mode: t
tooltip-mode: t
global-eldoc-mode: t
show-paren-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
buffer-read-only: t
line-number-mode: t
transient-mark-mode: t
Load-path shadows:
None found.
Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail
rmail-loaddefs 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 goto-addr thingatpt
noutline outline view jka-compr info misearch multi-isearch time-date
vc-git diff-mode easy-mmode vc-dispatcher web-mode advice disp-table
finder-inf time package browse-url url url-proxy url-privacy url-expand
url-methods url-history url-cookie url-domsuf url-util mailcap
url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs
eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv
bytecomp byte-compile cconv cl-loaddefs cl-lib 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 cl-generic
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 simple abbrev obarray
cl-preloaded nadvice button loaddefs faces cus-face macroexp files
window text-properties overlay sha1 md5 base64 format env code-pages
mule custom widget hashtable-print-readable backquote threads kqueue
cocoa ns multi-tty make-network-process emacs)
Memory information:
((conses 16 350507 11196)
(symbols 48 15228 1)
(strings 32 82138 2244)
(string-bytes 1 2046050)
(vectors 16 24837)
(vector-slots 8 339889 25814)
(floats 8 36 50)
(intervals 56 31601 0)
(buffers 992 13))
[end environment information captured by M-x report-emacs-bug]
Thanks.
--
Bob Kline
https://www.rksystems.com
mailto:bkline@rksystems.com
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-03 14:39 bug#57563: 28.1; macOS - layout warning at startup Bob Kline
@ 2022-09-05 1:36 ` Lars Ingebrigtsen
2022-09-05 12:13 ` Bob Kline
2022-09-06 1:11 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
1 sibling, 1 reply; 46+ messages in thread
From: Lars Ingebrigtsen @ 2022-09-05 1:36 UTC (permalink / raw)
To: Bob Kline; +Cc: 57563
Bob Kline <bkline@rksystems.com> writes:
> The unwanted behavior is the display at startup of an annoying warning
> which suggests something may break in the future.
[...]
> 2022-09-03 09:35:53.118 Emacs-x86_64-10_14[37072:11711478] It's not
> legal to call -layoutSubtreeIfNeeded on a view which is already being
> laid out. If you are implementing the view's -layout method, you can
> call -[super layout] instead. Break on void
> _NSDetectedLayoutRecursion(void) to debug. This will be logged only
> once. This may break in the future.
[...]
> In GNU Emacs 28.1 (build 1, x86_64-apple-darwin18.7.0, NS
> appkit-1671.60 Version 10.14.6 (Build 18G95))
> of 2022-05-11 built on builder10-14.lan
> Windowing system distributor 'Apple', version 10.3.2113
> System Description: macOS 12.5.1
I tried this on my M1 Apple laptop, and I did not get this warning.
This is with:
In GNU Emacs 28.1 (build 2, aarch64-apple-darwin21.6.0, NS appkit-2113.60 Versi\
on 12.5.1 (Build 21G83))
of 2022-09-05 built on emkay.local
Repository revision: 5a223c7f2ef4c31abbd46367b6ea83cd19d30aa7
Repository branch: HEAD
System Description: macOS 12.5.1
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-05 1:36 ` Lars Ingebrigtsen
@ 2022-09-05 12:13 ` Bob Kline
2022-09-05 19:01 ` Lars Ingebrigtsen
0 siblings, 1 reply; 46+ messages in thread
From: Bob Kline @ 2022-09-05 12:13 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: 57563
On Sun, Sep 4, 2022 at 9:36 PM Lars Ingebrigtsen <larsi@gnus.org> wrote:
> ...
> I tried this on my M1 Apple laptop, and I did not get this warning.
> ...
Doesn't happen on my M1 laptop either. Only on the Intel-based laptop
provided by one of my clients.
--
Bob Kline
https://www.rksystems.com
mailto:bkline@rksystems.com
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-05 12:13 ` Bob Kline
@ 2022-09-05 19:01 ` Lars Ingebrigtsen
0 siblings, 0 replies; 46+ messages in thread
From: Lars Ingebrigtsen @ 2022-09-05 19:01 UTC (permalink / raw)
To: Bob Kline; +Cc: 57563
Bob Kline <bkline@rksystems.com> writes:
> On Sun, Sep 4, 2022 at 9:36 PM Lars Ingebrigtsen <larsi@gnus.org> wrote:
>> ...
>> I tried this on my M1 Apple laptop, and I did not get this warning.
>> ...
>
> Doesn't happen on my M1 laptop either. Only on the Intel-based laptop
> provided by one of my clients.
Could this be due to the different appkit versions? I.e., 1671.60 vs
2113.60?
> > In GNU Emacs 28.1 (build 1, x86_64-apple-darwin18.7.0, NS
> > appkit-1671.60 Version 10.14.6 (Build 18G95))
>
> [...]
>
> In GNU Emacs 28.1 (build 2, aarch64-apple-darwin21.6.0, NS appkit-2113.60 Versi\
> on 12.5.1 (Build 21G83))
I can try to root out an Intel Apple laptop to test; I think I've got
one here somewhere...
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-03 14:39 bug#57563: 28.1; macOS - layout warning at startup Bob Kline
2022-09-05 1:36 ` Lars Ingebrigtsen
@ 2022-09-06 1:11 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-06 13:45 ` Bob Kline
1 sibling, 1 reply; 46+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-09-06 1:11 UTC (permalink / raw)
To: Bob Kline; +Cc: 57563
Bob Kline <bkline@rksystems.com> writes:
> This is related to bug report 53481
>
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=53481
>
> I followed the instructions to unarchive that bug by sending a message
> to control AT debbugs.gnu.org, with unarchive 53481 in the body, and
> then emailing my followup to 53481 AT debbugs.gnu.org, but that appears
> to have had no effect.
>
> In the thread for that bug report Alan Third (alan <at> idiocy.org)
> wrote that the bug was fixed in Emacs 28, but that does not appear to be
> true.
>
> The unwanted behavior is the display at startup of an annoying warning
> which suggests something may break in the future.
We've already seen this in the font dialog, and that was a bug with
Apple's own code, so could you please put a breakpoint on
_NSDetectedLayoutRecursion, and show a backtrace from when it is set?
Thanks.
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-06 1:11 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-09-06 13:45 ` Bob Kline
2022-09-07 1:03 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 1 reply; 46+ messages in thread
From: Bob Kline @ 2022-09-06 13:45 UTC (permalink / raw)
To: Po Lu; +Cc: 57563
On Mon, Sep 5, 2022 at 9:11 PM Po Lu <luangruo@yahoo.com> wrote:
> ... could you please put a breakpoint on
> _NSDetectedLayoutRecursion, and show a backtrace from when it is set?
I'm happy to provide whatever information is needed, but I'll need
more detailed instructions. I haven't done any Mac software
development since the previous century, well before OS X.
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-06 13:45 ` Bob Kline
@ 2022-09-07 1:03 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-07 5:04 ` Gerd Möllmann
0 siblings, 1 reply; 46+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-09-07 1:03 UTC (permalink / raw)
To: Bob Kline; +Cc: 57563
Bob Kline <bkline@rksystems.com> writes:
> I'm happy to provide whatever information is needed, but I'll need
> more detailed instructions. I haven't done any Mac software
> development since the previous century, well before OS X.
I'm not sure I know how to do that with lldb, unfortunately. Perhaps
someone else can chime in at this point.
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-07 1:03 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-09-07 5:04 ` Gerd Möllmann
2022-09-07 12:17 ` Bob Kline
0 siblings, 1 reply; 46+ messages in thread
From: Gerd Möllmann @ 2022-09-07 5:04 UTC (permalink / raw)
To: Po Lu; +Cc: 57563, Bob Kline
Po Lu <luangruo@yahoo.com> writes:
> Bob Kline <bkline@rksystems.com> writes:
>
>> I'm happy to provide whatever information is needed, but I'll need
>> more detailed instructions. I haven't done any Mac software
>> development since the previous century, well before OS X.
>
> I'm not sure I know how to do that with lldb, unfortunately. Perhaps
> someone else can chime in at this point.
I think Bob is using x86_64, which GDB supports. Anyway, it's not much
different for LLDB:
As usual, the more debug info your Emacs executable contains, the
better. Then, from where you built Emacs
cd src
lldb ./emacs
(lldb) b _NSDetectedLayoutRecursion
(lldb) run
and when LLDB stops at the breakpoint, print the backtrace with
(lldb) bt
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-07 5:04 ` Gerd Möllmann
@ 2022-09-07 12:17 ` Bob Kline
2022-09-07 12:28 ` Gerd Möllmann
0 siblings, 1 reply; 46+ messages in thread
From: Bob Kline @ 2022-09-07 12:17 UTC (permalink / raw)
To: Gerd Möllmann; +Cc: Po Lu, 57563
On Wed, Sep 7, 2022 at 1:04 AM Gerd Möllmann <gerd.moellmann@gmail.com> wrote:
> ... from where you built Emacs ...
I didn't build emacs myself, I installed it with "brew install --cask
--no-quarantine emacs." I did try gdb, but gdb didn't recognize emacs
as an executable. I tried following your instructions using lldb, and
I was actually able to set the breakpoint (so enough usable symbols
were present for the debugger to find the address for the breakpoint),
but "run" failed ("Not allowed to attach to process").
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-07 12:17 ` Bob Kline
@ 2022-09-07 12:28 ` Gerd Möllmann
2022-09-07 12:47 ` Bob Kline
0 siblings, 1 reply; 46+ messages in thread
From: Gerd Möllmann @ 2022-09-07 12:28 UTC (permalink / raw)
To: Bob Kline; +Cc: Po Lu, 57563
Bob Kline <bkline@rksystems.com> writes:
> On Wed, Sep 7, 2022 at 1:04 AM Gerd Möllmann <gerd.moellmann@gmail.com> wrote:
>> ... from where you built Emacs ...
>
> I didn't build emacs myself, I installed it with "brew install --cask
> --no-quarantine emacs." I did try gdb, but gdb didn't recognize emacs
> as an executable. I tried following your instructions using lldb, and
> I was actually able to set the breakpoint (so enough usable symbols
> were present for the debugger to find the address for the breakpoint),
> but "run" failed ("Not allowed to attach to process").
What does "DevToolsSecurity -status" say? If it doesn't say "enabled",
maybe "sudo DevToolsSecurity -enable" helps. (You can see what it does
with "man ...".
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-07 12:28 ` Gerd Möllmann
@ 2022-09-07 12:47 ` Bob Kline
2022-09-07 12:56 ` Gerd Möllmann
2022-09-07 13:03 ` Robert Pluim
0 siblings, 2 replies; 46+ messages in thread
From: Bob Kline @ 2022-09-07 12:47 UTC (permalink / raw)
To: Gerd Möllmann; +Cc: Po Lu, 57563
On Wed, Sep 7, 2022 at 8:28 AM Gerd Möllmann <gerd.moellmann@gmail.com> wrote:
> ...
> What does "DevToolsSecurity -status" say? If it doesn't say "enabled",
> maybe "sudo DevToolsSecurity -enable" helps. ...
It was disabled, and I was able to enable it, but the "run" command
failed with the same error message. That error message goes on to say
"Look in the console messages (Console.app), near the debugserver
entries, when the attach failed. The subsystem that denied the attach
permission will likely have logged an informative message about why it
was denied." However, I can find no "debugserver" entries in any of
the console logs, or any entries which seem even remotely related.
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-07 12:47 ` Bob Kline
@ 2022-09-07 12:56 ` Gerd Möllmann
2022-09-07 12:59 ` Bob Kline
2022-09-07 13:03 ` Robert Pluim
1 sibling, 1 reply; 46+ messages in thread
From: Gerd Möllmann @ 2022-09-07 12:56 UTC (permalink / raw)
To: Bob Kline; +Cc: Po Lu, 57563
Bob Kline <bkline@rksystems.com> writes:
> On Wed, Sep 7, 2022 at 8:28 AM Gerd Möllmann <gerd.moellmann@gmail.com> wrote:
>> ...
>> What does "DevToolsSecurity -status" say? If it doesn't say "enabled",
>> maybe "sudo DevToolsSecurity -enable" helps. ...
>
> It was disabled, and I was able to enable it, but the "run" command
> failed with the same error message. That error message goes on to say
> "Look in the console messages (Console.app), near the debugserver
> entries, when the attach failed. The subsystem that denied the attach
> permission will likely have logged an informative message about why it
> was denied." However, I can find no "debugserver" entries in any of
> the console logs, or any entries which seem even remotely related.
Hm, guessing...
Could you please see if your USER is in the _developers group?
groups | grep _developer
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-07 12:47 ` Bob Kline
2022-09-07 12:56 ` Gerd Möllmann
@ 2022-09-07 13:03 ` Robert Pluim
2022-09-07 13:10 ` Bob Kline
1 sibling, 1 reply; 46+ messages in thread
From: Robert Pluim @ 2022-09-07 13:03 UTC (permalink / raw)
To: Bob Kline; +Cc: Gerd Möllmann, Po Lu, 57563
>>>>> On Wed, 7 Sep 2022 08:47:36 -0400, Bob Kline <bkline@rksystems.com> said:
Bob> On Wed, Sep 7, 2022 at 8:28 AM Gerd Möllmann <gerd.moellmann@gmail.com> wrote:
>> ...
>> What does "DevToolsSecurity -status" say? If it doesn't say "enabled",
>> maybe "sudo DevToolsSecurity -enable" helps. ...
Bob> It was disabled, and I was able to enable it, but the "run" command
Bob> failed with the same error message. That error message goes on to say
Bob> "Look in the console messages (Console.app), near the debugserver
Bob> entries, when the attach failed. The subsystem that denied the attach
Bob> permission will likely have logged an informative message about why it
Bob> was denied." However, I can find no "debugserver" entries in any of
Bob> the console logs, or any entries which seem even remotely related.
DevToolsSecurity -enable turns off the password prompting for accounts
which are allowed to run devtools. You still need to match the
configured policy, which is normally being a member of the _developer
or admin groups. You can check which it is by doing
DevToolsSecurity -status -verbose
Robert
--
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-07 13:03 ` Robert Pluim
@ 2022-09-07 13:10 ` Bob Kline
2022-09-07 13:19 ` Robert Pluim
0 siblings, 1 reply; 46+ messages in thread
From: Bob Kline @ 2022-09-07 13:10 UTC (permalink / raw)
To: Robert Pluim; +Cc: Gerd Möllmann, Po Lu, 57563
On Wed, Sep 7, 2022 at 9:03 AM Robert Pluim <rpluim@gmail.com> wrote:
> ... You still need to match the
> configured policy, which is normally being a member of the _developer
> or admin groups.
I'm in both groups.
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-07 13:10 ` Bob Kline
@ 2022-09-07 13:19 ` Robert Pluim
2022-09-07 13:22 ` Bob Kline
2022-09-07 13:41 ` Gerd Möllmann
0 siblings, 2 replies; 46+ messages in thread
From: Robert Pluim @ 2022-09-07 13:19 UTC (permalink / raw)
To: Bob Kline; +Cc: Gerd Möllmann, Po Lu, 57563
>>>>> On Wed, 7 Sep 2022 09:10:59 -0400, Bob Kline <bkline@rksystems.com> said:
Bob> On Wed, Sep 7, 2022 at 9:03 AM Robert Pluim <rpluim@gmail.com> wrote:
>> ... You still need to match the
>> configured policy, which is normally being a member of the _developer
>> or admin groups.
Bob> I'm in both groups.
And that matches what 'DevToolsSecurity -status -verbose' says? If so,
Iʼm out of ideas.
Robert
--
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-07 13:19 ` Robert Pluim
@ 2022-09-07 13:22 ` Bob Kline
2022-09-07 13:45 ` Gerd Möllmann
2022-09-07 13:47 ` Gerd Möllmann
2022-09-07 13:41 ` Gerd Möllmann
1 sibling, 2 replies; 46+ messages in thread
From: Bob Kline @ 2022-09-07 13:22 UTC (permalink / raw)
To: Robert Pluim; +Cc: Gerd Möllmann, Po Lu, 57563
On Wed, Sep 7, 2022 at 9:19 AM Robert Pluim <rpluim@gmail.com> wrote:
> ...
> And that matches what 'DevToolsSecurity -status -verbose' says?
Here's the rule:
"rule" : { "is-admin", "is-developer", "authenticate-developer" }
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-07 13:22 ` Bob Kline
@ 2022-09-07 13:45 ` Gerd Möllmann
2022-09-07 13:47 ` Gerd Möllmann
1 sibling, 0 replies; 46+ messages in thread
From: Gerd Möllmann @ 2022-09-07 13:45 UTC (permalink / raw)
To: Bob Kline; +Cc: Po Lu, Robert Pluim, 57563
Bob Kline <bkline@rksystems.com> writes:
> On Wed, Sep 7, 2022 at 9:19 AM Robert Pluim <rpluim@gmail.com> wrote:
>> ...
>> And that matches what 'DevToolsSecurity -status -verbose' says?
>
> Here's the rule:
> "rule" : { "is-admin", "is-developer", "authenticate-developer" }
That's what I see, too.
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-07 13:22 ` Bob Kline
2022-09-07 13:45 ` Gerd Möllmann
@ 2022-09-07 13:47 ` Gerd Möllmann
1 sibling, 0 replies; 46+ messages in thread
From: Gerd Möllmann @ 2022-09-07 13:47 UTC (permalink / raw)
To: Bob Kline; +Cc: Po Lu, Robert Pluim, 57563
Bob Kline <bkline@rksystems.com> writes:
> On Wed, Sep 7, 2022 at 9:19 AM Robert Pluim <rpluim@gmail.com> wrote:
>> ...
>> And that matches what 'DevToolsSecurity -status -verbose' says?
>
> Here's the rule:
> "rule" : { "is-admin", "is-developer", "authenticate-developer" }
Speaking of entitlements: Here's something I found on the Web.
https://gist.github.com/talaviram/1f21e141a137744c89e81b58f73e23c3
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-07 13:19 ` Robert Pluim
2022-09-07 13:22 ` Bob Kline
@ 2022-09-07 13:41 ` Gerd Möllmann
2022-09-07 13:48 ` Bob Kline
1 sibling, 1 reply; 46+ messages in thread
From: Gerd Möllmann @ 2022-09-07 13:41 UTC (permalink / raw)
To: Robert Pluim; +Cc: Po Lu, 57563, Bob Kline
Robert Pluim <rpluim@gmail.com> writes:
>>>>>> On Wed, 7 Sep 2022 09:10:59 -0400, Bob Kline <bkline@rksystems.com> said:
>
> Bob> On Wed, Sep 7, 2022 at 9:03 AM Robert Pluim <rpluim@gmail.com> wrote:
> >> ... You still need to match the
> >> configured policy, which is normally being a member of the _developer
> >> or admin groups.
>
> Bob> I'm in both groups.
>
> And that matches what 'DevToolsSecurity -status -verbose' says? If so,
> Iʼm out of ideas.
Hm, yeah.
It could be a missing get-task-allow entitlement for the Homebrew Emacs
executable, in which case debugserver (part of LLDB) cannot attach to
the Emacs process. I've heard something like that in different contexts
from other developes, but I don't know how they fixed it.
Any change you can build Emacs yourself, Bob?
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-07 13:41 ` Gerd Möllmann
@ 2022-09-07 13:48 ` Bob Kline
2022-09-07 13:58 ` Gerd Möllmann
0 siblings, 1 reply; 46+ messages in thread
From: Bob Kline @ 2022-09-07 13:48 UTC (permalink / raw)
To: Gerd Möllmann; +Cc: Po Lu, Robert Pluim, 57563
On Wed, Sep 7, 2022 at 9:41 AM Gerd Möllmann <gerd.moellmann@gmail.com> wrote:
> ...
> Any change you can build Emacs yourself, Bob?
I'll give it a shot. I've built my own emacs on Linux, but it's been
more than a quarter century since I've done any serious development
for Mac software. Might take a day or two (assuming I succeed).
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-07 13:48 ` Bob Kline
@ 2022-09-07 13:58 ` Gerd Möllmann
2022-09-07 14:18 ` Bob Kline
2022-09-07 18:01 ` Bob Kline
0 siblings, 2 replies; 46+ messages in thread
From: Gerd Möllmann @ 2022-09-07 13:58 UTC (permalink / raw)
To: Bob Kline; +Cc: Po Lu, Robert Pluim, 57563
On 22-09-07 15:48 , Bob Kline wrote:
> On Wed, Sep 7, 2022 at 9:41 AM Gerd Möllmann <gerd.moellmann@gmail.com> wrote:
>> ...
>> Any change you can build Emacs yourself, Bob?
>
> I'll give it a shot. I've built my own emacs on Linux, but it's been
> more than a quarter century since I've done any serious development
> for Mac software. Might take a day or two (assuming I succeed).
This worked for me a while ago (shell scripts and so on, using Homebrew):
https://github.com/jimeh/build-emacs-for-macos
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-07 13:58 ` Gerd Möllmann
@ 2022-09-07 14:18 ` Bob Kline
2022-09-07 18:01 ` Bob Kline
1 sibling, 0 replies; 46+ messages in thread
From: Bob Kline @ 2022-09-07 14:18 UTC (permalink / raw)
To: Gerd Möllmann; +Cc: Po Lu, Robert Pluim, 57563
On Wed, Sep 7, 2022 at 9:58 AM Gerd Möllmann <gerd.moellmann@gmail.com> wrote:
> ...
> This worked for me a while ago (shell scripts and so on, using Homebrew):
>
> https://github.com/jimeh/build-emacs-for-macos
Awesome, thanks!
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-07 13:58 ` Gerd Möllmann
2022-09-07 14:18 ` Bob Kline
@ 2022-09-07 18:01 ` Bob Kline
2022-09-08 5:02 ` Gerd Möllmann
1 sibling, 1 reply; 46+ messages in thread
From: Bob Kline @ 2022-09-07 18:01 UTC (permalink / raw)
To: Gerd Möllmann; +Cc: Po Lu, Robert Pluim, 57563
On Wed, Sep 7, 2022 at 9:58 AM Gerd Möllmann <gerd.moellmann@gmail.com> wrote:
>
> On 22-09-07 15:48 , Bob Kline wrote:
> > On Wed, Sep 7, 2022 at 9:41 AM Gerd Möllmann <gerd.moellmann@gmail.com> wrote:
> >> ...
> >> Any change you can build Emacs yourself, Bob?
> >
> > I'll give it a shot. I've built my own emacs on Linux, but it's been
> > more than a quarter century since I've done any serious development
> > for Mac software. Might take a day or two (assuming I succeed).
>
> This worked for me a while ago (shell scripts and so on, using Homebrew):
>
> https://github.com/jimeh/build-emacs-for-macos
I was able to build emacs using that tool. It does not exhibit the
unwanted behavior, which is both fortunate (I have an emacs without
the bug) and unfortunate (we didn't get the information we hoped would
help track down and eliminate the bug). The tool built version
29.0.50, so I suppose it's possible that the bug was in the emacs
code, not in Apple's software, and it got fixed. Or the bug was in
Apple's code, and the emacs developers came up (either intentionally
or inadvertently) with a workaround. But I'm wandering into territory
prohibited by the bug-reporting instructions (speculating about the
cause of a bug), so I'll stop. 😎
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-07 18:01 ` Bob Kline
@ 2022-09-08 5:02 ` Gerd Möllmann
2022-09-08 8:25 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 1 reply; 46+ messages in thread
From: Gerd Möllmann @ 2022-09-08 5:02 UTC (permalink / raw)
To: Bob Kline; +Cc: Po Lu, Robert Pluim, 57563
Bob Kline <bkline@rksystems.com> writes:
> I was able to build emacs using that tool. It does not exhibit the
> unwanted behavior, which is both fortunate (I have an emacs without
> the bug) and unfortunate (we didn't get the information we hoped would
> help track down and eliminate the bug). The tool built version
> 29.0.50, so I suppose it's possible that the bug was in the emacs
> code, not in Apple's software, and it got fixed. Or the bug was in
> Apple's code, and the emacs developers came up (either intentionally
> or inadvertently) with a workaround. But I'm wandering into territory
> prohibited by the bug-reporting instructions (speculating about the
> cause of a bug), so I'll stop. 😎
Hehe.
I think Po Lu will take over from here.
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-08 5:02 ` Gerd Möllmann
@ 2022-09-08 8:25 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-08 13:04 ` Bob Kline
0 siblings, 1 reply; 46+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-09-08 8:25 UTC (permalink / raw)
To: Gerd Möllmann; +Cc: Robert Pluim, 57563, Bob Kline
Gerd Möllmann <gerd.moellmann@gmail.com> writes:
>> I was able to build emacs using that tool. It does not exhibit the
>> unwanted behavior, which is both fortunate (I have an emacs without
>> the bug) and unfortunate (we didn't get the information we hoped would
>> help track down and eliminate the bug). The tool built version
>> 29.0.50, so I suppose it's possible that the bug was in the emacs
>> code, not in Apple's software, and it got fixed. Or the bug was in
>> Apple's code, and the emacs developers came up (either intentionally
>> or inadvertently) with a workaround. But I'm wandering into territory
>> prohibited by the bug-reporting instructions (speculating about the
>> cause of a bug), so I'll stop. 😎
Bob, could you please try using "git bisect" to determine which change
eliminated the unwanted warning?
Basically, we know that master is good, but emacs-28 exhibits the bug.
So you have to run the following commands in the Emacs repository, with
git installed:
$ git bisect start
$ git bisect bad emacs-28
$ git bisect good master
Every time it asks you to try a different revision, run:
$ make extraclean
$ <however the tool builds emacs>
and then, after you test the resulting Emacs binary:
$ git bisect bad
if the build does not exhibit the bug, or:
$ git bisect good
if it does.
Hopefully, after repeating that procedure several times, the VCS will
tell you exactly which commit fixed the bug.
Thanks.
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-08 8:25 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-09-08 13:04 ` Bob Kline
2022-09-08 13:19 ` Gerd Möllmann
2022-09-08 13:35 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 2 replies; 46+ messages in thread
From: Bob Kline @ 2022-09-08 13:04 UTC (permalink / raw)
To: Po Lu; +Cc: Gerd Möllmann, Robert Pluim, 57563
On Thu, Sep 8, 2022 at 4:25 AM Po Lu <luangruo@yahoo.com> wrote:
> ...
> Bob, could you please try using "git bisect" to determine which change
> eliminated the unwanted warning?
> ...
No version built with the tool we've been using displays the unwanted
warning (including emacs 28). On the other hand, "brew install
homebrew/cask-versions/emacs-nightly" gives me emacs-29.0.50 WITH the
warning. I did a little digging to try and find out which options were
used for building emacs, but didn't have any luck. I suppose I could
file a bug with the Homebrew folks. Anyone have any experience with
that? Is the Homebrew team as responsive as this one? 😉
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-08 13:04 ` Bob Kline
@ 2022-09-08 13:19 ` Gerd Möllmann
2022-09-08 13:35 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
1 sibling, 0 replies; 46+ messages in thread
From: Gerd Möllmann @ 2022-09-08 13:19 UTC (permalink / raw)
To: Bob Kline; +Cc: Po Lu, Robert Pluim, 57563
Bob Kline <bkline@rksystems.com> writes:
> On Thu, Sep 8, 2022 at 4:25 AM Po Lu <luangruo@yahoo.com> wrote:
>> ...
>> Bob, could you please try using "git bisect" to determine which change
>> eliminated the unwanted warning?
>> ...
>
> No version built with the tool we've been using displays the unwanted
> warning (including emacs 28). On the other hand, "brew install
> homebrew/cask-versions/emacs-nightly" gives me emacs-29.0.50 WITH the
> warning. I did a little digging to try and find out which options were
> used for building emacs, but didn't have any luck. I suppose I could
> file a bug with the Homebrew folks. Anyone have any experience with
> that?
I don't.
The cask seems to come from emacsformacosx.com. Don't know what that
is. Maybe you could find something there?
> Is the Homebrew team as responsive as this one? 😉
Never ;-)
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-08 13:04 ` Bob Kline
2022-09-08 13:19 ` Gerd Möllmann
@ 2022-09-08 13:35 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-08 13:55 ` Robert Pluim
2022-09-08 14:02 ` Bob Kline
1 sibling, 2 replies; 46+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-09-08 13:35 UTC (permalink / raw)
To: Bob Kline; +Cc: Gerd Möllmann, Robert Pluim, 57563
Bob Kline <bkline@rksystems.com> writes:
> No version built with the tool we've been using displays the unwanted
> warning (including emacs 28). On the other hand, "brew install
> homebrew/cask-versions/emacs-nightly" gives me emacs-29.0.50 WITH the
> warning. I did a little digging to try and find out which options were
> used for building emacs, but didn't have any luck. I suppose I could
> file a bug with the Homebrew folks. Anyone have any experience with
> that? Is the Homebrew team as responsive as this one? 😉
Maybe it could be related to the version of Mac OS that the Emacs binary
was built on?
There are two knobs, MAC_OS_X_VERSION_MAX_ALLOWED and
MAC_OS_X_VERSION_MIN_REQUIRED, that change Emacs and operating system
behavior. But I can never remember what they mean. What if you build
Emacs with them defined to the same values that the Homebrew package was
built with?
I don't think you can obtain their values from binaries, so you will
probably have to ask the person who built the Homebrew package.
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-08 13:35 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-09-08 13:55 ` Robert Pluim
2022-09-08 14:02 ` Bob Kline
1 sibling, 0 replies; 46+ messages in thread
From: Robert Pluim @ 2022-09-08 13:55 UTC (permalink / raw)
To: Po Lu; +Cc: Gerd Möllmann, 57563, Bob Kline
>>>>> On Thu, 08 Sep 2022 21:35:11 +0800, Po Lu <luangruo@yahoo.com> said:
Po Lu> Bob Kline <bkline@rksystems.com> writes:
>> No version built with the tool we've been using displays the unwanted
>> warning (including emacs 28). On the other hand, "brew install
>> homebrew/cask-versions/emacs-nightly" gives me emacs-29.0.50 WITH the
>> warning. I did a little digging to try and find out which options were
>> used for building emacs, but didn't have any luck. I suppose I could
>> file a bug with the Homebrew folks. Anyone have any experience with
>> that? Is the Homebrew team as responsive as this one? 😉
Po Lu> Maybe it could be related to the version of Mac OS that the Emacs binary
Po Lu> was built on?
Po Lu> There are two knobs, MAC_OS_X_VERSION_MAX_ALLOWED and
Po Lu> MAC_OS_X_VERSION_MIN_REQUIRED, that change Emacs and operating system
Po Lu> behavior. But I can never remember what they mean. What if you build
Po Lu> Emacs with them defined to the same values that the Homebrew package was
Po Lu> built with?
emacssformacosx.com says they build on both macOS 10.10 and 10.14 and
then bundle those two version together. I canʼt find the actual
scripts used to produce the builds.
Po Lu> I don't think you can obtain their values from binaries, so you will
Po Lu> probably have to ask the person who built the Homebrew package.
Yes
Robert
--
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-08 13:35 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-08 13:55 ` Robert Pluim
@ 2022-09-08 14:02 ` Bob Kline
2022-09-08 16:12 ` Bob Kline
1 sibling, 1 reply; 46+ messages in thread
From: Bob Kline @ 2022-09-08 14:02 UTC (permalink / raw)
To: Po Lu; +Cc: Gerd Möllmann, Robert Pluim, 57563
On Thu, Sep 8, 2022 at 9:35 AM Po Lu <luangruo@yahoo.com> wrote:
> ...
> I don't think you can obtain their values from binaries, so you will
> probably have to ask the person who built the Homebrew package.
I'm digging into https://github.com/caldwell/build-emacs (which has
the scripts used by https://emacsformacosx.com/ for building emacs).
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-08 14:02 ` Bob Kline
@ 2022-09-08 16:12 ` Bob Kline
2022-09-08 20:00 ` Bob Kline
0 siblings, 1 reply; 46+ messages in thread
From: Bob Kline @ 2022-09-08 16:12 UTC (permalink / raw)
To: Po Lu; +Cc: Gerd Möllmann, Robert Pluim, 57563
On Thu, Sep 8, 2022 at 10:02 AM Bob Kline <bkline@rksystems.com> wrote:
> ...
> I'm digging into https://github.com/caldwell/build-emacs (which has
> the scripts used by https://emacsformacosx.com/ for building emacs).
Finally got emacs 28.1 built with that script. No spurious warning
displayed. I'm baffled, as I thought that this script was producing
the artifact which gets installed by "brew install --cask emacs." I
see no evidence that either of the MAC_OS_X_VERSION_... macros are
used by the build.
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-08 16:12 ` Bob Kline
@ 2022-09-08 20:00 ` Bob Kline
2022-09-09 5:02 ` Gerd Möllmann
0 siblings, 1 reply; 46+ messages in thread
From: Bob Kline @ 2022-09-08 20:00 UTC (permalink / raw)
To: Po Lu; +Cc: Gerd Möllmann, Robert Pluim, 57563
On Thu, Sep 8, 2022 at 12:12 PM Bob Kline <bkline@rksystems.com> wrote:
> ... I'm baffled ...
I filed a ticket asking for the options used to build the artifacts
installed by homebrew.
https://github.com/caldwell/build-emacs/issues/123
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-08 20:00 ` Bob Kline
@ 2022-09-09 5:02 ` Gerd Möllmann
2022-09-09 8:55 ` Robert Pluim
2022-09-11 11:13 ` Bob Kline
0 siblings, 2 replies; 46+ messages in thread
From: Gerd Möllmann @ 2022-09-09 5:02 UTC (permalink / raw)
To: Bob Kline; +Cc: Po Lu, Robert Pluim, 57563
Bob Kline <bkline@rksystems.com> writes:
> On Thu, Sep 8, 2022 at 12:12 PM Bob Kline <bkline@rksystems.com> wrote:
>> ... I'm baffled ...
>
> I filed a ticket asking for the options used to build the artifacts
> installed by homebrew.
>
> https://github.com/caldwell/build-emacs/issues/123
Thanks.
I hope they'll tell how they codesign'ed their executable, and how to
change it to let a debugger attach.
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-09 5:02 ` Gerd Möllmann
@ 2022-09-09 8:55 ` Robert Pluim
2022-09-11 11:13 ` Bob Kline
1 sibling, 0 replies; 46+ messages in thread
From: Robert Pluim @ 2022-09-09 8:55 UTC (permalink / raw)
To: Gerd Möllmann; +Cc: Po Lu, 57563, Bob Kline
>>>>> On Fri, 09 Sep 2022 07:02:27 +0200, Gerd Möllmann <gerd.moellmann@gmail.com> said:
Gerd> Bob Kline <bkline@rksystems.com> writes:
>> On Thu, Sep 8, 2022 at 12:12 PM Bob Kline <bkline@rksystems.com> wrote:
>>> ... I'm baffled ...
>>
>> I filed a ticket asking for the options used to build the artifacts
>> installed by homebrew.
>>
>> https://github.com/caldwell/build-emacs/issues/123
Gerd> Thanks.
Gerd> I hope they'll tell how they codesign'ed their executable, and how to
Gerd> change it to let a debugger attach.
I couldnʼt find MAC_OS_X_VERSION_MIN_REQUIRED or
MAC_OS_X_VERSION_MAX_ALLOWED in the homebrew building scripts, which
means theyʼre derived from
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityMacros.h,
which means they depends on what version of macOS they use to build.
Robert
--
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-09 5:02 ` Gerd Möllmann
2022-09-09 8:55 ` Robert Pluim
@ 2022-09-11 11:13 ` Bob Kline
2022-09-12 5:58 ` Gerd Möllmann
1 sibling, 1 reply; 46+ messages in thread
From: Bob Kline @ 2022-09-11 11:13 UTC (permalink / raw)
To: Gerd Möllmann; +Cc: Po Lu, Robert Pluim, 57563
On Fri, Sep 9, 2022 at 1:02 AM Gerd Möllmann <gerd.moellmann@gmail.com> wrote:
> ...
> I hope they'll tell how they codesign'ed their executable, and how to
> change it to let a debugger attach.
He didn't really know how to modify the program so that the debugger
could attach to it. He wrote
> It's possible that bypassing Gatekeeper (requires a reboot) might let it work.
But I tried that, without any success.
Oh, well. At least I know how to create an executable that behaves correctly.
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-11 11:13 ` Bob Kline
@ 2022-09-12 5:58 ` Gerd Möllmann
2022-09-12 11:11 ` Bob Kline
0 siblings, 1 reply; 46+ messages in thread
From: Gerd Möllmann @ 2022-09-12 5:58 UTC (permalink / raw)
To: Bob Kline; +Cc: Po Lu, Robert Pluim, 57563
Bob Kline <bkline@rksystems.com> writes:
> On Fri, Sep 9, 2022 at 1:02 AM Gerd Möllmann <gerd.moellmann@gmail.com> wrote:
>> ...
>> I hope they'll tell how they codesign'ed their executable, and how to
>> change it to let a debugger attach.
>
> He didn't really know how to modify the program so that the debugger
> could attach to it. He wrote
>
>> It's possible that bypassing Gatekeeper (requires a reboot) might let it work.
>
> But I tried that, without any success.
>
> Oh, well. At least I know how to create an executable that behaves correctly.
Meanwhile, I also tried with codesign --remove-signature and with adding
entitlements with add_debug_entitlement.sh, which can be found on
github, and both of these "worked" but had no positive effect. The
first one macOS doesn't like at all, the application cannot be started
anymore. And the second one worked in the sense that the entitlements
were added, which can be seen with codesign -vdd --entitlements, but I
still couldn't debug Emacs. I get to main, but then the application
mysteriously exits without me being able to see why.
So, as far as I'm concerned, I'm giving up.
Would it be okay with you when we declare this a problem of
other people, that is emacsformacosx.com, and close this bug?
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-12 5:58 ` Gerd Möllmann
@ 2022-09-12 11:11 ` Bob Kline
2022-09-12 11:35 ` Gerd Möllmann
0 siblings, 1 reply; 46+ messages in thread
From: Bob Kline @ 2022-09-12 11:11 UTC (permalink / raw)
To: Gerd Möllmann; +Cc: Po Lu, Robert Pluim, 57563
On Mon, Sep 12, 2022 at 1:58 AM Gerd Möllmann <gerd.moellmann@gmail.com> wrote:
> ...
> So, as far as I'm concerned, I'm giving up.
>
> Would it be okay with you when we declare this a problem of
> other people, that is emacsformacosx.com, and close this bug?
Sure. Not a wasted effort, as we've captured a workaround. Thanks for
giving it a try.
Cheers,
Bob
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-12 11:11 ` Bob Kline
@ 2022-09-12 11:35 ` Gerd Möllmann
2022-09-15 13:33 ` Bob Kline
0 siblings, 1 reply; 46+ messages in thread
From: Gerd Möllmann @ 2022-09-12 11:35 UTC (permalink / raw)
To: Bob Kline; +Cc: Po Lu, Robert Pluim, 57563
Bob Kline <bkline@rksystems.com> writes:
> On Mon, Sep 12, 2022 at 1:58 AM Gerd Möllmann <gerd.moellmann@gmail.com> wrote:
>> ...
>> So, as far as I'm concerned, I'm giving up.
>>
>> Would it be okay with you when we declare this a problem of
>> other people, that is emacsformacosx.com, and close this bug?
>
> Sure. Not a wasted effort, as we've captured a workaround. Thanks for
> giving it a try.
Thanks. I'll close this bug, then.
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-12 11:35 ` Gerd Möllmann
@ 2022-09-15 13:33 ` Bob Kline
2022-09-16 5:56 ` Gerd Möllmann
0 siblings, 1 reply; 46+ messages in thread
From: Bob Kline @ 2022-09-15 13:33 UTC (permalink / raw)
To: Gerd Möllmann; +Cc: Po Lu, Robert Pluim, 57563
On Mon, Sep 12, 2022 at 7:35 AM Gerd Möllmann <gerd.moellmann@gmail.com> wrote:
> ...
> Thanks. I'll close this bug, then.
Sounds good. One final note: I'm a bit embarrassed that I hadn't
noticed that the original bug report, which I linked at the top of
this one, included the stack trace that was requested in this ticket.
I still think closing this ticket is the right thing to do. I
reproduced the bug on a different Intel MacBook, which I had scrubbed
and on which the only third-party software I installed was Emacs from
https://emacsformacosx.com/.
That distribution of Emacs is built using three scripts:
* one to retrieve the source tar
* one to build the Emacs executables
* one to roll the executables into a single launcher
So what we know includes:
* the bug has only been reported for Intel-based Macs
* it can be reproduced on a pristine installation of Mac OS
* the launcher built with the third script decides which platform
version to launch
* the bug always happens on Intel using that Rust launcher
* it never happens running Emacs directly from the results of the second script
I'm going to guess (oops, here I am again disregarding the bug-filing
instructions) that the launcher is at least partially responsible for
the unwanted behavior. I'm not saying there can't be some subtle flaw
in the Emacs code on which the launcher has tripped, but it seems that
for now at least, the ball's in someone else's court.
https://github.com/caldwell/build-emacs/issues/123
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-15 13:33 ` Bob Kline
@ 2022-09-16 5:56 ` Gerd Möllmann
2022-09-16 13:16 ` Bob Kline
0 siblings, 1 reply; 46+ messages in thread
From: Gerd Möllmann @ 2022-09-16 5:56 UTC (permalink / raw)
To: Bob Kline; +Cc: Po Lu, Robert Pluim, 57563
Bob Kline <bkline@rksystems.com> writes:
> I'm going to guess (oops, here I am again disregarding the bug-filing
> instructions) that the launcher is at least partially responsible for
> the unwanted behavior. I'm not saying there can't be some subtle flaw
> in the Emacs code on which the launcher has tripped, but it seems that
> for now at least, the ball's in someone else's court.
>
> https://github.com/caldwell/build-emacs/issues/123
Thanks for the info, Bob.
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-16 5:56 ` Gerd Möllmann
@ 2022-09-16 13:16 ` Bob Kline
2022-09-16 13:26 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 1 reply; 46+ messages in thread
From: Bob Kline @ 2022-09-16 13:16 UTC (permalink / raw)
To: Gerd Möllmann; +Cc: Po Lu, Robert Pluim, 57563
On Fri, Sep 16, 2022 at 1:56 AM Gerd Möllmann <gerd.moellmann@gmail.com> wrote:
>
> Bob Kline <bkline@rksystems.com> writes:
> ...
> > https://github.com/caldwell/build-emacs/issues/123
>
> Thanks for the info, Bob.
I got a quick response from the maintainer of the build scripts which
feed into emacsformacosx.com (which is where homebrew gets its
pre-built packages). He showed me how to figure out which Emacs
executable the launcher will choose and how to run that executable
directly, bypassing the launcher. I did so, and the bug still kicked
in. So as my mental picture of what's going on slowly comes into
better focus, what I think I'm seeing now is:
* the build script creates three binaries:
- one for arm64 macOS 11
- one for x86_64 macOS 10.11
- one for x86_64 macOS 10.14
* the launcher narrows the candidates to those matching the computer's
architecture
* the launcher eliminates candidates built for a newer OS version than
the computer's
* the launcher chooses and runs the candidate built for the most
recent OS version
* when I run that Emacs (x86_64 macOS 10.14) on my x86_64 macOS 12 I see the bug
* when I run the build script on this machine I get Emacs built for
x86_64 macOS 12
* when I execute that Emacs on this machine I don't see the bug
So the launcher does not appear to be involved with the bug after all.
MacOS 12 appears to be happy running an Emacs (any version) built on
macOS 12, but unhappy running Emacs built on macOS 10.14. It seems
plausible that the reason the bug doesn't surface on arm64 is that
macOS 12 has no problems with an Emacs built on macOS 11, and the
launcher can find a macOS 11 Emacs for arm64 but not for x86_64. I
tried to set up a machine with macOS 10.14 or macOS 11 to see if the
bug showed up there, but it seems that Apple doesn't want users
installing older versions of macOS on their computers (Apple has
instructions [1] for downloading installers for those versions, but
when you follow the links you are taken to the Apple store where you
can click "Get" and watch the download progress to the end followed by
an error message saying that the installer was launched and failed,
and instead of dropping the launcher into the file system so you can
put it on some removable media the download is nowhere to be found, as
far as I could see).
I'll leave it up to you whether or not the bug should be reopened. As
noted in an earlier comment, we do have the requested stack trace [2].
I'm perfectly willing to supply any other information I can provide,
or attempt any further experiments, but I do have an Emacs without the
bug, so I'm happy (or as happy as I'll be with an unsolved mystery).
😂
[1] https://support.apple.com/en-gb/HT211683
[2] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=53481#5
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-16 13:16 ` Bob Kline
@ 2022-09-16 13:26 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-16 13:41 ` Bob Kline
0 siblings, 1 reply; 46+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-09-16 13:26 UTC (permalink / raw)
To: Bob Kline; +Cc: Gerd Möllmann, Robert Pluim, 57563
Bob Kline <bkline@rksystems.com> writes:
> So the launcher does not appear to be involved with the bug after all.
> MacOS 12 appears to be happy running an Emacs (any version) built on
> macOS 12, but unhappy running Emacs built on macOS 10.14. It seems
> plausible that the reason the bug doesn't surface on arm64 is that
> macOS 12 has no problems with an Emacs built on macOS 11, and the
> launcher can find a macOS 11 Emacs for arm64 but not for x86_64. I
> tried to set up a machine with macOS 10.14 or macOS 11 to see if the
> bug showed up there, but it seems that Apple doesn't want users
> installing older versions of macOS on their computers (Apple has
> instructions [1] for downloading installers for those versions, but
> when you follow the links you are taken to the Apple store where you
> can click "Get" and watch the download progress to the end followed by
> an error message saying that the installer was launched and failed,
> and instead of dropping the launcher into the file system so you can
> put it on some removable media the download is nowhere to be found, as
> far as I could see).
I guess that means we do something different when the min version macro
is set to 10.14 or earlier. Or maybe if the max version macro is set to
10.14 or later - is Mac OS 12 newer than OS X 10.12, or are both of
these the same?
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-16 13:26 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-09-16 13:41 ` Bob Kline
2022-09-16 14:33 ` Bob Kline
0 siblings, 1 reply; 46+ messages in thread
From: Bob Kline @ 2022-09-16 13:41 UTC (permalink / raw)
To: Po Lu; +Cc: Gerd Möllmann, Robert Pluim, 57563
On Fri, Sep 16, 2022 at 9:26 AM Po Lu <luangruo@yahoo.com> wrote:
> ... is Mac OS 12 newer than OS X 10.12, or are both of
> these the same?
The current version of macOS is 12.6 (macOS Monterey), released last
Fall, whereas macOS 10.12 is macOS Sierra, released in September 2016.
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=53481#5
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-16 13:41 ` Bob Kline
@ 2022-09-16 14:33 ` Bob Kline
2022-09-17 1:57 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 1 reply; 46+ messages in thread
From: Bob Kline @ 2022-09-16 14:33 UTC (permalink / raw)
To: Po Lu; +Cc: Gerd Möllmann, Robert Pluim, 57563
On Fri, Sep 16, 2022 at 9:41 AM Bob Kline <bkline@rksystems.com> wrote:
> ...
> The current version of macOS is 12.6 (macOS Monterey), released last
> Fall, whereas macOS 10.12 is macOS Sierra, released in September 2016.
>
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=53481#5
Oops, sorry, I had the wrong URL in my clipboard and didn't notice. It
should have been:
https://support.apple.com/en-us/HT201260
Basically, "OS X" and "macOS" do not represent different version
numbering series. They're just different prefix names applied by Apple
to the one version numbering series used over the past couple of
decades or so. See the "Is there any difference between Mac OS X and
macOS?" paragraph near the top of
https://setapp.com/how-to/full-list-of-all-macos-versions.
Apologies for the confusion. (And I'm sure Apple offers the same apology.) 😉
^ permalink raw reply [flat|nested] 46+ messages in thread
* bug#57563: 28.1; macOS - layout warning at startup
2022-09-16 14:33 ` Bob Kline
@ 2022-09-17 1:57 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 0 replies; 46+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-09-17 1:57 UTC (permalink / raw)
To: Bob Kline; +Cc: Gerd Möllmann, Robert Pluim, 57563
Bob Kline <bkline@rksystems.com> writes:
> Oops, sorry, I had the wrong URL in my clipboard and didn't notice. It
> should have been:
>
> https://support.apple.com/en-us/HT201260
>
> Basically, "OS X" and "macOS" do not represent different version
> numbering series. They're just different prefix names applied by Apple
> to the one version numbering series used over the past couple of
> decades or so. See the "Is there any difference between Mac OS X and
> macOS?" paragraph near the top of
> https://setapp.com/how-to/full-list-of-all-macos-versions.
>
> Apologies for the confusion. (And I'm sure Apple offers the same apology.) 😉
Thanks.
^ permalink raw reply [flat|nested] 46+ messages in thread
end of thread, other threads:[~2022-09-17 1:57 UTC | newest]
Thread overview: 46+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-03 14:39 bug#57563: 28.1; macOS - layout warning at startup Bob Kline
2022-09-05 1:36 ` Lars Ingebrigtsen
2022-09-05 12:13 ` Bob Kline
2022-09-05 19:01 ` Lars Ingebrigtsen
2022-09-06 1:11 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-06 13:45 ` Bob Kline
2022-09-07 1:03 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-07 5:04 ` Gerd Möllmann
2022-09-07 12:17 ` Bob Kline
2022-09-07 12:28 ` Gerd Möllmann
2022-09-07 12:47 ` Bob Kline
2022-09-07 12:56 ` Gerd Möllmann
2022-09-07 12:59 ` Bob Kline
2022-09-07 13:03 ` Robert Pluim
2022-09-07 13:10 ` Bob Kline
2022-09-07 13:19 ` Robert Pluim
2022-09-07 13:22 ` Bob Kline
2022-09-07 13:45 ` Gerd Möllmann
2022-09-07 13:47 ` Gerd Möllmann
2022-09-07 13:41 ` Gerd Möllmann
2022-09-07 13:48 ` Bob Kline
2022-09-07 13:58 ` Gerd Möllmann
2022-09-07 14:18 ` Bob Kline
2022-09-07 18:01 ` Bob Kline
2022-09-08 5:02 ` Gerd Möllmann
2022-09-08 8:25 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-08 13:04 ` Bob Kline
2022-09-08 13:19 ` Gerd Möllmann
2022-09-08 13:35 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-08 13:55 ` Robert Pluim
2022-09-08 14:02 ` Bob Kline
2022-09-08 16:12 ` Bob Kline
2022-09-08 20:00 ` Bob Kline
2022-09-09 5:02 ` Gerd Möllmann
2022-09-09 8:55 ` Robert Pluim
2022-09-11 11:13 ` Bob Kline
2022-09-12 5:58 ` Gerd Möllmann
2022-09-12 11:11 ` Bob Kline
2022-09-12 11:35 ` Gerd Möllmann
2022-09-15 13:33 ` Bob Kline
2022-09-16 5:56 ` Gerd Möllmann
2022-09-16 13:16 ` Bob Kline
2022-09-16 13:26 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-16 13:41 ` Bob Kline
2022-09-16 14:33 ` Bob Kline
2022-09-17 1:57 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.