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

No stacktrace on crash on Windows, if mysqld is running as service

    XMLWordPrintable

Details

    Description

      Does not work for me on Windows 10 (don't have another windows to check)
      An easy way to reproduce is to inject a crash by using debug break intrinsic, e.g in function sleep(), like below, then start mysqld.exe * as service*, then call SELECT SLEEP(1) from the client.

      diff --git a/sql/item_func.cc b/sql/item_func.cc
      index 52575a8..5c3c396 100644
      --- a/sql/item_func.cc
      +++ b/sql/item_func.cc
      @@ -4610,7 +4610,7 @@ longlong Item_func_sleep::val_int()
         mysql_cond_t cond;
         double timeout;
         int error;
      -
      +  __debugbreak();
         DBUG_ASSERT(fixed == 1);
       
         timeout= args[0]->val_real();

      Attachments

        Activity

          People

            wlad Vladislav Vaintroub
            wlad Vladislav Vaintroub
            Votes:
            0 Vote for this issue
            Watchers:
            1 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.