blueboxd / chromium-legacy

Latest Chromium (≒Chrome Canary/Stable) for Mac OS X 10.7+
BSD 3-Clause "New" or "Revised" License
302 stars 17 forks source link

[BUG] Deny mach-lookup com.apple.distrbuted_notifications@Uv3 #177

Open harryfornasier opened 1 year ago

harryfornasier commented 1 year ago

Describe the bug I've recently noticed a lot more page flickering than I usually do. Taking a look in the console shows me this repeated error.

Screen Shot 2023-09-20 at 09 48 42

To Reproduce I'm unsure how to reproduce this. It may be that this is a problem with my specific installation or i've changed a setting to cause this. It doesn't seem to always happen, it's more like I do something and then it'll continue to happen until I relaunch the browser. I'll try to figure out what i'm doing to start it so it can be reproduced.

Desktop (please complete the following information):

Logs

Chromium Helper (965) deny mach-lookup com.apple.distributed_notifications@Uv3

Process:         Chromium Helper  [965]
Path:            /Applications/Chromium.app/Contents/Frameworks/Chromium Framework.framework/Versions/117.0.5938.48.2/Helpers/Chromium Helper (GPU).app/Contents/MacOS/Chromium Helper (GPU)
Load Address:    0x104214000
Identifier:      org.chromium.Chromium.helper
Version:         5938.48 (117.0.5938.48.2)
Code Type:       x86_64 (Native)
Parent Process:  _Chromium [307]

Date/Time:       2023-09-20 09:46:31.945 +0100
OS Version:      Mac OS X 10.9.5 (13F1911)
Report Version:  8

Thread 0:
0   libsystem_kernel.dylib          0x00007fff8be78c02 __shm_open + 10
1   libsystem_c.dylib               0x00007fff91966a22 notify_register_tz + 204
2   libsystem_c.dylib               0x00007fff91966557 tzsetwall_basic + 216
3   libsystem_c.dylib               0x00007fff91966714 _st_tzset_basic + 362
4   libsystem_c.dylib               0x00007fff91967d6d localtime_r + 41
5   CoreFoundation                  0x00007fff8a057acd __postAndResetMidnight + 45
6   CoreFoundation                  0x00007fff8a057a1e ____initDayChangedNotification_block_invoke + 78
7   libdispatch.dylib               0x00007fff85a8c28d _dispatch_client_callout + 8
8   libdispatch.dylib               0x00007fff85a8c1fc dispatch_once_f + 79
9   CoreFoundation                  0x00007fff89f0f5b7 __CFNotificationCenterGetLocalCenter_block_invoke + 167
10  libdispatch.dylib               0x00007fff85a8c28d _dispatch_client_callout + 8
11  libdispatch.dylib               0x00007fff85a8c1fc dispatch_once_f + 79
12  CoreFoundation                  0x00007fff89f0f50a _CFXNotificationGetTaskCenter + 42
13  Foundation                      0x00007fff8400dc29 +[NSNotificationCenter defaultCenter] + 398
14  GameController                  0x0000000122460904 GCControllerManagerInit + 93
15  dyld                            0x00007fff62fbdc6e ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) + 268
16  dyld                            0x00007fff62fbddfa ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) + 40
17  dyld                            0x00007fff62fbaaa2 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) + 308
18  dyld                            0x00007fff62fbaa2b ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) + 189
19  dyld                            0x00007fff62fba936 ImageLoader::runInitializers(ImageLoader::LinkContext const&, ImageLoader::InitializerTimingList&) + 54
20  dyld                            0x00007fff62fb0b0e dyld::runInitializers(ImageLoader*) + 89
21  dyld                            0x00007fff62fb780f dlopen + 538
22  libdyld.dylib                   0x00007fff911fb7ee dlopen + 59
23  Chromium Helper (GPU)           0x0000000104214ed7 main + 215
24  Chromium Helper (GPU)           0x0000000104214df4 start + 52

Thread 1:
0   libsystem_kernel.dylib          0x00007fff8be79662 kevent64 + 10
1   libdispatch.dylib               0x00007fff85a8e136 _dispatch_mgr_init + 0

Thread 2:
0   libsystem_malloc.dylib          0x00007fff8bec4ed0 tiny_free_list_add_ptr + 1
1   libsystem_malloc.dylib          0x00007fff8bec83c3 szone_malloc_should_clear + 320
2   libsystem_malloc.dylib          0x00007fff8beca868 malloc_zone_malloc + 71
3   CoreFoundation                  0x00007fff89f12e81 __CFStringChangeSizeMultiple + 977
4   CoreFoundation                  0x00007fff89f1bd75 CFStringAppendCharacters + 325
5   CoreFoundation                  0x00007fff89f1b216 resolveAbsoluteURLStringBuffer + 2182
6   CoreFoundation                  0x00007fff89f1a900 resolveAbsoluteURLString + 144
7   CoreFoundation                  0x00007fff89f19f86 CFURLCopyAbsoluteURL + 358
8   CoreFoundation                  0x00007fff89f19d84 _CFBundleCopyResolvedURLForExecutableURL + 324
9   CoreFoundation                  0x00007fff89f197d7 _CFBundleCopyBundleURLForExecutableURL + 39
10  CoreFoundation                  0x00007fff89f13d95 _CFBundleGetMainBundleAlreadyLocked + 117
11  CoreFoundation                  0x00007fff89f13d0b CFBundleGetMainBundle + 27
12  CoreFoundation                  0x00007fff89f13c2f cacheBundleInfo + 15
13  CoreFoundation                  0x00007fff89f13bb6 _CFAppVersionCheckLessThan + 38
14  CoreFoundation                  0x00007fff89f13a5b __checkDelivImmed + 139
15  CoreFoundation                  0x00007fff89f12092 _CFXNotificationRegisterObserver + 450
16  CoreFoundation                  0x00007fff89f0f67f __CFNotificationCenterGetLocalCenter_block_invoke_4 + 191
17  libdispatch.dylib               0x00007fff85a8f1bb _dispatch_call_block_and_release + 12
18  libdispatch.dylib               0x00007fff85a8c28d _dispatch_client_callout + 8
19  libdispatch.dylib               0x00007fff85a94433 _dispatch_after_timer_callback + 77
20  libdispatch.dylib               0x00007fff85a8c28d _dispatch_client_callout + 8
21  libdispatch.dylib               0x00007fff85a8e885 _dispatch_source_invoke + 413
22  libdispatch.dylib               0x00007fff85a8df87 _dispatch_root_queue_drain + 75
23  libdispatch.dylib               0x00007fff85a8f177 _dispatch_worker_thread2 + 40
24  libsystem_pthread.dylib         0x00007fff8963cef8 _pthread_wqthread + 314
25  libsystem_pthread.dylib         0x00007fff8963ffb9 start_wqthread + 13

