An error occurred fetching the project authors.
  1. 06 Sep, 2021 2 commits
  2. 04 Sep, 2021 1 commit
    • Vladislav Vaintroub's avatar
      MDEV-26533 MariaDB 10.5 crashes with key_buffer_size > 4Gb on Windows x64 · a1b0f235
      Vladislav Vaintroub authored
      This is a side-effect of my_large_malloc() introduction,MDEV-18851
      
      It removed a cast to size_t to variable 'blocks' in
      multiplication blocks * keycache->key_cache_block_size , creating ulong value
      instead of correct size_t.
      
      
      Replaced a couple of ulongs with appropriate data type, which is size_t.
      
      Also, fixed casts to ulongs in crash handler messages, so that people would
      not be confused by that, too.
      
      Interestingly, aria did not expose the same problem even if it contains
      copied and pasted code in ma_pagecache, because Aria had some ulongs removed
      when fixing a similar problem in MDEV-9256.
      a1b0f235
  3. 24 Jul, 2021 1 commit
  4. 14 Apr, 2021 1 commit
  5. 30 Mar, 2021 1 commit
  6. 14 Feb, 2021 1 commit
  7. 29 Jun, 2020 1 commit
  8. 23 May, 2020 1 commit
  9. 03 Apr, 2020 1 commit
  10. 10 Mar, 2020 1 commit
  11. 11 May, 2019 1 commit
  12. 01 May, 2019 1 commit
    • Daniel Black's avatar
      MDEV-15051: signal handler - output information about the core generation · dc8e15db
      Daniel Black authored
      The working directory, resource limits and core pattern will
      aid the user finding a core file in the case of failure.
      
      While the core file size is most relevant however other resource
      limits may give a clue as the the cause of the fatal signal so
      include them also.
      
      As signal handler functions are limited, proc filesystem reads/
      readlink calls are used instead of the more obvious getcwd/getrlimits
      functions which aren't listed as signal safe.
      
      Results in output of the form:
      
      Writing a core file: working directory at /tmp/datadir
      Resource Limits:
      Limit                     Soft Limit           Hard Limit Units
      Max cpu time              unlimited            unlimited seconds
      Max file size             unlimited            unlimited bytes
      Max data size             unlimited            unlimited bytes
      Max stack size            8388608              unlimited bytes
      Max core file size        unlimited            unlimited bytes
      Max resident set          unlimited            unlimited bytes
      Max processes             47194                47194 processes
      Max open files            1024                 4096 files
      Max locked memory         65536                65536 bytes
      Max address space         unlimited            unlimited bytes
      Max file locks            unlimited            unlimited locks
      Max pending signals       47194                47194 signals
      Max msgqueue size         819200               819200 bytes
      Max nice priority         0                    0
      Max realtime priority     0                    0
      Max realtime timeout      unlimited            unlimited            us
      Core pattern: |/usr/libexec/abrt-hook-ccpp %s %c %p %u %g %t %P %I
      
      Segmentation fault (core dumped)
      
      Closes #537
      dc8e15db
  13. 20 Feb, 2018 1 commit
  14. 01 Jan, 2018 1 commit
  15. 30 Aug, 2017 1 commit
  16. 23 Aug, 2017 2 commits
    • Monty's avatar
      Added DBUG_ASSERT_AS_PRINTF compile flag · 536215e3
      Monty authored
      If compiling a non DBUG binary with
      -DDBUG_ASSERT_AS_PRINTF asserts will be
      changed to printf + stack trace (of stack
      trace are enabled).
      
      - Changed #ifndef DBUG_OFF to
        #ifdef DBUG_ASSERT_EXISTS
        for those DBUG_OFF that was just used to enable
        assert
      - Assert checking that could greatly impact
        performance where changed to DBUG_ASSERT_SLOW which
        is not affected by DBUG_ASSERT_AS_PRINTF
      - Added one extra option to my_print_stacktrace() to
        get more silent in case of stack trace printing as
        part of assert.
      536215e3
    • Michael Widenius's avatar
      Enusure that my_global.h is included first · 4aaa38d2
      Michael Widenius authored
      - Added sql/mariadb.h file that should be included first by files in sql
        directory, if sql_plugin.h is not used (sql_plugin.h adds SHOW variables
        that must be done before my_global.h is included)
      - Removed a lot of include my_global.h from include files
      - Removed include's of some files that my_global.h automatically includes
      - Removed duplicated include's of my_sys.h
      - Replaced include my_config.h with my_global.h
      4aaa38d2
  17. 21 Mar, 2017 1 commit
  18. 20 Dec, 2016 1 commit
  19. 06 Dec, 2016 1 commit
  20. 01 Sep, 2016 1 commit
  21. 29 Aug, 2016 1 commit
  22. 12 Jul, 2016 1 commit
  23. 08 Mar, 2016 1 commit
  24. 04 Mar, 2016 1 commit
  25. 07 Feb, 2016 1 commit
  26. 01 Sep, 2015 1 commit
    • Monty's avatar
      Fixed errors and bugs found by valgrind: · 4f0255cb
      Monty authored
      - If run with valgrind, mysqltest will now wait longer when syncronizing slave with master
      - Ensure that we wait with cleanup() until slave thread has stopped.
      - Added signal_thd_deleted() to signal close_connections() that all THD's has been freed.
      - Check in handle_fatal_signal() that we don't use variables that has been freed.
      - Increased some timeouts when run with --valgrind
      
      Other things:
      - Fixed wrong test in one_thread_per_connection_end() if galera is used.
      - Removed not needed calls to THD_CHECK_SENTRY() when we are calling 'delete thd'.
      4f0255cb
  27. 07 Oct, 2014 1 commit
    • Monty's avatar
      MDEV 4427: query timeouts · cc8aed3e
      Monty authored
      Added MAX_STATEMENT_TIME user variable to automaticly kill queries after a given time limit has expired.
      
      - Added timer functions based on pthread_cond_timedwait
      - Added kill_handlerton() to signal storage engines about kill/timeout
      - Added support for GRANT ... MAX_STATEMENT_TIME=#
      - Copy max_statement_time to current user, if stored in mysql.user
      - Added status variable max_statement_time_exceeded
      - Added KILL_TIMEOUT
      - Removed digest hash from performance schema tests as they change all the time.
      - Updated test results that changed because of the new user variables or new fields in mysql.user
      
      This functionallity is inspired by work done by Davi Arnaut at twitter.
      Test case is copied from Davi's work.
      
      Documentation can be found at
      https://kb.askmonty.org/en/how-to-limittimeout-queries/
      
      mysql-test/r/mysqld--help.result:
        Updated for new help message
      mysql-test/suite/perfschema/r/all_instances.result:
        Added new mutex
      mysql-test/suite/sys_vars/r/max_statement_time_basic.result:
        Added testing of max_statement_time
      mysql-test/suite/sys_vars/t/max_statement_time_basic.test:
        Added testing of max_statement_time
      mysql-test/t/max_statement_time.test:
        Added testing of max_statement_time
      mysys/CMakeLists.txt:
        Added thr_timer
      mysys/my_init.c:
      mysys/mysys_priv.h:
        Added new mutex and condition variables
        Added new mutex and condition variables
      mysys/thr_timer.c:
        Added timer functions based on pthread_cond_timedwait()
        This can be compiled with HAVE_TIMER_CREATE to benchmark agains timer_create()/timer_settime()
      sql/lex.h:
        Added MAX_STATEMENT_TIME
      sql/log_event.cc:
        Safety fix (timeout should be threated as an interrupted query)
      sql/mysqld.cc:
        Added support for timers
        Added status variable max_statement_time_exceeded
      sql/share/errmsg-utf8.txt:
        Added ER_QUERY_TIMEOUT
      sql/signal_handler.cc:
        Added support for KILL_TIMEOUT
      sql/sql_acl.cc:
        Added support for GRANT ... MAX_STATEMENT_TIME=#
        Copy max_statement_time to current user
      sql/sql_class.cc:
        Added timer functionality to THD.
        Added thd_kill_timeout()
      sql/sql_class.h:
        Added timer functionality to THD.
        Added KILL_TIMEOUT
        Added max_statement_time variable in similar manner as long_query_time was done.
      sql/sql_connect.cc:
        Added handling of max_statement_time_exceeded
      sql/sql_parse.cc:
        Added starting and stopping timers for queries.
      sql/sql_show.cc:
        Added max_statement_time_exceeded for user/connects status in MariaDB 10.0
      sql/sql_yacc.yy:
        Added support for GRANT ... MAX_STATEMENT_TIME=# syntax, to be enabled in 10.0
      sql/structs.h:
        Added max_statement_time user resource
      sql/sys_vars.cc:
        Added max_statement_time variables
      mysql-test/suite/roles/create_and_drop_role_invalid_user_table.test
        Removed test as we require all fields in mysql.user table.
      scripts/mysql_system_tables.sql
      scripts/mysql_system_tables_data.sql
      scripts/mysql_system_tables_fix.sql
        Updated mysql.user with new max_statement_time field
      cc8aed3e
  28. 06 Jan, 2014 2 commits
  29. 10 Jun, 2013 4 commits
  30. 25 Mar, 2013 1 commit
  31. 25 Feb, 2013 2 commits
  32. 31 Jul, 2012 1 commit
  33. 13 Apr, 2012 1 commit