Subject: Re: bug#45515: 28.0.50; [feature/native-comp] emacsGcc crash on Apple Silicon M1

From: mp <[email-masked]>
Date: Sat, 2 Jan 2021 19:56:02 +0100

On 02.01.2021 11:29, Andrea Corallo wrote:

> Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of
> text editors" <[email-masked]> writes:
>
>> mp <[email-masked]> writes:
>>
>>> Ok, so the problem persists, now it takes longer for emacs daemon to crash..
>>>
>>> Assertion failed: (mach_vm_map(mach_task_self(), &address, size, 0,
>>> VM_FLAGS_ANYWHERE | VM_MAKE_TAG(VM_MEMORY_COREGRAPHICS_BACKINGSTORES),
>>> port, 0, false, prot, prot, VM_INHERIT_SHARE) == KERN_SUCCESS),
>>> function backing_map, file
>>> /AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/SkyLight/SkyLight-569.6/SkyLight/Services/Windows/CGSBackingStore.c,
>>> line 192.
>>> Fatal error 6: Aborted
>>> [1]    6134 abort      emacs --fg-daemon
>>> emacs --fg-daemon  528.80s user 46.86s system 36% cpu 26:32.46 total
>>>
>>> -mp-
>> Hi mp,
>>
>> is this after having merged from latest master as Alan suggested?
>>
>> I suspect this might be not related to native compilation but to the NS
>> port.
>>
>> Thanks
>>
>>    Andrea
> Hi Michal,
>
> I've merged latest master into native-comp.  Do you still see this
> issue on 5db5064395?
>
>    Andrea
>
Hi Andrea,

After merging the latest master, it looks good so far. It also appears 
to be running faster, but not as fast as a regular emacs (non 
native-comp) compiled for Apple architecture. Which runs about 10x faster!

Not sure if it is possible to compile the native-comp for Apple at this 
point..?

-mp-