08-21-2021, 07:09 AM
(This post was last modified: 08-21-2021, 08:11 AM by noobsoftware.)
I get this error with optimization set to: ac_add_options --enable-optimize=-Os
and using the Mojave sdk
2021-08-21 07:08:23.301591+0000 basilisk[52941:8267159] 0 CarbonCore 0x00007fff228be2d1 ___Gestalt_SystemVersion_block_invoke + 112
2021-08-21 07:08:23.301615+0000 basilisk[52941:8267159] 1 libdispatch.dylib 0x00007fff2024a806 _dispatch_client_callout + 8
2021-08-21 07:08:23.301624+0000 basilisk[52941:8267159] 2 libdispatch.dylib 0x00007fff2024b98c _dispatch_once_callout + 20
2021-08-21 07:08:23.301632+0000 basilisk[52941:8267159] 3 CarbonCore 0x00007fff2285fa72 _Gestalt_SystemVersion + 944
2021-08-21 07:08:23.301639+0000 basilisk[52941:8267159] 4 CarbonCore 0x00007fff2285f688 Gestalt + 149
2021-08-21 07:08:23.301647+0000 basilisk[52941:8267159] 5 XUL 0x00000001047ef815 _cairo_quartz_surface_create_internal + 287
XUL was compiled with optimization - stepping may behave oddly; variables may not be available.
Process 52941 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x7ffe00002007)
frame #0: 0x000000010438edb0 XUL`nsWindowWatcher::OpenWindowInternal(this=0x0000000100210ad0, aParent=0x0000000000000000, aUrl="chrome://browser/content/", aName="_blank", aFeatures="chrome,dialog=no,all", aCalledFromJS=<unavailable>, aDialog=<unavailable>, aNavigate=<unavailable>, aArgv=0x00000001106ede90, aIsPopupSpam=<unavailable>, aForceNoOpener=<unavailable>, aLoadInfo=0x0000000000000000, aResult=0x00007ffe00002007) at nsWindowWatcher.cpp:697:12 [opt]
694 aParent ? nsPIDOMWindowOuter::From(aParent) : nullptr;
695
696 NS_ENSURE_ARG_POINTER(aResult);
-> 697 *aResult = 0;
698
699 if (!nsContentUtils::IsSafeToRunScript()) {
700 nsContentUtils::WarnScriptWasIgnored(nullptr);
Target 0: (basilisk) stopped.
And here is it error that is caused by -O2:
Process 16744 launched: '/Volumes/t1_backup/silver_2/basilisk/obj-x86_64-apple-darwin20.5.0/dist/Silver.app/Contents/MacOS/basilisk' (x86_64)
2021-08-21 08:09:45.134586+0000 basilisk[16744:8419728] SecTaskLoadEntitlements failed error=22 cs_flags=20, pid=16744
2021-08-21 08:09:45.134679+0000 basilisk[16744:8419728] SecTaskCopyDebugDescription: basilisk[16744]/0#-1 LF=0
XUL was compiled with optimization - stepping may behave oddly; variables may not be available.
Process 16744 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x1000)
frame #0: 0x0000000102741cc4 XUL`SameChildProcessMessageManagerCallback:oSendAsyncMessage(JSContext*, nsAString_internal const&, mozilla::dom::ipc::StructuredCloneData&, JS::Handle<JSObject*>, nsIPrincipal*) [inlined] mozilla::LinkedListElement<JS:ersistentRooted<void*> >:etPreviousUnsafe(this=<unavailable>, aElem=0x0000000100362450) at LinkedList.h:353:24 [opt]
350
351 listElem->mNext = this;
352 listElem->mPrev = this->mPrev;
-> 353 this->mPrev->mNext = listElem;
354 this->mPrev = listElem;
355
356 Traits::enterList(aElem);
Target 0: (basilisk) stopped.
and using the Mojave sdk
2021-08-21 07:08:23.301591+0000 basilisk[52941:8267159] 0 CarbonCore 0x00007fff228be2d1 ___Gestalt_SystemVersion_block_invoke + 112
2021-08-21 07:08:23.301615+0000 basilisk[52941:8267159] 1 libdispatch.dylib 0x00007fff2024a806 _dispatch_client_callout + 8
2021-08-21 07:08:23.301624+0000 basilisk[52941:8267159] 2 libdispatch.dylib 0x00007fff2024b98c _dispatch_once_callout + 20
2021-08-21 07:08:23.301632+0000 basilisk[52941:8267159] 3 CarbonCore 0x00007fff2285fa72 _Gestalt_SystemVersion + 944
2021-08-21 07:08:23.301639+0000 basilisk[52941:8267159] 4 CarbonCore 0x00007fff2285f688 Gestalt + 149
2021-08-21 07:08:23.301647+0000 basilisk[52941:8267159] 5 XUL 0x00000001047ef815 _cairo_quartz_surface_create_internal + 287
XUL was compiled with optimization - stepping may behave oddly; variables may not be available.
Process 52941 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x7ffe00002007)
frame #0: 0x000000010438edb0 XUL`nsWindowWatcher::OpenWindowInternal(this=0x0000000100210ad0, aParent=0x0000000000000000, aUrl="chrome://browser/content/", aName="_blank", aFeatures="chrome,dialog=no,all", aCalledFromJS=<unavailable>, aDialog=<unavailable>, aNavigate=<unavailable>, aArgv=0x00000001106ede90, aIsPopupSpam=<unavailable>, aForceNoOpener=<unavailable>, aLoadInfo=0x0000000000000000, aResult=0x00007ffe00002007) at nsWindowWatcher.cpp:697:12 [opt]
694 aParent ? nsPIDOMWindowOuter::From(aParent) : nullptr;
695
696 NS_ENSURE_ARG_POINTER(aResult);
-> 697 *aResult = 0;
698
699 if (!nsContentUtils::IsSafeToRunScript()) {
700 nsContentUtils::WarnScriptWasIgnored(nullptr);
Target 0: (basilisk) stopped.
And here is it error that is caused by -O2:
Process 16744 launched: '/Volumes/t1_backup/silver_2/basilisk/obj-x86_64-apple-darwin20.5.0/dist/Silver.app/Contents/MacOS/basilisk' (x86_64)
2021-08-21 08:09:45.134586+0000 basilisk[16744:8419728] SecTaskLoadEntitlements failed error=22 cs_flags=20, pid=16744
2021-08-21 08:09:45.134679+0000 basilisk[16744:8419728] SecTaskCopyDebugDescription: basilisk[16744]/0#-1 LF=0
XUL was compiled with optimization - stepping may behave oddly; variables may not be available.
Process 16744 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x1000)
frame #0: 0x0000000102741cc4 XUL`SameChildProcessMessageManagerCallback:oSendAsyncMessage(JSContext*, nsAString_internal const&, mozilla::dom::ipc::StructuredCloneData&, JS::Handle<JSObject*>, nsIPrincipal*) [inlined] mozilla::LinkedListElement<JS:ersistentRooted<void*> >:etPreviousUnsafe(this=<unavailable>, aElem=0x0000000100362450) at LinkedList.h:353:24 [opt]
350
351 listElem->mNext = this;
352 listElem->mPrev = this->mPrev;
-> 353 this->mPrev->mNext = listElem;
354 this->mPrev = listElem;
355
356 Traits::enterList(aElem);
Target 0: (basilisk) stopped.