Subject: bug#54326: 29.0.50; Bug with display-buffers-alist

From: Konrad Podczeck <[email-masked]>
Date: Fri, 11 Mar 2022 02:48:17 +0100

With the proposed fix, Emacs crashes immeditetely. It cannot be started anymore. Here is the crash report:

Translated Report (Full Report Below)
-------------------------------------

Incident Identifier: 6EF1093C-823D-409D-9152-D1C768577F2D
CrashReporter Key:   0FD2B28E-5607-6DD6-91CD-E1031F621A91
Hardware Model:      iMac21,1
Process:             Emacs [64671]
Path:                /Users/USER/Documents/*/Emacs.app/Contents/MacOS/Emacs
Identifier:          org.gnu.Emacs
Version:             Version 29.0.50 (9.0)
Code Type:           ARM-64 (Native)
Role:                Default
Parent Process:      launchd [1]
Coalition:           org.gnu.Emacs [922]

Date/Time:           2022-03-11 02:46:18.0843 +0100
Launch Time:         2022-03-11 02:46:18.0694 +0100
OS Version:          macOS 12.2.1 (21D62)
Release Type:        User
Report Version:      104

Exception Type:  EXC_BAD_ACCESS (SIGKILL (Code Signature Invalid))
Exception Subtype: UNKNOWN_0x32 at 0x00000001022dc000
Exception Codes: 0x0000000000000032, 0x00000001022dc000
VM Region Info: 0x1022dc000 is in 0x1022dc000-0x102564000;  bytes after start: 0  bytes before end: 2654207
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  mapped file                 1022dc000-102564000    [ 2592K] r-x/r-x SM=COW  ...t_id=2d1f0449
      mapped file                 102564000-102570000    [   48K] rw-/rw- SM=COW  ...t_id=2d1f0449
Exception Note:  EXC_CORPSE_NOTIFY
Termination Reason: CODESIGNING 2 

Highlighted by Thread:  0

Backtrace not available

No thread state (register information) available

Binary Images:
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???

Error Formulating Crash Report:
_dyld_process_info_create failed with 6
dyld_process_snapshot_get_shared_cache failed
Failed to create CSSymbolicatorRef - corpse still valid ¯\_(ツ)_/¯

EOF

-----------
Full Report
-----------

{"app_name":"Emacs","timestamp":"2022-03-11 02:46:22.00 +0100","app_version":"Version 29.0.50","slice_uuid":"25b3c1bb-f284-3f74-9d5f-3ed9b6e0c0cc","build_version":"9.0","platform":0,"bundleID":"org.gnu.Emacs","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 12.2.1 (21D62)","incident_id":"6EF1093C-823D-409D-9152-D1C768577F2D","name":"Emacs"}
{
  "uptime" : 27000,
  "procLaunch" : "2022-03-11 02:46:18.0694 +0100",
  "procRole" : "Default",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "iMac21,1",
  "procStartAbsTime" : 657301973937,
  "coalitionID" : 922,
  "osVersion" : {
    "train" : "macOS 12.2.1",
    "build" : "21D62",
    "releaseType" : "User"
  },
  "captureTime" : "2022-03-11 02:46:18.0843 +0100",
  "incident" : "6EF1093C-823D-409D-9152-D1C768577F2D",
  "bug_type" : "309",
  "pid" : 64671,
  "procExitAbsTime" : 657302310671,
  "translated" : false,
  "cpuType" : "ARM-64",
  "procName" : "Emacs",
  "procPath" : "\/Users\/USER\/Documents\/*\/Emacs.app\/Contents\/MacOS\/Emacs",
  "bundleInfo" : {"CFBundleShortVersionString":"Version 29.0.50","CFBundleVersion":"9.0","CFBundleIdentifier":"org.gnu.Emacs"},
  "storeInfo" : {"deviceIdentifierForVendor":"286A9965-22F7-5C47-AC71-39C84E68161C","thirdParty":true},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "org.gnu.Emacs",
  "crashReporterKey" : "0FD2B28E-5607-6DD6-91CD-E1031F621A91",
  "wakeTime" : 6238,
  "sleepWakeUUID" : "7E0C212C-767D-4267-8E74-9C383D8F1776",
  "sip" : "enabled",
  "vmRegionInfo" : "0x1022dc000 is in 0x1022dc000-0x102564000;  bytes after start: 0  bytes before end: 2654207\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  mapped file                 1022dc000-102564000    [ 2592K] r-x\/r-x SM=COW  ...t_id=2d1f0449\n      mapped file                 102564000-102570000    [   48K] rw-\/rw- SM=COW  ...t_id=2d1f0449",
  "isCorpse" : 1,
  "exception" : {"codes":"0x0000000000000032, 0x00000001022dc000","rawCodes":[50,4331520000],"type":"EXC_BAD_ACCESS","signal":"SIGKILL (Code Signature Invalid)","subtype":"UNKNOWN_0x32 at 0x00000001022dc000"},
  "termination" : {"namespace":"CODESIGNING","flags":0,"code":2},
  "vmregioninfo" : "0x1022dc000 is in 0x1022dc000-0x102564000;  bytes after start: 0  bytes before end: 2654207\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  mapped file                 1022dc000-102564000    [ 2592K] r-x\/r-x SM=COW  ...t_id=2d1f0449\n      mapped file                 102564000-102570000    [   48K] rw-\/rw- SM=COW  ...t_id=2d1f0449",
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "usedImages" : [
  {
    "size" : 0,
    "source" : "A",
    "base" : 0,
    "uuid" : "00000000-0000-0000-0000-000000000000"
  }
],
  "legacyInfo" : {
  "threadHighlighted" : 0
},
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "607844aa04477260f58a8077",
      "factorPackIds" : {
        "SIRI_MORPHUN_ASSETS" : "6103050cbfe6dc472e1c982a"
      },
      "deploymentId" : 240000066
    },
    {
      "rolloutId" : "60da5e84ab0ca017dace9abf",
      "factorPackIds" : {

      },
      "deploymentId" : 240000008
    },
    {
      "rolloutId" : "602ad4dac86151000cf27e46",
      "factorPackIds" : {
        "SIRI_DICTATION_ASSETS" : "61fb0e87c773c43cde3bb80e"
      },
      "deploymentId" : 240000305
    },
    {
      "rolloutId" : "5ffde50ce2aacd000d47a95f",
      "factorPackIds" : {

      },
      "deploymentId" : 240000119
    },
    {
      "rolloutId" : "60356660bbe37970735c5624",
      "factorPackIds" : {

      },
      "deploymentId" : 240000027
    },
    {
      "rolloutId" : "601d9415f79519000ccd4b69",
      "factorPackIds" : {
        "SIRI_TEXT_TO_SPEECH" : "622657ce37186c771d5404ad"
      },
      "deploymentId" : 240000414
    },
    {
      "rolloutId" : "5fc94383418129005b4e9ae0",
      "factorPackIds" : {

      },
      "deploymentId" : 240000268
    }
  ],
  "experiments" : [

  ]
},
  "reportNotes" : [
  "_dyld_process_info_create failed with 6",
  "dyld_process_snapshot_get_shared_cache failed",
  "Failed to create CSSymbolicatorRef - corpse still valid ¯\\_(ツ)_\/¯"
]
}

Model: iMac21,1, BootROM 7429.81.3, proc 8:4:4 processors, 16 GB, SMC 
Graphics: Apple M1, Apple M1, Built-In
Display: iMac, Retina 4.5K (4480 x 2520), Main, MirrorOff, Online
Memory Module: LPDDR4
AirPort: Wi-Fi, wl0: Oct 26 2021 16:09:54 version 18.20.310.15.7.8.120 FWID 01-0ce2495e
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Wi-Fi, AirPort, en1
USB Device: USB31Bus
USB Device: USB31Bus
USB Device: USB31Bus
Thunderbolt Bus: iMac, Apple Inc.
Thunderbolt Bus: iMac, Apple Inc.

> Am 10.03.2022 um 17:49 schrieb martin rudalics <[email-masked]>:
> 
> > after the second evaluation, the first instance of the frame showing the scratch-buffer looses the toolbar-buttons.
> 
> Alan, Po Lu any ideas?  On Mac with emacs -Q evaluate
> 
> (set-frame-parameter nil 'font "SF Mono-18")
> 
> and then do C-x 5 2, M-x info and evaluate
> 
> (set-frame-parameter nil 'font "Menlo-15")
> 
> in the second frame.
> 
> Thanks, martin