Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TenFourFox built with gcc 6.4.0 causes bus error in XUL nsCSSFrameConstructor::ProcessChildren #464

Open
kencu opened this issue Jan 16, 2018 · 38 comments

Comments

@kencu
Copy link
Contributor

kencu commented Jan 16, 2018

Looking towards a day when TenFourFox might be built with gcc6.

A debug build with gcc6, generic G3 has a bus error on launch:

====== mozconfig

. $topsrcdir/browser/config/mozconfig
export CC="/opt/local/bin/gcc-mp-6 -flax-vector-conversions"
export CXX="/opt/local/bin/g++-mp-6 -flax-vector-conversions -fpermissive"
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-ff-dbg
mk_add_options MOZ_MAKE_FLAGS="-s -j2"
mk_add_options AUTOCONF=autoconf213
ac_add_options --disable-tests
ac_add_options --disable-static
ac_add_options --disable-crashreporter
ac_add_options --enable-webrtc
ac_add_options --enable-optimize
ac_add_options --disable-cpp-exceptions
ac_add_options --enable-debug
ac_add_options --enable-shark
ac_add_options --enable-printing
ac_add_options --enable-prebinding
ac_add_options --enable-macos-target=10.4
ac_add_options --enable-chrome-format=jar
ac_add_options --enable-debug-symbols=-gdwarf-2
ac_add_options --with-macos-sdk=/Developer/SDKs/MacOSX10.4u.sdk
ac_add_options --with-distribution-id=com.floodgap

run log:

run log:
tigerg5:~/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS cunningh$ ./firefox
JavaScript warning: resource://gre/modules/TelemetryStopwatch.jsm, line 39: unreachable code after return statement
JavaScript warning: resource://gre/modules/TelemetryStopwatch.jsm, line 78: unreachable code after return statement
JavaScript warning: resource://gre/modules/TelemetryStopwatch.jsm, line 107: unreachable code after return statement
JavaScript warning: resource://gre/modules/TelemetryStopwatch.jsm, line 136: unreachable code after return statement
[6528] ###!!! ASSERTION: Deprecated, use NewChannel2 providing loadInfo arguments!: 'false', file /Users/cunningh/tenfourfox/netwerk/base/nsIOService.cpp, line 936
[6528] ###!!! ASSERTION: Please pass security info when creating a channel: 'loadInfo', file /Users/cunningh/tenfourfox/netwerk/base/nsIOService.cpp, line 862
JavaScript warning: resource://gre/modules/TelemetryController.jsm, line 660: unreachable code after return statement
JavaScript warning: resource://gre/modules/TelemetryReportingPolicy.jsm, line 342: unreachable code after return statement
JavaScript warning: resource://gre/modules/TelemetrySend.jsm, line 1035: unreachable code after return statement
++DOCSHELL 0x2db6800 == 1 [pid = 6528] [id = 1]
++DOMWINDOW == 1 (0x2db3000) [pid = 6528] [serial = 1] [outer = 0x0]
Loading ColorSync profile: /Library/ColorSync/Profiles/Displays/Apple Cinema Display-42485F0.icc
Size of profile: 844
++DOMWINDOW == 2 (0x2d6e400) [pid = 6528] [serial = 2] [outer = 0x2db3000]
JavaScript warning: resource://gre/modules/UITelemetry.jsm, line 30: unreachable code after return statement
JavaScript warning: resource://gre/modules/UITelemetry.jsm, line 49: unreachable code after return statement
++DOCSHELL 0x2f41c00 == 2 [pid = 6528] [id = 2]
++DOMWINDOW == 3 (0x2f42600) [pid = 6528] [serial = 3] [outer = 0x0]
++DOMWINDOW == 4 (0x2f48e00) [pid = 6528] [serial = 4] [outer = 0x2f42600]
[6528] WARNING: Loaded script chrome://global/content/printUtils.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[6528] WARNING: Loaded script chrome://global/content/viewZoomOverlay.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[6528] WARNING: Loaded script chrome://browser/content/places/browserPlacesViews.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[6528] WARNING: Loaded script chrome://browser/content/browser.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[6528] WARNING: Loaded script chrome://browser/content/downloads/downloads.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[6528] WARNING: Loaded script chrome://browser/content/downloads/indicator.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[6528] WARNING: Loaded script chrome://browser/content/customizableui/panelUI.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[6528] WARNING: Loaded script chrome://global/content/inlineSpellCheckUI.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[6528] WARNING: Loaded script chrome://global/content/viewSourceUtils.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[6528] WARNING: Loaded script chrome://browser/content/browser-addons.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[6528] WARNING: Loaded script chrome://browser/content/browser-ctrlTab.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[6528] WARNING: Loaded script chrome://browser/content/browser-customization.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[6528] WARNING: Loaded script chrome://browser/content/browser-devedition.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[6528] WARNING: Loaded script chrome://browser/content/browser-eme.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[6528] WARNING: Loaded script chrome://browser/content/browser-feeds.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[6528] WARNING: Loaded script chrome://browser/content/browser-fullScreen.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[6528] WARNING: Loaded script chrome://browser/content/browser-fullZoom.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[6528] WARNING: Loaded script chrome://browser/content/browser-gestureSupport.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[6528] WARNING: Loaded script chrome://browser/content/browser-places.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
JavaScript warning: chrome://browser/content/browser-plugins.js, line 219: unreachable code after return statement
JavaScript warning: chrome://browser/content/browser-plugins.js, line 219: unreachable code after return statement
[6528] WARNING: Loaded script chrome://browser/content/browser-plugins.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[6528] WARNING: Loaded script chrome://browser/content/browser-safebrowsing.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[6528] WARNING: Loaded script chrome://browser/content/browser-sidebar.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[6528] WARNING: Loaded script chrome://browser/content/browser-social.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[6528] WARNING: Loaded script chrome://browser/content/browser-syncui.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[6528] WARNING: Loaded script chrome://browser/content/browser-tabsintitlebar.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[6528] WARNING: Loaded script chrome://browser/content/browser-trackingprotection.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[6528] WARNING: Loaded script chrome://browser/content/browser-fxaccounts.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
++DOCSHELL 0x1f31c000 == 3 [pid = 6528] [id = 3]
++DOMWINDOW == 5 (0x2b20800) [pid = 6528] [serial = 5] [outer = 0x0]
++DOCSHELL 0x1f0d0400 == 4 [pid = 6528] [id = 4]
++DOMWINDOW == 6 (0x1f0c8a00) [pid = 6528] [serial = 6] [outer = 0x0]
[6528] ###!!! ASSERTION: Double-initing a frame?: '!mContent', file /Users/cunningh/tenfourfox/layout/generic/nsFrame.cpp, line 513
[6528] ###!!! ASSERTION: Double-initing a frame?: '!mContent', file /Users/cunningh/tenfourfox/layout/generic/nsFrame.cpp, line 513
[6528] ###!!! ASSERTION: Double-initing a frame?: '!mContent', file /Users/cunningh/tenfourfox/layout/generic/nsFrame.cpp, line 513
Bus error

crashdump:

========
Host Name:      tigerg5
Date/Time:      2018-01-16 08:40:19.532 -0800
OS Version:     10.4.11 (Build 8S165)
Report Version: 4

Command: firefox
Path:    ./firefox
Parent:  bash [6524]

Version: 45.14.0 (4518.1.15)

PID:    6528
Thread: 0

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x00000138

Thread 0 Crashed:
0   XUL                          	0x0a6f2720 nsCSSFrameConstructor::ProcessChildren(nsFrameConstructorState&, nsIContent*, nsStyleContext*, nsContainerFrame*, bool, nsFrameItems&, bool, PendingBinding*, nsIFrame*) + 1400 (nsCSSFrameConstructor.cpp:430)
1   XUL                          	0x0a6f38f8 nsCSSFrameConstructor::ConstructFrameFromItemInternal(nsCSSFrameConstructor::FrameConstructionItem&, nsFrameConstructorState&, nsContainerFrame*, nsFrameItems&) + 2976 (nsCSSFrameConstructor.cpp:3809)
2   XUL                          	0x0a6f3bb4 nsCSSFrameConstructor::ConstructFramesFromItem(nsFrameConstructorState&, nsCSSFrameConstructor::FrameConstructionItemList::Iterator&, nsContainerFrame*, nsFrameItems&) + 348 (nsCSSFrameConstructor.cpp:5870)
3   XUL                          	0x0a710508 nsCSSFrameConstructor::ConstructFramesFromItemList(nsFrameConstructorState&, nsCSSFrameConstructor::FrameConstructionItemList&, nsContainerFrame*, nsFrameItems&) + 516 (nsCSSFrameConstructor.cpp:10194)
4   XUL                          	0x0a6f26b0 nsCSSFrameConstructor::ProcessChildren(nsFrameConstructorState&, nsIContent*, nsStyleContext*, nsContainerFrame*, bool, nsFrameItems&, bool, PendingBinding*, nsIFrame*) + 1288 (nsCSSFrameConstructor.cpp:10396)
5   XUL                          	0x0a6fb62c nsCSSFrameConstructor::ConstructDocElementFrame(mozilla::dom::Element*, nsILayoutHistoryState*) + 2100 (nsCSSFrameConstructor.cpp:2570)
6   XUL                          	0x0a6fc108 nsCSSFrameConstructor::ContentRangeInserted(nsIContent*, nsIContent*, nsIContent*, nsILayoutHistoryState*, bool) + 1408 (nsCSSFrameConstructor.cpp:7421)
7   XUL                          	0x0a75402c PresShell::Initialize(int, int) + 872 (RefPtr.h:240)
8   XUL                          	0x0a29d848 mozilla::dom::XULDocument::StartLayout() + 268 (XULDocument.cpp:1905)
9   XUL                          	0x0a2a93d8 mozilla::dom::XULDocument::DoneWalking() + 1728 (XULDocument.cpp:3022)
10  XUL                          	0x0a2b0844 mozilla::dom::XULDocument::ResumeWalk() + 1224 (XULDocument.cpp:2970)
11  XUL                          	0x0a2b3010 mozilla::dom::XULDocument::OnScriptCompileComplete(JSScript*, nsresult) + 208 (XULDocument.cpp:3459)
12  XUL                          	0x0a290524 NotifyOffThreadScriptCompletedRunnable::Run() + 272 (nsXULElement.cpp:2721)
13  XUL                          	0x07fd49dc nsThread::ProcessNextEvent(bool, bool*) + 924 (nsThread.cpp:957)
14  XUL                          	0x0801f788 NS_ProcessPendingEvents(nsIThread*, unsigned) + 108 (nsThreadUtils.cpp:240)
15  XUL                          	0x0a3678c0 nsBaseAppShell::NativeEventCallback() + 124 (nsBaseAppShell.cpp:98)
16  XUL                          	0x0a3c26b0 nsAppShell::ProcessGeckoEvents(void*) + 644 (nsAppShell.mm:416)
17  com.apple.CoreFoundation     	0x907df300 __CFRunLoopDoSources0 + 384
18  com.apple.CoreFoundation     	0x907de830 __CFRunLoopRun + 452
19  com.apple.CoreFoundation     	0x907de2b0 CFRunLoopRunSpecific + 268
20  com.apple.HIToolbox          	0x932adb20 RunCurrentEventLoopInMode + 264
21  com.apple.HIToolbox          	0x932ad1b4 ReceiveNextEventCommon + 380
22  com.apple.HIToolbox          	0x932ad020 BlockUntilNextEventMatchingListInMode + 96
23  com.apple.AppKit             	0x93791734 _DPSNextEvent + 384
24  com.apple.AppKit             	0x937913f8 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 116
25  XUL                          	0x0a3c21ec -[GeckoNSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 104 (nsAppShell.mm:136)
26  com.apple.AppKit             	0x9378d93c -[NSApplication run] + 472
27  XUL                          	0x0a3c720c nsAppShell::Run() + 628 (nsAppShell.mm:689)
28  XUL                          	0x0afa8010 nsAppStartup::Run() + 216 (nsAppStartup.cpp:282)
29  XUL                          	0x0b02d1e0 XREMain::XRE_mainRun() + 3088 (nsAppRunner.cpp:4300)
30  XUL                          	0x0b02e454 XREMain::XRE_main(int, char**, nsXREAppData const*) + 340 (nsAppRunner.cpp:4396)
31  XUL                          	0x0b02e800 XRE_main + 208 (nsAppRunner.cpp:4498)
32  com.floodgap.tenfourfoxdebug 	0x00005f60 main + 1636 (nsBrowserApp.cpp:212)
33  com.floodgap.tenfourfoxdebug 	0x00002b04 _start + 760
34  com.floodgap.tenfourfoxdebug 	0x00002808 start + 48

Thread 1:
0   libSystem.B.dylib            	0x9002ec8c kevent + 12
1   XUL                          	0x083f71f4 kq_dispatch + 828 (kqueue.c:301)
2   XUL                          	0x083f8a48 event_base_loop + 812 (event.c:1609)
3   XUL                          	0x083ddf10 base::MessagePumpLibevent::Run(base::MessagePump::Delegate*) + 468 (message_pump_libevent.cc:378)
4   XUL                          	0x083d7368 MessageLoop::RunInternal() + 124 (message_loop.cc:235)
5   XUL                          	0x083d73dc MessageLoop::Run() + 72 (message_loop.cc:520)
6   XUL                          	0x083e5180 base::Thread::ThreadMain() + 260 (thread.cc:175)
7   XUL                          	0x083e1b18 _ZL10ThreadFuncPv + 32 (platform_thread_posix.cc:38)
8   libSystem.B.dylib            	0x9002b908 _pthread_body + 96

Thread 2:
0   libSystem.B.dylib            	0x9002bfc8 semaphore_wait_signal_trap + 8
1   libSystem.B.dylib            	0x90030aac pthread_cond_wait + 480
2   libnss3.dylib                	0x03cda6f8 PR_WaitCondVar + 500 (ptsynch.c:396)
3   XUL                          	0x080057ec mozilla::CondVar::Wait(unsigned) + 76 (BlockingResourceBase.cpp:504)
4   XUL                          	0x0808980c mozilla::net::ClosingService::ThreadFunc() + 324 (Monitor.h:40)
5   libnss3.dylib                	0x03cdc038 _pt_root + 232 (ptthread.c:219)
6   libSystem.B.dylib            	0x9002b908 _pthread_body + 96

Thread 3:
0   libSystem.B.dylib            	0x9001f48c select + 12
1   libnss3.dylib                	0x03cc3450 poll + 400 (unix.c:3728)
2   libnss3.dylib                	0x03cd5ca8 _pr_poll_with_poll + 632 (ptio.c:3923)
3   XUL                          	0x080f5cbc nsSocketTransportService::Poll(bool, unsigned*, mozilla::BaseTimeDuration<mozilla::TimeDurationValueCalculator>*) + 172 (nsSocketTransportService2.cpp:473)
4   XUL                          	0x08100a94 nsSocketTransportService::DoPollIteration(bool, mozilla::BaseTimeDuration<mozilla::TimeDurationValueCalculator>*) + 500 (nsSocketTransportService2.cpp:1069)
5   XUL                          	0x08101384 nsSocketTransportService::Run() + 560 (atomic_base.h:396)
6   XUL                          	0x07fd49dc nsThread::ProcessNextEvent(bool, bool*) + 924 (nsThread.cpp:957)
7   XUL                          	0x0801faa4 NS_ProcessNextEvent(nsIThread*, bool) + 64 (nsThreadUtils.cpp:297)
8   XUL                          	0x0840d2a8 mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) + 328 (MessagePump.cpp:327)
9   XUL                          	0x083d7368 MessageLoop::RunInternal() + 124 (message_loop.cc:235)
10  XUL                          	0x083d73dc MessageLoop::Run() + 72 (message_loop.cc:520)
11  XUL                          	0x07fd54d4 nsThread::ThreadFunc(void*) + 456 (nsThread.cpp:378)
12  libnss3.dylib                	0x03cdc038 _pt_root + 232 (ptthread.c:219)
13  libSystem.B.dylib            	0x9002b908 _pthread_body + 96

Thread 4:
0   libSystem.B.dylib            	0x9002bfc8 semaphore_wait_signal_trap + 8
1   libSystem.B.dylib            	0x90030aac pthread_cond_wait + 480
2   libnss3.dylib                	0x03cda6f8 PR_WaitCondVar + 500 (ptsynch.c:396)
3   XUL                          	0x0b8fd090 js::GlobalHelperThreadState::wait(js::GlobalHelperThreadState::CondVar, unsigned) + 124 (HelperThreads.cpp:609)
4   XUL                          	0x0b904994 js::HelperThread::threadLoop() + 544 (HelperThreads.cpp:1606)
5   libnss3.dylib                	0x03cdc038 _pt_root + 232 (ptthread.c:219)
6   libSystem.B.dylib            	0x9002b908 _pthread_body + 96

Thread 5:
0   libSystem.B.dylib            	0x9002bfc8 semaphore_wait_signal_trap + 8
1   libSystem.B.dylib            	0x90030aac pthread_cond_wait + 480
2   libnss3.dylib                	0x03cda6f8 PR_WaitCondVar + 500 (ptsynch.c:396)
3   XUL                          	0x0b8fd090 js::GlobalHelperThreadState::wait(js::GlobalHelperThreadState::CondVar, unsigned) + 124 (HelperThreads.cpp:609)
4   XUL                          	0x0b904994 js::HelperThread::threadLoop() + 544 (HelperThreads.cpp:1606)
5   libnss3.dylib                	0x03cdc038 _pt_root + 232 (ptthread.c:219)
6   libSystem.B.dylib            	0x9002b908 _pthread_body + 96

Thread 6:
0   libSystem.B.dylib            	0x9002bfc8 semaphore_wait_signal_trap + 8
1   libSystem.B.dylib            	0x90030aac pthread_cond_wait + 480
2   libnss3.dylib                	0x03cda6f8 PR_WaitCondVar + 500 (ptsynch.c:396)
3   XUL                          	0x0b8fd090 js::GlobalHelperThreadState::wait(js::GlobalHelperThreadState::CondVar, unsigned) + 124 (HelperThreads.cpp:609)
4   XUL                          	0x0b904994 js::HelperThread::threadLoop() + 544 (HelperThreads.cpp:1606)
5   libnss3.dylib                	0x03cdc038 _pt_root + 232 (ptthread.c:219)
6   libSystem.B.dylib            	0x9002b908 _pthread_body + 96

Thread 7:
0   libSystem.B.dylib            	0x9002bfc8 semaphore_wait_signal_trap + 8
1   libSystem.B.dylib            	0x90030aac pthread_cond_wait + 480
2   libnss3.dylib                	0x03cda6f8 PR_WaitCondVar + 500 (ptsynch.c:396)
3   XUL                          	0x0b8fd090 js::GlobalHelperThreadState::wait(js::GlobalHelperThreadState::CondVar, unsigned) + 124 (HelperThreads.cpp:609)
4   XUL                          	0x0b904994 js::HelperThread::threadLoop() + 544 (HelperThreads.cpp:1606)
5   libnss3.dylib                	0x03cdc038 _pt_root + 232 (ptthread.c:219)
6   libSystem.B.dylib            	0x9002b908 _pthread_body + 96

Thread 8:
0   libSystem.B.dylib            	0x9002bfc8 semaphore_wait_signal_trap + 8
1   libSystem.B.dylib            	0x90030aac pthread_cond_wait + 480
2   libnss3.dylib                	0x03cda6f8 PR_WaitCondVar + 500 (ptsynch.c:396)
3   XUL                          	0x0b8fd090 js::GlobalHelperThreadState::wait(js::GlobalHelperThreadState::CondVar, unsigned) + 124 (HelperThreads.cpp:609)
4   XUL                          	0x0b904994 js::HelperThread::threadLoop() + 544 (HelperThreads.cpp:1606)
5   libnss3.dylib                	0x03cdc038 _pt_root + 232 (ptthread.c:219)
6   libSystem.B.dylib            	0x9002b908 _pthread_body + 96

Thread 9:
0   libSystem.B.dylib            	0x9002bfc8 semaphore_wait_signal_trap + 8
1   libSystem.B.dylib            	0x90030aac pthread_cond_wait + 480
2   libnss3.dylib                	0x03cda6f8 PR_WaitCondVar + 500 (ptsynch.c:396)
3   XUL                          	0x0b8fd090 js::GlobalHelperThreadState::wait(js::GlobalHelperThreadState::CondVar, unsigned) + 124 (HelperThreads.cpp:609)
4   XUL                          	0x0b904994 js::HelperThread::threadLoop() + 544 (HelperThreads.cpp:1606)
5   libnss3.dylib                	0x03cdc038 _pt_root + 232 (ptthread.c:219)
6   libSystem.B.dylib            	0x9002b908 _pthread_body + 96

