MariaDB server is a community developed fork of MySQL server. Started by core members of the original MySQL team, MariaDB actively works with outside developers to deliver the most featureful, stable, and sanely licensed open SQL server in the industry.
Find a file
Sujatha a6dd827a4d MDEV-18046: Assortment of crashes, assertion failures and ASAN errors in mysql_show_binlog_events
Problem:
========
SHOW BINLOG EVENTS FROM <pos> causes a variety of failures, some of which are
listed below. It is not a race condition issue, but there is some
non-determinism in it.

Analysis:
========
"show binlog events from <pos>" code considers the user given position as a
valid event start position. The code starts reading data from this event start
position onwards and tries to map it to a set of known events. Each event has
a specific event structure and asserts have been added to ensure that read
event data satisfies the event specific requirements. When a random position
is supplied to "show binlog events command" the event structure specific
checks will fail and they result in assert.

Fix:
====
The fix is split into different parts. Each part addresses either an ASAN
issue or an assert/crash.

**Part1: Checksum based position validation when checksum is enabled**


Using checksum validate the very first event read at the user specified
position. If there is a checksum mismatch report an appropriate error for the
invalid event.
2020-01-07 18:27:05 +05:30
BUILD
client Merge branch '5.5' into 10.1 2019-12-03 09:39:53 +01:00
cmake
dbug try to fix data races in DBUG 2019-11-28 11:59:27 +07:00
debian cracklib-runtime needs a comma after to parse properly 2019-11-26 21:48:41 +02:00
Docs
extra
include Merge 5.5 into 10.1 2019-11-06 08:17:03 +02:00
libmysql
libmysqld
libservices
man Fix the line break warning (groff/lintian). 2019-12-02 15:36:01 +01:00
mysql-test MDEV-18046: Assortment of crashes, assertion failures and ASAN errors in mysql_show_binlog_events 2020-01-07 18:27:05 +05:30
mysys
mysys_ssl
pcre
plugin
randgen/conf
scripts Merge branch '5.5' into 10.1 2019-12-03 09:39:53 +01:00
sql MDEV-18046: Assortment of crashes, assertion failures and ASAN errors in mysql_show_binlog_events 2020-01-07 18:27:05 +05:30
sql-bench
sql-common
storage fix a bad merge 2019-12-20 19:47:31 +01:00
strings Merge remote-tracking branch 'origin/5.5' into 10.1 2019-12-16 13:08:17 +04:00
support-files MDEV-17571 Make systemd timeout behavior more compatible with long Galera SSTs 2019-12-05 10:36:20 +01:00
tests
unittest
vio
win
wsrep
zlib
.clang-format .clang-format - do not sort include files. 2019-12-03 22:22:23 +01:00
.gitattributes
.gitignore
BUILD-CMAKE
CMakeLists.txt
config.h.cmake
configure.cmake
COPYING
COPYING.thirdparty
CREDITS
EXCEPTIONS-CLIENT
INSTALL-SOURCE
INSTALL-WIN-SOURCE
KNOWN_BUGS.txt
README
VERSION bump the VERSION 2019-11-08 09:50:14 -05:00

MariaDB is designed as a drop-in replacement of MySQL(R) with more
features, new storage engines, fewer bugs, and better performance.

MariaDB is brought to you by the MariaDB Foundation.
Please read the CREDITS file for details about the MariaDB Foundation,
and who is developing MariaDB.

MariaDB is developed by many of the original developers of MySQL who
now work for the MariadB Foundation and the MariaDB Corporation, and by many people in
the community.

MySQL, which is the base of MariaDB, is a product and trademark of Oracle
Corporation, Inc. For a list of developers and other contributors,
see the Credits appendix.  You can also run 'SHOW authors' to get a
list of active contributors.

A description of the MariaDB project and a manual can be found at:
http://mariadb.org/
https://mariadb.com/kb/en/
https://mariadb.com/kb/en/mariadb-vs-mysql-features/
https://mariadb.com/kb/en/mariadb-versus-mysql-features/
https://mariadb.com/kb/en/mariadb-versus-mysql-compatibility/

As MariaDB is a full replacement of MySQL, the MySQL manual at
http://dev.mysql.com/doc is generally applicable.

More help is available from the Maria Discuss mailing list
https://launchpad.net/~maria-discuss
and the #maria IRC channel on Freenode.

***************************************************************************

NOTE: 

MariaDB is specifically available only under version 2 of the GNU
General Public License (GPLv2). (I.e. Without the "any later version"
clause.) This is inherited from MySQL. Please see the README file in
the MySQL distribution for more information.

License information can be found in the COPYING, COPYING.LESSER,
and COPYING.thirdparty files.

***************************************************************************

IMPORTANT:

Bug and/or error reports regarding MariaDB should be submitted at:
https://jira.mariadb.org

For reporting security vulnerabilities see:
https://mariadb.org/about/security-policy/

Bugs in the MySQL code can also be submitted at:
http://bugs.mysql.com

The code for MariaDB, including all revision history, can be found at:
https://github.com/MariaDB/server

***************************************************************************