Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-34129

mariadb-install-db appears to hang on macOS

Details

    Description

      In 10.5, git commit sha cd0356a764d5cad5bb64479adb1a646283314f3c introduced this problem wherein we appear to wait forever in wait_for_signal_thread_to_end. This sha was cherry-pick'd from 10.6, git sha 814dc46748d8c276f18c7664d8d14a543cff954c which also fails in the same way.
      Process thread sample from Activity Monitor (full sample attached):

          1133 Thread_12113141   DispatchQueue_1: com.apple.main-thread  (serial)
          + 1133 start  (in dyld) + 2360  [0x1825b60e0]
          +   1133 main  (in mariadbd) + 36  [0x1006c9d78]  main.cc:25
          +     1133 mysqld_main(int, char**)  (in mariadbd) + 3732  [0x1009f49bc]  mysqld.cc:5766
          +       1133 close_connections()  (in mariadbd) + 1996  [0x1009fafa4]  mysqld.cc:1834
          +         1133 wait_for_signal_thread_to_end()  (in mariadbd) + 192  [0x1009f0888]  mysqld.cc:2101
          +           1121 my_sleep  (in mariadbd) + 72  [0x1017eb14c]  my_sleep.c:33
          +           ! 543 time  (in libsystem_c.dylib) + 80  [0x1827e0f24]
          +           ! : 519 fesetenv  (in libsystem_m.dylib) + 4,8,...  [0x18f50137c,0x18f501380,...]
          +           ! : 24 DYLD-STUB$$fesetenv  (in libsystem_c.dylib) + 8,0  [0x18284c8f8,0x18284c8f0]
          +           ! 389 time  (in libsystem_c.dylib) + 52  [0x1827e0f08]
          +           ! : 350 gettimeofday  (in libsystem_c.dylib) + 56  [0x1827dbc9c]
          +           ! : | 304 __commpage_gettimeofday_internal  (in libsystem_kernel.dylib) + 44  [0x1829000d8]
          +           ! : | + 304 mach_absolute_time  (in libsystem_kernel.dylib) + 108,112  [0x1828fe6c0,0x1828fe6c4]
          +           ! : | 46 __commpage_gettimeofday_internal  (in libsystem_kernel.dylib) + 80,36,...  [0x1829000fc,0x1829000d0,...]
          +           ! : 29 gettimeofday  (in libsystem_c.dylib) + 32,56  [0x1827dbc84,0x1827dbc9c]
          +           ! : 10 __commpage_gettimeofday_internal  (in libsystem_kernel.dylib) + 164  [0x182900150]
          +           ! 172 time  (in libsystem_c.dylib) + 40  [0x1827e0efc]
          +           ! : 172 fegetenv  (in libsystem_m.dylib) + 4,0  [0x18f501364,0x18f501360]
          +           ! 17 time  (in libsystem_c.dylib) + 28  [0x1827e0ef0]
          +           12 my_sleep  (in mariadbd) + 96  [0x1017eb164]  my_sleep.c:33
      

      Attachments

        Issue Links

          Activity

            Gosselin Dave Gosselin created issue -
            Gosselin Dave Gosselin made changes -
            Field Original Value New Value
            Gosselin Dave Gosselin made changes -
            Gosselin Dave Gosselin made changes -
            Gosselin Dave Gosselin made changes -
            Affects Version/s 10.6.18 [ 29627 ]
            Gosselin Dave Gosselin made changes -
            Description git commit sha cd0356a764d5cad5bb64479adb1a646283314f3c introduced this problem wherein we appear to wait forever in {{wait_for_signal_thread_to_end}}.
            Process thread sample from Activity Monitor (full sample attached):

            {code}
                1133 Thread_12113141 DispatchQueue_1: com.apple.main-thread (serial)
                + 1133 start (in dyld) + 2360 [0x1825b60e0]
                + 1133 main (in mariadbd) + 36 [0x1006c9d78] main.cc:25
                + 1133 mysqld_main(int, char**) (in mariadbd) + 3732 [0x1009f49bc] mysqld.cc:5766
                + 1133 close_connections() (in mariadbd) + 1996 [0x1009fafa4] mysqld.cc:1834
                + 1133 wait_for_signal_thread_to_end() (in mariadbd) + 192 [0x1009f0888] mysqld.cc:2101
                + 1121 my_sleep (in mariadbd) + 72 [0x1017eb14c] my_sleep.c:33
                + ! 543 time (in libsystem_c.dylib) + 80 [0x1827e0f24]
                + ! : 519 fesetenv (in libsystem_m.dylib) + 4,8,... [0x18f50137c,0x18f501380,...]
                + ! : 24 DYLD-STUB$$fesetenv (in libsystem_c.dylib) + 8,0 [0x18284c8f8,0x18284c8f0]
                + ! 389 time (in libsystem_c.dylib) + 52 [0x1827e0f08]
                + ! : 350 gettimeofday (in libsystem_c.dylib) + 56 [0x1827dbc9c]
                + ! : | 304 __commpage_gettimeofday_internal (in libsystem_kernel.dylib) + 44 [0x1829000d8]
                + ! : | + 304 mach_absolute_time (in libsystem_kernel.dylib) + 108,112 [0x1828fe6c0,0x1828fe6c4]
                + ! : | 46 __commpage_gettimeofday_internal (in libsystem_kernel.dylib) + 80,36,... [0x1829000fc,0x1829000d0,...]
                + ! : 29 gettimeofday (in libsystem_c.dylib) + 32,56 [0x1827dbc84,0x1827dbc9c]
                + ! : 10 __commpage_gettimeofday_internal (in libsystem_kernel.dylib) + 164 [0x182900150]
                + ! 172 time (in libsystem_c.dylib) + 40 [0x1827e0efc]
                + ! : 172 fegetenv (in libsystem_m.dylib) + 4,0 [0x18f501364,0x18f501360]
                + ! 17 time (in libsystem_c.dylib) + 28 [0x1827e0ef0]
                + 12 my_sleep (in mariadbd) + 96 [0x1017eb164] my_sleep.c:33
            {code}
            In 10.5, git commit sha cd0356a764d5cad5bb64479adb1a646283314f3c introduced this problem wherein we appear to wait forever in {{wait_for_signal_thread_to_end}}. This sha was cherry-pick'd from 10.6, git sha 814dc46748d8c276f18c7664d8d14a543cff954c which also fails in the same way.
            Process thread sample from Activity Monitor (full sample attached):

            {code}
                1133 Thread_12113141 DispatchQueue_1: com.apple.main-thread (serial)
                + 1133 start (in dyld) + 2360 [0x1825b60e0]
                + 1133 main (in mariadbd) + 36 [0x1006c9d78] main.cc:25
                + 1133 mysqld_main(int, char**) (in mariadbd) + 3732 [0x1009f49bc] mysqld.cc:5766
                + 1133 close_connections() (in mariadbd) + 1996 [0x1009fafa4] mysqld.cc:1834
                + 1133 wait_for_signal_thread_to_end() (in mariadbd) + 192 [0x1009f0888] mysqld.cc:2101
                + 1121 my_sleep (in mariadbd) + 72 [0x1017eb14c] my_sleep.c:33
                + ! 543 time (in libsystem_c.dylib) + 80 [0x1827e0f24]
                + ! : 519 fesetenv (in libsystem_m.dylib) + 4,8,... [0x18f50137c,0x18f501380,...]
                + ! : 24 DYLD-STUB$$fesetenv (in libsystem_c.dylib) + 8,0 [0x18284c8f8,0x18284c8f0]
                + ! 389 time (in libsystem_c.dylib) + 52 [0x1827e0f08]
                + ! : 350 gettimeofday (in libsystem_c.dylib) + 56 [0x1827dbc9c]
                + ! : | 304 __commpage_gettimeofday_internal (in libsystem_kernel.dylib) + 44 [0x1829000d8]
                + ! : | + 304 mach_absolute_time (in libsystem_kernel.dylib) + 108,112 [0x1828fe6c0,0x1828fe6c4]
                + ! : | 46 __commpage_gettimeofday_internal (in libsystem_kernel.dylib) + 80,36,... [0x1829000fc,0x1829000d0,...]
                + ! : 29 gettimeofday (in libsystem_c.dylib) + 32,56 [0x1827dbc84,0x1827dbc9c]
                + ! : 10 __commpage_gettimeofday_internal (in libsystem_kernel.dylib) + 164 [0x182900150]
                + ! 172 time (in libsystem_c.dylib) + 40 [0x1827e0efc]
                + ! : 172 fegetenv (in libsystem_m.dylib) + 4,0 [0x18f501364,0x18f501360]
                + ! 17 time (in libsystem_c.dylib) + 28 [0x1827e0ef0]
                + 12 my_sleep (in mariadbd) + 96 [0x1017eb164] my_sleep.c:33
            {code}
            Gosselin Dave Gosselin made changes -
            Priority Critical [ 2 ] Blocker [ 1 ]
            Gosselin Dave Gosselin made changes -
            Assignee Dave Gosselin [ JIRAUSER52216 ] Michael Widenius [ monty ]
            serg Sergei Golubchik made changes -
            Assignee Michael Widenius [ monty ] Sergei Golubchik [ serg ]
            Gosselin Dave Gosselin made changes -
            Assignee Sergei Golubchik [ serg ] Dave Gosselin [ JIRAUSER52216 ]
            Gosselin Dave Gosselin made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            serg Sergei Golubchik made changes -
            Priority Blocker [ 1 ] Critical [ 2 ]
            serg Sergei Golubchik made changes -
            Fix Version/s 10.5 [ 23123 ]
            Fix Version/s 10.6 [ 24028 ]
            Fix Version/s 10.11 [ 27614 ]
            Fix Version/s 10.5.25 [ 29626 ]
            Gosselin Dave Gosselin made changes -
            Assignee Dave Gosselin [ JIRAUSER52216 ] Sergei Golubchik [ serg ]
            Status In Progress [ 3 ] In Review [ 10002 ]
            serg Sergei Golubchik made changes -
            Priority Critical [ 2 ] Blocker [ 1 ]
            serg Sergei Golubchik made changes -
            spil Bernard Spil added a comment - - edited

            Given MDEV-34254 the affected versions needs to be updated to include 10.11.8
            (and possibly all intermediary versions 10.7-10.10?)

            spil Bernard Spil added a comment - - edited Given MDEV-34254 the affected versions needs to be updated to include 10.11.8 (and possibly all intermediary versions 10.7-10.10?)
            ralf.gebhardt Ralf Gebhardt made changes -
            serg Sergei Golubchik made changes -
            Affects Version/s 10.11.8 [ 29630 ]
            serg Sergei Golubchik made changes -
            Assignee Sergei Golubchik [ serg ] Dave Gosselin [ JIRAUSER52216 ]
            Status In Review [ 10002 ] Stalled [ 10000 ]
            Gosselin Dave Gosselin made changes -
            Status Stalled [ 10000 ] In Testing [ 10301 ]
            Gosselin Dave Gosselin made changes -
            Status In Testing [ 10301 ] Stalled [ 10000 ]
            Gosselin Dave Gosselin made changes -
            Assignee Dave Gosselin [ JIRAUSER52216 ] Sergei Golubchik [ serg ]
            Status Stalled [ 10000 ] In Review [ 10002 ]
            Gosselin Dave Gosselin made changes -
            Component/s Platform FreeBSD [ 10139 ]
            Fix Version/s 10.5.26 [ 29832 ]
            Fix Version/s 10.5 [ 23123 ]
            Fix Version/s 10.6 [ 24028 ]
            Fix Version/s 10.11 [ 27614 ]
            Resolution Fixed [ 1 ]
            Status In Review [ 10002 ] Closed [ 6 ]
            JIraAutomate JiraAutomate made changes -
            Fix Version/s 10.6.19 [ 29833 ]
            Fix Version/s 10.11.9 [ 29834 ]
            Fix Version/s 11.1.6 [ 29835 ]
            Fix Version/s 11.2.5 [ 29836 ]
            Fix Version/s 11.4.3 [ 29837 ]
            serg Sergei Golubchik made changes -

            People

              serg Sergei Golubchik
              Gosselin Dave Gosselin
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.