Thread 10:
0   libSystem.B.dylib            	0x90053f88 semaphore_timedwait_signal_trap + 8
1   libSystem.B.dylib            	0x90053de4 pthread_cond_timedwait + 676
2   libnss3.dylib                	0x03cd9af8 pt_TimedWait + 168 (ptsynch.c:271)
3   libnss3.dylib                	0x03cda5ec PR_WaitCondVar + 232 (ptsynch.c:398)
4   XUL                          	0x08816540 _ZL12WatchdogMainPv + 180 (XPCJSRuntime.cpp:1071)
5   libnss3.dylib                	0x03cdc038 _pt_root + 232 (ptthread.c:219)
6   libSystem.B.dylib            	0x9002b908 _pthread_body + 96

Thread 11:
0   libSystem.B.dylib            	0x9002bfc8 semaphore_wait_signal_trap + 8
1   libSystem.B.dylib            	0x90030aac pthread_cond_wait + 480
2   libnss3.dylib                	0x03cda6f8 PR_WaitCondVar + 500 (ptsynch.c:396)
3   XUL                          	0x080057ec mozilla::CondVar::Wait(unsigned) + 76 (BlockingResourceBase.cpp:504)
4   XUL                          	0x07fce5ac mozilla::HangMonitor::ThreadMain(void*) + 168 (HangMonitor.cpp:209)
5   libnss3.dylib                	0x03cdc038 _pt_root + 232 (ptthread.c:219)
6   libSystem.B.dylib            	0x9002b908 _pthread_body + 96

Thread 12:
0   libSystem.B.dylib            	0x90053f88 semaphore_timedwait_signal_trap + 8
1   libSystem.B.dylib            	0x90053de4 pthread_cond_timedwait + 676
2   libnss3.dylib                	0x03cd9af8 pt_TimedWait + 168 (ptsynch.c:271)
3   libnss3.dylib                	0x03cda5ec PR_WaitCondVar + 232 (ptsynch.c:398)
4   XUL                          	0x080057ec mozilla::CondVar::Wait(unsigned) + 76 (BlockingResourceBase.cpp:504)
5   XUL                          	0x07fddf78 TimerThread::Run() + 464 (TimerThread.cpp:566)
6   XUL                          	0x07fd49dc nsThread::ProcessNextEvent(bool, bool*) + 924 (nsThread.cpp:957)
7   XUL                          	0x0801faa4 NS_ProcessNextEvent(nsIThread*, bool) + 64 (nsThreadUtils.cpp:297)
8   XUL                          	0x0840d2a8 mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) + 328 (MessagePump.cpp:327)
9   XUL                          	0x083d7368 MessageLoop::RunInternal() + 124 (message_loop.cc:235)
10  XUL                          	0x083d73dc MessageLoop::Run() + 72 (message_loop.cc:520)
11  XUL                          	0x07fd54d4 nsThread::ThreadFunc(void*) + 456 (nsThread.cpp:378)
12  libnss3.dylib                	0x03cdc038 _pt_root + 232 (ptthread.c:219)
13  libSystem.B.dylib            	0x9002b908 _pthread_body + 96

Thread 13:
0   libSystem.B.dylib            	0x9002bfc8 semaphore_wait_signal_trap + 8
1   libSystem.B.dylib            	0x90030aac pthread_cond_wait + 480
2   libnss3.dylib                	0x03cda6f8 PR_WaitCondVar + 500 (ptsynch.c:396)
3   XUL                          	0x080057ec mozilla::CondVar::Wait(unsigned) + 76 (BlockingResourceBase.cpp:504)
4   XUL                          	0x081de678 mozilla::net::CacheIOThread::ThreadFunc() + 836 (atomic_base.h:396)
5   XUL                          	0x081de868 mozilla::net::CacheIOThread::ThreadFunc(void*) + 56 (CacheIOThread.cpp:175)
6   libnss3.dylib                	0x03cdc038 _pt_root + 232 (ptthread.c:219)
7   libSystem.B.dylib            	0x9002b908 _pthread_body + 96

Thread 14:
0   libSystem.B.dylib            	0x9002bfc8 semaphore_wait_signal_trap + 8
1   libSystem.B.dylib            	0x90030aac pthread_cond_wait + 480
2   libnss3.dylib                	0x03cda6f8 PR_WaitCondVar + 500 (ptsynch.c:396)
3   XUL                          	0x080057ec mozilla::CondVar::Wait(unsigned) + 76 (BlockingResourceBase.cpp:504)
4   XUL                          	0x07fd0eec nsEventQueue::GetEvent(bool, nsIRunnable**, mozilla::BaseAutoLock<mozilla::Mutex>&) + 252 (atomic_base.h:713)
5   XUL                          	0x07fd4940 nsThread::ProcessNextEvent(bool, bool*) + 768 (nsCOMPtr.h:721)
6   XUL                          	0x0801faa4 NS_ProcessNextEvent(nsIThread*, bool) + 64 (nsThreadUtils.cpp:297)
7   XUL                          	0x0840d3bc mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) + 604 (MessagePump.cpp:355)
8   XUL                          	0x083d7368 MessageLoop::RunInternal() + 124 (message_loop.cc:235)
9   XUL                          	0x083d73dc MessageLoop::Run() + 72 (message_loop.cc:520)
10  XUL                          	0x07fd54d4 nsThread::ThreadFunc(void*) + 456 (nsThread.cpp:378)
11  libnss3.dylib                	0x03cdc038 _pt_root + 232 (ptthread.c:219)
12  libSystem.B.dylib            	0x9002b908 _pthread_body + 96

Thread 15:
0   libSystem.B.dylib            	0x9002bfc8 semaphore_wait_signal_trap + 8
1   libSystem.B.dylib            	0x90030aac pthread_cond_wait + 480
2   libnss3.dylib                	0x03cda6f8 PR_WaitCondVar + 500 (ptsynch.c:396)
3   XUL                          	0x080057ec mozilla::CondVar::Wait(unsigned) + 76 (BlockingResourceBase.cpp:504)
4   XUL                          	0x0ae05d0c nsCertVerificationThread::Run() + 316 (nsCertVerificationThread.cpp:111)
5   libnss3.dylib                	0x03cdc038 _pt_root + 232 (ptthread.c:219)
6   libSystem.B.dylib            	0x9002b908 _pthread_body + 96

Thread 16:
0   libSystem.B.dylib            	0x9002bfc8 semaphore_wait_signal_trap + 8
1   libSystem.B.dylib            	0x90030aac pthread_cond_wait + 480
2   XUL                          	0x083d537c ConditionVariable::Wait() + 32 (condition_variable_posix.cc:41)
3   XUL                          	0x083e7558 base::WaitableEvent::TimedWait(base::TimeDelta const&) + 752 (time_mac.cc:94)
4   XUL                          	0x083e75bc base::WaitableEvent::Wait() + 44 (waitable_event_posix.cc:202)
5   XUL                          	0x083de128 base::MessagePumpDefault::Run(base::MessagePump::Delegate*) + 296 (message_pump_default.cc:31)
6   XUL                          	0x083d7368 MessageLoop::RunInternal() + 124 (message_loop.cc:235)
7   XUL                          	0x083d73dc MessageLoop::Run() + 72 (message_loop.cc:520)
8   XUL                          	0x083e5180 base::Thread::ThreadMain() + 260 (thread.cc:175)
9   XUL                          	0x083e1b18 _ZL10ThreadFuncPv + 32 (platform_thread_posix.cc:38)
10  libSystem.B.dylib            	0x9002b908 _pthread_body + 96

Thread 17:
0   libSystem.B.dylib            	0x9002bfc8 semaphore_wait_signal_trap + 8
1   libSystem.B.dylib            	0x90030aac pthread_cond_wait + 480
2   XUL                          	0x083d537c ConditionVariable::Wait() + 32 (condition_variable_posix.cc:41)
3   XUL                          	0x083e7558 base::WaitableEvent::TimedWait(base::TimeDelta const&) + 752 (time_mac.cc:94)
4   XUL                          	0x083e75bc base::WaitableEvent::Wait() + 44 (waitable_event_posix.cc:202)
5   XUL                          	0x083de128 base::MessagePumpDefault::Run(base::MessagePump::Delegate*) + 296 (message_pump_default.cc:31)
6   XUL                          	0x083d7368 MessageLoop::RunInternal() + 124 (message_loop.cc:235)
7   XUL                          	0x083d73dc MessageLoop::Run() + 72 (message_loop.cc:520)
8   XUL                          	0x083e5180 base::Thread::ThreadMain() + 260 (thread.cc:175)
9   XUL                          	0x083e1b18 _ZL10ThreadFuncPv + 32 (platform_thread_posix.cc:38)
10  libSystem.B.dylib            	0x9002b908 _pthread_body + 96

Thread 18:
0   libSystem.B.dylib            	0x9002bfc8 semaphore_wait_signal_trap + 8
1   libSystem.B.dylib            	0x90030aac pthread_cond_wait + 480
2   libnss3.dylib                	0x03cda6f8 PR_WaitCondVar + 500 (ptsynch.c:396)
3   XUL                          	0x080057ec mozilla::CondVar::Wait(unsigned) + 76 (BlockingResourceBase.cpp:504)
4   XUL                          	0x08d7ac10 mozilla::image::DecodePoolWorker::Run() + 552 (nsTArray.h:359)
5   XUL                          	0x07fd49dc nsThread::ProcessNextEvent(bool, bool*) + 924 (nsThread.cpp:957)
6   XUL                          	0x0801faa4 NS_ProcessNextEvent(nsIThread*, bool) + 64 (nsThreadUtils.cpp:297)
7   XUL                          	0x0840d3bc mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) + 604 (MessagePump.cpp:355)
8   XUL                          	0x083d7368 MessageLoop::RunInternal() + 124 (message_loop.cc:235)
9   XUL                          	0x083d73dc MessageLoop::Run() + 72 (message_loop.cc:520)
10  XUL                          	0x07fd54d4 nsThread::ThreadFunc(void*) + 456 (nsThread.cpp:378)
11  libnss3.dylib                	0x03cdc038 _pt_root + 232 (ptthread.c:219)
12  libSystem.B.dylib            	0x9002b908 _pthread_body + 96

Thread 19:
0   libSystem.B.dylib            	0x9002bfc8 semaphore_wait_signal_trap + 8
1   libSystem.B.dylib            	0x90030aac pthread_cond_wait + 480
2   libnss3.dylib                	0x03cda6f8 PR_WaitCondVar + 500 (ptsynch.c:396)
3   XUL                          	0x080057ec mozilla::CondVar::Wait(unsigned) + 76 (BlockingResourceBase.cpp:504)
4   XUL                          	0x07fd0eec nsEventQueue::GetEvent(bool, nsIRunnable**, mozilla::BaseAutoLock<mozilla::Mutex>&) + 252 (atomic_base.h:713)
5   XUL                          	0x07fd4940 nsThread::ProcessNextEvent(bool, bool*) + 768 (nsCOMPtr.h:721)
6   XUL                          	0x0801faa4 NS_ProcessNextEvent(nsIThread*, bool) + 64 (nsThreadUtils.cpp:297)
7   XUL                          	0x0840d3bc mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) + 604 (MessagePump.cpp:355)
8   XUL                          	0x083d7368 MessageLoop::RunInternal() + 124 (message_loop.cc:235)
9   XUL                          	0x083d73dc MessageLoop::Run() + 72 (message_loop.cc:520)
10  XUL                          	0x07fd54d4 nsThread::ThreadFunc(void*) + 456 (nsThread.cpp:378)
11  libnss3.dylib                	0x03cdc038 _pt_root + 232 (ptthread.c:219)
12  libSystem.B.dylib            	0x9002b908 _pthread_body + 96

Thread 20:
0   libSystem.B.dylib            	0x9002bfc8 semaphore_wait_signal_trap + 8
1   libSystem.B.dylib            	0x90030aac pthread_cond_wait + 480
2   libnss3.dylib                	0x03cda6f8 PR_WaitCondVar + 500 (ptsynch.c:396)
3   XUL                          	0x080057ec mozilla::CondVar::Wait(unsigned) + 76 (BlockingResourceBase.cpp:504)
4   XUL                          	0x07fd0eec nsEventQueue::GetEvent(bool, nsIRunnable**, mozilla::BaseAutoLock<mozilla::Mutex>&) + 252 (atomic_base.h:713)
5   XUL                          	0x07fd4940 nsThread::ProcessNextEvent(bool, bool*) + 768 (nsCOMPtr.h:721)
6   XUL                          	0x0801faa4 NS_ProcessNextEvent(nsIThread*, bool) + 64 (nsThreadUtils.cpp:297)
7   XUL                          	0x0840d3bc mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) + 604 (MessagePump.cpp:355)
8   XUL                          	0x083d7368 MessageLoop::RunInternal() + 124 (message_loop.cc:235)
9   XUL                          	0x083d73dc MessageLoop::Run() + 72 (message_loop.cc:520)
10  XUL                          	0x07fd54d4 nsThread::ThreadFunc(void*) + 456 (nsThread.cpp:378)
11  libnss3.dylib                	0x03cdc038 _pt_root + 232 (ptthread.c:219)
12  libSystem.B.dylib            	0x9002b908 _pthread_body + 96

Thread 21:
0   libSystem.B.dylib            	0x9002bfc8 semaphore_wait_signal_trap + 8
1   libSystem.B.dylib            	0x90030aac pthread_cond_wait + 480
2   libnss3.dylib                	0x03cda6f8 PR_WaitCondVar + 500 (ptsynch.c:396)
3   XUL                          	0x080057ec mozilla::CondVar::Wait(unsigned) + 76 (BlockingResourceBase.cpp:504)
4   XUL                          	0x0a0eab68 _ZN7mozilla3dom7workers13WorkerPrivate19WaitForWorkerEventsEj.constprop.880 + 96 (WorkerPrivate.cpp:4945)
5   XUL                          	0x0a117700 mozilla::dom::workers::WorkerPrivate::DoRunLoop(JSContext*) + 1092 (WorkerPrivate.cpp:4457)
6   XUL                          	0x0a0b43cc (anonymous namespace)::WorkerThreadPrimaryRunnable::Run() + 1656 (RuntimeService.cpp:2725)
7   XUL                          	0x07fd49dc nsThread::ProcessNextEvent(bool, bool*) + 924 (nsThread.cpp:957)
8   XUL                          	0x0801faa4 NS_ProcessNextEvent(nsIThread*, bool) + 64 (nsThreadUtils.cpp:297)
9   XUL                          	0x0840d2a8 mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) + 328 (MessagePump.cpp:327)
10  XUL                          	0x083d7368 MessageLoop::RunInternal() + 124 (message_loop.cc:235)
11  XUL                          	0x083d73dc MessageLoop::Run() + 72 (message_loop.cc:520)
12  XUL                          	0x07fd54d4 nsThread::ThreadFunc(void*) + 456 (nsThread.cpp:378)
13  libnss3.dylib                	0x03cdc038 _pt_root + 232 (ptthread.c:219)
14  libSystem.B.dylib            	0x9002b908 _pthread_body + 96

Thread 22:
0   libSystem.B.dylib            	0x9002bfc8 semaphore_wait_signal_trap + 8
1   libSystem.B.dylib            	0x90030aac pthread_cond_wait + 480
2   libnss3.dylib                	0x03cda6f8 PR_WaitCondVar + 500 (ptsynch.c:396)
3   XUL                          	0x080057ec mozilla::CondVar::Wait(unsigned) + 76 (BlockingResourceBase.cpp:504)
4   XUL                          	0x0a0eab68 _ZN7mozilla3dom7workers13WorkerPrivate19WaitForWorkerEventsEj.constprop.880 + 96 (WorkerPrivate.cpp:4945)
5   XUL                          	0x0a117700 mozilla::dom::workers::WorkerPrivate::DoRunLoop(JSContext*) + 1092 (WorkerPrivate.cpp:4457)
6   XUL                          	0x0a0b43cc (anonymous namespace)::WorkerThreadPrimaryRunnable::Run() + 1656 (RuntimeService.cpp:2725)
7   XUL                          	0x07fd49dc nsThread::ProcessNextEvent(bool, bool*) + 924 (nsThread.cpp:957)
8   XUL                          	0x0801faa4 NS_ProcessNextEvent(nsIThread*, bool) + 64 (nsThreadUtils.cpp:297)
9   XUL                          	0x0840d3bc mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) + 604 (MessagePump.cpp:355)
10  XUL                          	0x083d7368 MessageLoop::RunInternal() + 124 (message_loop.cc:235)
11  XUL                          	0x083d73dc MessageLoop::Run() + 72 (message_loop.cc:520)
12  XUL                          	0x07fd54d4 nsThread::ThreadFunc(void*) + 456 (nsThread.cpp:378)
13  libnss3.dylib                	0x03cdc038 _pt_root + 232 (ptthread.c:219)
14  libSystem.B.dylib            	0x9002b908 _pthread_body + 96

Thread 23:
0   libSystem.B.dylib            	0x90053f88 semaphore_timedwait_signal_trap + 8
1   libSystem.B.dylib            	0x90053de4 pthread_cond_timedwait + 676
2   libnss3.dylib                	0x03cd9af8 pt_TimedWait + 168 (ptsynch.c:271)
3   libnss3.dylib                	0x03cda5ec PR_WaitCondVar + 232 (ptsynch.c:398)
4   XUL                          	0x080057ec mozilla::CondVar::Wait(unsigned) + 76 (BlockingResourceBase.cpp:504)
5   XUL                          	0x07fd7624 nsThreadPool::Run() + 1052 (nsEventQueue.h:104)
6   XUL                          	0x07fd49dc nsThread::ProcessNextEvent(bool, bool*) + 924 (nsThread.cpp:957)
7   XUL                          	0x0801faa4 NS_ProcessNextEvent(nsIThread*, bool) + 64 (nsThreadUtils.cpp:297)
8   XUL                          	0x0840d2a8 mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) + 328 (MessagePump.cpp:327)
9   XUL                          	0x083d7368 MessageLoop::RunInternal() + 124 (message_loop.cc:235)
10  XUL                          	0x083d73dc MessageLoop::Run() + 72 (message_loop.cc:520)
11  XUL                          	0x07fd54d4 nsThread::ThreadFunc(void*) + 456 (nsThread.cpp:378)
12  libnss3.dylib                	0x03cdc038 _pt_root + 232 (ptthread.c:219)
13  libSystem.B.dylib            	0x9002b908 _pthread_body + 96

Thread 0 crashed with PPC Thread State 64:
  srr0: 0x000000000a6f2720 srr1: 0x100000000000d930                        vrsave: 0x0000000000000000
    cr: 0x48042404          xer: 0x0000000000000000   lr: 0x000000000a6f272c  ctr: 0x0000000008df8614
    r0: 0x000000000a6f26b0   r1: 0x00000000efffc760   r2: 0x0000000000000000   r3: 0x0000000000200020
    r4: 0x0000000000000200   r5: 0x0000000000000074   r6: 0x0000000000000004   r7: 0x0000000000000004
    r8: 0x0000000000000004   r9: 0x00000000efffc7a8  r10: 0x00000000efffc584  r11: 0x00000000efffc760
   r12: 0x0000000090008940  r13: 0x0000000000000000  r14: 0x00000000206381b0  r15: 0x00000000efffce2c
   r16: 0x00000000efffc88c  r17: 0x0000000000000002  r18: 0x00000000efffc87c  r19: 0x00000000efffc890
   r20: 0x0000000000000000  r21: 0x0000000000000000  r22: 0x00000000efffca1c  r23: 0x0000000000200020
   r24: 0x00000000206381b0  r25: 0x00000000efffc8b0  r26: 0x00000000efffcdc8  r27: 0x00000000efffc7a8
   r28: 0x00000000efffc7fc  r29: 0x000000001ea91fb0  r30: 0x000000001f36efd0  r31: 0x000000000a6f21c0