Thread 3:
0   libsystem_kernel.dylib          0x00007fff8be74a1a mach_msg_trap + 10
1   liblaunch.dylib                 0x00007fff8917985a
2   liblaunch.dylib                 0x00007fff89176edc bootstrap_look_up3 + 60
3   libxpc.dylib                    0x00007fff87f228b2 _xpc_connection_bootstrap_look_up_slow + 545
4   libxpc.dylib                    0x00007fff87f224a8 _xpc_connection_init + 744
5   libxpc.dylib                    0x00007fff87f221b2 _xpc_connection_resume_init + 14
6   libdispatch.dylib               0x00007fff85a8c28d _dispatch_client_callout + 8
7   libdispatch.dylib               0x00007fff85a8e082 _dispatch_root_queue_drain + 326
8   libdispatch.dylib               0x00007fff85a8f177 _dispatch_worker_thread2 + 40
9   libsystem_pthread.dylib         0x00007fff8963cef8 _pthread_wqthread + 314
10  libsystem_pthread.dylib         0x00007fff8963ffb9 start_wqthread + 13

Binary Images:
       0x104214000 -        0x104245fff  org.chromium.Chromium.helper (117.0.5938.48.2 - 5938.48) <de3220ac-70cc-345b-a4ea-7b9eb4f155fe> /Applications/Chromium.app/Contents/Frameworks/Chromium Framework.framework/Versions/117.0.5938.48.2/Helpers/Chromium Helper (GPU).app/Contents/MacOS/Chromium Helper (GPU)
       0x12245e000 -        0x12246cfff  com.apple.GameController (1.0 - 1) <0082d276-be12-317c-852d-d9309e47cd12> /System/Library/Frameworks/GameController.framework/Versions/A/GameController
    0x7fff62fac000 -     0x7fff62fdf887  dyld (239.5) <1d3130fe-fe7e-3c4c-8e74-eb51895b6ba5> /usr/lib/dyld
    0x7fff8400b000 -     0x7fff8430bff7  com.apple.Foundation (6.9 - 1056.17) <e0b0faf6-5ca8-3eeb-8bf2-104c0aeef925> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x7fff85a8b000 -     0x7fff85aa5fff  libdispatch.dylib (339.92.1) <c4e4a18d-3c3b-3c9c-8709-a4270d998de7> /usr/lib/system/libdispatch.dylib
    0x7fff87f19000 -     0x7fff87f3dfff  libxpc.dylib (300.90.2) <ab40cd57-f454-3fd4-b415-63b3c0d5c624> /usr/lib/system/libxpc.dylib
    0x7fff89176000 -     0x7fff8917dff8  liblaunch.dylib (842.92.1) <a40a0c7b-3216-39b4-8ae0-b5d3baf1da8a> /usr/lib/system/liblaunch.dylib
    0x7fff8963a000 -     0x7fff89641ff7  libsystem_pthread.dylib (53.1.4) <ab498556-b555-310e-9041-f67ec9e00e2c> /usr/lib/system/libsystem_pthread.dylib
    0x7fff89f00000 -     0x7fff8a0e5fff  com.apple.CoreFoundation (6.9 - 855.17) <729bd6da-1f63-3e72-a148-26f21ebf52bb> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7fff8be63000 -     0x7fff8be7fff7  libsystem_kernel.dylib (2422.115.15) <34abaf79-e147-3c34-b05d-46a566e689cc> /usr/lib/system/libsystem_kernel.dylib
    0x7fff8beba000 -     0x7fff8bed5ff7  libsystem_malloc.dylib (23.10.1) <a695b4e4-38e9-332e-a772-29d31e3f1385> /usr/lib/system/libsystem_malloc.dylib
    0x7fff911f9000 -     0x7fff911fcff7  libdyld.dylib (239.5) <cae7a50d-f156-3d47-81c0-dc41eb975d38> /usr/lib/system/libdyld.dylib
    0x7fff91912000 -     0x7fff9199bfef  libsystem_c.dylib (997.90.5) <889aa3f9-121c-3985-8b1d-5e908c5693bc> /usr/lib/system/libsystem_c.dylib

If I've done something to cause this please let me know and i'll close this.

krackers commented 1 year ago

Isn't this already allowed in the policy for renderer? https://source.chromium.org/chromium/chromium/src/+/main:sandbox/policy/mac/renderer.sb;l=78?q=distributed_notifications&ss=chromium

The ____initDayChangedNotification is weird, seems like that should only be getting called when the day changes (at midnight)?