summaryrefslogtreecommitdiff
path: root/cmake
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch bb-10.4-release into bb-10.5-releasemariadb-10.5.10Nikita Malyavin2021-05-051-1/+1
|\
| * Merge branch bb-10.3-release into bb-10.4-releaseNikita Malyavin2021-05-051-1/+1
| |\
| | * Fix of ppc64 by Wladmariadb-10.3.29Oleksandr Byelkin2021-05-051-1/+1
| | |
* | | MYSQL_MAINTAINER_MODE fixesSergei Golubchik2021-04-222-6/+6
| | | | | | | | | | | | | | | | | | | | | * MSVC check was lost in a bad merge * add a comment * move AIX check where it belongs and where it would still allow -Werror, if desired
* | | Merge 10.4 into 10.5Marko Mäkelä2021-04-211-0/+10
|\ \ \ | |/ /
| * | Fix all warnings given by UBSANMonty2021-04-201-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The easiest way to compile and test the server with UBSAN is to run: ./BUILD/compile-pentium64-ubsan and then run mysql-test-run. After this commit, one should be able to run this without any UBSAN warnings. There is still a few compiler warnings that should be fixed at some point, but these do not expose any real bugs. The 'special' cases where we disable, suppress or circumvent UBSAN are: - ref10 source (as here we intentionally do some shifts that UBSAN complains about. - x86 version of optimized int#korr() methods. UBSAN do not like unaligned memory access of integers. Fixed by using byte_order_generic.h when compiling with UBSAN - We use smaller thread stack with ASAN and UBSAN, which forced me to disable a few tests that prints the thread stack size. - Verifying class types does not work for shared libraries. I added suppression in mysql-test-run.pl for this case. - Added '#ifdef WITH_UBSAN' when using integer arithmetic where it is safe to have overflows (two cases, in item_func.cc). Things fixed: - Don't left shift signed values (byte_order_generic.h, mysqltest.c, item_sum.cc and many more) - Don't assign not non existing values to enum variables. - Ensure that bool and enum values are properly initialized in constructors. This was needed as UBSAN checks that these types has correct values when one copies an object. (gcalc_tools.h, ha_partition.cc, item_sum.cc, partition_element.h ...) - Ensure we do not called handler functions on unallocated objects or deleted objects. (events.cc, sql_acl.cc). - Fixed bugs in Item_sp::Item_sp() where we did not call constructor on Query_arena object. - Fixed several cast of objects to an incompatible class! (Item.cc, Item_buff.cc, item_timefunc.cc, opt_subselect.cc, sql_acl.cc, sql_select.cc ...) - Ensure we do not do integer arithmetic that causes over or underflows. This includes also ++ and -- of integers. (Item_func.cc, Item_strfunc.cc, item_timefunc.cc, sql_base.cc ...) - Added JSON_VALUE_UNITIALIZED to json_value_types and ensure that value_type is initialized to this instead of to -1, which is not a valid enum value for json_value_types. - Ensure we do not call memcpy() when second argument could be null. - Fixed that Item_func_str::make_empty_result() creates an empty string instead of a null string (safer as it ensures we do not do arithmetic on null strings). Other things: - Changed struct st_position to an OBJECT and added an initialization function to it to ensure that we do not copy or use uninitialized members. The change to a class was also motived that we used "struct st_position" and POSITION randomly trough the code which was confusing. - Notably big rewrite in sql_acl.cc to avoid using deleted objects. - Changed in sql_partition to use '^' instead of '-'. This is safe as the operator is either 0 or 0x8000000000000000ULL. - Added check for select_nr < INT_MAX in JOIN::build_explain() to avoid bug when get_select() could return NULL. - Reordered elements in POSITION for better alignment. - Changed sql_test.cc::print_plan() to use pointers instead of objects. - Fixed bug in find_set() where could could execute '1 << -1'. - Added variable have_sanitizer, used by mtr. (This variable was before only in 10.5 and up). It can now have one of two values: ASAN or UBSAN. - Moved ~Archive_share() from ha_archive.cc to ha_archive.h and marked it virtual. This was an effort to get UBSAN to work with loaded storage engines. I kept the change as the new place is better. - Added in CONNECT engine COLBLK::SetName(), to get around a wrong cast in tabutil.cpp. - Added HAVE_REPLICATION around usage of rgi_slave, to get embedded server to compile with UBSAN. (Patch from Marko). - Added #ifdef for powerpc64 to avoid a bug in old gcc versions related to integer arithmetic. Changes that should not be needed but had to be done to suppress warnings from UBSAN: - Added static_cast<<uint16_t>> around shift to get rid of a LOT of compiler warnings when using UBSAN. - Had to change some '/' of 2 base integers to shift to get rid of some compile time warnings. Reviewed by: - Json changes: Alexey Botchkov - Charset changes in ctype-uca.c: Alexander Barkov - InnoDB changes & Embedded server: Marko Mäkelä - sql_acl.cc changes: Vicențiu Ciorbaru - build_explain() changes: Sergey Petrunia
* | | mysqld: print status display subset of memory usage.bb-10.5-danielblack-pr1803-darwin-debug-memoryDavid CARLIER2021-04-141-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | leveling up to some degree with linux's mallinfo* api for the memory usage display with debug build with malloc_zone Darwin api. Closes: #1803
* | | Merge 10.4 into 10.5Marko Mäkelä2021-04-141-3/+3
|\ \ \ | |/ /
| * | Merge 10.3 into 10.4Marko Mäkelä2021-04-141-3/+3
| |\ \ | | |/
| | * Merge 10.2 into 10.3Marko Mäkelä2021-04-141-3/+3
| | |\
| | | * -DMYSQL_MAINTAINER_MODE=NOSergei Golubchik2021-04-131-2/+6
| | | | | | | | | | | | | | | | | | | | also add =WARN as an alias for =OFF and clarify the help text
| | | * CMake - when searching bison, look also for win_bisonVladislav Vaintroub2021-03-311-1/+1
| | | | | | | | | | | | | | | | | | | | win_bison belongs winflexbison project, which is Windows most up-to-date bison distro.
* | | | Merge 10.4 into 10.5Marko Mäkelä2021-03-311-0/+1
|\ \ \ \ | |/ / /
| * | | Merge 10.3 into 10.4Marko Mäkelä2021-03-311-0/+1
| |\ \ \ | | |/ /
| | * | Merge 10.2 into 10.3Marko Mäkelä2021-03-311-0/+1
| | |\ \ | | | |/
| | | * Windows - suppress nonsensical(for this OS) system check.Vladislav Vaintroub2021-03-301-0/+1
| | | | | | | | | | | | | | | | Amends 48141f3c1787de941d969ad1e6675611b2b650c2
* | | | Merge 10.4 into 10.5Marko Mäkelä2021-03-191-1/+1
|\ \ \ \ | |/ / /
| * | | Merge 10.3 into 10.4Marko Mäkelä2021-03-191-1/+1
| |\ \ \ | | |/ /
| | * | Merge 10.2 into 10.3Marko Mäkelä2021-03-181-1/+1
| | |\ \ | | | |/
| | | * MDEV-24554 Windows authenticode signing stopped workingVladislav Vaintroub2021-03-161-1/+1
| | | | | | | | | | | | | | | | | | | | Change the default timestamping URL, again http://timestamp.globalsign.com/?signature=sha2 seems to work fine atm
* | | | MDEV-25123 support MSVC ASANVladislav Vaintroub2021-03-122-14/+24
| | | |
* | | | fixup 449871458b49f224b27b26858784ef5408353f1bVladislav Vaintroub2021-03-091-3/+4
| | | |
* | | | Fix Windows clang build with newest cmakeVladislav Vaintroub2021-03-081-2/+8
| | | |
* | | | Merge 10.4 into 10.5Marko Mäkelä2021-02-241-0/+7
|\ \ \ \ | |/ / /
| * | | Merge branch '10.3' into 10.4Vicențiu Ciorbaru2021-02-231-0/+7
| |\ \ \ | | |/ /
| | * | Merge branch '10.2' into 10.3Vicențiu Ciorbaru2021-02-231-0/+7
| | |\ \ | | | |/
| | | * Remove race condition during `make dist`Vicențiu Ciorbaru2021-02-231-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduced by 85828b8f22e7f4dfa6a5d4b0a1ab9e133e7feea7 This is running 2 git processes in parallel, which, if unlucky can cause either of them to fail with "File already exists" error.
* | | | update PCRE2 refSergei Golubchik2021-02-151-2/+2
| | | |
* | | | MDEV-24498 mysql_config reports wrong libs for libmysqldSergei Golubchik2021-02-011-1/+1
| | | | | | | | | | | | | | | | filter out tpool
* | | | MDEV-24292 support semi-independent versioning for sub-packagesSergei Golubchik2021-01-122-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | 3. Embed plugin version into the DEB package version this assumes that -DDEB is only used from within autobake-deb.sh
* | | | MDEV-24292 support semi-independent versioning for sub-packagesSergei Golubchik2021-01-124-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2. Embed plugin version into the RPM package version introduce SERVER_VERSION, because plugins can overwrite VERSION (and columnstore actually does)
* | | | MDEV-24292 support semi-independent versioning for sub-packagesSergei Golubchik2021-01-121-3/+8
| | | | | | | | | | | | | | | | 1. specify plugin version in MYSQL_ADD_PLUGIN
* | | | Merge 10.4 into 10.5Marko Mäkelä2021-01-111-1/+1
|\ \ \ \ | |/ / /
| * | | Merge 10.3 into 10.4Marko Mäkelä2021-01-111-1/+1
| |\ \ \ | | |/ /
| | * | Merge 10.2 into 10.3 (except MDEV-17556)Marko Mäkelä2021-01-111-1/+1
| | |\ \ | | | |/ | | | | | | | | | | | | | | | | The fix of MDEV-17556 (commit e25623e78a3efde05e30070dc7362f8dc0d8c459 and commit 61a362c9493df63dc588fcb71409537ae56ab9c8) has been omitted due to conflicts and will have to be applied separately later.
| | | * MDEV-24554 Do not use verisign server for authenticode timestampingVladislav Vaintroub2021-01-091-1/+1
| | | |
* | | | cleanup: plugin.cmakeSergei Golubchik2020-12-212-11/+9
| | | | | | | | | | | | | | | | | | | | | | | | list all supported options in the comment. remove wsrep-specific hack of EXPORT_SYMBOLS, wsrep-specific hacks belong to wsrep
* | | | Add LARGE_FILES flag for GCC AIX buildEtienne Guesnet2020-12-161-2/+2
| | | |
* | | | Add flags for AIX buildEtienne Guesnet2020-12-161-0/+7
| | | |
* | | | Remove -Werror for AIXEtienne Guesnet2020-12-161-1/+5
| | | |
* | | | Add build on AIXEtienne Guesnet2020-12-163-8/+11
| | | |
* | | | MDEV-24125: linux large pages, linux/mman.h neededDaniel Black2020-11-191-0/+1
| | | | | | | | | | | | | | | | | | | | Centos/RHEL7 have the MAP_HUGE_SHIFT constant defined in linux/mman.h which needed to get included.
* | | | Merge 10.4 into 10.5Marko Mäkelä2020-11-031-19/+23
|\ \ \ \ | |/ / /
| * | | Merge 10.3 into 10.4Marko Mäkelä2020-11-031-19/+23
| |\ \ \ | | |/ /
| | * | Merge 10.2 into 10.3Marko Mäkelä2020-11-021-19/+23
| | |\ \ | | | |/
| | | * Fix RPM packaging on cmake 3.18+Sergei Golubchik2020-10-301-19/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cmake has caught up and since version 3.18 it started supporting CPACK_RPM_POST_TRANS_SCRIPT_FILE, something we've supported for two years and cmake 2.8.11. Both implementation add %posttrans tag and rpmbuild gets confused. Disable our implementation for cmake 3.18+
* | | | Windows : require at least VS2019 for MSVC.Vladislav Vaintroub2020-11-021-0/+3
| | | | | | | | | | | | | | | | This will avoid some errors on appveyor, due to outdated SDKs.
* | | | Merge 10.4 into 10.5Marko Mäkelä2020-10-302-2/+2
|\ \ \ \ | |/ / /
| * | | Merge 10.3 into 10.4Marko Mäkelä2020-10-292-2/+2
| |\ \ \ | | |/ /
| | * | cleanup: use predefined CMAKE_DL_LIBSSergei Golubchik2020-10-232-2/+2
| | | | | | | | | | | | | | | | instead of, say, MY_SEARCH_LIBS(dlopen dl LIBDL)