bug#46638: 28.0.50; Hang on macOS with nativecomp in regex-emacs
A few times now, Emacs has hung. I believe there's a correlation with
when I open magit-status, but I can't say that definitively.
Unfortunately, the hang makes it difficult to attach to Emacs to debug.
When I attached with XCode, I got nothing useful. After detaching, I
attached with lldb directly and I got this as my trace:
Also, before I attached anything, I did a process sample and got this,
which looks more useful:
2457 Thread_11734453 DispatchQueue_1: com.apple.main-thread (serial)
+ 2457 F70726f636573732d66696c65_process_file_0 (in simple-fab5b0cf-4ca11a8e.eln) + 800 [0x10b3479f0]
+ 2457 Fapply (in emacs) + 625 [0x107067751] eval.c:2636
+ 2457 Ffuncall (in emacs) + 640 [0x107067a10] eval.c:3006
+ 2457 funcall_subr (in emacs) + 181 [0x1070682e5] eval.c:0
+ 2457 Fcall_process (in emacs) + 175 [0x1070bd8ff] callproc.c:285
+ 2457 call_process (in emacs) + 2109 [0x1070be1dd] callproc.c:609
+ 2457 re_match_2_internal (in emacs) + 154 [0x1070350ea] regex-emacs.c:3964
+ 2457 _sigtramp (in libsystem_platform.dylib) + 0 [0x7fff6a7145e0]
For me, the line in regex-emacs.c is:
Unfortunately, I don't have a way to reliably reproduce this. It happens
once every couple of days.
I can say it seems to be correlated with using the nativecomp branch.
In GNU Emacs 28.0.50 (build 5, x86_64-apple-darwin19.6.0, NS appkit-1894.60 Version 10.15.7 (Build 19H512))
of 2021-02-18 built on aaron-sub.local
Repository revision: 24926a03cdaf36017df27e947abb02aa626b8a99
Repository branch: feature/native-comp
Windowing system distributor 'Apple', version 10.3.1894
System Description: Mac OS X 10.15.7
value of $LANG: en_US.UTF-8
Major mode: Fundamental
Minor modes in effect: