crash on macOS 12.6.5 #731

issue fanquake openend this issue on May 18, 2023
  1. fanquake commented at 1:03 pm on May 18, 2023: member

    Moved from https://github.com/bitcoin/bitcoin/issues/27681.

    What version of Bitcoin Core are you using?

    V22.0.0 and 24.0.1.

    Operating system and version

    Mac osx 12.6.5

    Machine specifications

    2.8 dual core i5 8 gb ram high speed internet 1tb drive

      0Translated Report (Full Report Below)
      1-------------------------------------
      2
      3Process:               Bitcoin-Qt [844]
      4Path:                  /Applications/Bitcoin-Qt.app/Contents/MacOS/Bitcoin-Qt
      5Identifier:            org.bitcoinfoundation.Bitcoin-Qt
      6Version:               24.0.1 (24.0.1)
      7Code Type:             X86-64 (Native)
      8Parent Process:        launchd [1]
      9User ID:               501
     10
     11Date/Time:             2023-05-17 11:26:06.6243 -0400
     12OS Version:            macOS 12.6.5 (21G531)
     13Report Version:        12
     14Anonymous UUID:        313168C1-E000-AAE8-529A-18F42A02E846
     15
     16
     17Time Awake Since Boot: 7000 seconds
     18
     19System Integrity Protection: enabled
     20
     21Crashed Thread:        0  Dispatch queue: com.apple.main-thread
     22
     23Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
     24Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000100000008
     25Exception Codes:       0x0000000000000001, 0x0000000100000008
     26Exception Note:        EXC_CORPSE_NOTIFY
     27
     28Termination Reason:    Namespace SIGNAL, Code 11 Segmentation fault: 11
     29Terminating Process:   exc handler [844]
     30
     31VM Region Info: 0x100000008 is not in any region.  Bytes before following region: 143642616
     32      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
     33      UNUSED SPACE AT START
     34--->  
     35      __TEXT                      1088fd000-10a4d2000    [ 27.8M] r-x/r-x SM=COW  ...OS/Bitcoin-Qt
     36
     37Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
     380   Bitcoin-Qt                    	       0x109730e61 0x1088fd000 + 14892641
     391   Bitcoin-Qt                    	       0x108935d23 0x1088fd000 + 232739
     402   Bitcoin-Qt                    	       0x1096281a3 0x1088fd000 + 13808035
     413   Bitcoin-Qt                    	       0x10986bca8 0x1088fd000 + 16182440
     424   Bitcoin-Qt                    	       0x1096282e7 0x1088fd000 + 13808359
     435   Bitcoin-Qt                    	       0x1091e02f0 0x1088fd000 + 9319152
     446   Bitcoin-Qt                    	       0x1091de8fb 0x1088fd000 + 9312507
     457   AppKit                        	    0x7ff8205329a4 -[NSApplication _createDockMenu:] + 165
     468   AppKit                        	    0x7ff8205328cc __44-[NSApplication _copyPublicPersistentUIInfo]_block_invoke + 42
     479   AppKit                        	    0x7ff8207a981b ___NSMainRunLoopPerformBlockInModes_block_invoke + 25
     4810  CoreFoundation                	    0x7ff81d943cf1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
     4911  CoreFoundation                	    0x7ff81d943b9c __CFRunLoopDoBlocks + 445
     5012  CoreFoundation                	    0x7ff81d942f0d __CFRunLoopRun + 2609
     5113  CoreFoundation                	    0x7ff81d941e1c CFRunLoopRunSpecific + 562
     5214  HIToolbox                     	    0x7ff8265f15e6 RunCurrentEventLoopInMode + 292
     5315  HIToolbox                     	    0x7ff8265f134a ReceiveNextEventCommon + 594
     5416  HIToolbox                     	    0x7ff8265f10e5 _BlockUntilNextEventMatchingListInModeWithFilter + 70
     5517  AppKit                        	    0x7ff82037bf6d _DPSNextEvent + 927
     5618  AppKit                        	    0x7ff82037a62a -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1394
     5719  AppKit                        	    0x7ff82036ccd9 -[NSApplication run] + 586
     5820  Bitcoin-Qt                    	       0x1091dc8b4 0x1088fd000 + 9304244
     5921  Bitcoin-Qt                    	       0x109604487 0x1088fd000 + 13661319
     6022  Bitcoin-Qt                    	       0x109607f82 0x1088fd000 + 13676418
     6123  Bitcoin-Qt                    	       0x10891b897 0x1088fd000 + 125079
     6224  dyld                          	       0x114ff352e start + 462
     63
     64Thread 1:
     650   libsystem_pthread.dylib       	    0x7ff81d878f48 start_wqthread + 0
     66
     67Thread 2:
     680   libsystem_pthread.dylib       	    0x7ff81d878f48 start_wqthread + 0
     69
     70Thread 3::  Dispatch queue: */O
     710   libsystem_kernel.dylib        	    0x7ff81d84122e __open + 10
     721   libsystem_kernel.dylib        	    0x7ff81d849621 open + 204
     732   AppKit                        	    0x7ff820530320 _NSPersistentUIOpenFileURL + 98
     743   AppKit                        	    0x7ff8205339b8 -[NSPersistentUIFileManager openPersistentStateFile] + 140
     754   AppKit                        	    0x7ff82053349f -[NSPersistentUIFileManager _writeRecords:withWindowInfos:flushingStaleData:] + 113
     765   AppKit                        	    0x7ff820533240 __76-[NSPersistentUIFileManager writeRecords:withWindowInfos:flushingStaleData:]_block_invoke + 59
     776   AppKit                        	    0x7ff8203800e1 ___NSPersistentUIDispatchQueueAsync_block_invoke + 28
     787   libdispatch.dylib             	    0x7ff81d6c50cc _dispatch_call_block_and_release + 12
     798   libdispatch.dylib             	    0x7ff81d6c6317 _dispatch_client_callout + 8
     809   libdispatch.dylib             	    0x7ff81d6cc317 _dispatch_lane_serial_drain + 672
     8110  libdispatch.dylib             	    0x7ff81d6ccdfd _dispatch_lane_invoke + 366
     8211  libdispatch.dylib             	    0x7ff81d6d6eee _dispatch_workloop_worker_thread + 753
     8312  libsystem_pthread.dylib       	    0x7ff81d879fd0 _pthread_wqthread + 326
     8413  libsystem_pthread.dylib       	    0x7ff81d878f57 start_wqthread + 15
     85
     86Thread 4:
     870   libsystem_pthread.dylib       	    0x7ff81d878f48 start_wqthread + 0
     88
     89Thread 5:: Thread (pooled)
     900   libsystem_kernel.dylib        	    0x7ff81d8433da __psynch_cvwait + 10
     911   libsystem_pthread.dylib       	    0x7ff81d87da6f _pthread_cond_wait + 1249
     922   Bitcoin-Qt                    	       0x1094d1a50 0x1088fd000 + 12405328
     933   Bitcoin-Qt                    	       0x1094d18ae 0x1088fd000 + 12404910
     944   Bitcoin-Qt                    	       0x1094d17cb 0x1088fd000 + 12404683
     955   Bitcoin-Qt                    	       0x1094cec6d 0x1088fd000 + 12393581
     966   Bitcoin-Qt                    	       0x1094cb109 0x1088fd000 + 12378377
     977   libsystem_pthread.dylib       	    0x7ff81d87d4e1 _pthread_start + 125
     988   libsystem_pthread.dylib       	    0x7ff81d878f6b thread_start + 15
     99
    100Thread 6:: Thread (pooled)
    1010   libsystem_kernel.dylib        	    0x7ff81d8433da __psynch_cvwait + 10
    1021   libsystem_pthread.dylib       	    0x7ff81d87da6f _pthread_cond_wait + 1249
    1032   Bitcoin-Qt                    	       0x1094d1a50 0x1088fd000 + 12405328
    1043   Bitcoin-Qt                    	       0x1094d18ae 0x1088fd000 + 12404910
    1054   Bitcoin-Qt                    	       0x1094d17cb 0x1088fd000 + 12404683
    1065   Bitcoin-Qt                    	       0x1094cec6d 0x1088fd000 + 12393581
    1076   Bitcoin-Qt                    	       0x1094cb109 0x1088fd000 + 12378377
    1087   libsystem_pthread.dylib       	    0x7ff81d87d4e1 _pthread_start + 125
    1098   libsystem_pthread.dylib       	    0x7ff81d878f6b thread_start + 15
    110
    111Thread 7:: Thread (pooled)
    1120   libsystem_kernel.dylib        	    0x7ff81d8433da __psynch_cvwait + 10
    1131   libsystem_pthread.dylib       	    0x7ff81d87da6f _pthread_cond_wait + 1249
    1142   Bitcoin-Qt                    	       0x1094d1a50 0x1088fd000 + 12405328
    1153   Bitcoin-Qt                    	       0x1094d18ae 0x1088fd000 + 12404910
    1164   Bitcoin-Qt                    	       0x1094d17cb 0x1088fd000 + 12404683
    1175   Bitcoin-Qt                    	       0x1094cec6d 0x1088fd000 + 12393581
    1186   Bitcoin-Qt                    	       0x1094cb109 0x1088fd000 + 12378377
    1197   libsystem_pthread.dylib       	    0x7ff81d87d4e1 _pthread_start + 125
    1208   libsystem_pthread.dylib       	    0x7ff81d878f6b thread_start + 15
    121
    122Thread 8:: Thread (pooled)
    1230   libsystem_kernel.dylib        	    0x7ff81d8433da __psynch_cvwait + 10
    1241   libsystem_pthread.dylib       	    0x7ff81d87da6f _pthread_cond_wait + 1249
    1252   Bitcoin-Qt                    	       0x1094d1a50 0x1088fd000 + 12405328
    1263   Bitcoin-Qt                    	       0x1094d18ae 0x1088fd000 + 12404910
    1274   Bitcoin-Qt                    	       0x1094d17cb 0x1088fd000 + 12404683
    1285   Bitcoin-Qt                    	       0x1094cec6d 0x1088fd000 + 12393581
    1296   Bitcoin-Qt                    	       0x1094cb109 0x1088fd000 + 12378377
    1307   libsystem_pthread.dylib       	    0x7ff81d87d4e1 _pthread_start + 125
    1318   libsystem_pthread.dylib       	    0x7ff81d878f6b thread_start + 15
    132
    133Thread 9:: com.apple.CFSocket.private
    1340   libsystem_kernel.dylib        	    0x7ff81d848d4a __select + 10
    1351   CoreFoundation                	    0x7ff81d96b659 __CFSocketManager + 641
    1362   libsystem_pthread.dylib       	    0x7ff81d87d4e1 _pthread_start + 125
    1373   libsystem_pthread.dylib       	    0x7ff81d878f6b thread_start + 15
    138
    139Thread 10:: b-shutoff
    1400   libsystem_kernel.dylib        	    0x7ff81d8420da __ulock_wait + 10
    1411   libsystem_pthread.dylib       	    0x7ff81d87ec95 _pthread_join + 358
    1422   libc++.1.dylib                	    0x7ff81d7e5a06 std::__1::thread::join() + 24
    1433   Bitcoin-Qt                    	       0x108ae6a9d 0x1088fd000 + 2005661
    1444   Bitcoin-Qt                    	       0x108a949d6 0x1088fd000 + 1669590
    1455   Bitcoin-Qt                    	       0x108946bd3 0x1088fd000 + 302035
    1466   Bitcoin-Qt                    	       0x109621a74 0x1088fd000 + 13781620
    1477   Bitcoin-Qt                    	       0x10973a856 0x1088fd000 + 14932054
    1488   Bitcoin-Qt                    	       0x10973bbb2 0x1088fd000 + 14937010
    1499   Bitcoin-Qt                    	       0x109607a36 0x1088fd000 + 13675062
    15010  Bitcoin-Qt                    	       0x109608b93 0x1088fd000 + 13679507
    15111  Bitcoin-Qt                    	       0x10964ba89 0x1088fd000 + 13953673
    15212  Bitcoin-Qt                    	       0x109604487 0x1088fd000 + 13661319
    15313  Bitcoin-Qt                    	       0x1094ca7c3 0x1088fd000 + 12376003
    15414  Bitcoin-Qt                    	       0x1094cb109 0x1088fd000 + 12378377
    15515  libsystem_pthread.dylib       	    0x7ff81d87d4e1 _pthread_start + 125
    15616  libsystem_pthread.dylib       	    0x7ff81d878f6b thread_start + 15
    157
    158Thread 11:: b-scriptch.0
    1590   libsystem_kernel.dylib        	    0x7ff81d8433da __psynch_cvwait + 10
    1601   libsystem_pthread.dylib       	    0x7ff81d87da6f _pthread_cond_wait + 1249
    1612   libc++.1.dylib                	    0x7ff81d7dbd22 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 18
    1623   Bitcoin-Qt                    	       0x108d6d213 0x1088fd000 + 4653587
    1634   Bitcoin-Qt                    	       0x108d6d04d 0x1088fd000 + 4653133
    1645   libsystem_pthread.dylib       	    0x7ff81d87d4e1 _pthread_start + 125
    1656   libsystem_pthread.dylib       	    0x7ff81d878f6b thread_start + 15
    166
    167Thread 12:: b-scriptch.1
    1680   libsystem_kernel.dylib        	    0x7ff81d8433da __psynch_cvwait + 10
    1691   libsystem_pthread.dylib       	    0x7ff81d87da6f _pthread_cond_wait + 1249
    1702   libc++.1.dylib                	    0x7ff81d7dbd22 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 18
    1713   Bitcoin-Qt                    	       0x108d6d213 0x1088fd000 + 4653587
    1724   Bitcoin-Qt                    	       0x108d6d04d 0x1088fd000 + 4653133
    1735   libsystem_pthread.dylib       	    0x7ff81d87d4e1 _pthread_start + 125
    1746   libsystem_pthread.dylib       	    0x7ff81d878f6b thread_start + 15
    175
    176Thread 13:: b-scriptch.2
    1770   libsystem_kernel.dylib        	    0x7ff81d8433da __psynch_cvwait + 10
    1781   libsystem_pthread.dylib       	    0x7ff81d87da6f _pthread_cond_wait + 1249
    1792   libc++.1.dylib                	    0x7ff81d7dbd22 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 18
    1803   Bitcoin-Qt                    	       0x108d6d213 0x1088fd000 + 4653587
    1814   Bitcoin-Qt                    	       0x108d6d04d 0x1088fd000 + 4653133
    1825   libsystem_pthread.dylib       	    0x7ff81d87d4e1 _pthread_start + 125
    1836   libsystem_pthread.dylib       	    0x7ff81d878f6b thread_start + 15
    184
    185Thread 14:: b-scheduler
    1860   libsystem_kernel.dylib        	    0x7ff81d8433da __psynch_cvwait + 10
    1871   libsystem_pthread.dylib       	    0x7ff81d87da6f _pthread_cond_wait + 1249
    1882   libc++.1.dylib                	    0x7ff81d7dbdb3 std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 93
    1893   Bitcoin-Qt                    	       0x1090beaad 0x1088fd000 + 8133293
    1904   Bitcoin-Qt                    	       0x1090be77b 0x1088fd000 + 8132475
    1915   Bitcoin-Qt                    	       0x108dccdc2 0x1088fd000 + 5045698
    1926   Bitcoin-Qt                    	       0x108abbaa7 0x1088fd000 + 1829543
    1937   libsystem_pthread.dylib       	    0x7ff81d87d4e1 _pthread_start + 125
    1948   libsystem_pthread.dylib       	    0x7ff81d878f6b thread_start + 15
    195
    196Thread 15:: com.apple.NSEventThread
    1970   libsystem_kernel.dylib        	    0x7ff81d84096a mach_msg_trap + 10
    1981   libsystem_kernel.dylib        	    0x7ff81d840cd8 mach_msg + 56
    1992   CoreFoundation                	    0x7ff81d94434d __CFRunLoopServiceMachPort + 319
    2003   CoreFoundation                	    0x7ff81d9429d8 __CFRunLoopRun + 1276
    2014   CoreFoundation                	    0x7ff81d941e1c CFRunLoopRunSpecific + 562
    2025   AppKit                        	    0x7ff8204e998e _NSEventThread + 132
    2036   libsystem_pthread.dylib       	    0x7ff81d87d4e1 _pthread_start + 125
    2047   libsystem_pthread.dylib       	    0x7ff81d878f6b thread_start + 15
    205
    206Thread 16:
    2070   libsystem_kernel.dylib        	    0x7ff81d8433da __psynch_cvwait + 10
    2081   libsystem_pthread.dylib       	    0x7ff81d87da6f _pthread_cond_wait + 1249
    2092   libc++.1.dylib                	    0x7ff81d7dbd22 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 18
    2103   Bitcoin-Qt                    	       0x109192863 0x1088fd000 + 9001059
    2114   Bitcoin-Qt                    	       0x1091927ed 0x1088fd000 + 9000941
    2125   Bitcoin-Qt                    	       0x10919291e 0x1088fd000 + 9001246
    2136   libsystem_pthread.dylib       	    0x7ff81d87d4e1 _pthread_start + 125
    2147   libsystem_pthread.dylib       	    0x7ff81d878f6b thread_start + 15
    215
    216Thread 17:: b-opencon
    2170   libsystem_kernel.dylib        	    0x7ff81d848d4a __select + 10
    2181   Bitcoin-Qt                    	       0x108da6bb4 0x1088fd000 + 4889524
    2192   Bitcoin-Qt                    	       0x108da67bc 0x1088fd000 + 4888508
    2203   Bitcoin-Qt                    	       0x109088b2b 0x1088fd000 + 7912235
    2214   Bitcoin-Qt                    	       0x108ace1c2 0x1088fd000 + 1905090
    2225   Bitcoin-Qt                    	       0x108ad63e3 0x1088fd000 + 1938403
    2236   Bitcoin-Qt                    	       0x108adde87 0x1088fd000 + 1969799
    2247   Bitcoin-Qt                    	       0x108af456e 0x1088fd000 + 2061678
    2258   Bitcoin-Qt                    	       0x108dccdc2 0x1088fd000 + 5045698
    2269   Bitcoin-Qt                    	       0x108af3ff2 0x1088fd000 + 2060274
    22710  libsystem_pthread.dylib       	    0x7ff81d87d4e1 _pthread_start + 125
    22811  libsystem_pthread.dylib       	    0x7ff81d878f6b thread_start + 15
    229
    230Thread 18:
    2310   libsystem_pthread.dylib       	    0x7ff81d878f48 start_wqthread + 0
    232
    233Thread 19::  Dispatch queue: NSPersistentUI Window Snapshotting IO
    2340   libsystem_platform.dylib      	    0x7ff81d890629 _platform_bzero$VARIANT$Haswell + 41
    2351   libz.1.dylib                  	    0x7ff8285a139d 0x7ff828597000 + 41885
    2362   libz.1.dylib                  	    0x7ff82859a195 deflateInit2_ + 537
    2373   libz.1.dylib                  	    0x7ff828599f76 deflateInit_ + 36
    2384   AppKit                        	    0x7ff82052f9f4 -[NSPersistentUIWindowSnapshotter writeWindowSnapshot:length:width:height:bytesPerRow:toFile:inDirectory:encryptingWithKey:uuid:checksum:fd:] + 668
    2395   AppKit                        	    0x7ff820e8f716 __100-[NSPersistentUIWindowSnapshotter captureAndWriteSnapshotForWindowNumber:forWindowID:waitUntilDone:]_block_invoke.95 + 225
    2406   AppKit                        	    0x7ff820e902f0 ___NSPersistentUIDispatchQueueAsync_block_invoke + 28
    2417   libdispatch.dylib             	    0x7ff81d6c50cc _dispatch_call_block_and_release + 12
    
  2. jarolrod commented at 9:44 pm on May 19, 2023: member

    @ddykeman1 would you be able to compile bitcoin core on your own, enabling debug during the configure stage, that would greatly help to identify exactly what is going on.

    I’d also suggest sanity checking your setup:

    1. Is the data directory existing and available
    2. Does the crash occur if you choose a different data directory? (You can run the gui on startup with -resetguisettings to be able to choose a new data directory within the gui itself on startup, or pass -datadir when running the gui from the command line @hebasto So the GUI ran for 3 hours, then a crash occurred. And now subsequent startups for the gui result in the above crash. So to begin we’d want to look at macOS && GUI specific init code. The current crash log does provide hints with 0x7ff8205329a4 -[NSApplication _createDockMenu:] + 165. Looking at this patch, would it be reasonable to do a check on the delegate to make sure that it’s even available in the first place?

    So within the constructor for MacDockIconHandler, we could do something like this before calling the setupDockClickHandler:

    0MacDockIconHandler::MacDockIconHandler() : QObject()
    1{
    2    id delegate = [[NSApplication sharedApplication] delegate];
    3    if (delegate == nil) {
    4        // delegate not set
    5    } else {
    6        //delegate is set
    7        setupDockClickHandler();
    8    }
    9}
    
  3. ddykeman1 commented at 3:24 pm on May 21, 2023: none
    Not sure how to do that at the moment

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/gui. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-10-31 23:20 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me