Binary Images Description:
    0x1000 -     0x5fff com.floodgap.tenfourfoxdebug 45.14.0 (4518.1.15)	/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/firefox
    0xe000 -    0x18fff libgcc_s.1.dylib 	/opt/local/lib/libgcc/libgcc_s.1.dylib
   0x26000 -    0x41fff libmozglue.dylib 	/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/libmozglue.dylib
   0x4c000 -    0x4efff libatomic.1.dylib 	/opt/local/lib/libgcc/libatomic.1.dylib
   0x8a000 -    0x97fff liblgpllibs.dylib 	/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/liblgpllibs.dylib
  0x405000 -   0x4b4fff libstdc++.6.dylib 	/opt/local/lib/libgcc/libstdc++.6.dylib
  0x531000 -   0x61ffff libxml2.2.dylib 	/usr/lib/libxml2.2.dylib
  0x6d2000 -   0x6e0fff libbrowsercomps.dylib 	/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/Resources/browser/components/libbrowsercomps.dylib
 0x1205000 -  0x1335fff libicuuc.56.dylib 	/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/libicuuc.56.dylib
 0x13c6000 -  0x157cfff libicui18n.56.dylib 	/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/libicui18n.56.dylib
 0x26b8000 -  0x2706fff libsoftokn3.dylib 	/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/libsoftokn3.dylib
 0x3008000 -  0x39f9fff libicudata.56.dylib 	/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/libicudata.56.dylib
 0x39fc000 -  0x3d3ffff libnss3.dylib 	/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/libnss3.dylib
 0x48ab000 -  0x48defff libnssdbm3.dylib 	/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/libnssdbm3.dylib
 0x7efb000 -  0xc529fff XUL 	/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/XUL
0x19905000 - 0x19965fff libnssckbi.dylib 	/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/libnssckbi.dylib
0x19c58000 - 0x19d0bfff libfreebl3.dylib 	/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/libfreebl3.dylib
0x8fe00000 - 0x8fe52fff dyld 46.16	/usr/lib/dyld
0x90000000 - 0x901bcfff libSystem.B.dylib 	/usr/lib/libSystem.B.dylib
0x90214000 - 0x90219fff libmathCommon.A.dylib 	/usr/lib/system/libmathCommon.A.dylib
0x9021b000 - 0x90268fff com.apple.CoreText 1.0.4 (???)	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework/Versions/A/CoreText
0x90293000 - 0x90344fff ATS 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
0x90373000 - 0x9072efff com.apple.CoreGraphics 1.258.85 (???)	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x907bb000 - 0x90895fff com.apple.CoreFoundation 6.4.11 (368.35)	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x908de000 - 0x908defff com.apple.CoreServices 10.4 (???)	/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x908e0000 - 0x909e2fff libicucore.A.dylib 	/usr/lib/libicucore.A.dylib
0x90a3c000 - 0x90ac0fff libobjc.A.dylib 	/usr/lib/libobjc.A.dylib
0x90aea000 - 0x90b5cfff com.apple.framework.IOKit 1.4 (???)	/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x90b72000 - 0x90b84fff libauto.dylib 	/usr/lib/libauto.dylib
0x90b8b000 - 0x90e62fff com.apple.CoreServices.CarbonCore 681.19 (681.21)	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x90ec8000 - 0x90f48fff com.apple.CoreServices.OSServices 4.1	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
0x90f92000 - 0x90fd4fff com.apple.CFNetwork 4.0 (129.24)	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x90fe9000 - 0x91001fff com.apple.WebServices 1.1.2 (1.1.0)	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServicesCore.framework/Versions/A/WebServicesCore
0x91011000 - 0x91092fff com.apple.SearchKit 1.0.8	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
0x910d8000 - 0x91101fff com.apple.Metadata 10.4.4 (121.36)	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
0x91112000 - 0x91120fff libz.1.dylib 	/usr/lib/libz.1.dylib
0x91123000 - 0x912defff com.apple.security 4.6 (29770)	/System/Library/Frameworks/Security.framework/Versions/A/Security
0x913dd000 - 0x913e6fff com.apple.DiskArbitration 2.1.2	/System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x913ed000 - 0x913f5fff libbsm.dylib 	/usr/lib/libbsm.dylib
0x913f9000 - 0x91421fff com.apple.SystemConfiguration 1.8.3	/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x91434000 - 0x9143ffff libgcc_s.1.dylib 	/usr/lib/libgcc_s.1.dylib
0x91444000 - 0x914bffff com.apple.audio.CoreAudio 3.0.5	/System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x914fc000 - 0x914fcfff com.apple.ApplicationServices 10.4 (???)	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
0x914fe000 - 0x91536fff com.apple.AE 312.2	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
0x91551000 - 0x91623fff com.apple.ColorSync 4.4.13	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
0x91676000 - 0x91707fff com.apple.print.framework.PrintCore 4.6 (177.13)	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
0x9174e000 - 0x91805fff com.apple.QD 3.10.28 (???)	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
0x91842000 - 0x918a0fff com.apple.HIServices 1.5.3 (???)	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
0x918cf000 - 0x918f0fff com.apple.LangAnalysis 1.6.1	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
0x91904000 - 0x91929fff com.apple.FindByContent 1.5	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/FindByContent.framework/Versions/A/FindByContent
0x9193c000 - 0x9197efff com.apple.LaunchServices 183.1	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
0x9199a000 - 0x919aefff com.apple.speech.synthesis.framework 3.3	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x919bc000 - 0x91a02fff com.apple.ImageIO.framework 1.5.9	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
0x91a19000 - 0x91ae0fff libcrypto.0.9.7.dylib 	/usr/lib/libcrypto.0.9.7.dylib
0x91b2e000 - 0x91b43fff libcups.2.dylib 	/usr/lib/libcups.2.dylib
0x91b48000 - 0x91b66fff libJPEG.dylib 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
0x91b6c000 - 0x91c23fff libJP2.dylib 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib
0x91c72000 - 0x91c76fff libGIF.dylib 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
0x91c78000 - 0x91ce2fff libRaw.dylib 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRaw.dylib
0x91ce7000 - 0x91d02fff libPng.dylib 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
0x91d07000 - 0x91d0afff libRadiance.dylib 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
0x91e0a000 - 0x91e48fff libTIFF.dylib 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
0x91e4f000 - 0x91e4ffff com.apple.Accelerate 1.2.2 (Accelerate 1.2.2)	/System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
0x91e51000 - 0x91f36fff com.apple.vImage 2.4	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
0x91f3e000 - 0x91f5dfff com.apple.Accelerate.vecLib 3.2.2 (vecLib 3.2.2)	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
0x91fc9000 - 0x92037fff libvMisc.dylib 	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
0x92042000 - 0x920d7fff libvDSP.dylib 	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
0x920f1000 - 0x92679fff libBLAS.dylib 	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
0x926ac000 - 0x929d7fff libLAPACK.dylib 	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
0x92a07000 - 0x92af5fff libiconv.2.dylib 	/usr/lib/libiconv.2.dylib
0x92af8000 - 0x92b80fff com.apple.DesktopServices 1.3.7	/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
0x92bc1000 - 0x92df4fff com.apple.Foundation 6.4.12 (567.42)	/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x92f27000 - 0x92f45fff libGL.dylib 	/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x92f50000 - 0x92faafff libGLU.dylib 	/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
0x92fc8000 - 0x92fc8fff com.apple.Carbon 10.4 (???)	/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
0x92fca000 - 0x92fdefff com.apple.ImageCapture 3.0	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
0x92ff6000 - 0x93006fff com.apple.speech.recognition.framework 3.4	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
0x93012000 - 0x93027fff com.apple.securityhi 2.0 (203)	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
0x93039000 - 0x930c0fff com.apple.ink.framework 101.2 (69)	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
0x930d4000 - 0x930dffff com.apple.help 1.0.3 (32)	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
0x930e9000 - 0x93117fff com.apple.openscripting 1.2.7 (???)	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
0x93131000 - 0x93140fff com.apple.print.framework.Print 5.2 (192.4)	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
0x9314c000 - 0x931b2fff com.apple.htmlrendering 1.1.2	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering
0x931e3000 - 0x93232fff com.apple.NavigationServices 3.4.4 (3.4.3)	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationServices.framework/Versions/A/NavigationServices
0x93260000 - 0x9327dfff com.apple.audio.SoundManager 3.9	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/CarbonSound
0x9328f000 - 0x9329cfff com.apple.CommonPanels 1.2.2 (73)	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
0x932a5000 - 0x935b3fff com.apple.HIToolbox 1.4.10 (???)	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
0x93703000 - 0x9370ffff com.apple.opengl 1.4.7	/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
0x93714000 - 0x93734fff com.apple.DirectoryService.Framework 3.3	/System/Library/Frameworks/DirectoryService.framework/Versions/A/DirectoryService
0x93787000 - 0x93787fff com.apple.Cocoa 6.4 (???)	/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
0x93789000 - 0x93dbcfff com.apple.AppKit 6.4.10 (824.48)	/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x94149000 - 0x941bbfff com.apple.CoreData 91 (92.1)	/System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
0x941f4000 - 0x942b9fff com.apple.audio.toolbox.AudioToolbox 1.4.7	/System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
0x9430c000 - 0x9430cfff com.apple.audio.units.AudioUnit 1.4	/System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
0x9430e000 - 0x944cefff com.apple.QuartzCore 1.4.12	/System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
0x94518000 - 0x94555fff libsqlite3.0.dylib 	/usr/lib/libsqlite3.0.dylib
0x9455d000 - 0x945adfff libGLImage.dylib 	/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
0x945b6000 - 0x945cffff com.apple.CoreVideo 1.4.2	/System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
0x94794000 - 0x947a1fff libCSync.A.dylib 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
0x947e7000 - 0x94800fff libRIP.A.dylib 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
0x94807000 - 0x94b3afff com.apple.QuickTime 7.6.4 (1327.73)	/System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime
0x94c22000 - 0x94c93fff libstdc++.6.dylib 	/usr/lib/libstdc++.6.dylib
0x94e09000 - 0x94f39fff com.apple.AddressBook.framework 4.0.6 (490)	/System/Library/Frameworks/AddressBook.framework/Versions/A/AddressBook
0x94fcc000 - 0x94fdbfff com.apple.DSObjCWrappers.Framework 1.1	/System/Library/PrivateFrameworks/DSObjCWrappers.framework/Versions/A/DSObjCWrappers
0x94fe3000 - 0x95010fff com.apple.LDAPFramework 1.4.1 (69.0.1)	/System/Library/Frameworks/LDAP.framework/Versions/A/LDAP
0x95017000 - 0x95027fff libsasl2.2.dylib 	/usr/lib/libsasl2.2.dylib
0x9502b000 - 0x9505afff libssl.0.9.7.dylib 	/usr/lib/libssl.0.9.7.dylib
0x9506a000 - 0x95087fff libresolv.9.dylib 	/usr/lib/libresolv.9.dylib
0x96547000 - 0x96549fff com.apple.ExceptionHandling 1.2 (???)	/System/Library/Frameworks/ExceptionHandling.framework/Versions/A/ExceptionHandling
@kencu
Copy link
Contributor Author

kencu commented Jan 16, 2018

I'm working at building gdb 7.6.8 104Fx patchlevel 4 but running into some hiccups with makeinfo.

[Edit: that makeinfo issue appears to have been fixed by disabling the newer makeinfo installed by MacPorts, and using the ancient one installed on 10.4.11 by default ]

@kencu
Copy link
Contributor Author

kencu commented Jan 16, 2018

I'm not totally sure I have gdb built correctly. But the parts that did build seem to work, so here's what it gave me:

gdb:

++DOCSHELL 0x1e08800 == 3 [pid = 25311] [id = 3]
++DOMWINDOW == 5 (0x1e05c00) [pid = 25311] [serial = 5] [outer = 0x0]
++DOCSHELL 0x1cc3800 == 4 [pid = 25311] [id = 4]
++DOMWINDOW == 6 (0x1ca7c00) [pid = 25311] [serial = 6] [outer = 0x0]
[25311] ###!!! ASSERTION: Double-initing a frame?: '!mContent', file /Users/cunningh/tenfourfox/layout/generic/nsFrame.cpp, line 513
[25311] ###!!! ASSERTION: Double-initing a frame?: '!mContent', file /Users/cunningh/tenfourfox/layout/generic/nsFrame.cpp, line 513
[25311] ###!!! ASSERTION: Double-initing a frame?: '!mContent', file /Users/cunningh/tenfourfox/layout/generic/nsFrame.cpp, line 513
[25311] ###!!! ASSERTION: Shouldn't happen: '!aNewFrame->GetNextSibling()', file /Users/cunningh/tenfourfox/layout/base/nsCSSFrameConstructor.cpp, line 1185

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0xa1b1c1f3
0x0a71eb58 in ?? ()
(gdb) bt
#0  0x0a71eb58 in ?? ()
#1  0x0a7f3ddc in ?? ()
#2  0x0a6b9bc4 in ?? ()
#3  0x0a6f35ac in ?? ()
#4  0x0a6f3bb4 in ?? ()
#5  0x0a710508 in ?? ()
#6  0x0a6f26b0 in ?? ()
#7  0x0a6fb62c in ?? ()
#8  0x0a6fc108 in ?? ()
#9  0x0a75402c in ?? ()
#10 0x0a29d848 in ?? ()
#11 0x0a2a93d8 in ?? ()
#12 0x0a2b0844 in ?? ()
#13 0x0a2b3010 in ?? ()
#14 0x0a2b3478 in ?? ()
#15 0x0810e800 in ?? ()
#16 0x080ad8e4 in ?? ()
#17 0x080cbde8 in ?? ()
#18 0x080cc228 in ?? ()
#19 0x07fba194 in ?? ()
#20 0x07fd49dc in ?? ()
#21 0x0801f788 in ?? ()
#22 0x0a3678c0 in ?? ()
#23 0x0a3c26b0 in ?? ()
#24 0x907df300 in __CFRunLoopDoSources0 ()
#25 0x907de830 in __CFRunLoopRun ()
#26 0x907de2b0 in CFRunLoopRunSpecific ()
#27 0x932adb20 in RunCurrentEventLoopInMode ()
#28 0x932ad1b4 in ReceiveNextEventCommon ()
#29 0x932ad020 in BlockUntilNextEventMatchingListInMode ()
#30 0x93791734 in _DPSNextEvent ()
#31 0x937913f8 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#32 0x0a3c21ec in ?? ()
#33 0x9378d93c in -[NSApplication run] ()
#34 0x0a3c720c in ?? ()
#35 0x0afa8010 in ?? ()
#36 0x0b02d1e0 in ?? ()
#37 0x0b02e454 in ?? ()
#38 0x0b02e800 in ?? ()
#39 0x00005f60 in main (argc=<value temporarily unavailable, due to optimizations>, argv=<value temporarily unavailable, due to optimizations>) at /Users/cunningh/tenfourfox/browser/app/nsBrowserApp.cpp:212
(gdb) 

@classilla
Copy link
Owner

Those terminal assertions are really scary. I've never seen them before. Can you rebuild without --enable-optimize and see what the backtrace looks like?

I don't know why gdb7 isn't reading the symbol table. If you use the provided binary, does that work at all?

@kencu
Copy link
Contributor Author

kencu commented Jan 17, 2018

I didn't at first realize that the gdb7 binary was in gdb768-104fx-3.tar.gz but not the other two gdb archives. I now see that archive is a bit bigger, and indeed, there it is. I'll go ahead and use that binary while I figure out later why building gdb is causing me trouble.

@classilla
Copy link
Owner

Odd, I thought I put the binary in -4 as well. Here it is.
gdb7.gz

@kencu
Copy link
Contributor Author

kencu commented Jan 17, 2018

sadly the linker is failing to link XUL now, with a

ld: in ../../js/src/libjs_static.a, can't map file, errno=12
collect2: error: ld returned 1 exit status

which I take to represent it is running out of memory / XUL is too big with no optimizations and all the debug information in it. I'm disabling parts of the build now and using some equivalent system libraries in the hopes of trimming it down.

@classilla
Copy link
Owner

That's a bit alarming on its own, but how about changing to --enable-optimize=-Og as a middle ground? Does that help at all?

@NapalmSauce
Copy link
Contributor

I have news: The TenFourFoxDebug I built today with gcc 6.4.0 ( I put --enable-optimize=-Og in the .mozconfig) has just finished. I intended to put my backtrace here but it didn't crash. It's working.. What now?

@classilla
Copy link
Owner

This means there's an optimization issue. Does compiling --enable-optimize=-O1 or -O2 also work?

@kencu
Copy link
Contributor Author

kencu commented Jan 18, 2018

I concur that building TenFourFoxDebug with gcc6 and with --enable-optimize=-Og first of all builds through to completion and secondly does not crash.

@NapalmSauce - I'm going to try the -O1 build next.

@NapalmSauce
Copy link
Contributor

Doing the -O2 one then. Depending on what works, I'll try narrowing it down to one of the flags the first optimization level to break executables expands into.

@kencu
Copy link
Contributor Author

kencu commented Jan 19, 2018

--enable-optimize=-O1 did not build a successful binary:

tigerg5:~/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS cunningh$ gdb7 ./firefox
GNU gdb 6.3.50-20050815 (Apple version gdb-768 TenFourFox patch 4) (Tue Aug 16 03:25:37 GMT 2016)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc-apple-darwin"...
warning: --arch option not supported in this gdb.
Reading symbols for shared libraries .......... done

(gdb) run
Starting program: /Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/firefox 
warning: Could not find malloc init callback function.  
Make sure malloc is initialized before calling functions.
Reading symbols for shared libraries ...................................................................++ done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries ...................gdb stack crawl at point of internal error:
[ 0 ] /opt/local/bin/gdb7 (find_partial_die+0x3fc) [0x16035c]
[ 1 ] /opt/local/bin/gdb7 (scan_partial_symbols+0x54) [0x161244]
[ 2 ] /opt/local/bin/gdb7 (dwarf2_build_psymtabs+0xd5c) [0x1622fc]
[ 3 ] /opt/local/bin/gdb7 (macho_symfile_read+0x110) [0x197d70]
[ 4 ] /opt/local/bin/gdb7 (syms_from_objfile+0x66c) [0xcc79c]
[ 5 ] /opt/local/bin/gdb7 (symbol_file_add_with_addrs_or_offsets_using_objfile+0x3ec) [0xce13c]
[ 6 ] /opt/local/bin/gdb7 (symbol_file_add_with_addrs_or_offsets_using_objfile+0x3ac) [0xce0fc]
[ 7 ] /opt/local/bin/gdb7 (symbol_file_add_bfd_helper+0x64) [0xcea04]
[ 8 ] /opt/local/bin/gdb7 (catch_errors+0xb0) [0x4e710]
[ 9 ] /opt/local/bin/gdb7 (symbol_file_add_bfd_safe+0xf8) [0xcace8]
[ 10 ] /opt/local/bin/gdb7 (dyld_load_symfile_internal+0x2d0) [0x191a80]
[ 11 ] /opt/local/bin/gdb7 (dyld_load_symfiles+0x1b0) [0x192030]
[ 12 ] /opt/local/bin/gdb7 (dyld_update_shlibs+0xbc) [0x1938dc]
/home/spectre/src/osx/gdb-768/src/gdb/dwarf2read.c:7457: internal-error: could not find partial DIE in cache

A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) n
. done
Reading symbols for shared libraries gdb stack crawl at point of internal error:
[ 0 ] /opt/local/bin/gdb7 (find_partial_die+0x3fc) [0x16035c]
[ 1 ] /opt/local/bin/gdb7 (scan_partial_symbols+0x54) [0x161244]
[ 2 ] /opt/local/bin/gdb7 (dwarf2_build_psymtabs+0xd5c) [0x1622fc]
[ 3 ] /opt/local/bin/gdb7 (macho_symfile_read+0x110) [0x197d70]
[ 4 ] /opt/local/bin/gdb7 (syms_from_objfile+0x66c) [0xcc79c]
[ 5 ] /opt/local/bin/gdb7 (symbol_file_add_with_addrs_or_offsets_using_objfile+0x3ec) [0xce13c]
[ 6 ] /opt/local/bin/gdb7 (symbol_file_add_with_addrs_or_offsets_using_objfile+0x3ac) [0xce0fc]
[ 7 ] /opt/local/bin/gdb7 (symbol_file_add_bfd_helper+0x64) [0xcea04]
[ 8 ] /opt/local/bin/gdb7 (catch_errors+0xb0) [0x4e710]
[ 9 ] /opt/local/bin/gdb7 (symbol_file_add_bfd_safe+0xf8) [0xcace8]
[ 10 ] /opt/local/bin/gdb7 (dyld_load_symfile_internal+0x2d0) [0x191a80]
[ 11 ] /opt/local/bin/gdb7 (dyld_load_symfiles+0x1b0) [0x192030]
[ 12 ] /opt/local/bin/gdb7 (dyld_update_shlibs+0xbc) [0x1938dc]
/home/spectre/src/osx/gdb-768/src/gdb/dwarf2read.c:7457: internal-error: could not find partial DIE in cache

