[MacPorts] #70556: "base" seemingly locking up for sometimes very long

MacPorts noreply at macports.org
Mon Sep 2 11:30:46 UTC 2024


#70556: "base" seemingly locking up for sometimes very long
--------------------------+--------------------
  Reporter:  RJVB         |      Owner:  (none)
      Type:  enhancement  |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  base         |    Version:
Resolution:               |   Keywords:
      Port:               |
--------------------------+--------------------

Comment (by barracuda156):

 I just uninstalled a port and tried not to kill `tclsh8.6` immediately. It
 freezes for phenomenal amount of time. Perhaps already ~20 minutes and
 still stuck.

 Process sample, FWIW:
 {{{
 Analysis of sampling tclsh8.6 (pid 15449) every 1 millisecond
 Call graph:
     2225 Thread_3703
       2225 start
         2225 main
           2225 Tcl_MainEx
             2225 Tcl_FSEvalFileEx
               2225 TclEvalEx
                 2225 TclNRRunCallbacks
                   2225 registry_close
                     2225 reg_vacuum
                       2225 sqlite3_step
                         2225 sqlite3VdbeExec
                           2225 sqlite3RunVacuum
                             2221 sqlite3_backup_step
                               2122 backupOnePage
                                 2108 getPageNormal
                                   1274 pagerStress
                                     1272 pagerWalFrames
                                       1122 walFindFrame
                                         1090 walFindFrame
                                         32 walHashGet
                                           32 walHashGet
                                       146 walWriteOneFrame
                                         143 seekAndWriteFd
                                           143 pwrite$UNIX2003
                                             143 pwrite$UNIX2003
                                         3 walEncodeFrame
                                           2 walChecksumBytes
                                             2 walChecksumBytes
                                           1 sqlite3Put4byte
                                             1 sqlite3Put4byte
                                       3 pagerWalFrames
                                       1 bcmp
                                         1 bcmp
                                     1 pagerStress
                                     1 subjournalPageIfRequired
                                       1 subjournalPageIfRequired
                                   833 readDbPage
                                     801 walFindFrame
                                       766 walFindFrame
                                       35 walHashGet
                                         35 walHashGet
                                     29 unixRead
                                       28 seekAndRead
                                         28 pread$UNIX2003
                                           28 pread$UNIX2003
                                       1 unixRead
                                     2 readDbPage
                                     1 readDbPage
                                       1 unixRead
                                         1 unixRead
                                   1 pcache1FetchStage2
                                     1 pcache1RemoveFromHash
                                       1 pcache1RemoveFromHash
                                 6 __memcpy
                                   6 __memcpy
                                 3 backupOnePage
                                 2 sqlite3PagerWrite
                                   2 sqlite3PagerWrite
                                 1 __moddi3
                                   1 __moddi3
                                 1 dyld_stub___moddi3
                                   1 dyld_stub___moddi3
                                 1 memcpy
                                   1 memcpy
                               62 sqlite3_backup_step
                               28 getPageNormal
                                 20 readDbPage
                                   19 unixRead
                                     19 seekAndRead
                                       19 pread$UNIX2003
                                         19 pread$UNIX2003
                                   1 readDbPage
                                 7 pcache1FetchStage2
                                   6 pcache1Alloc
                                     4 sqlite3Malloc
                                       3 sqlite3MemMalloc
                                         1 dyld_stub_malloc_zone_malloc
                                           1 dyld_stub_malloc_zone_malloc
                                         1 malloc_zone_malloc
                                           1 malloc_zone_malloc
                                             1 szone_malloc
                                               1 szone_malloc
                                         1 pthread_mutex_unlock
                                           1 pthread_mutex_unlock
                                       1 pthread_mutex_lock
                                         1 pthread_mutex_lock
                                     1 pcache1Alloc
                                     1 pthread_mutex_lock
                                       1 pthread_mutex_lock
                                   1 pcache1FetchStage2
                                 1 pcache1Fetch
                                   1 pcache1Fetch
                               6 pcache1Free
                                 2 pcache1Free
                                 2 sqlite3MemSize
                                   2 sqlite3MemSize
                                 1 pthread_mutex_lock
                                   1 pthread_mutex_lock
                                 1 szone_size
                                   1 szone_size
                               3 szone_free
                                 3 szone_free
                             3 sqlite3PcacheRelease
                               3 sqlite3PcacheRelease
                             1 pcache1RemoveFromHash
                               1 pcache1RemoveFromHash

 Total number in stack (recursive counted multiple, when >=5):

 Sort by top of stack, same collapsed (when >= 5):
         walFindFrame        1856
         pwrite$UNIX2003        143
         walHashGet        67
         sqlite3_backup_step        62
         pread$UNIX2003        47
         __memcpy        6
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/70556#comment:15>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list