A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) n
.. done
JavaScript warning: resource://gre/modules/TelemetryStopwatch.jsm, line 39: unreachable code after return statement
JavaScript warning: resource://gre/modules/TelemetryStopwatch.jsm, line 78: unreachable code after return statement
JavaScript warning: resource://gre/modules/TelemetryStopwatch.jsm, line 107: unreachable code after return statement
JavaScript warning: resource://gre/modules/TelemetryStopwatch.jsm, line 136: unreachable code after return statement
Reading symbols for shared libraries gdb stack crawl at point of internal error:
[ 0 ] /opt/local/bin/gdb7 (find_partial_die+0x3fc) [0x16035c]
[ 1 ] /opt/local/bin/gdb7 (scan_partial_symbols+0x54) [0x161244]
[ 2 ] /opt/local/bin/gdb7 (dwarf2_build_psymtabs+0xd5c) [0x1622fc]
[ 3 ] /opt/local/bin/gdb7 (macho_symfile_read+0x110) [0x197d70]
[ 4 ] /opt/local/bin/gdb7 (syms_from_objfile+0x66c) [0xcc79c]
[ 5 ] /opt/local/bin/gdb7 (symbol_file_add_with_addrs_or_offsets_using_objfile+0x3ec) [0xce13c]
[ 6 ] /opt/local/bin/gdb7 (symbol_file_add_with_addrs_or_offsets_using_objfile+0x3ac) [0xce0fc]
[ 7 ] /opt/local/bin/gdb7 (symbol_file_add_bfd_helper+0x64) [0xcea04]
[ 8 ] /opt/local/bin/gdb7 (catch_errors+0xb0) [0x4e710]
[ 9 ] /opt/local/bin/gdb7 (symbol_file_add_bfd_safe+0xf8) [0xcace8]
[ 10 ] /opt/local/bin/gdb7 (dyld_load_symfile_internal+0x2d0) [0x191a80]
[ 11 ] /opt/local/bin/gdb7 (dyld_load_symfiles+0x1b0) [0x192030]
[ 12 ] /opt/local/bin/gdb7 (dyld_update_shlibs+0xbc) [0x1938dc]
/home/spectre/src/osx/gdb-768/src/gdb/dwarf2read.c:7457: internal-error: could not find partial DIE in cache

A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) n
.. done
Reading symbols for shared libraries gdb stack crawl at point of internal error:
[ 0 ] /opt/local/bin/gdb7 (find_partial_die+0x3fc) [0x16035c]
[ 1 ] /opt/local/bin/gdb7 (scan_partial_symbols+0x54) [0x161244]
[ 2 ] /opt/local/bin/gdb7 (dwarf2_build_psymtabs+0xd5c) [0x1622fc]
[ 3 ] /opt/local/bin/gdb7 (macho_symfile_read+0x110) [0x197d70]
[ 4 ] /opt/local/bin/gdb7 (syms_from_objfile+0x66c) [0xcc79c]
[ 5 ] /opt/local/bin/gdb7 (symbol_file_add_with_addrs_or_offsets_using_objfile+0x3ec) [0xce13c]
[ 6 ] /opt/local/bin/gdb7 (symbol_file_add_with_addrs_or_offsets_using_objfile+0x3ac) [0xce0fc]
[ 7 ] /opt/local/bin/gdb7 (symbol_file_add_bfd_helper+0x64) [0xcea04]
[ 8 ] /opt/local/bin/gdb7 (catch_errors+0xb0) [0x4e710]
[ 9 ] /opt/local/bin/gdb7 (symbol_file_add_bfd_safe+0xf8) [0xcace8]
[ 10 ] /opt/local/bin/gdb7 (dyld_load_symfile_internal+0x2d0) [0x191a80]
[ 11 ] /opt/local/bin/gdb7 (dyld_load_symfiles+0x1b0) [0x192030]
[ 12 ] /opt/local/bin/gdb7 (dyld_update_shlibs+0xbc) [0x1938dc]
/home/spectre/src/osx/gdb-768/src/gdb/dwarf2read.c:7457: internal-error: could not find partial DIE in cache

A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) n
.. done
Reading symbols for shared libraries gdb stack crawl at point of internal error:
[ 0 ] /opt/local/bin/gdb7 (find_partial_die+0x3fc) [0x16035c]
[ 1 ] /opt/local/bin/gdb7 (scan_partial_symbols+0x54) [0x161244]
[ 2 ] /opt/local/bin/gdb7 (dwarf2_build_psymtabs+0xd5c) [0x1622fc]
[ 3 ] /opt/local/bin/gdb7 (macho_symfile_read+0x110) [0x197d70]
[ 4 ] /opt/local/bin/gdb7 (syms_from_objfile+0x66c) [0xcc79c]
[ 5 ] /opt/local/bin/gdb7 (symbol_file_add_with_addrs_or_offsets_using_objfile+0x3ec) [0xce13c]
[ 6 ] /opt/local/bin/gdb7 (symbol_file_add_with_addrs_or_offsets_using_objfile+0x3ac) [0xce0fc]
[ 7 ] /opt/local/bin/gdb7 (symbol_file_add_bfd_helper+0x64) [0xcea04]
[ 8 ] /opt/local/bin/gdb7 (catch_errors+0xb0) [0x4e710]
[ 9 ] /opt/local/bin/gdb7 (symbol_file_add_bfd_safe+0xf8) [0xcace8]
[ 10 ] /opt/local/bin/gdb7 (dyld_load_symfile_internal+0x2d0) [0x191a80]
[ 11 ] /opt/local/bin/gdb7 (dyld_load_symfiles+0x1b0) [0x192030]
[ 12 ] /opt/local/bin/gdb7 (dyld_update_shlibs+0xbc) [0x1938dc]
/home/spectre/src/osx/gdb-768/src/gdb/dwarf2read.c:7457: internal-error: could not find partial DIE in cache

A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) n
.. done
Reading symbols for shared libraries gdb stack crawl at point of internal error:
[ 0 ] /opt/local/bin/gdb7 (find_partial_die+0x3fc) [0x16035c]
[ 1 ] /opt/local/bin/gdb7 (scan_partial_symbols+0x54) [0x161244]
[ 2 ] /opt/local/bin/gdb7 (dwarf2_build_psymtabs+0xd5c) [0x1622fc]
[ 3 ] /opt/local/bin/gdb7 (macho_symfile_read+0x110) [0x197d70]
[ 4 ] /opt/local/bin/gdb7 (syms_from_objfile+0x66c) [0xcc79c]
[ 5 ] /opt/local/bin/gdb7 (symbol_file_add_with_addrs_or_offsets_using_objfile+0x3ec) [0xce13c]
[ 6 ] /opt/local/bin/gdb7 (symbol_file_add_with_addrs_or_offsets_using_objfile+0x3ac) [0xce0fc]
[ 7 ] /opt/local/bin/gdb7 (symbol_file_add_bfd_helper+0x64) [0xcea04]
[ 8 ] /opt/local/bin/gdb7 (catch_errors+0xb0) [0x4e710]
[ 9 ] /opt/local/bin/gdb7 (symbol_file_add_bfd_safe+0xf8) [0xcace8]
[ 10 ] /opt/local/bin/gdb7 (dyld_load_symfile_internal+0x2d0) [0x191a80]
[ 11 ] /opt/local/bin/gdb7 (dyld_load_symfiles+0x1b0) [0x192030]
[ 12 ] /opt/local/bin/gdb7 (dyld_update_shlibs+0xbc) [0x1938dc]
/home/spectre/src/osx/gdb-768/src/gdb/dwarf2read.c:7457: internal-error: could not find partial DIE in cache

A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) n
.. done
[7062] ###!!! ASSERTION: Deprecated, use NewChannel2 providing loadInfo arguments!: 'false', file /Users/cunningh/tenfourfox/netwerk/base/nsIOService.cpp, line 936
[7062] ###!!! ASSERTION: Please pass security info when creating a channel: 'loadInfo', file /Users/cunningh/tenfourfox/netwerk/base/nsIOService.cpp, line 862
JavaScript warning: resource://gre/modules/TelemetryController.jsm, line 660: unreachable code after return statement
JavaScript warning: resource://gre/modules/TelemetryReportingPolicy.jsm, line 342: unreachable code after return statement
JavaScript warning: resource://gre/modules/TelemetrySend.jsm, line 1035: unreachable code after return statement
++DOCSHELL 0x1d12800 == 1 [pid = 7062] [id = 1]
++DOMWINDOW == 1 (0x1d0f000) [pid = 7062] [serial = 1] [outer = 0x0]
Reading symbols for shared libraries gdb stack crawl at point of internal error:
[ 0 ] /opt/local/bin/gdb7 (find_partial_die+0x3fc) [0x16035c]
[ 1 ] /opt/local/bin/gdb7 (scan_partial_symbols+0x54) [0x161244]
[ 2 ] /opt/local/bin/gdb7 (dwarf2_build_psymtabs+0xd5c) [0x1622fc]
[ 3 ] /opt/local/bin/gdb7 (macho_symfile_read+0x110) [0x197d70]
[ 4 ] /opt/local/bin/gdb7 (syms_from_objfile+0x66c) [0xcc79c]
[ 5 ] /opt/local/bin/gdb7 (symbol_file_add_with_addrs_or_offsets_using_objfile+0x3ec) [0xce13c]
[ 6 ] /opt/local/bin/gdb7 (symbol_file_add_with_addrs_or_offsets_using_objfile+0x3ac) [0xce0fc]
[ 7 ] /opt/local/bin/gdb7 (symbol_file_add_bfd_helper+0x64) [0xcea04]
[ 8 ] /opt/local/bin/gdb7 (catch_errors+0xb0) [0x4e710]
[ 9 ] /opt/local/bin/gdb7 (symbol_file_add_bfd_safe+0xf8) [0xcace8]
[ 10 ] /opt/local/bin/gdb7 (dyld_load_symfile_internal+0x2d0) [0x191a80]
[ 11 ] /opt/local/bin/gdb7 (dyld_load_symfiles+0x1b0) [0x192030]
[ 12 ] /opt/local/bin/gdb7 (dyld_update_shlibs+0xbc) [0x1938dc]
/home/spectre/src/osx/gdb-768/src/gdb/dwarf2read.c:7457: internal-error: could not find partial DIE in cache

A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) n
.. done
Reading symbols for shared libraries gdb stack crawl at point of internal error:
[ 0 ] /opt/local/bin/gdb7 (find_partial_die+0x3fc) [0x16035c]
[ 1 ] /opt/local/bin/gdb7 (scan_partial_symbols+0x54) [0x161244]
[ 2 ] /opt/local/bin/gdb7 (dwarf2_build_psymtabs+0xd5c) [0x1622fc]
[ 3 ] /opt/local/bin/gdb7 (macho_symfile_read+0x110) [0x197d70]
[ 4 ] /opt/local/bin/gdb7 (syms_from_objfile+0x66c) [0xcc79c]
[ 5 ] /opt/local/bin/gdb7 (symbol_file_add_with_addrs_or_offsets_using_objfile+0x3ec) [0xce13c]
[ 6 ] /opt/local/bin/gdb7 (symbol_file_add_with_addrs_or_offsets_using_objfile+0x3ac) [0xce0fc]
[ 7 ] /opt/local/bin/gdb7 (symbol_file_add_bfd_helper+0x64) [0xcea04]
[ 8 ] /opt/local/bin/gdb7 (catch_errors+0xb0) [0x4e710]
[ 9 ] /opt/local/bin/gdb7 (symbol_file_add_bfd_safe+0xf8) [0xcace8]
[ 10 ] /opt/local/bin/gdb7 (dyld_load_symfile_internal+0x2d0) [0x191a80]
[ 11 ] /opt/local/bin/gdb7 (dyld_load_symfiles+0x1b0) [0x192030]
[ 12 ] /opt/local/bin/gdb7 (dyld_update_shlibs+0xbc) [0x1938dc]
/home/spectre/src/osx/gdb-768/src/gdb/dwarf2read.c:7457: internal-error: could not find partial DIE in cache

A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) n
.. done
Loading ColorSync profile: /Library/ColorSync/Profiles/Displays/Apple Cinema Display-42485F0.icc
Size of profile: 844
++DOMWINDOW == 2 (0x1ccce00) [pid = 7062] [serial = 2] [outer = 0x1d0f000]
JavaScript warning: resource://gre/modules/UITelemetry.jsm, line 30: unreachable code after return statement
JavaScript warning: resource://gre/modules/UITelemetry.jsm, line 49: unreachable code after return statement
++DOCSHELL 0x1ecc000 == 2 [pid = 7062] [id = 2]
++DOMWINDOW == 3 (0x1ed3a00) [pid = 7062] [serial = 3] [outer = 0x0]
++DOMWINDOW == 4 (0x1ed4200) [pid = 7062] [serial = 4] [outer = 0x1ed3a00]
[7062] WARNING: Loaded script chrome://global/content/printUtils.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[7062] WARNING: Loaded script chrome://global/content/viewZoomOverlay.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[7062] WARNING: Loaded script chrome://browser/content/places/browserPlacesViews.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[7062] WARNING: Loaded script chrome://browser/content/browser.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[7062] WARNING: Loaded script chrome://browser/content/downloads/downloads.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[7062] WARNING: Loaded script chrome://browser/content/downloads/indicator.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[7062] WARNING: Loaded script chrome://browser/content/customizableui/panelUI.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[7062] WARNING: Loaded script chrome://global/content/viewSourceUtils.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[7062] WARNING: Loaded script chrome://browser/content/browser-addons.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[7062] WARNING: Loaded script chrome://browser/content/browser-ctrlTab.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[7062] WARNING: Loaded script chrome://browser/content/browser-devedition.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[7062] WARNING: Loaded script chrome://browser/content/browser-eme.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[7062] WARNING: Loaded script chrome://browser/content/browser-feeds.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[7062] WARNING: Loaded script chrome://browser/content/browser-fullScreen.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[7062] WARNING: Loaded script chrome://browser/content/browser-fullZoom.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[7062] WARNING: Loaded script chrome://browser/content/browser-gestureSupport.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[7062] WARNING: Loaded script chrome://browser/content/browser-places.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
JavaScript warning: chrome://browser/content/browser-plugins.js, line 219: unreachable code after return statement
JavaScript warning: chrome://browser/content/browser-plugins.js, line 219: unreachable code after return statement
[7062] WARNING: Loaded script chrome://browser/content/browser-plugins.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[7062] WARNING: Loaded script chrome://browser/content/browser-safebrowsing.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[7062] WARNING: Loaded script chrome://browser/content/browser-sidebar.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
JavaScript error: file:///Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/Resources/browser/components/nsBrowserGlue.js, line 266: TypeError: browserEnum.getNext(...).gBrowser is null
[7062] WARNING: Loaded script chrome://browser/content/browser-social.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[7062] WARNING: Loaded script chrome://browser/content/browser-syncui.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[7062] WARNING: Loaded script chrome://browser/content/browser-tabsintitlebar.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[7062] WARNING: Loaded script chrome://browser/content/browser-thumbnails.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[7062] WARNING: Loaded script chrome://browser/content/browser-trackingprotection.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[7062] WARNING: Loaded script chrome://browser/content/browser-fxaccounts.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
++DOCSHELL 0x18f2400 == 3 [pid = 7062] [id = 3]
++DOMWINDOW == 5 (0x18b7000) [pid = 7062] [serial = 5] [outer = 0x0]
++DOCSHELL 0x18b7400 == 4 [pid = 7062] [id = 4]
++DOMWINDOW == 6 (0x18b7800) [pid = 7062] [serial = 6] [outer = 0x0]
[7062] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80040111: file /Users/cunningh/tenfourfox/dom/base/nsFrameLoader.cpp, line 272
++DOCSHELL 0x1eb9c800 == 5 [pid = 7062] [id = 5]
++DOMWINDOW == 7 (0x1ebb0c00) [pid = 7062] [serial = 7] [outer = 0x0]
[7062] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80040111: file /Users/cunningh/tenfourfox/dom/base/nsFrameLoader.cpp, line 272
++DOMWINDOW == 8 (0x1ebf7a00) [pid = 7062] [serial = 8] [outer = 0x1ebb0c00]
nsStandaloneNativeMenu::Init
nsMenuX::MenuConstruct called for  = 542492096 
Reading symbols for shared libraries gdb stack crawl at point of internal error:
[ 0 ] /opt/local/bin/gdb7 (find_partial_die+0x3fc) [0x16035c]
[ 1 ] /opt/local/bin/gdb7 (scan_partial_symbols+0x54) [0x161244]
[ 2 ] /opt/local/bin/gdb7 (dwarf2_build_psymtabs+0xd5c) [0x1622fc]
[ 3 ] /opt/local/bin/gdb7 (macho_symfile_read+0x110) [0x197d70]
[ 4 ] /opt/local/bin/gdb7 (syms_from_objfile+0x66c) [0xcc79c]
[ 5 ] /opt/local/bin/gdb7 (symbol_file_add_with_addrs_or_offsets_using_objfile+0x3ec) [0xce13c]
[ 6 ] /opt/local/bin/gdb7 (symbol_file_add_with_addrs_or_offsets_using_objfile+0x3ac) [0xce0fc]
[ 7 ] /opt/local/bin/gdb7 (symbol_file_add_bfd_helper+0x64) [0xcea04]
[ 8 ] /opt/local/bin/gdb7 (catch_errors+0xb0) [0x4e710]
[ 9 ] /opt/local/bin/gdb7 (symbol_file_add_bfd_safe+0xf8) [0xcace8]
[ 10 ] /opt/local/bin/gdb7 (dyld_load_symfile_internal+0x2d0) [0x191a80]
[ 11 ] /opt/local/bin/gdb7 (dyld_load_symfiles+0x1b0) [0x192030]
[ 12 ] /opt/local/bin/gdb7 (dyld_update_shlibs+0xbc) [0x1938dc]
/home/spectre/src/osx/gdb-768/src/gdb/dwarf2read.c:7457: internal-error: could not find partial DIE in cache

A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) n
.. done
nsMenuX::MenuConstruct called for File = 529862128 
nsMenuX::MenuConstruct called for New Container Tab = 521486224 
nsMenuX::MenuConstruct called for Edit = 500244816 
nsMenuX::MenuConstruct called for View = 542513664 
nsMenuX::MenuConstruct called for Toolbars = 542518928 
nsMenuX::MenuConstruct called for Sidebar = 542521744 
nsMenuX::MenuConstruct called for Zoom = 542525504 
nsMenuX::MenuConstruct called for Page Style = 542526304 
nsMenuX::MenuConstruct called for Text Encoding = 542532400 
nsMenuX::MenuConstruct called for History = 542539296 
nsMenuX::MenuConstruct called for Recently Closed Tabs = 542545120 
nsMenuX::MenuConstruct called for Recently Closed Windows = 542546560 
nsMenuX::MenuConstruct called for Bookmarks = 542539344 
nsMenuX::MenuConstruct called for Subscribe to This Page = 542554720 
nsMenuX::MenuConstruct called for Bookmarks Toolbar = 542557616 
nsMenuX::MenuConstruct called for Tools = 542544240 
nsMenuX::MenuConstruct called for Web Developer = 542567120 
nsMenuX::MenuConstruct called for Mirror Tab = 542577760 
nsMenuX::MenuConstruct called for Window = 542560336 
nsMenuX::MenuConstruct called for Help = 529874112 
Size of LucidaGrande font table directory: 380
Assertion failure: mRawPtr != 0 (You can't dereference a NULL nsCOMPtr with operator->().), at ../../dist/include/nsCOMPtr.h:734
#01: ffi_prep_closure[/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/XUL +0x42e2d2c]
#02: std::_Rb_tree_node<unsigned long long>* std::_Rb_tree<unsigned long long, unsigned long long, std::_Identity<unsigned long long>, std::less<unsigned long long>, std::allocator<unsigned long long> >::_M_copy<std::_Rb_tree<unsigned long long, unsigned long [/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/XUL +0x23a3d6c]
#03: imgLoader::SupportImageWithMimeType(char const*, AcceptedMimeTypes)[/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/XUL +0x108eab8]
#04: std::_Rb_tree_node<unsigned long long>* std::_Rb_tree<unsigned long long, unsigned long long, std::_Identity<unsigned long long>, std::less<unsigned long long>, std::allocator<unsigned long long> >::_M_copy<std::_Rb_tree<unsigned long long, unsigned long [/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/XUL +0x23a3cac]
#05: imgLoader::SupportImageWithMimeType(char const*, AcceptedMimeTypes)[/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/XUL +0x1094ffc]
#06: std::_Rb_tree_node<unsigned long long>* std::_Rb_tree<unsigned long long, unsigned long long, std::_Identity<unsigned long long>, std::less<unsigned long long>, std::allocator<unsigned long long> >::_M_copy<std::_Rb_tree<unsigned long long, unsigned long [/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/XUL +0x23a3db0]
#07: NS_NewBoxFrame(nsIPresShell*, nsStyleContext*)[/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/XUL +0x2baebe4]
#08: NS_NewBoxFrame(nsIPresShell*, nsStyleContext*)[/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/XUL +0x2bb0564]
#09: imgLoader::SupportImageWithMimeType(char const*, AcceptedMimeTypes)[/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/XUL +0xe73f70]
#10: imgLoader::SupportImageWithMimeType(char const*, AcceptedMimeTypes)[/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/XUL +0xe76598]
#11: imgLoader::SupportImageWithMimeType(char const*, AcceptedMimeTypes)[/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/XUL +0xe8754c]
#12: imgLoader::SupportImageWithMimeType(char const*, AcceptedMimeTypes)[/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/XUL +0xe760ac]
#13: imgLoader::SupportImageWithMimeType(char const*, AcceptedMimeTypes)[/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/XUL +0xe76354]
#14: imgLoader::SupportImageWithMimeType(char const*, AcceptedMimeTypes)[/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/XUL +0xe5b178]
#15: mozilla_dump_image[/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/XUL +0xe46f98]
#16: mozilla::LoadInfo::GetRedirectChain(JSContext*, JS::MutableHandle<JS::Value>)[/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/XUL +0x18df90]
#17: mozilla::LoadInfo::GetRedirectChain(JSContext*, JS::MutableHandle<JS::Value>)[/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/XUL +0x1ab9f8]
#18: mozilla::LoadInfo::GetRedirectChain(JSContext*, JS::MutableHandle<JS::Value>)[/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/XUL +0x1b982c]
#19: NS_NewLocalFile[/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/XUL +0xb8198]
#20: XRE_AddJarManifestLocation[/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/XUL +0xd5750]
#21: void std::vector<unsigned long, std::allocator<unsigned long> >::_M_emplace_back_aux<unsigned long>(unsigned long&&)[/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/XUL +0x1147cc]
#22: std::_Rb_tree_node<unsigned long long>* std::_Rb_tree<unsigned long long, unsigned long long, std::_Identity<unsigned long long>, std::less<unsigned long long>, std::allocator<unsigned long long> >::_M_copy<std::_Rb_tree<unsigned long long, unsigned long [/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/XUL +0x24eba4c]
#23: std::_Rb_tree_node<unsigned long long>* std::_Rb_tree<unsigned long long, unsigned long long, std::_Identity<unsigned long long>, std::less<unsigned long long>, std::allocator<unsigned long long> >::_M_copy<std::_Rb_tree<unsigned long long, unsigned long [/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/XUL +0x2543454]
#24: CFRunLoopRunSpecific[/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation +0x24300]
#25: CFRunLoopRunSpecific[/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation +0x23830]
#26: CFRunLoopRunSpecific[/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation +0x232b0]
#27: GetMainEventQueue[/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox +0x8b20]
#28: BlockUntilNextEventMatchingListInMode[/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox +0x81b4]
#29: BlockUntilNextEventMatchingListInMode[/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox +0x8020]
#30: _DPSNextEvent[/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit +0x8734]
#31: _runningOnAppKitThread[/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit +0x83f8]
#32: std::_Rb_tree_node<unsigned long long>* std::_Rb_tree<unsigned long long, unsigned long long, std::_Identity<unsigned long long>, std::less<unsigned long long>, std::allocator<unsigned long long> >::_M_copy<std::_Rb_tree<unsigned long long, unsigned long [/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/XUL +0x2543018]
#33: _NXIsHiddenOnLaunch[/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit +0x493c]
#34: std::_Rb_tree_node<unsigned long long>* std::_Rb_tree<unsigned long long, unsigned long long, std::_Identity<unsigned long long>, std::less<unsigned long long>, std::allocator<unsigned long long> >::_M_copy<std::_Rb_tree<unsigned long long, unsigned long [/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/XUL +0x2550b94]
#35: void std::vector<int, std::allocator<int> >::_M_insert_aux<int const&>(__gnu_cxx::__normal_iterator<int*, std::vector<int, std::allocator<int> > >, int const&)[/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/XUL +0x30b178c]
#36: XRE_InitCommandLine[/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/XUL +0x312f5b4]
#37: XRE_InitCommandLine[/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/XUL +0x3130ca0]
#38: XRE_main[/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/XUL +0x3130f38]
#39: tart[/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/firefox +0x3fc4]
#40: tart[/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/firefox +0xcc0]
#41: tart[/Users/cunningh/tenfourfox/obj-ff-dbg/dist/TenFourFoxDebug.app/Contents/MacOS/firefox +0x9c4]

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x0a49ed74 in ?? ()
(gdb) bt
#0  0x0a49ed74 in ?? ()
#1  0x0a49ed6c in ?? ()
#2  0x09189ab8 in ?? ()
#3  0x0a49ecac in ?? ()
#4  0x0918fffc in ?? ()
#5  0x0a49edb0 in ?? ()
#6  0x0aca9be4 in ?? ()
#7  0x0acab564 in ?? ()
#8  0x08f6ef70 in ?? ()
#9  0x08f71598 in ?? ()
#10 0x08f8254c in ?? ()
#11 0x08f710ac in ?? ()
#12 0x08f71354 in ?? ()
#13 0x08f56178 in ?? ()
#14 0x08f41f98 in ?? ()
#15 0x08288f90 in ?? ()
#16 0x082a69f8 in ?? ()
#17 0x082b482c in ?? ()
#18 0x081b3198 in ?? ()
#19 0x081d0750 in ?? ()
#20 0x0820f7cc in ?? ()
#21 0x0a5e6a4c in ?? ()
#22 0x0a63e454 in ?? ()
#23 0x907df300 in __CFRunLoopDoSources0 ()
#24 0x907de830 in __CFRunLoopRun ()
#25 0x907de2b0 in CFRunLoopRunSpecific ()
#26 0x932adb20 in RunCurrentEventLoopInMode ()
#27 0x932ad1b4 in ReceiveNextEventCommon ()
#28 0x932ad020 in BlockUntilNextEventMatchingListInMode ()
#29 0x93791734 in _DPSNextEvent ()
#30 0x937913f8 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#31 0x0a63e018 in ?? ()
#32 0x9378d93c in -[NSApplication run] ()
#33 0x0a64bb94 in ?? ()
#34 0x0b1ac78c in ?? ()
#35 0x0b22a5b4 in ?? ()
#36 0x0b22bca0 in ?? ()
#37 0x0b22bf38 in ?? ()
#38 0x00004fc4 in main (argc=<value temporarily unavailable, due to optimizations>, argv=<value temporarily unavailable, due to optimizations>) at /Users/cunningh/tenfourfox/browser/app/nsBrowserApp.cpp:212

@NapalmSauce
Copy link
Contributor

Needless to say, -O2 also crashes.

I noticed there are alot DIE errors in gdb patchlevel 4. My backtrace is the same as @kencu with more complains about internal DIE errors.

However, something's really odd: if I ./104fx_copy.sh and debug the resulting standalone executable, I get a proper backtrace:

Last login: Thu Jan 18 21:09:08 on ttyp0
Welcome to Darwin!
PMG5Raph:~ Raph$ cd /tenfourfoxdebug.app/contents/macos
PMG5Raph:/tenfourfoxdebug.app/contents/macos Raph$ gdb7 firefoxGNU gdb 6.3.50-20050815 (Apple version gdb-768 TenFourFox patch 4) (Sun Dec 31 06:17:39 GMT 2017)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc-apple-darwin"...
warning: --arch option not supported in this gdb.
Reading symbols for shared libraries .......... done

(gdb) run
Starting program: /TenFourFoxDebug.app/Contents/MacOS/firefox 
warning: Could not find malloc init callback function.  
Make sure malloc is initialized before calling functions.
Reading symbols for shared libraries ...................................................................++ done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries ...................warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
. done
Reading symbols for shared libraries . done
JavaScript warning: resource://gre/modules/TelemetryStopwatch.jsm, line 39: unreachable code after return statement
JavaScript warning: resource://gre/modules/TelemetryStopwatch.jsm, line 78: unreachable code after return statement
JavaScript warning: resource://gre/modules/TelemetryStopwatch.jsm, line 107: unreachable code after return statement
JavaScript warning: resource://gre/modules/TelemetryStopwatch.jsm, line 136: unreachable code after return statement
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
JavaScript warning: resource://gre/modules/TelemetryController.jsm, line 660: unreachable code after return statement
JavaScript warning: resource://gre/modules/TelemetryReportingPolicy.jsm, line 342: unreachable code after return statement
JavaScript warning: resource://gre/modules/TelemetrySend.jsm, line 1035: unreachable code after return statement
++DOCSHELL 0x1b48c00 == 1 [pid = 8932] [id = 1]
++DOMWINDOW == 1 (0x1b48400) [pid = 8932] [serial = 1] [outer = 0x0]
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Loading ColorSync profile: /Library/ColorSync/Profiles/Displays/SDM-HS73-76489C00.icc
Size of profile: 832
++DOMWINDOW == 2 (0x1cf0000) [pid = 8932] [serial = 2] [outer = 0x1b48400]
2018-01-18 21:11:59.208 firefox[8932] *** _NSAutoreleaseNoPool(): Object 0x50da10 of class NSCFNumber autoreleased with no pool in place - just leaking
JavaScript warning: resource://gre/modules/UITelemetry.jsm, line 30: unreachable code after return statement
JavaScript warning: resource://gre/modules/UITelemetry.jsm, line 49: unreachable code after return statement
++DOCSHELL 0x1ebce00 == 2 [pid = 8932] [id = 2]
++DOMWINDOW == 3 (0x1ebd800) [pid = 8932] [serial = 3] [outer = 0x0]
++DOMWINDOW == 4 (0x1ec4000) [pid = 8932] [serial = 4] [outer = 0x1ebd800]
[8932] WARNING: Loaded script chrome://global/content/printUtils.js twice (bug 392650): file /Volumes/SrcDrv/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[8932] WARNING: Loaded script chrome://global/content/viewZoomOverlay.js twice (bug 392650): file /Volumes/SrcDrv/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[8932] WARNING: Loaded script chrome://browser/content/places/browserPlacesViews.js twice (bug 392650): file /Volumes/SrcDrv/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[8932] WARNING: Loaded script chrome://browser/content/browser.js twice (bug 392650): file /Volumes/SrcDrv/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[8932] WARNING: Loaded script chrome://browser/content/downloads/downloads.js twice (bug 392650): file /Volumes/SrcDrv/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[8932] WARNING: Loaded script chrome://browser/content/downloads/indicator.js twice (bug 392650): file /Volumes/SrcDrv/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[8932] WARNING: Loaded script chrome://browser/content/customizableui/panelUI.js twice (bug 392650): file /Volumes/SrcDrv/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[8932] WARNING: Loaded script chrome://global/content/viewSourceUtils.js twice (bug 392650): file /Volumes/SrcDrv/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[8932] WARNING: Loaded script chrome://browser/content/browser-addons.js twice (bug 392650): file /Volumes/SrcDrv/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[8932] WARNING: Loaded script chrome://browser/content/browser-ctrlTab.js twice (bug 392650): file /Volumes/SrcDrv/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[8932] WARNING: Loaded script chrome://browser/content/browser-customization.js twice (bug 392650): file /Volumes/SrcDrv/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[8932] WARNING: Loaded script chrome://browser/content/browser-devedition.js twice (bug 392650): file /Volumes/SrcDrv/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[8932] WARNING: Loaded script chrome://browser/content/browser-eme.js twice (bug 392650): file /Volumes/SrcDrv/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[8932] WARNING: Loaded script chrome://browser/content/browser-feeds.js twice (bug 392650): file /Volumes/SrcDrv/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[8932] WARNING: Loaded script chrome://browser/content/browser-fullScreen.js twice (bug 392650): file /Volumes/SrcDrv/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[8932] WARNING: Loaded script chrome://browser/content/browser-fullZoom.js twice (bug 392650): file /Volumes/SrcDrv/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[8932] WARNING: Loaded script chrome://browser/content/browser-gestureSupport.js twice (bug 392650): file /Volumes/SrcDrv/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[8932] WARNING: Loaded script chrome://browser/content/browser-places.js twice (bug 392650): file /Volumes/SrcDrv/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
JavaScript warning: chrome://browser/content/browser-plugins.js, line 219: unreachable code after return statement
JavaScript warning: chrome://browser/content/browser-plugins.js, line 219: unreachable code after return statement
[8932] WARNING: Loaded script chrome://browser/content/browser-plugins.js twice (bug 392650): file /Volumes/SrcDrv/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[8932] WARNING: Loaded script chrome://browser/content/browser-sidebar.js twice (bug 392650): file /Volumes/SrcDrv/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[8932] WARNING: Loaded script chrome://browser/content/browser-social.js twice (bug 392650): file /Volumes/SrcDrv/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[8932] WARNING: Loaded script chrome://browser/content/browser-syncui.js twice (bug 392650): file /Volumes/SrcDrv/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[8932] WARNING: Loaded script chrome://browser/content/browser-thumbnails.js twice (bug 392650): file /Volumes/SrcDrv/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[8932] WARNING: Loaded script chrome://browser/content/browser-trackingprotection.js twice (bug 392650): file /Volumes/SrcDrv/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[8932] WARNING: Loaded script chrome://browser/content/browser-fxaccounts.js twice (bug 392650): file /Volumes/SrcDrv/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
++DOCSHELL 0x1f2c2600 == 3 [pid = 8932] [id = 3]
++DOMWINDOW == 5 (0x1f252200) [pid = 8932] [serial = 5] [outer = 0x0]
++DOCSHELL 0x1f202600 == 4 [pid = 8932] [id = 4]
++DOMWINDOW == 6 (0x1f202a00) [pid = 8932] [serial = 6] [outer = 0x0]
[8932] ###!!! ASSERTION: Double-initing a frame?: '!mContent', file /Volumes/SrcDrv/tenfourfox/layout/generic/nsFrame.cpp, line 513
[8932] ###!!! ASSERTION: Double-initing a frame?: '!mContent', file /Volumes/SrcDrv/tenfourfox/layout/generic/nsFrame.cpp, line 513
[8932] ###!!! ASSERTION: Shouldn't happen: '!aNewFrame->GetNextSibling()', file /Volumes/SrcDrv/tenfourfox/layout/base/nsCSSFrameConstructor.cpp, line 1185

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0xa1b1c1f3
0x0a5d006c in nsLayoutUtils::GetLastSibling (aFrame=0xa1b1c1d3) at nsLayoutUtils.cpp:1766
1766      if (!aFrame) {
(gdb) bt
#0  0x0a5d006c in nsLayoutUtils::GetLastSibling (aFrame=0xa1b1c1d3) at nsLayoutUtils.cpp:1766
#1  0x0a6a3468 in nsFrameList::SetFrames (this=0xefffcf4c, aFrameList=0x1edb888) at nsFrameList.cpp:68
#2  0x0a56c590 in nsFrameConstructorState::AddChild (this=0xefffcd38, aNewFrame=0x1edb888, aFrameItems=@0xefffcf4c, aContent=0x1ff855d0, aStyleContext=0x1eda8a0, aParentFrame=0x1eda7b0, aCanBePositioned=<value temporarily unavailable, due to optimizations>, aCanBeFloated=false, aIsOutOfFlowPopup=false, aInsertAfter=false, aInsertAfterFrame=0x0) at nsCSSFrameConstructor.cpp:1231
#3  0x0a5a41d0 in nsCSSFrameConstructor::ConstructFrameFromItemInternal (this=0x1dfec360, aItem=@0x1ff7c310, aState=@0xefffcd38, aParentFrame=0x1eda7b0, aFrameItems=@0xefffcf4c) at nsCSSFrameConstructor.cpp:3744
#4  0x0a5a47dc in nsCSSFrameConstructor::ConstructFramesFromItem (this=0x1dfec360, aState=@0xefffcd38, aIter=<value temporarily unavailable, due to optimizations>, aParentFrame=<value temporarily unavailable, due to optimizations>, aFrameItems=@0xefffcf4c) at nsCSSFrameConstructor.cpp:5868
#5  0x0a5c1ca0 in nsCSSFrameConstructor::ConstructFramesFromItemList (this=0x1dfec360, aState=@0xefffcd38, aItems=<value temporarily unavailable, due to optimizations>, aParentFrame=0x1eda7b0, aFrameItems=@0xefffcf4c) at nsCSSFrameConstructor.cpp:10194
#6  0x0a5a3270 in nsCSSFrameConstructor::ProcessChildren (this=0x1dfec360, aState=@0xefffcd38, aContent=0x1dff7400, aStyleContext=<value temporarily unavailable, due to optimizations>, aFrame=0x1eda7b0, aCanHaveGeneratedContent=<value temporarily unavailable, due to optimizations>, aFrameItems=@0xefffcf4c, aAllowBlockStyles=<value temporarily unavailable, due to optimizations>, aPendingBinding=0x0, aPossiblyLeafFrame=<value temporarily unavailable, due to optimizations>) at nsCSSFrameConstructor.cpp:10394
#7  0x0a5acde4 in nsCSSFrameConstructor::ConstructDocElementFrame (this=0x1dfec360, aDocElement=0x1dff7400, aFrameState=<value temporarily unavailable, due to optimizations>) at nsCSSFrameConstructor.cpp:2567
#8  0x0a5ad90c in nsCSSFrameConstructor::ContentRangeInserted (this=0x1dfec360, aContainer=<value temporarily unavailable, due to optimizations>, aStartChild=0x1dff7400, aEndChild=0x0, aFrameState=0x0, aAllowLazyConstruction=false) at nsCSSFrameConstructor.cpp:7419
#9  0x0a609100 in PresShell::Initialize (this=0x1ed2800, aWidth=<value temporarily unavailable, due to optimizations>, aHeight=<value temporarily unavailable, due to optimizations>) at nsPresShell.cpp:1709
#10 0x0a178590 in mozilla::dom::XULDocument::StartLayout (this=<value temporarily unavailable, due to optimizations>) at XULDocument.cpp:1904
#11 0x0a17ccc8 in mozilla::dom::XULDocument::DoneWalking (this=0x1ed8800) at XULDocument.cpp:3020
#12 0x0a183e50 in mozilla::dom::XULDocument::ResumeWalk (this=0x1ed8800) at XULDocument.cpp:2970
#13 0x0a1864cc in mozilla::dom::XULDocument::OnScriptCompileComplete (this=0x1ed8800, aScript=<value temporarily unavailable, due to optimizations>, aStatus=<value temporarily unavailable, due to optimizations>) at XULDocument.cpp:3450
#14 0x0a163608 in NotifyOffThreadScriptCompletedRunnable::Run (this=0x1ff54f70) at nsXULElement.cpp:2720
#15 0x07ef68cc in nsThread::ProcessNextEvent (this=0x51d3b0, aMayWait=<value temporarily unavailable, due to optimizations>, aResult=0xefffd8a8) at nsThread.cpp:972
#16 0x07f36370 in NS_ProcessPendingEvents (aThread=0x51d3b0, aTimeout=10) at nsThreadUtils.cpp:239
#17 0x0a233e84 in nsBaseAppShell::NativeEventCallback (this=0x5a7aa0) at nsBaseAppShell.cpp:97
#18 0x0a28bd8c in nsAppShell::ProcessGeckoEvents (aInfo=0x5a7aa0) at nsAppShell.mm:415
#19 0x907df300 in __CFRunLoopDoSources0 ()
#20 0x907de830 in __CFRunLoopRun ()
#21 0x907de2b0 in CFRunLoopRunSpecific ()
#22 0x932adb20 in RunCurrentEventLoopInMode ()
#23 0x932ad1b4 in ReceiveNextEventCommon ()
#24 0x932ad020 in BlockUntilNextEventMatchingListInMode ()
#25 0x93791734 in _DPSNextEvent ()
#26 0x937913f8 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#27 0x0a28b8d0 in -[GeckoNSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (self=0x5a8ae0, _cmd=<value temporarily unavailable, due to optimizations>, mask=4294967295, expiration=0x1dfd7180, mode=0xa07c1a80, flag=<value temporarily unavailable, due to optimizations>) at nsAppShell.mm:136
#28 0x9378d93c in -[NSApplication run] ()
#29 0x0a29a2a4 in nsAppShell::Run (this=0x5a7aa0) at nsAppShell.mm:689
#30 0x0ade8bf0 in nsAppStartup::Run (this=0x5a7a30) at nsAppStartup.cpp:281
#31 0x0ae633cc in XREMain::XRE_mainRun (this=<value temporarily unavailable, due to optimizations>) at /Volumes/SrcDrv/tenfourfox/toolkit/xre/nsAppRunner.cpp:4299
#32 0x0ae64684 in XREMain::XRE_main (this=0xeffff478, argc=1, argv=<value temporarily unavailable, due to optimizations>, aAppData=<value temporarily unavailable, due to optimizations>) at /Volumes/SrcDrv/tenfourfox/toolkit/xre/nsAppRunner.cpp:4396
#33 0x0ae64988 in XRE_main (argc=1, argv=0xeffffb84, aAppData=0xeffff5e8, aFlags=<value temporarily unavailable, due to optimizations>) at /Volumes/SrcDrv/tenfourfox/toolkit/xre/nsAppRunner.cpp:4498
#34 0x00004f60 in main (argc=<value temporarily unavailable, due to optimizations>, argv=<value temporarily unavailable, due to optimizations>) at /Volumes/SrcDrv/tenfourfox/browser/app/nsBrowserApp.cpp:212
(gdb) kill
Kill the program being debugged? (y or n) y
(gdb) quit

@classilla
Copy link
Owner

classilla commented Jan 19, 2018

I think the next thing to do is make this assert fatal, since this is the earliest point we can predictably see it goes wrong:

[8932] ###!!! ASSERTION: Double-initing a frame?: '!mContent', file /Volumes/SrcDrv/tenfourfox/layout/generic/nsFrame.cpp, line 513

Change that from NS_ASSERTION to MOZ_ASSERT, recompile and then get the backtrace when it fatally asserts there. Do this at -O1 obviously so that we have as few optimizations interfering as possible.

@NapalmSauce
Copy link
Contributor

NapalmSauce commented Jan 19, 2018

Just as advised, here's the retrieved backtrace in question:

[950] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80040111: file /Volumes/SrcDrv/tenfourfox/dom/base/nsFrameLoader.cpp, line 272
++DOCSHELL 0x1b24c00 == 5 [pid = 950] [id = 5]
++DOMWINDOW == 7 (0x1ecadc00) [pid = 950] [serial = 7] [outer = 0x0]
[950] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80040111: file /Volumes/SrcDrv/tenfourfox/dom/base/nsFrameLoader.cpp, line 272
++DOMWINDOW == 8 (0x1ed03200) [pid = 950] [serial = 8] [outer = 0x1ecadc00]
++DOMWINDOW == 9 (0x1ed4ec00) [pid = 950] [serial = 9] [outer = 0x1ea7b600]
Size of LucidaGrande font table directory: 380
Assertion failure: mRawPtr != 0 (You can't dereference a NULL nsCOMPtr with operator->().), at ../../dist/include/nsCOMPtr.h:734
#01: ffi_prep_closure[/TenFourFoxDebug.app/Contents/MacOS/XUL +0x42e4c40]
#02: std::_Rb_tree_node<unsigned long long>* std::_Rb_tree<unsigned long long, unsigned long long, std::_Identity<unsigned long long>, std::less<unsigned long long>, std::allocator<unsigned long long> >::_M_copy<std::_Rb_tree<unsigned long long, unsigned long [/TenFourFoxDebug.app/Contents/MacOS/XUL +0x23a461c]
#03: imgLoader::SupportImageWithMimeType(char const*, AcceptedMimeTypes)[/TenFourFoxDebug.app/Contents/MacOS/XUL +0x108efd0]
#04: std::_Rb_tree_node<unsigned long long>* std::_Rb_tree<unsigned long long, unsigned long long, std::_Identity<unsigned long long>, std::less<unsigned long long>, std::allocator<unsigned long long> >::_M_copy<std::_Rb_tree<unsigned long long, unsigned long [/TenFourFoxDebug.app/Contents/MacOS/XUL +0x23a455c]
#05: imgLoader::SupportImageWithMimeType(char const*, AcceptedMimeTypes)[/TenFourFoxDebug.app/Contents/MacOS/XUL +0x1095514]
#06: std::_Rb_tree_node<unsigned long long>* std::_Rb_tree<unsigned long long, unsigned long long, std::_Identity<unsigned long long>, std::less<unsigned long long>, std::allocator<unsigned long long> >::_M_copy<std::_Rb_tree<unsigned long long, unsigned long [/TenFourFoxDebug.app/Contents/MacOS/XUL +0x23a4660]
#07: NS_NewBoxFrame(nsIPresShell*, nsStyleContext*)[/TenFourFoxDebug.app/Contents/MacOS/XUL +0x2baf84c]
#08: NS_NewBoxFrame(nsIPresShell*, nsStyleContext*)[/TenFourFoxDebug.app/Contents/MacOS/XUL +0x2bb11cc]
#09: imgLoader::SupportImageWithMimeType(char const*, AcceptedMimeTypes)[/TenFourFoxDebug.app/Contents/MacOS/XUL +0xe7425c]
#10: imgLoader::SupportImageWithMimeType(char const*, AcceptedMimeTypes)[/TenFourFoxDebug.app/Contents/MacOS/XUL +0xe76884]
#11: imgLoader::SupportImageWithMimeType(char const*, AcceptedMimeTypes)[/TenFourFoxDebug.app/Contents/MacOS/XUL +0xe87838]
#12: imgLoader::SupportImageWithMimeType(char const*, AcceptedMimeTypes)[/TenFourFoxDebug.app/Contents/MacOS/XUL +0xe76398]
#13: imgLoader::SupportImageWithMimeType(char const*, AcceptedMimeTypes)[/TenFourFoxDebug.app/Contents/MacOS/XUL +0xe76640]
#14: imgLoader::SupportImageWithMimeType(char const*, AcceptedMimeTypes)[/TenFourFoxDebug.app/Contents/MacOS/XUL +0xe5b464]
#15: mozilla_dump_image[/TenFourFoxDebug.app/Contents/MacOS/XUL +0xe47284]
#16: mozilla::LoadInfo::GetRedirectChain(JSContext*, JS::MutableHandle<JS::Value>)[/TenFourFoxDebug.app/Contents/MacOS/XUL +0x18dbe0]
#17: mozilla::LoadInfo::GetRedirectChain(JSContext*, JS::MutableHandle<JS::Value>)[/TenFourFoxDebug.app/Contents/MacOS/XUL +0x1ab648]
#18: mozilla::LoadInfo::GetRedirectChain(JSContext*, JS::MutableHandle<JS::Value>)[/TenFourFoxDebug.app/Contents/MacOS/XUL +0x1b947c]
#19: NS_NewLocalFile[/TenFourFoxDebug.app/Contents/MacOS/XUL +0xb7de8]
#20: XRE_AddJarManifestLocation[/TenFourFoxDebug.app/Contents/MacOS/XUL +0xd53a0]
#21: void std::vector<unsigned long, std::allocator<unsigned long> >::_M_emplace_back_aux<unsigned long>(unsigned long&&)[/TenFourFoxDebug.app/Contents/MacOS/XUL +0x11441c]
#22: std::_Rb_tree_node<unsigned long long>* std::_Rb_tree<unsigned long long, unsigned long long, std::_Identity<unsigned long long>, std::less<unsigned long long>, std::allocator<unsigned long long> >::_M_copy<std::_Rb_tree<unsigned long long, unsigned long [/TenFourFoxDebug.app/Contents/MacOS/XUL +0x24ec2fc]
#23: std::_Rb_tree_node<unsigned long long>* std::_Rb_tree<unsigned long long, unsigned long long, std::_Identity<unsigned long long>, std::less<unsigned long long>, std::allocator<unsigned long long> >::_M_copy<std::_Rb_tree<unsigned long long, unsigned long [/TenFourFoxDebug.app/Contents/MacOS/XUL +0x2543d04]
#24: CFRunLoopRunSpecific[/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation +0x24300]
#25: CFRunLoopRunSpecific[/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation +0x23830]
#26: CFRunLoopRunSpecific[/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation +0x232b0]
#27: GetMainEventQueue[/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox +0x8b20]
#28: BlockUntilNextEventMatchingListInMode[/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox +0x81b4]
#29: BlockUntilNextEventMatchingListInMode[/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox +0x8020]
#30: _DPSNextEvent[/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit +0x8734]
#31: _runningOnAppKitThread[/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit +0x83f8]
#32: std::_Rb_tree_node<unsigned long long>* std::_Rb_tree<unsigned long long, unsigned long long, std::_Identity<unsigned long long>, std::less<unsigned long long>, std::allocator<unsigned long long> >::_M_copy<std::_Rb_tree<unsigned long long, unsigned long [/TenFourFoxDebug.app/Contents/MacOS/XUL +0x25438c8]
#33: _NXIsHiddenOnLaunch[/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit +0x493c]
#34: std::_Rb_tree_node<unsigned long long>* std::_Rb_tree<unsigned long long, unsigned long long, std::_Identity<unsigned long long>, std::less<unsigned long long>, std::allocator<unsigned long long> >::_M_copy<std::_Rb_tree<unsigned long long, unsigned long [/TenFourFoxDebug.app/Contents/MacOS/XUL +0x2551444]
#35: void std::vector<int, std::allocator<int> >::_M_insert_aux<int const&>(__gnu_cxx::__normal_iterator<int*, std::vector<int, std::allocator<int> > >, int const&)[/TenFourFoxDebug.app/Contents/MacOS/XUL +0x30b2460]
#36: XRE_InitCommandLine[/TenFourFoxDebug.app/Contents/MacOS/XUL +0x31310e4]
#37: XRE_InitCommandLine[/TenFourFoxDebug.app/Contents/MacOS/XUL +0x31327d0]
#38: XRE_main[/TenFourFoxDebug.app/Contents/MacOS/XUL +0x3132a68]
#39: tart[/TenFourFoxDebug.app/Contents/MacOS/firefox +0x3fc4]
#40: tart[/TenFourFoxDebug.app/Contents/MacOS/firefox +0xcc0]
#41: tart[/TenFourFoxDebug.app/Contents/MacOS/firefox +0x9c4]

@kencu
Copy link
Contributor Author

kencu commented Jan 19, 2018

When I used gcc6 with optimize=-O1 and changed

NS_PRECONDITION(!mContent, "Double-initing a frame?"); to
MOZ_ASSERT(!mContent, "Double-initing a frame?");

then it doesn't crash any more, but doesn't open up any browser windows either. The Window menu shows the windows are being created and tracked, but there are no windows visible on the screen. Menus, about box, etc all work normally.

@NapalmSauce
Copy link
Contributor

NapalmSauce commented Jan 19, 2018

@kencu It does that but, the browser kills itself with the assert. It is completely unloaded with a crashlog soon after in my case. What's in your console?

@classilla
Copy link
Owner

I'm sceptical of that backtrace. Can you give the the debugger's view with bt? The XPCOM backtrace is sometimes bad at resolving symbols.

@classilla
Copy link
Owner

Alternatively, after the NS_PRECONDITION I guess we could just do MOZ_ASSERT(0) and make it crash.

@NapalmSauce
Copy link
Contributor

NapalmSauce commented Jan 20, 2018

gdb makes sense, most call parameters are present:

(gdb) bt 
#0  0x0a4a2624 in mozilla::dom::XMLDocument::ResetToURI () at XMLDocument.cpp:266
#1  0x0918cfd0 in nsDocument::Reset () at jsfriendapi.h:674
#2  0x0a4a255c in mozilla::dom::XMLDocument::Reset () at XMLDocument.cpp:253
#3  0x09193514 in nsDocument::StartDocumentLoad () at jsfriendapi.h:674
0x215bef54, aLoadGroup=<value temporarily unavailable, due to optimizations>, aContainer=0xbece1f4, aDocListener=0x1eda8200, aReset=<value temporarily unavailable, due to optimizations>, aSink=0x215bef54) at XMLDocument.cpp:502
#5  0x0acad84c in nsContentDLF::CreateDocument () at nsCOMPtr.h:295
0x198aeaa0, aExtraInfo=0xefffd164, aDocListener=0x215bef54, aDocViewer=0xbece1a4) at nsTString.h:641
#7  0x08f7225c in mozilla::image::SVGDocumentWrapper::SetupViewer (this=0x215c3538, aRequest=<value temporarily unavailable, due to optimizations>, aViewer=0x0, aLoadGroup=0x215c353c) at nsCOMPtr.h:295
#8  0x08f74884 in mozilla::image::SVGDocumentWrapper::OnStartRequest (this=0x8f74848, aRequest=0x215c3538, ctxt=<value temporarily unavailable, due to optimizations>) at SVGDocumentWrapper.cpp:235
#9  0x08f85838 in mozilla::image::VectorImage::OnStartRequest (this=0x215c3520, aRequest=0x215c34e0, aCtxt=0x215c34b0) at RefPtr.h:362
#10 0x08f74398 in mozilla::image::ImageFactory::CreateVectorImage (aRequest=0x0, aProgressTracker=0x215c34b0, aMimeType=@0x215bf2a0, aURI=0xefffd424, aImageFlags=4026520608, aInnerWindowId=4) at ImageCacheKey.cpp:60
#11 0x08f74640 in mozilla::image::ImageFactory::CreateImage (aRequest=0x0, aProgressTracker=0x3e8, aMimeType=@0xffffffff, aURI=0x3e, aIsMultiPart=8, aInnerWindowId=734) at ImageFactory.cpp:102
#12 0x08f59464 in imgRequest::OnDataAvailable (this=0x0, aRequest=0x6da, aContext=0x0, aInStr=0x215bed30, aOffset=<value temporarily unavailable, due to optimizations>, aCount=559672624) at RefCounted.h:104
#13 0x08f45284 in ProxyListener::OnDataAvailable (this=<value temporarily unavailable, due to optimizations>, aRequest=<value temporarily unavailable, due to optimizations>, ctxt=<value temporarily unavailable, due to optimizations>, inStr=<value temporarily unavailable, due to optimizations>, sourceOffset=<value temporarily unavailable, due to optimizations>, count=<value temporarily unavailable, due to optimizations>) at nsTSubstring.h:878
#14 0x0828bbe0 in nsBaseChannel::OnDataAvailable () at nsBaseChannel.cpp:848
#15 0x082a9648 in nsInputStreamPump::OnStateTransfer (this=0x82a92e4) at nsInputStreamPump.cpp:647
#16 0x082b747c in nsInputStreamPump::OnInputStreamReady (this=0x82b72c4, stream=<value temporarily unavailable, due to optimizations>) at nsInputStreamPump.cpp:442
#17 0x081b5de8 in nsInputStreamReadyEvent::Run (this=0x81d2ee4) at nsStreamUtils.cpp:91
#18 0x081d33a0 in nsThread::ProcessNextEvent (this=0x81d2ee4, aMayWait=4026521656, aResult=0x0) at nsThread.cpp:966
#19 0x0821241c in NS_ProcessPendingEvents (aThread=0x8212390, aTimeout=0) at nsThreadUtils.cpp:240
#20 0x0a5ea2fc in nsBaseAppShell::NativeEventCallback (this=0xa641b08) at nsBaseAppShell.cpp:97
#21 0x0a641d04 in _ZN10nsAppShell18ProcessGeckoEventsEPv (aInfo=0x907df300) at nsAppShell.mm:465
#22 0x907df300 in __CFRunLoopDoSources0 ()
#23 0x907de830 in __CFRunLoopRun ()
#24 0x907de2b0 in CFRunLoopRunSpecific ()
#25 0x932adb20 in RunCurrentEventLoopInMode ()
#26 0x932ad1b4 in ReceiveNextEventCommon ()
#27 0x932ad020 in BlockUntilNextEventMatchingListInMode ()
#28 0x93791734 in _DPSNextEvent ()
#29 0x937913f8 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#30 0x0a6418c8 in -[GeckoNSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (self=<value temporarily unavailable, due to optimizations>, _cmd=<value temporarily unavailable, due to optimizations>, mask=5933776, expiration=0x1, mode=0xa07c1a80, flag=<value temporarily unavailable, due to optimizations>) at nsAppShell.mm:138
#31 0x9378d93c in -[NSApplication run] ()
#32 0x0a64f444 in _ZN10nsAppShell3RunEv (this=0x5a8ad0) at nsAppShell.mm:694
#33 0x0b1b0460 in nsAppStartup::Run () at /Volumes/SrcDrv/tenfourfox/toolkit/components/reflect/reflect.cpp:22
#34 0x0b22f0e4 in XREMain::XRE_mainRun (this=0xeffffb7c) at /Volumes/SrcDrv/tenfourfox/toolkit/xre/nsAppRunner.cpp:2280
#35 0x0b2307d0 in XREMain::XRE_main (this=0xb230630, argc=<value temporarily unavailable, due to optimizations>, argv=0x0, aAppData=<value temporarily unavailable, due to optimizations>) at /Volumes/SrcDrv/tenfourfox/toolkit/xre/nsAppRunner.cpp:4389
#36 0x0b230a68 in XRE_main (argc=63, argv=<value temporarily unavailable, due to optimizations>, aAppData=0x0, aFlags=<value temporarily unavailable, due to optimizations>) at /Volumes/SrcDrv/tenfourfox/toolkit/xre/nsAppRunner.cpp:4499
#37 0x00004fc4 in main ()
Current language:  auto; currently c++
(gdb) kill
Kill the program being debugged? (y or n) y
(gdb) quit

I wonder why I can't read debug symbols correctly unless I run the standalone script. This in turn makes gdb flood my scrollback buffer with timestamps warnings. grep -v is a lifesaver.

@classilla
Copy link
Owner

classilla commented Jan 20, 2018

I'm not sure this is the same assertion. Does it always terminate with the mRawPtr one? I'm surprised the NS_PRECONDITION fires but not MOZ_ASSERT (though right now the compiler's sanity is in question anyway). If you throw the MOZ_ASSERT(0) in after, do you get the same backtrace?

@NapalmSauce
Copy link
Contributor

Either using MOZ_ASSERT or not (like in the build I did before last), I did not notice variations in behaviour from a debugging viewpoint(as previously mentioned, only after fixing the packages with the script). I ran each about 6 times in gdb without noticing anything, not that I carefully compared everything. I'll do a couple more tests as I still have both.

I'll also do a build with MOZ_ASSERT(0) for the sake of completeness. Later, though, as right now I'm finalizing with 461 and my two build systems are fairly busy.

@kencu
Copy link
Contributor Author

kencu commented Jan 20, 2018

I put a MOZ_ASSERT(0) in the suggested spot, and this is what I obtained with gdb7 (on a fully assembled binary built with gcc6, optimize = -O1):

tigerg5:~/tenfourfox/TenFourFoxDebug.app/Contents/MacOS cunningh$ gdb7 ./firefox
GNU gdb 6.3.50-20050815 (Apple version gdb-768 TenFourFox patch 4) (Tue Aug 16 03:25:37 GMT 2016)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc-apple-darwin"...
warning: --arch option not supported in this gdb.
Reading symbols for shared libraries .......... done

(gdb) run
Starting program: /Users/cunningh/tenfourfox/TenFourFoxDebug.app/Contents/MacOS/firefox 
warning: Could not find malloc init callback function.  
Make sure malloc is initialized before calling functions.
Reading symbols for shared libraries ...................................................................++ done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries ...................warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
warning: Bad symbol - type is N_SECT but section is 0
. done
Reading symbols for shared libraries . done
JavaScript warning: resource://gre/modules/TelemetryStopwatch.jsm, line 39: unreachable code after return statement
JavaScript warning: resource://gre/modules/TelemetryStopwatch.jsm, line 78: unreachable code after return statement
JavaScript warning: resource://gre/modules/TelemetryStopwatch.jsm, line 107: unreachable code after return statement
JavaScript warning: resource://gre/modules/TelemetryStopwatch.jsm, line 136: unreachable code after return statement
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
[3924] ###!!! ASSERTION: Deprecated, use NewChannel2 providing loadInfo arguments!: 'false', file /Users/cunningh/tenfourfox/netwerk/base/nsIOService.cpp, line 936
[3924] ###!!! ASSERTION: Please pass security info when creating a channel: 'loadInfo', file /Users/cunningh/tenfourfox/netwerk/base/nsIOService.cpp, line 862
JavaScript warning: resource://gre/modules/TelemetryController.jsm, line 660: unreachable code after return statement
JavaScript warning: resource://gre/modules/TelemetryReportingPolicy.jsm, line 342: unreachable code after return statement
JavaScript warning: resource://gre/modules/TelemetrySend.jsm, line 1035: unreachable code after return statement
++DOCSHELL 0x1d11600 == 1 [pid = 3924] [id = 1]
++DOMWINDOW == 1 (0x1d0de00) [pid = 3924] [serial = 1] [outer = 0x0]
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Loading ColorSync profile: /Library/ColorSync/Profiles/Displays/Apple Cinema Display-42485F0.icc
Size of profile: 844
++DOMWINDOW == 2 (0x1cc7800) [pid = 3924] [serial = 2] [outer = 0x1d0de00]
JavaScript warning: resource://gre/modules/UITelemetry.jsm, line 30: unreachable code after return statement
JavaScript warning: resource://gre/modules/UITelemetry.jsm, line 49: unreachable code after return statement
++DOCSHELL 0x1ec8a00 == 2 [pid = 3924] [id = 2]
++DOMWINDOW == 3 (0x1ed0400) [pid = 3924] [serial = 3] [outer = 0x0]
++DOMWINDOW == 4 (0x1ed0c00) [pid = 3924] [serial = 4] [outer = 0x1ed0400]
[3924] WARNING: Loaded script chrome://global/content/printUtils.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[3924] WARNING: Loaded script chrome://global/content/viewZoomOverlay.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[3924] WARNING: Loaded script chrome://browser/content/places/browserPlacesViews.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[3924] WARNING: Loaded script chrome://browser/content/browser.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[3924] WARNING: Loaded script chrome://browser/content/downloads/downloads.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[3924] WARNING: Loaded script chrome://browser/content/downloads/indicator.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[3924] WARNING: Loaded script chrome://browser/content/customizableui/panelUI.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[3924] WARNING: Loaded script chrome://global/content/viewSourceUtils.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[3924] WARNING: Loaded script chrome://browser/content/browser-addons.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[3924] WARNING: Loaded script chrome://browser/content/browser-ctrlTab.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[3924] WARNING: Loaded script chrome://browser/content/browser-customization.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[3924] WARNING: Loaded script chrome://browser/content/browser-devedition.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[3924] WARNING: Loaded script chrome://browser/content/browser-eme.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[3924] WARNING: Loaded script chrome://browser/content/browser-feeds.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[3924] WARNING: Loaded script chrome://browser/content/browser-fullScreen.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[3924] WARNING: Loaded script chrome://browser/content/browser-fullZoom.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[3924] WARNING: Loaded script chrome://browser/content/browser-gestureSupport.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[3924] WARNING: Loaded script chrome://browser/content/browser-places.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
JavaScript warning: chrome://browser/content/browser-plugins.js, line 219: unreachable code after return statement
JavaScript warning: chrome://browser/content/browser-plugins.js, line 219: unreachable code after return statement
[3924] WARNING: Loaded script chrome://browser/content/browser-plugins.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[3924] WARNING: Loaded script chrome://browser/content/browser-safebrowsing.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[3924] WARNING: Loaded script chrome://browser/content/browser-sidebar.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[3924] WARNING: Loaded script chrome://browser/content/browser-social.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[3924] WARNING: Loaded script chrome://browser/content/browser-syncui.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[3924] WARNING: Loaded script chrome://browser/content/browser-tabsintitlebar.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[3924] WARNING: Loaded script chrome://browser/content/browser-thumbnails.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[3924] WARNING: Loaded script chrome://browser/content/browser-trackingprotection.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[3924] WARNING: Loaded script chrome://browser/content/browser-fxaccounts.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
++DOCSHELL 0x1eb20c00 == 3 [pid = 3924] [id = 3]
++DOMWINDOW == 5 (0x1ea9de00) [pid = 3924] [serial = 5] [outer = 0x0]
++DOCSHELL 0x1e8de000 == 4 [pid = 3924] [id = 4]
++DOMWINDOW == 6 (0x1e8de400) [pid = 3924] [serial = 6] [outer = 0x0]
Assertion failure: 0, at /Users/cunningh/tenfourfox/layout/generic/nsFrame.cpp:514
#01: ffi_prep_closure[/Users/cunningh/tenfourfox/TenFourFoxDebug.app/Contents/MacOS/XUL +0x42e3e04]
#02: std::_Rb_tree_node<unsigned long long>* std::_Rb_tree<unsigned long long, unsigned long long, std::_Identity<unsigned long long>, std::less<unsigned long long>, std::allocator<unsigned long long> >::_M_copy<std::_Rb_tree<unsigned long long, unsigned long [/Users/cunningh/tenfourfox/TenFourFoxDebug.app/Contents/MacOS/XUL +0x2943564]
#03: std::_Rb_tree_node<unsigned long long>* std::_Rb_tree<unsigned long long, unsigned long long, std::_Identity<unsigned long long>, std::less<unsigned long long>, std::allocator<unsigned long long> >::_M_copy<std::_Rb_tree<unsigned long long, unsigned long [/Users/cunningh/tenfourfox/TenFourFoxDebug.app/Contents/MacOS/XUL +0x29f1b88]
#04: std::_Rb_tree_node<unsigned long long>* std::_Rb_tree<unsigned long long, unsigned long long, std::_Identity<unsigned long long>, std::less<unsigned long long>, std::allocator<unsigned long long> >::_M_copy<std::_Rb_tree<unsigned long long, unsigned long [/Users/cunningh/tenfourfox/TenFourFoxDebug.app/Contents/MacOS/XUL +0x2942ecc]
#05: std::_Rb_tree_node<unsigned long long>* std::_Rb_tree<unsigned long long, unsigned long long, std::_Identity<unsigned long long>, std::less<unsigned long long>, std::allocator<unsigned long long> >::_M_copy<std::_Rb_tree<unsigned long long, unsigned long [/Users/cunningh/tenfourfox/TenFourFoxDebug.app/Contents/MacOS/XUL +0x29f31bc]
#06: std::_Rb_tree_node<unsigned long long>* std::_Rb_tree<unsigned long long, unsigned long long, std::_Identity<unsigned long long>, std::less<unsigned long long>, std::allocator<unsigned long long> >::_M_copy<std::_Rb_tree<unsigned long long, unsigned long [/Users/cunningh/tenfourfox/TenFourFoxDebug.app/Contents/MacOS/XUL +0x2860b70]
#07: std::_Rb_tree_node<unsigned long long>* std::_Rb_tree<unsigned long long, unsigned long long, std::_Identity<unsigned long long>, std::less<unsigned long long>, std::allocator<unsigned long long> >::_M_copy<std::_Rb_tree<unsigned long long, unsigned long [/Users/cunningh/tenfourfox/TenFourFoxDebug.app/Contents/MacOS/XUL +0x28c44f8]
#08: std::_Rb_tree_node<unsigned long long>* std::_Rb_tree<unsigned long long, unsigned long long, std::_Identity<unsigned long long>, std::less<unsigned long long>, std::allocator<unsigned long long> >::_M_copy<std::_Rb_tree<unsigned long long, unsigned long [/Users/cunningh/tenfourfox/TenFourFoxDebug.app/Contents/MacOS/XUL +0x242ca74]
#09: std::_Rb_tree_node<unsigned long long>* std::_Rb_tree<unsigned long long, unsigned long long, std::_Identity<unsigned long long>, std::less<unsigned long long>, std::allocator<unsigned long long> >::_M_copy<std::_Rb_tree<unsigned long long, unsigned long [/Users/cunningh/tenfourfox/TenFourFoxDebug.app/Contents/MacOS/XUL +0x2431fb0]
#10: std::_Rb_tree_node<unsigned long long>* std::_Rb_tree<unsigned long long, unsigned long long, std::_Identity<unsigned long long>, std::less<unsigned long long>, std::allocator<unsigned long long> >::_M_copy<std::_Rb_tree<unsigned long long, unsigned long [/Users/cunningh/tenfourfox/TenFourFoxDebug.app/Contents/MacOS/XUL +0x2439004]
#11: std::_Rb_tree_node<unsigned long long>* std::_Rb_tree<unsigned long long, unsigned long long, std::_Identity<unsigned long long>, std::less<unsigned long long>, std::allocator<unsigned long long> >::_M_copy<std::_Rb_tree<unsigned long long, unsigned long [/Users/cunningh/tenfourfox/TenFourFoxDebug.app/Contents/MacOS/XUL +0x243b178]
#12: std::_Rb_tree_node<unsigned long long>* std::_Rb_tree<unsigned long long, unsigned long long, std::_Identity<unsigned long long>, std::less<unsigned long long>, std::allocator<unsigned long long> >::_M_copy<std::_Rb_tree<unsigned long long, unsigned long [/Users/cunningh/tenfourfox/TenFourFoxDebug.app/Contents/MacOS/XUL +0x2417900]
#13: XRE_AddJarManifestLocation[/Users/cunningh/tenfourfox/TenFourFoxDebug.app/Contents/MacOS/XUL +0xd5160]
#14: void std::vector<unsigned long, std::allocator<unsigned long> >::_M_emplace_back_aux<unsigned long>(unsigned long&&)[/Users/cunningh/tenfourfox/TenFourFoxDebug.app/Contents/MacOS/XUL +0x1141dc]
#15: std::_Rb_tree_node<unsigned long long>* std::_Rb_tree<unsigned long long, unsigned long long, std::_Identity<unsigned long long>, std::less<unsigned long long>, std::allocator<unsigned long long> >::_M_copy<std::_Rb_tree<unsigned long long, unsigned long [/Users/cunningh/tenfourfox/TenFourFoxDebug.app/Contents/MacOS/XUL +0x24eb45c]
#16: std::_Rb_tree_node<unsigned long long>* std::_Rb_tree<unsigned long long, unsigned long long, std::_Identity<unsigned long long>, std::less<unsigned long long>, std::allocator<unsigned long long> >::_M_copy<std::_Rb_tree<unsigned long long, unsigned long [/Users/cunningh/tenfourfox/TenFourFoxDebug.app/Contents/MacOS/XUL +0x2542e64]
#17: CFRunLoopRunSpecific[/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation +0x24300]
#18: CFRunLoopRunSpecific[/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation +0x23830]
#19: CFRunLoopRunSpecific[/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation +0x232b0]
#20: GetMainEventQueue[/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox +0x8b20]
#21: BlockUntilNextEventMatchingListInMode[/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox +0x81b4]
#22: BlockUntilNextEventMatchingListInMode[/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox +0x8020]
#23: _DPSNextEvent[/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit +0x8734]
#24: _runningOnAppKitThread[/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit +0x83f8]
#25: std::_Rb_tree_node<unsigned long long>* std::_Rb_tree<unsigned long long, unsigned long long, std::_Identity<unsigned long long>, std::less<unsigned long long>, std::allocator<unsigned long long> >::_M_copy<std::_Rb_tree<unsigned long long, unsigned long [/Users/cunningh/tenfourfox/TenFourFoxDebug.app/Contents/MacOS/XUL +0x2542a28]
#26: _NXIsHiddenOnLaunch[/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit +0x493c]
#27: std::_Rb_tree_node<unsigned long long>* std::_Rb_tree<unsigned long long, unsigned long long, std::_Identity<unsigned long long>, std::less<unsigned long long>, std::allocator<unsigned long long> >::_M_copy<std::_Rb_tree<unsigned long long, unsigned long [/Users/cunningh/tenfourfox/TenFourFoxDebug.app/Contents/MacOS/XUL +0x25505a4]
#28: void std::vector<int, std::allocator<int> >::_M_insert_aux<int const&>(__gnu_cxx::__normal_iterator<int*, std::vector<int, std::allocator<int> > >, int const&)[/Users/cunningh/tenfourfox/TenFourFoxDebug.app/Contents/MacOS/XUL +0x30b09a0]
#29: XRE_InitCommandLine[/Users/cunningh/tenfourfox/TenFourFoxDebug.app/Contents/MacOS/XUL +0x312e7c8]
#30: XRE_InitCommandLine[/Users/cunningh/tenfourfox/TenFourFoxDebug.app/Contents/MacOS/XUL +0x312feb4]
#31: XRE_main[/Users/cunningh/tenfourfox/TenFourFoxDebug.app/Contents/MacOS/XUL +0x313014c]
#32: tart[/Users/cunningh/tenfourfox/TenFourFoxDebug.app/Contents/MacOS/firefox +0x3fc4]
#33: tart[/Users/cunningh/tenfourfox/TenFourFoxDebug.app/Contents/MacOS/firefox +0xcc0]
#34: tart[/Users/cunningh/tenfourfox/TenFourFoxDebug.app/Contents/MacOS/firefox +0x9c4]

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x0aa3d56c in nsFrame::Init (this=<value temporarily unavailable, due to optimizations>, aContent=<value temporarily unavailable, due to optimizations>, aParent=<value temporarily unavailable, due to optimizations>, aPrevInFlow=<value temporarily unavailable, due to optimizations>) at nsFrame.cpp:514
514       MOZ_ASSERT(0);
(gdb) bt
#0  0x0aa3d56c in nsFrame::Init (this=<value temporarily unavailable, due to optimizations>, aContent=<value temporarily unavailable, due to optimizations>, aParent=<value temporarily unavailable, due to optimizations>, aPrevInFlow=<value temporarily unavailable, due to optimizations>) at nsFrame.cpp:514
#1  0x0aaebb88 in nsSplittableFrame::Init (this=0x1ef4e20, aContent=<value temporarily unavailable, due to optimizations>, aParent=<value temporarily unavailable, due to optimizations>, aPrevInFlow=0x0) at nsSplittableFrame.cpp:22
#2  0x0aa3cecc in nsContainerFrame::Init (this=0x1ef4e20, aContent=<value temporarily unavailable, due to optimizations>, aParent=<value temporarily unavailable, due to optimizations>, aPrevInFlow=0x0) at nsContainerFrame.cpp:52
#3  0x0aaed1bc in ViewportFrame::Init (this=0x1ef4e20, aContent=<value temporarily unavailable, due to optimizations>, aParent=<value temporarily unavailable, due to optimizations>, aPrevInFlow=<value temporarily unavailable, due to optimizations>) at nsViewportFrame.cpp:38
Warning: physname = NULL
Warning: physname = NULL
Warning: physname = NULL
Warning: physname = NULL
Warning: physname = NULL
Warning: physname = NULL
Warning: physname = NULL
Warning: physname = NULL
Warning: physname = NULL
Warning: physname = NULL
Warning: physname = NULL
Warning: physname = NULL
Warning: physname = NULL
Warning: physname = NULL
Warning: physname = NULL
Warning: physname = NULL
Warning: physname = NULL
Warning: physname = NULL
Warning: physname = NULL
Warning: physname = NULL
#4  0x0a95ab70 in nsCSSFrameConstructor::ConstructRootFrame (this=0x1dcc7350) at nsCSSFrameConstructor.cpp:2610
#5  0x0a9be4f8 in PresShell::Initialize (this=0x1ee4200, aWidth=<value temporarily unavailable, due to optimizations>, aHeight=<value temporarily unavailable, due to optimizations>) at nsPresShell.cpp:1668
#6  0x0a526a74 in mozilla::dom::XULDocument::StartLayout (this=<value temporarily unavailable, due to optimizations>) at XULDocument.cpp:1904
#7  0x0a52bfb0 in mozilla::dom::XULDocument::DoneWalking (this=0x1ee3200) at XULDocument.cpp:3020
#8  0x0a533004 in mozilla::dom::XULDocument::ResumeWalk (this=0x1ee3200) at XULDocument.cpp:2970
#9  0x0a535178 in mozilla::dom::XULDocument::OnScriptCompileComplete (this=0x1ee3200, aScript=<value temporarily unavailable, due to optimizations>, aStatus=NS_OK) at XULDocument.cpp:3450
#10 0x0a511900 in NotifyOffThreadScriptCompletedRunnable::Run (this=0x204b5b50) at nsXULElement.cpp:2720
#11 0x081cf160 in nsThread::ProcessNextEvent (this=0x51ed90, aMayWait=false, aResult=0xefffd7f8) at nsThread.cpp:972
#12 0x0820e1dc in NS_ProcessPendingEvents (aThread=0x51ed90, aTimeout=10) at nsThreadUtils.cpp:239
#13 0x0a5e545c in nsBaseAppShell::NativeEventCallback (this=0x5aa860) at nsBaseAppShell.cpp:97
#14 0x0a63ce64 in nsAppShell::ProcessGeckoEvents (aInfo=0x5aa860) at nsAppShell.mm:415
#15 0x907df300 in __CFRunLoopDoSources0 ()
#16 0x907de830 in __CFRunLoopRun ()
#17 0x907de2b0 in CFRunLoopRunSpecific ()
#18 0x932adb20 in RunCurrentEventLoopInMode ()
#19 0x932ad1b4 in ReceiveNextEventCommon ()
#20 0x932ad020 in BlockUntilNextEventMatchingListInMode ()
#21 0x93791734 in _DPSNextEvent ()
#22 0x937913f8 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#23 0x0a63ca28 in -[GeckoNSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (self=0x51bb00, _cmd=<value temporarily unavailable, due to optimizations>, mask=4294967295, expiration=0x5aebe0, mode=0xa07c1a80, flag=<value temporarily unavailable, due to optimizations>) at nsAppShell.mm:136
#24 0x9378d93c in -[NSApplication run] ()
#25 0x0a64a5a4 in nsAppShell::Run (this=0x5aa860) at nsAppShell.mm:689
#26 0x0b1aa9a0 in nsAppStartup::Run (this=0x5aa7f0) at nsAppStartup.cpp:281
#27 0x0b2287c8 in XREMain::XRE_mainRun (this=0xeffff428) at /Users/cunningh/tenfourfox/toolkit/xre/nsAppRunner.cpp:4299
#28 0x0b229eb4 in XREMain::XRE_main (this=0xeffff428, argc=1, argv=<value temporarily unavailable, due to optimizations>, aAppData=<value temporarily unavailable, due to optimizations>) at /Users/cunningh/tenfourfox/toolkit/xre/nsAppRunner.cpp:4396
#29 0x0b22a14c in XRE_main (argc=1, argv=0xeffffb28, aAppData=0xeffff60c, aFlags=<value temporarily unavailable, due to optimizations>) at /Users/cunningh/tenfourfox/toolkit/xre/nsAppRunner.cpp:4498
#30 0x00004fc4 in main (argc=<value temporarily unavailable, due to optimizations>, argv=<value temporarily unavailable, due to optimizations>) at /Users/cunningh/tenfourfox/browser/app/nsBrowserApp.cpp:212
(gdb) 

@classilla
Copy link
Owner

That backtrace makes sense to me given the symptoms reported (it's a failure to handle the XUL for the window), but I'm not sure why it's gone wrong and the calls seem correct. The bad thing must have happened earlier.

The other way to find the compiler bug -- and this would be labourious, but would work -- is to go one by one through the optimizations added by -O1, add each one to --enable-optimize= and see which one breaks the build. You should be able to see which ones are turned on with $GCC -Q -O1 --help=optimizers (where $GCC is the 6.4.0 binary, whatever it's called) and looking for those that are enabled in the listing.

@NapalmSauce
Copy link
Contributor

NapalmSauce commented Jan 21, 2018

There's a ton of them. Since my -Og build never crashed (even when handling navigation on youtube, and playing some example WebM VP8 files) I assume options implied by -Og are safe, for now at least. Using diff and grep I made a quick list of the options disabled by -Og but enabled for -O1:

>   -fbranch-count-reg                          [enabled]
>   -fif-conversion                             [enabled]
>   -fif-conversion2                            [enabled]
>   -finline-functions-called-once              [enabled]
>   -fmove-loop-invariants                      [enabled]
>   -fssa-phiopt                                [enabled]
>   -ftree-bit-ccp                              [enabled]
>   -ftree-pta                                  [enabled]
>   -ftree-sra                                  [enabled]

This way we could use --enable-optimize=-Og\ -which\ -option\ -makes\ -it\ -crash

Using this with a G3 or G3-nostrip.mozcfg could also save time.

Is it advisable to try something like this before falling back to trying every single option?

@classilla
Copy link
Owner

That seems reasonable as far as the optimization options, but I'd still stick with the DEBUG configuration because it might crash with a different error and you'd be rebuilding DEBUG anyway.

I'm actually suspecting -finline-functions-called-once is the culprit, since the issue seems to do with a reentrant call. But let's see.

@NapalmSauce
Copy link
Contributor

NapalmSauce commented Jan 21, 2018

You're right, keeping with DEBUG is more suitable than rushing all the builds then running into something unexpected. Especially when I have seen some strange debugging behaviour previously.

@internetzel
Copy link

Before proceding with your debugging you should apply the attached patch to the linker (ld64).
I've had problems with recent versions of gcc because in addition to the __text section they create __text_startup and __text_cold sections.
Without the patch those sections aren't placed adjacent to __text which, depending on the size of the sections between __text and the other two, will cause branch island hopping to fail. If I remember correctly __text_startup contains the initialization code for (non-const?) variables.
That of course causes all sort of unexplicable failures upon application launch.
The patch is an imperfect workaround and adds a FIXME comment explaining the conditions that still have to be met in order to produce correct output. The basic problem is that I couldn't find an easy way to make ld64 generate branch island hopping across multiple sections.

@NapalmSauce
Copy link
Contributor

The patch will apply against the current ld64-97 sources from macports, correct?

Does that mean something like placing the two sections either before the branch island at the start of __text or after the branch island at the end of __text would allow these sections to grow a little more without harm? Not that it looks like a simple/feasible undertaking either.

Anyway, thanks for the patch and the hint!

@internetzel
Copy link

Yes, the patch is against ld64 97.17 .
See the comment above "bool Writer::createBranchIslands()" in src/ld/MachOWriterExecutable.hpp for an explanation of the branch island logic used for the ppc architecture.
A branch island is placed every 14 MB of the __text section, so there's 2 MB left for branch island size. In our case there's 2 MB left for branch island size plus __text_startup size plus __text_cold size - but those sections are commonly far less than 100 kB in size even for large binaries like a debug build of WebCore (approximately 100 MB of file size).
The branch islands are currently restricted to reside in the __text section only. But for reaching code outside of that section branch islands would be created even at the very beginning or end of the __text section.

@kencu
Copy link
Contributor Author

kencu commented Jan 21, 2018

I was thinking I might also try a build with gcc7 to see if any of these optimization issues have been resolved in that version.

Just an FYI as well, not sure if you've seen Michael's work on building a newer ld64 on PPC. https://github.com/michaelweiser/ld64/branches

@internetzel
Copy link

This might not even be a compiler issue at all - might well be just that specific linker issue.

Unfortunately Michael says that his forward ports don't solve the problems existing in ld64 127.2 - I know it fails to correctly link bigger binaries, like WebCore for example. I'd expect the same for XUL.

kencu added a commit to kencu/TigerPorts that referenced this issue Jan 22, 2018
@kencu
Copy link
Contributor Author

kencu commented Jan 22, 2018

I applied your ld64-97 patch, rebuilt TFF debug (without any MOZ_ASSERT changes added), with gcc6 and optimize=-O1 . I get a new assertion failure that I thought might be relevant.

(gdb) run
Starting program: /Users/cunningh/tenfourfox/TenFourFox.app/Contents/MacOS/firefox 
warning: Could not find malloc init callback function.  
Make sure malloc is initialized before calling functions.
Reading symbols for shared libraries . done
JavaScript warning: resource://gre/modules/TelemetryStopwatch.jsm, line 39: unreachable code after return statement
JavaScript warning: resource://gre/modules/TelemetryStopwatch.jsm, line 78: unreachable code after return statement
JavaScript warning: resource://gre/modules/TelemetryStopwatch.jsm, line 107: unreachable code after return statement
JavaScript warning: resource://gre/modules/TelemetryStopwatch.jsm, line 136: unreachable code after return statement
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
[15985] ###!!! ASSERTION: Deprecated, use NewChannel2 providing loadInfo arguments!: 'false', file /Users/cunningh/tenfourfox/netwerk/base/nsIOService.cpp, line 936
[15985] ###!!! ASSERTION: Please pass security info when creating a channel: 'loadInfo', file /Users/cunningh/tenfourfox/netwerk/base/nsIOService.cpp, line 862
JavaScript warning: resource://gre/modules/TelemetryController.jsm, line 660: unreachable code after return statement
JavaScript warning: resource://gre/modules/TelemetryReportingPolicy.jsm, line 342: unreachable code after return statement
JavaScript warning: resource://gre/modules/TelemetrySend.jsm, line 1035: unreachable code after return statement
++DOCSHELL 0x1df0a00 == 1 [pid = 15985] [id = 1]
++DOMWINDOW == 1 (0x1df1400) [pid = 15985] [serial = 1] [outer = 0x0]
Loading ColorSync profile: /Library/ColorSync/Profiles/Displays/Apple Cinema Display-42485F0.icc
Size of profile: 844
++DOMWINDOW == 2 (0x1daec00) [pid = 15985] [serial = 2] [outer = 0x1df1400]
JavaScript warning: resource://gre/modules/UITelemetry.jsm, line 30: unreachable code after return statement
JavaScript warning: resource://gre/modules/UITelemetry.jsm, line 49: unreachable code after return statement
++DOCSHELL 0x1f7b200 == 2 [pid = 15985] [id = 2]
++DOMWINDOW == 3 (0x1f7bc00) [pid = 15985] [serial = 3] [outer = 0x0]
++DOMWINDOW == 4 (0x1f82e00) [pid = 15985] [serial = 4] [outer = 0x1f7bc00]
[15985] WARNING: Loaded script chrome://global/content/printUtils.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[15985] WARNING: Loaded script chrome://global/content/viewZoomOverlay.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[15985] WARNING: Loaded script chrome://browser/content/places/browserPlacesViews.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[15985] WARNING: Loaded script chrome://browser/content/browser.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[15985] WARNING: Loaded script chrome://browser/content/downloads/downloads.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[15985] WARNING: Loaded script chrome://browser/content/downloads/indicator.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[15985] WARNING: Loaded script chrome://browser/content/customizableui/panelUI.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[15985] WARNING: Loaded script chrome://global/content/viewSourceUtils.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[15985] WARNING: Loaded script chrome://browser/content/browser-addons.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[15985] WARNING: Loaded script chrome://browser/content/browser-ctrlTab.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[15985] WARNING: Loaded script chrome://browser/content/browser-devedition.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[15985] WARNING: Loaded script chrome://browser/content/browser-eme.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[15985] WARNING: Loaded script chrome://browser/content/browser-feeds.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[15985] WARNING: Loaded script chrome://browser/content/browser-fullScreen.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[15985] WARNING: Loaded script chrome://browser/content/browser-fullZoom.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[15985] WARNING: Loaded script chrome://browser/content/browser-gestureSupport.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[15985] WARNING: Loaded script chrome://browser/content/browser-places.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
JavaScript warning: chrome://browser/content/browser-plugins.js, line 219: unreachable code after return statement
JavaScript warning: chrome://browser/content/browser-plugins.js, line 219: unreachable code after return statement
[15985] WARNING: Loaded script chrome://browser/content/browser-plugins.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[15985] WARNING: Loaded script chrome://browser/content/browser-sidebar.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[15985] WARNING: Loaded script chrome://browser/content/browser-social.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[15985] WARNING: Loaded script chrome://browser/content/browser-syncui.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[15985] WARNING: Loaded script chrome://browser/content/browser-tabsintitlebar.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[15985] WARNING: Loaded script chrome://browser/content/browser-trackingprotection.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
[15985] WARNING: Loaded script chrome://browser/content/browser-fxaccounts.js twice (bug 392650): file /Users/cunningh/tenfourfox/dom/xul/nsXULPrototypeCache.cpp, line 219
++DOCSHELL 0x1f342600 == 3 [pid = 15985] [id = 3]
++DOMWINDOW == 5 (0x1f2cac00) [pid = 15985] [serial = 5] [outer = 0x0]
++DOCSHELL 0x1f2cb000 == 4 [pid = 15985] [id = 4]
++DOMWINDOW == 6 (0x1f2cb400) [pid = 15985] [serial = 6] [outer = 0x0]
nsStandaloneNativeMenu::Init
nsMenuX::MenuConstruct called for  = 546996720 
nsMenuX::MenuConstruct called for File = 449503696 
nsMenuX::MenuConstruct called for New Container Tab = 509752192 
nsMenuX::MenuConstruct called for Edit = 449503744 
nsMenuX::MenuConstruct called for View = 547043936 
nsMenuX::MenuConstruct called for Toolbars = 547051952 
nsMenuX::MenuConstruct called for Sidebar = 547052496 
nsMenuX::MenuConstruct called for Zoom = 547058512 
nsMenuX::MenuConstruct called for Page Style = 547059328 
nsMenuX::MenuConstruct called for Text Encoding = 547067744 
nsMenuX::MenuConstruct called for History = 547072368 
nsMenuX::MenuConstruct called for Recently Closed Tabs = 547078144 
nsMenuX::MenuConstruct called for Recently Closed Windows = 547079600 
nsMenuX::MenuConstruct called for Bookmarks = 547072416 
nsMenuX::MenuConstruct called for Subscribe to This Page = 547087744 
nsMenuX::MenuConstruct called for Bookmarks Toolbar = 547090640 
nsMenuX::MenuConstruct called for Tools = 547077264 
nsMenuX::MenuConstruct called for Web Developer = 547100144 
nsMenuX::MenuConstruct called for Mirror Tab = 547110784 
nsMenuX::MenuConstruct called for Window = 547084544 
nsMenuX::MenuConstruct called for Help = 547115008 
[15985] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80040111: file /Users/cunningh/tenfourfox/dom/base/nsFrameLoader.cpp, line 272
++DOCSHELL 0x1f5a8a00 == 5 [pid = 15985] [id = 5]
++DOMWINDOW == 7 (0x1f5a8e00) [pid = 15985] [serial = 7] [outer = 0x0]
[15985] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80040111: file /Users/cunningh/tenfourfox/dom/base/nsFrameLoader.cpp, line 272
++DOMWINDOW == 8 (0x1f5e9400) [pid = 15985] [serial = 8] [outer = 0x1f5a8e00]
Size of LucidaGrande font table directory: 380
Assertion failure: mRawPtr != 0 (You can't dereference a NULL nsCOMPtr with operator->().), at ../../dist/include/nsCOMPtr.h:734
#01: ffi_prep_closure[/Users/cunningh/tenfourfox/TenFourFox.app/Contents/MacOS/XUL +0x3c189c8]
#02: std::_Rb_tree_node<unsigned long long>* std::_Rb_tree<unsigned long long, unsigned long long, std::_Identity<unsigned long long>, std::less<unsigned long long>, std::allocator<unsigned long long> >::_M_copy<std::_Rb_tree<unsigned long long, unsigned long [/Users/cunningh/tenfourfox/TenFourFox.app/Contents/MacOS/XUL +0x23a3cfc]
#03: imgLoader::SupportImageWithMimeType(char const*, AcceptedMimeTypes)[/Users/cunningh/tenfourfox/TenFourFox.app/Contents/MacOS/XUL +0x108ea48]
#04: std::_Rb_tree_node<unsigned long long>* std::_Rb_tree<unsigned long long, unsigned long long, std::_Identity<unsigned long long>, std::less<unsigned long long>, std::allocator<unsigned long long> >::_M_copy<std::_Rb_tree<unsigned long long, unsigned long [/Users/cunningh/tenfourfox/TenFourFox.app/Contents/MacOS/XUL +0x23a3c3c]
#05: imgLoader::SupportImageWithMimeType(char const*, AcceptedMimeTypes)[/Users/cunningh/tenfourfox/TenFourFox.app/Contents/MacOS/XUL +0x1094f8c]
#06: std::_Rb_tree_node<unsigned long long>* std::_Rb_tree<unsigned long long, unsigned long long, std::_Identity<unsigned long long>, std::less<unsigned long long>, std::allocator<unsigned long long> >::_M_copy<std::_Rb_tree<unsigned long long, unsigned long [/Users/cunningh/tenfourfox/TenFourFox.app/Contents/MacOS/XUL +0x23a3d40]
#07: NS_NewBoxFrame(nsIPresShell*, nsStyleContext*)[/Users/cunningh/tenfourfox/TenFourFox.app/Contents/MacOS/XUL +0x2baeb74]
#08: NS_NewBoxFrame(nsIPresShell*, nsStyleContext*)[/Users/cunningh/tenfourfox/TenFourFox.app/Contents/MacOS/XUL +0x2bb04f4]
#09: imgLoader::SupportImageWithMimeType(char const*, AcceptedMimeTypes)[/Users/cunningh/tenfourfox/TenFourFox.app/Contents/MacOS/XUL +0xe73f00]
#10: imgLoader::SupportImageWithMimeType(char const*, AcceptedMimeTypes)[/Users/cunningh/tenfourfox/TenFourFox.app/Contents/MacOS/XUL +0xe76528]
#11: imgLoader::SupportImageWithMimeType(char const*, AcceptedMimeTypes)[/Users/cunningh/tenfourfox/TenFourFox.app/Contents/MacOS/XUL +0xe874dc]
#12: imgLoader::SupportImageWithMimeType(char const*, AcceptedMimeTypes)[/Users/cunningh/tenfourfox/TenFourFox.app/Contents/MacOS/XUL +0xe7603c]
#13: imgLoader::SupportImageWithMimeType(char const*, AcceptedMimeTypes)[/Users/cunningh/tenfourfox/TenFourFox.app/Contents/MacOS/XUL +0xe762e4]
#14: imgLoader::SupportImageWithMimeType(char const*, AcceptedMimeTypes)[/Users/cunningh/tenfourfox/TenFourFox.app/Contents/MacOS/XUL +0xe5b108]
#15: mozilla_dump_image[/Users/cunningh/tenfourfox/TenFourFox.app/Contents/MacOS/XUL +0xe46f28]
#16: mozilla::LoadInfo::GetRedirectChain(JSContext*, JS::MutableHandle<JS::Value>)[/Users/cunningh/tenfourfox/TenFourFox.app/Contents/MacOS/XUL +0x18df20]
#17: mozilla::LoadInfo::GetRedirectChain(JSContext*, JS::MutableHandle<JS::Value>)[/Users/cunningh/tenfourfox/TenFourFox.app/Contents/MacOS/XUL +0x1ab988]
#18: mozilla::LoadInfo::GetRedirectChain(JSContext*, JS::MutableHandle<JS::Value>)[/Users/cunningh/tenfourfox/TenFourFox.app/Contents/MacOS/XUL +0x1b97bc]
#19: NS_NewLocalFile[/Users/cunningh/tenfourfox/TenFourFox.app/Contents/MacOS/XUL +0xb8128]
#20: XRE_AddJarManifestLocation[/Users/cunningh/tenfourfox/TenFourFox.app/Contents/MacOS/XUL +0xd56e0]
#21: void std::vector<unsigned long, std::allocator<unsigned long> >::_M_emplace_back_aux<unsigned long>(unsigned long&&)[/Users/cunningh/tenfourfox/TenFourFox.app/Contents/MacOS/XUL +0x11475c]
#22: std::_Rb_tree_node<unsigned long long>* std::_Rb_tree<unsigned long long, unsigned long long, std::_Identity<unsigned long long>, std::less<unsigned long long>, std::allocator<unsigned long long> >::_M_copy<std::_Rb_tree<unsigned long long, unsigned long [/Users/cunningh/tenfourfox/TenFourFox.app/Contents/MacOS/XUL +0x24eb9dc]
#23: std::_Rb_tree_node<unsigned long long>* std::_Rb_tree<unsigned long long, unsigned long long, std::_Identity<unsigned long long>, std::less<unsigned long long>, std::allocator<unsigned long long> >::_M_copy<std::_Rb_tree<unsigned long long, unsigned long [/Users/cunningh/tenfourfox/TenFourFox.app/Contents/MacOS/XUL +0x25433e4]
#24: CFRunLoopRunSpecific[/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation +0x24300]
#25: CFRunLoopRunSpecific[/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation +0x23830]
#26: CFRunLoopRunSpecific[/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation +0x232b0]
#27: GetMainEventQueue[/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox +0x8b20]
#28: BlockUntilNextEventMatchingListInMode[/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox +0x81b4]
#29: BlockUntilNextEventMatchingListInMode[/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox +0x8020]
#30: _DPSNextEvent[/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit +0x8734]
#31: _runningOnAppKitThread[/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit +0x83f8]
#32: std::_Rb_tree_node<unsigned long long>* std::_Rb_tree<unsigned long long, unsigned long long, std::_Identity<unsigned long long>, std::less<unsigned long long>, std::allocator<unsigned long long> >::_M_copy<std::_Rb_tree<unsigned long long, unsigned long [/Users/cunningh/tenfourfox/TenFourFox.app/Contents/MacOS/XUL +0x2542fa8]
#33: _NXIsHiddenOnLaunch[/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit +0x493c]
#34: std::_Rb_tree_node<unsigned long long>* std::_Rb_tree<unsigned long long, unsigned long long, std::_Identity<unsigned long long>, std::less<unsigned long long>, std::allocator<unsigned long long> >::_M_copy<std::_Rb_tree<unsigned long long, unsigned long [/Users/cunningh/tenfourfox/TenFourFox.app/Contents/MacOS/XUL +0x2550b24]
#35: void std::vector<int, std::allocator<int> >::_M_insert_aux<int const&>(__gnu_cxx::__normal_iterator<int*, std::vector<int, std::allocator<int> > >, int const&)[/Users/cunningh/tenfourfox/TenFourFox.app/Contents/MacOS/XUL +0x30b171c]
#36: XRE_InitCommandLine[/Users/cunningh/tenfourfox/TenFourFox.app/Contents/MacOS/XUL +0x312f544]
#37: XRE_InitCommandLine[/Users/cunningh/tenfourfox/TenFourFox.app/Contents/MacOS/XUL +0x3130c30]
#38: XRE_main[/Users/cunningh/tenfourfox/TenFourFox.app/Contents/MacOS/XUL +0x3130ec8]
#39: tart[/Users/cunningh/tenfourfox/TenFourFox.app/Contents/MacOS/firefox +0x3674]
#40: tart[/Users/cunningh/tenfourfox/TenFourFox.app/Contents/MacOS/firefox +0xcc0]
#41: tart[/Users/cunningh/tenfourfox/TenFourFox.app/Contents/MacOS/firefox +0x9c4]

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x0a49bd04 in mozilla::dom::XMLDocument::ResetToURI (this=0x1f6ad000, aURI=0x21e316e0, aLoadGroup=0x21e173f0, aPrincipal=0x21e30660) at nsCOMPtr.h:733
733         MOZ_ASSERT(mRawPtr != 0,

@kencu
Copy link
Contributor Author

kencu commented Jan 24, 2018

FWIW gcc7 does build TFF through to completion on 10.4 PPC, but very similar errors appear.

@NapalmSauce
Copy link
Contributor

NapalmSauce commented Jan 24, 2018

I thought about this for a moment..

This fatal assert

Assertion failure: mRawPtr != 0 (You can't dereference a NULL nsCOMPtr with operator->().)

up to now only showed up when compiling at -O1.

while this assert (the one we tried to make fatal and didn't show up without forcing it)

###!!! ASSERTION: Double-initing a frame?: '!mContent'

has only been seen from my build at -O2. Which explains why all subsequent builds died later with the first assert I mentioned (I should have paid more attention to this).

So even though we narrow it down to one single compiler flag that makes -O1 builds crash, -O2 will introduce further ways for the browser to crash. The same is correct to assume with -O3 too, I guess.

I'm not sure what can be done for now.

@NapalmSauce
Copy link
Contributor

NapalmSauce commented Jan 24, 2018

I'm thinking of leaving 6.4.0 alone for awhile right now.

Even more when I suspect gcc 5.5.0 being a good path for now.

After reluctantly doing a debug build using 5.5.0 with --enable-optimize=-O1 TenFourFoxDebug works and doesn't log any terminal assertion.

@classilla Can this issue be turned into something that sounds like "Find a later version of gcc that works" or would reopening one for 5 be preferable?

@classilla
Copy link
Owner

classilla commented Jan 24, 2018 via email

@rmottola
Copy link
Contributor

late in this discussion, I have not tried, but in ArcticFox I need these to compile and run witthout crash, I read the explanatino in some backports about code being optmizized away in constructors, newer FF then fixed that (but have no reference to the bugs that fixed it...)
AF now builds successfully on linux up to gcc 6.5 and on NetBSD also with GCC 7 and runs, using these below.

ac_add_options --enable-optimize="-O2 -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants